/* Shoal's site: one stylesheet, system fonts, no third-party anything. Dark aquarium colors; every
   text color keeps at least 4.5:1 against the surface it sits on. */
:root {
  color-scheme: dark;
  --bg: #061310;
  --bg-raised: #0a1d18;
  --surface: #0f2821;
  --surface-strong: #143429;
  --line: rgba(233, 243, 239, 0.12);
  --text: #e9f3ef;
  --text-dim: #b3c7bf;
  --accent: #74dcc2;
  --gold: #ffd27a;
  --gold-ink: #221806;
  --radius: 14px;
  --wrap: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* A jump to a section lands below the header, which stays at the top of the window. */
html { background: var(--bg); color: var(--text); scroll-padding-top: 5rem; }
body { margin: 0; font-size: 1.0625rem; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #9ae8d4; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Above the header, which stays at the top of the window. */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--gold); color: var(--gold-ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 650; }
.skip-link:focus { top: 1rem; }

/* Header and footer. The header stays at the top of the window while the page scrolls: the logo,
   the links (a Menu on phones) and one button. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(6, 19, 16, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 0.75rem 1.25rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 8px; }
.site-nav ul, .footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.97rem; padding: 0.4rem 0; display: inline-block; }
.site-nav a:hover { color: var(--text); }
/* The page you are on: full-strength text and an underline, so colour is not the only sign. */
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-header .header-cta { min-height: 40px; padding: 0.45rem 1.05rem; font-size: 0.95rem; white-space: nowrap; }
/* On phones the links sit in a Menu next to the button (the row of links is hidden there, the Menu
   everywhere else, so only one of them ever shows). */
.nav-menu { display: none; position: relative; }
.nav-menu summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.95rem; border: 1px solid rgba(233, 243, 239, 0.4); border-radius: 999px; color: var(--text); font-size: 0.95rem; font-weight: 650; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 0.45em; height: 0.45em; margin: -0.2em 0 0 0.55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav-menu[open] summary { background: rgba(233, 243, 239, 0.08); }
.nav-menu[open] summary::after { margin-top: 0.25em; transform: rotate(-135deg); }
.site-nav .nav-menu ul { position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 12rem; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0.4rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.site-nav .nav-menu a { display: block; padding: 0.7rem 0.9rem; border-radius: 8px; color: var(--text); }
.site-nav .nav-menu a:hover { background: rgba(233, 243, 239, 0.08); }
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; padding: 3rem 0 2rem; background: var(--bg-raised); color: var(--text-dim); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.footer-brand img { border-radius: 7px; }
.footer-nav ul { flex-direction: column; gap: 0.5rem; }
.footer-fine { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Buttons and calls to action */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.button-primary { background: var(--gold); color: var(--gold-ink); }
.button-primary:hover { background: #ffe0a3; color: var(--gold-ink); }
.button-secondary { background: transparent; color: var(--text); border-color: rgba(233, 243, 239, 0.4); }
.button-secondary:hover { background: rgba(233, 243, 239, 0.08); color: var(--text); }
.button[disabled] { opacity: 0.6; cursor: default; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.cta-status { margin: 0; color: var(--text-dim); font-weight: 600; }
/* Send to my Mac's address to copy, shown when sharing fails: a long press selects all of it */
.cta-send { max-width: 42rem; margin: 1rem auto 0; color: var(--text-dim); font-size: 0.95rem; }
.cta-send-address { color: var(--text); font-weight: 600; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.store-badge { display: inline-block; padding: 12px; margin: -12px; border-radius: 12px; }
.store-badge img { height: 48px; width: auto; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; text-align: center; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-dim); max-width: 42rem; margin: 0 auto 1.8rem; }
.hero .cta { justify-content: center; }
.hero .preview-bar { justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.hero-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; color: var(--text-dim); font-size: 0.95rem; }
.hero-facts li::before { content: "•"; color: var(--accent); margin-right: 0.5rem; }
.desktop-frame { position: relative; margin: 3rem auto 0; max-width: 1080px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); background: #050b08; aspect-ratio: 16 / 9; }
.desktop-frame video, .desktop-frame .frame-poster { width: 100%; height: 100%; object-fit: cover; }
.menubar { position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; padding: 0 0.9rem; background: rgba(8, 16, 13, 0.72); color: #f3f7f5; font-size: 0.8rem; font-weight: 600; }
.menubar svg { width: 18px; height: 18px; }
.desktop-icons { position: absolute; top: 44px; right: 18px; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; justify-items: center; }
.desktop-icons li { display: grid; justify-items: center; gap: 4px; width: 84px; color: #fff; font-size: 0.72rem; font-weight: 600; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.desktop-icons svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.video-toggle { position: absolute; left: 14px; bottom: 14px; min-height: 40px; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(6, 19, 16, 0.78); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.video-toggle:hover { background: rgba(6, 19, 16, 0.92); }

/* Sections */
.section { padding: 4.5rem 0 0; }
.section-intro { max-width: 46rem; color: var(--text-dim); font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2.5rem; margin-top: 2.5rem; }
.feature { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.feature p { color: var(--text-dim); margin: 0; }
.feature a { font-weight: 600; }

/* The live preview */
.preview-stage { position: relative; margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #050b08; aspect-ratio: 16 / 9; }
.preview-stage picture, .preview-stage img { display: block; width: 100%; height: 100%; }
.preview-stage img { object-fit: cover; filter: brightness(0.55); }
.preview-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.8rem; padding: 1rem; text-align: center; }
.preview-overlay p { margin: 0; color: #eef5f2; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1rem; }
.preview-status { margin: 0; color: var(--text-dim); min-height: 1.5em; }

/* The shared tank page: what the link's tank holds, and whether the free aquarium makes it */
.tank-summary { display: grid; gap: 0.35rem; max-width: 42rem; margin: 0 auto 1.8rem; }
.tank-summary p { margin: 0; }
.tank-facts { font-size: 1.1rem; font-weight: 650; }
.tank-names { color: var(--text-dim); }
.tank-made { color: var(--gold); font-weight: 650; }
.tank-made-free { color: var(--accent); }

/* Shoal Pro */
.pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.pro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pro-card figure { margin: 0; position: relative; }
.pro-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pro-label { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--gold-ink); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.04em; padding: 0.25rem 0.6rem; border-radius: 999px; }
.pro-card .pro-text { padding: 1.25rem 1.5rem 1.5rem; }
.pro-card p { color: var(--text-dim); margin: 0; }
/* A second feature in one card starts clear of the first one's text. */
.pro-card p + h3 { margin-top: 1.25rem; }
.detail-link { display: inline-block; margin-top: 0.6rem; font-weight: 600; }
.compare-wrap { margin-top: 2.5rem; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 1.05rem; vertical-align: bottom; }
.compare thead th:nth-child(3) { color: var(--gold); }
.compare .price { display: block; font-size: 0.9rem; color: var(--text-dim); font-weight: 600; margin-top: 0.2rem; }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-dim); }
.compare .yes { color: var(--accent); font-weight: 700; }
.offer-note { margin-top: 1rem; color: var(--text-dim); }

/* FAQ */
.faq-list { margin-top: 2rem; display: grid; gap: 0.75rem; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; }
details.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 650; font-size: 1.08rem; list-style-position: outside; }
details.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
details.faq .faq-answer { color: var(--text-dim); padding-bottom: 0.2rem; }

.closing { text-align: center; }
.closing .section-intro { margin-inline: auto; }
.closing .cta { justify-content: center; margin-top: 1.5rem; }

/* Long-form pages: support, privacy, press, guides */
.page { padding: 3.5rem 0 0; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.55rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: #d7e5df; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .lede { font-size: 1.2rem; color: var(--text-dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--text); }
.prose figure { margin: 1.5rem 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 0.6rem; color: var(--text-dim); font-size: 0.92rem; }
.prose kbd { font: inherit; font-size: 0.9em; padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.notices-text { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; line-height: 1.5; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; overflow-x: auto; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.guide-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; }
.guide-list a { font-weight: 650; font-size: 1.15rem; }
.guide-list p { margin: 0.4rem 0 0; color: var(--text-dim); }
.press-downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; }
.press-downloads li { margin: 0; }
.press-downloads img { border-radius: 10px; border: 1px solid var(--line); }
.press-downloads .press-icon { width: 160px; border: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-dim); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 58px; gap: 0.5rem; }
  .site-nav .nav-links { display: none; }
  .nav-menu { display: block; }
  .site-header .header-cta, .nav-menu summary { padding-inline: 0.8rem; }
  .hero { padding-top: 3rem; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .desktop-icons li:not(:first-child) { display: none; }
  .desktop-icons { top: 36px; right: 8px; }
  .desktop-icons li { width: 64px; }
  .desktop-icons svg { width: 40px; height: 40px; }
  .compare { font-size: 0.9rem; }
  .compare th, .compare td { padding: 0.6rem 0.45rem; }
  .press-downloads { grid-template-columns: 1fr; }
  /* A taller window onto the water, so the preview's controls cover less of it. */
  .preview-stage { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
