/* =====================================================================
   Tinnitus Relief Solution — design system
   Palette: calm cyan + health green on a pale cyan ground. Deliberately
   NOT the manufacturer's violet — that livery is Neuromod's, and an
   independent provider reads stronger with an identity of its own.
   Type: Figtree (display/UI) + Noto Sans (long-form reading).
   ===================================================================== */
:root {
  /* Sampled from the Tinnitus Relief Solution logo artwork:
     navy #003060, teal #1890A8, sage #607860. */
  --primary: #10809B;
  --on-primary: #FFFFFF;
  --on-accent: #FFFFFF;
  --primary-strong: #0B5F76;
  --primary-soft: #D3EEF5;
  --secondary: #2FB3C6;
  --accent: #4F7050;
  --accent-soft: #DDE8DB;

  --bg: #F5FAFC;
  --bg-2: #E7F1F6;
  --card: #FFFFFF;
  --ink: #10314F;
  --ink-2: #35566E;
  --muted: #566E80;
  --line: #D2E4EC;
  --line-2: #AFCEDD;
  --deep: #062138;
  --deep-2: #0B3350;
  --deep-ink: #E8F7FB;
  --danger: #B3402A;

  --f-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --s1: .5rem; --s2: .875rem; --s3: 1.25rem; --s4: 2rem;
  --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --maxw: 1200px;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;

  /* soft depth, borrowed from soft-UI but kept high-contrast */
  --lift-1: 0 1px 2px rgba(6,42,52,.05), 0 6px 16px rgba(6,42,52,.06);
  --lift-2: 0 2px 4px rgba(6,42,52,.06), 0 18px 40px rgba(6,42,52,.10);
  --lift-3: 0 3px 6px rgba(6,42,52,.07), 0 34px 70px rgba(6,42,52,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #46B7CE; --on-primary: #04222A; --on-accent: #05200F;
    --primary-strong: #7FD6E6; --primary-soft: #0C3A48;
    --secondary: #2FB3C6; --accent: #8FB98D; --accent-soft: #16301A;
    --bg: #061622; --bg-2: #0A2434; --card: #0C2739;
    --ink: #E6F3F9; --ink-2: #AFC9D8; --muted: #8AA6B8;
    --line: #143547; --line-2: #1E5069;
    --deep: #03101C; --deep-2: #082438; --deep-ink: #E6F3F9;
    --danger: #E08A72;
    --lift-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.3);
    --lift-2: 0 2px 4px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.4);
    --lift-3: 0 3px 6px rgba(0,0,0,.5), 0 34px 70px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --primary: #46B7CE; --on-primary: #04222A; --on-accent: #05200F;
  --primary-strong: #7FD6E6; --primary-soft: #0C3A48;
  --secondary: #2FB3C6; --accent: #8FB98D; --accent-soft: #16301A;
  --bg: #061622; --bg-2: #0A2434; --card: #0C2739;
  --ink: #E6F3F9; --ink-2: #AFC9D8; --muted: #8AA6B8;
  --line: #143547; --line-2: #1E5069;
  --deep: #03101C; --deep-2: #082438; --deep-ink: #E6F3F9;
  --danger: #E08A72;
  --lift-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.3);
  --lift-2: 0 2px 4px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.4);
  --lift-3: 0 3px 6px rgba(0,0,0,.5), 0 34px 70px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary); }
sup { font-size: .6em; color: var(--muted); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  /* --primary lands at 4.36:1 at this size; the strong tone clears 4.5 */
  color: var(--primary-strong); margin-bottom: var(--s3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 60ch; margin-top: var(--s3); }
.small { font-size: .87rem; color: var(--muted); }
.pron { font-style: italic; color: var(--muted); }

section { position: relative; }
.band { padding-block: clamp(4rem, 9vw, var(--s7)); }
.band-alt { background: var(--bg-2); }
.band-deep { background: linear-gradient(165deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--deep-ink); }
.band-deep h2, .band-deep h3 { color: var(--deep-ink); }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 62ch; }
.head h2 { max-width: 20ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: .75rem; position: relative; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
/* Full logo lockup. It is a 3:2 stacked mark-over-wordmark, so it needs real
   height to stay legible — the header row is sized around it rather than the
   other way round. White ground is multiplied away on light, chipped on dark. */
.brand-logo {
  display: block; width: 168px; height: 72px; flex: none;
  background-image: url(8485052a22.jpg);
  background-repeat: no-repeat; background-position: left center; background-size: contain;
  mix-blend-mode: multiply;
}
/* the chip belongs to dark only — keyed off real dark, never off "not light",
   which would also match the un-stamped default state */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo {
    mix-blend-mode: normal; background-color: #fff; border-radius: 8px; padding: 4px 8px;
  }
}
:root[data-theme="dark"] .brand-logo {
  mix-blend-mode: normal; background-color: #fff; border-radius: 8px; padding: 4px 8px;
}
@media (max-width: 900px) { .brand-logo { width: 140px; height: 60px; } }
@media (max-width: 520px) { .brand-logo { width: 116px; height: 50px; } }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; display: block; line-height: 1.15; white-space: nowrap; }
.brand-sub { font-family: var(--f-display); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; white-space: nowrap; }
nav.links { display: flex; gap: var(--s3); align-items: center; }
nav.links a {
  text-decoration: none; font-family: var(--f-display); font-size: .92rem; font-weight: 500;
  color: var(--ink-2); padding: .4rem .1rem; border-radius: 6px; white-space: nowrap;
  transition: color .15s ease;
}
nav.links a:hover { color: var(--primary); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  flex: none; padding: 0; cursor: pointer; background: var(--card);
  border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; transition: background .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .bar > .btn { order: 2; margin-left: auto; }
  nav.links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--s3);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-2);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: .95rem .4rem; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  nav.links a:last-child { border-bottom: 0; }
}
@media (max-width: 1180px) { .brand-sub { display: none; } }
@media (max-width: 640px) { .bar > .btn { display: none; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .92rem 1.6rem; border-radius: 100px; text-decoration: none; cursor: pointer;
  font-family: var(--f-display); font-size: .96rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--lift-1); }
.btn-primary:hover { background: var(--primary-strong); box-shadow: var(--lift-2); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--lift-1); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
/* long labels ("Book a consultation with Dr. Hamidi") are wider than a 320px phone;
   let them wrap there rather than stretch the whole page sideways */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%; z-index: -1;
  background:
    radial-gradient(48% 42% at 12% 8%, color-mix(in srgb, var(--secondary) 26%, transparent) 0%, transparent 70%),
    radial-gradient(45% 40% at 88% 4%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem;
  border-radius: 100px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift-1);
  font-family: var(--f-display); font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: var(--s3);
}
.pill b { display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent); padding: .2rem .55rem; border-radius: 100px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero-assure { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); font-size: .87rem; color: var(--muted); }
.hero-assure span { display: inline-flex; align-items: center; gap: .4rem; }

.hero-figure { position: relative; margin: 0; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.2; border-radius: var(--r-xl); border: 1px solid var(--line);
  background-repeat: no-repeat; background-position: center 45%; background-size: cover; box-shadow: var(--lift-3);
}
.hero-badge {
  position: absolute; left: -14px; bottom: 26px; display: flex; align-items: center; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: .75rem .95rem; box-shadow: var(--lift-2); max-width: 264px;
}
.hero-badge .dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.hero-badge b { display: block; font-family: var(--f-display); font-size: .92rem; }
.hero-badge em { font-style: normal; font-size: .76rem; color: var(--muted); }
@media (max-width: 560px) { .hero-badge { left: 8px; bottom: 10px; max-width: 220px; } }


/* ---------------- narrow-screen hero ----------------
   Stacked, the photograph landed below ~700px of copy, so the entire first
   screen on a phone was text. Leading with the image gives the page something
   to look at immediately, and the copy still reads in order underneath. */
@media (max-width: 980px) {
  .hero { padding-block: var(--s4) clamp(2.5rem, 7vw, 4rem); }
  /* Let the copy block's children join the grid so they can be interleaved
     with the photograph: the tinnitus message has to land before the image,
     or the first screen is a woman in a chair with no subject. */
  .hero-grid > div { display: contents; }
  .hero-grid .pill { order: 1; }
  .hero-grid h1 { order: 2; }
  .hero-figure { order: 3; margin-block: var(--s3) var(--s2); }
  .hero-grid .lede { order: 4; }
  .hero-grid .hero-cta { order: 5; }
  .hero-grid .hero-assure { order: 6; }
  /* the two mesh blobs are positioned for a wide canvas; at phone widths they
     leave a visible boundary on the right, so lay a full-width wash beneath */
  .hero::before {
    inset: -10% -20% auto -20%; height: 120%;
    background:
      radial-gradient(70% 46% at 20% 6%, color-mix(in srgb, var(--secondary) 24%, transparent) 0%, transparent 72%),
      radial-gradient(70% 44% at 92% 2%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
      linear-gradient(180deg, var(--bg-2) 0%, transparent 62%);
  }
  .hero::after { display: none; }
  .hero-photo { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
  .hero-badge { left: auto; right: 10px; bottom: 12px; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); }
  .hero .lede { font-size: 1.02rem; }
  .hero-cta { margin-top: var(--s3); }
  .hero-cta .btn { flex: 1 1 auto; min-width: 44%; }
  .hero-assure { gap: var(--s2) var(--s3); margin-top: var(--s3); font-size: .82rem; }
}
@media (max-width: 460px) {
  /* the badge fights the photo at this width and the pill was wrapping to two lines */
  .hero-badge { position: static; margin-top: var(--s2); max-width: none; box-shadow: none; }
  .pill { font-size: .76rem; padding: .35rem .75rem .35rem .4rem; gap: .4rem; }
  .pill b { font-size: .66rem; padding: .18rem .45rem; }
  .hero-cta .btn { width: 100%; }
}

/* ---------------- ticker ---------------- */
.ticker {
  overflow: hidden; background: var(--deep); color: var(--deep-ink); padding-block: .95rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tickerRun 40s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex; align-items: center; gap: var(--s4); padding-right: var(--s4);
  font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; color: #BFE3EC;
}
.ticker-group i { color: var(--secondary); font-style: normal; }
@keyframes tickerRun { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ---------------- stats ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4) var(--s3); box-shadow: var(--lift-1); display: flex; flex-direction: column; gap: .35rem;
}
.stat-num { font-family: var(--f-display); font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat-label { font-size: .87rem; color: var(--ink-2); }

/* ---------------- cards ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--lift-1); display: flex; flex-direction: column; gap: .65rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.card .tag, .piece .tag { font-family: var(--f-display); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }
.card p { color: var(--ink-2); font-size: .96rem; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); margin-bottom: .3rem; }
.ico.green { background: var(--accent-soft); color: var(--accent); }

.spec-list { display: flex; flex-direction: column; margin: var(--s3) 0 0; padding: 0; list-style: none; }
.spec-list li { display: flex; gap: var(--s2); align-items: flex-start; padding-block: .75rem; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink-2); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .mark { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* ---------------- imagery ---------------- */
.frame {
  border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--lift-2);
  background-repeat: no-repeat; background-position: center; background-size: cover; width: 100%;
}
.kit-photo { aspect-ratio: 4 / 3; background-size: cover; }
.photo-benefits { aspect-ratio: 700 / 260; background-position: center 38%; }
.photo-home { aspect-ratio: 692 / 538; }
.photo-ear { aspect-ratio: 673 / 448; background-color: #F7F7F7; }

.piece {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s3) var(--s3) var(--s4); box-shadow: var(--lift-1);
  display: flex; flex-direction: column; gap: .6rem; text-align: center; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.piece:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.plinth {
  width: 100%; aspect-ratio: 4 / 4.4; border-radius: var(--r); margin-bottom: .4rem;
  background-color: #EFF7F9;
  background-image: linear-gradient(160deg, rgba(255,255,255,.95), rgba(203,230,238,.55));
  background-repeat: no-repeat; background-position: center; background-size: contain;
  background-origin: content-box; padding: 9% 13%;
}
:root[data-theme="dark"] .plinth { background-color: #10333D; background-image: linear-gradient(160deg, rgba(30,90,108,.5), rgba(6,28,34,.6)); }
.piece p { color: var(--ink-2); font-size: .93rem; max-width: 32ch; }

/* ---------------- video ---------------- */
.player, .story-video {
  display: block; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--deep); object-fit: cover; box-shadow: var(--lift-2); aspect-ratio: 16 / 9;
}
.story-video { object-position: center 51%; }
.player-fallback { padding: var(--s3); color: var(--deep-ink); font-size: .9rem; }

.how-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 940px) { .how-grid { grid-template-columns: 1fr; } }
.how-col { list-style: none; margin: 0; padding: 0; counter-reset: how; display: flex; flex-direction: column; gap: var(--s2); }
.how-col li {
  counter-increment: how; position: relative; padding: var(--s3) var(--s3) var(--s3) 3.6rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1);
}
.how-col li::before {
  content: counter(how); position: absolute; left: var(--s3); top: var(--s3);
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-family: var(--f-display); font-size: .8rem; font-weight: 700;
}
.how-col h3 { font-size: 1rem; margin-bottom: .2rem; }
.how-col p { font-size: .92rem; color: var(--ink-2); }

/* ---------------- benefits ---------------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; } }


/* ---------------- photo strip ---------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.shotcard { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.shotcard .frame { aspect-ratio: 4 / 3; }
.shotcard figcaption { font-family: var(--f-display); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.photo-kit-home, .photo-tip, .photo-rest { background-size: cover; }

/* ---------------- stories ---------------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .stories { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.story { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2); box-shadow: var(--lift-1); display: flex; flex-direction: column; gap: var(--s2); }
.story figcaption { display: flex; flex-direction: column; gap: .1rem; padding: 0 .4rem .4rem; }
.story figcaption strong { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.story-note { display: grid; place-items: center; text-align: center; padding: var(--s4); aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--muted); font-size: .87rem; }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: var(--s4); display: flex; flex-direction: column; gap: .5rem; }
.step-n { font-family: var(--f-display); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.step p { color: #B7D7E0; font-size: .95rem; }

.statement { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }
.quote { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--deep-ink); text-wrap: balance; border-left: 3px solid var(--danger); padding-left: var(--s3); }
.quote-note { color: #B7D7E0; font-size: 1rem; }

/* ---------------- assessment ---------------- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--lift-3); overflow: hidden; max-width: 820px; }
.tool-head { padding: var(--s4) var(--s4) var(--s3); border-bottom: 1px solid var(--line); }
.tool-head .eyebrow { margin-bottom: .5rem; }
.tool-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.tool-foot { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.progress { display: flex; gap: 6px; }
.pip { width: 30px; height: 5px; border-radius: 3px; background: var(--line-2); transition: background .25s ease; }
.pip.on { background: var(--primary); }
.q-text { font-family: var(--f-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.25; }
.opts { display: flex; flex-direction: column; gap: .55rem; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%;
  text-align: left; padding: .95rem 1.1rem; border-radius: var(--r); cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--ink);
  font-family: var(--f-body); font-size: .98rem; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.opt:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(3px); }
.opt .k { font-family: var(--f-display); font-size: .74rem; font-weight: 700; color: var(--muted); }
.result-row { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.result-score { font-family: var(--f-display); font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .7s cubic-bezier(.22,1,.36,1); }

/* ---------------- form ---------------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, var(--s5)); box-shadow: var(--lift-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--f-display); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .8rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .85rem; color: var(--muted); }
.confirm { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: var(--s4); }
.confirm h3 { color: var(--accent); margin-bottom: .4rem; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--primary); font-family: var(--f-body); font-size: .93rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- faq ---------------- */
.faq { display: flex; flex-direction: column; gap: .75rem; max-width: 840px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); }
summary { cursor: pointer; list-style: none; padding: var(--s3) 3rem var(--s3) var(--s3); position: relative; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--ink-2); font-size: .97rem; padding: 0 var(--s3) var(--s3); max-width: 70ch; }

/* ---------------- footer ---------------- */
footer { background: linear-gradient(165deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--deep-ink); padding-block: var(--s6) var(--s4); }
footer a { color: #A9CFDA; text-decoration: none; }
footer a:hover { color: var(--deep-ink); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s5); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col { display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; color: #A9CFDA; }
.foot-h { font-family: var(--f-display); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #86B2BF; margin-bottom: .3rem; }
.refs { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s3); display: flex; flex-direction: column; gap: .5rem; font-size: .78rem; color: #86B2BF; line-height: 1.6; }
.refs a { color: #86B2BF; text-decoration: underline; }


@media (max-width: 720px) {
  /* footer links sat at 24px tall; give them a real touch target */
  .foot-col a { padding-block: .55rem; }
  .foot-col { gap: .1rem; }
}

/* ---------------- sticky mobile bar ---------------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; padding: .8rem 1rem; font-size: .9rem; }
  footer { padding-bottom: 6rem; }
}

/* ---------------- motion ---------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .1s linear; pointer-events: none; }
.js .reveal { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .card:hover, .piece:hover, .btn:hover, .opt:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ graphics layer ============ */

/* animated mesh behind the hero */
.hero::before { animation: meshDrift 26s ease-in-out infinite alternate; }
@keyframes meshDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.12); }
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto -12% -35% 40%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 72%);
  animation: meshDrift 32s ease-in-out infinite alternate-reverse;
}

/* ---- dual-mode signal visualiser ---- */
.signal {
  background: linear-gradient(165deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--deep-ink); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, var(--s5));
  box-shadow: var(--lift-3); position: relative; overflow: hidden;
}
.signal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.signal-head h3 { color: var(--deep-ink); font-size: 1.15rem; }
.signal-head p { color: #9FC4CF; font-size: .9rem; max-width: 46ch; }
.signal-canvas { display: block; width: 100%; height: 250px; border-radius: var(--r); background: rgba(0,0,0,.22); }
@media (max-width: 620px) { .signal-canvas { height: 200px; } }
.signal-legend { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s3); font-size: .82rem; color: #9FC4CF; }
.signal-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.signal-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff;
  border-radius: 100px; padding: .5rem 1.1rem; font-family: var(--f-display); font-size: .85rem;
  font-weight: 600; cursor: pointer; transition: background .15s ease;
}
.signal-btn:hover { background: rgba(255,255,255,.2); }

/* ---- interactive device explorer ---- */
.explorer { position: relative; }
.explorer .frame { margin: 0; }
.hotspot {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid #fff; background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(6,42,52,.35); transition: transform .2s ease, background .2s ease;
  box-sizing: border-box; font: 600 16px/1 var(--f-display); overflow: hidden;
}
.hotspot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--primary);
  opacity: .6; animation: ping 2.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 0% { transform: scale(.85); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover, .hotspot[aria-expanded="true"] { transform: scale(1.12); background: var(--accent); }
.hotspot[aria-expanded="true"]::after { animation: none; opacity: 0; }
.hotspot-panel {
  position: absolute; z-index: 5; width: min(260px, 70vw); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--lift-2);
}
.hotspot-panel h4 { font-family: var(--f-display); font-size: .98rem; margin-bottom: .25rem; }
.hotspot-panel p { font-size: .87rem; color: var(--ink-2); }
.explorer-hint { margin-top: var(--s2); font-size: .84rem; color: var(--muted); }


/* ---- timeline ---- */
.timeline { position: relative; margin-top: var(--s5); }
.timeline-rail { position: absolute; left: 0; right: 0; top: 26px; height: 3px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.timeline-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); transition: width 1.4s cubic-bezier(.22,1,.36,1); }
.timeline-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); position: relative; }
@media (max-width: 900px) { .timeline-row { grid-template-columns: 1fr; } .timeline-rail { display: none; } }
.tl-node { display: flex; flex-direction: column; gap: .6rem; }
.tl-dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep-2); border: 3px solid var(--secondary); color: var(--secondary);
  font-family: var(--f-display); font-weight: 800; font-size: 1rem; position: relative; z-index: 2;
}
/* ---- page banners ----
   A full-bleed masthead: photograph, a veil dark enough to carry white type
   at AA, and the page's proposition in three beats — badge, headline, line.
   Sized in vh so it never eats the whole screen on a laptop. */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(58vh, 460px); display: flex; align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  background-repeat: no-repeat; background-size: cover; background-color: var(--deep);
}
.banner-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,22,32,.90) 0%, rgba(4,22,32,.72) 48%, rgba(4,22,32,.42) 100%),
    linear-gradient(180deg, rgba(4,22,32,.30) 0%, rgba(4,22,32,.55) 100%);
}
.banner-inner { position: relative; z-index: 2; max-width: var(--maxw); }
.banner-inner h2 {
  color: #fff; max-width: 17ch; margin-top: var(--s3);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em;
}
.banner-inner p {
  color: rgba(233,244,248,.90); max-width: 52ch; margin-top: var(--s3);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.banner-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .95rem .4rem .45rem; border-radius: 100px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(6px);
  font-family: var(--f-display); font-size: .82rem; font-weight: 600; color: #EAF6FA;
}
.banner-pill b {
  background: var(--secondary); color: #04222A; padding: .2rem .6rem; border-radius: 100px;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
}
.banner-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.btn-onmedia {
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(6px);
}
.btn-onmedia:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.6); }

/* focal points chosen per photograph so faces are never cropped out */
.banner-home  { background-position: center 32%; }
.banner-night { background-position: center 42%; }
.banner-kit   { background-position: center 48%; }

@media (max-width: 760px) {
  .banner { min-height: auto; padding-block: clamp(2.5rem, 9vw, 3.5rem); }
  .banner-veil { background: linear-gradient(180deg, rgba(4,22,32,.62) 0%, rgba(4,22,32,.86) 100%); }
  .banner-inner h2 { max-width: none; }
  .banner-cta .btn { flex: 1 1 auto; }
}

/* the banner carries the page's h1, so it takes the display size here */
.banner-inner h1 {
  color: #fff; max-width: 17ch; margin-top: var(--s3);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em;
}
.banner-assure {
  display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4);
  font-size: .87rem; color: rgba(233,244,248,.82);
}
.banner-assure span { display: inline-flex; align-items: center; gap: .4rem; }


/* ---------------- real-world evidence ---------------- */
.rwe-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .rwe-grid { grid-template-columns: 1fr; } }
.rwe-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 560px) { .rwe-outcomes { grid-template-columns: 1fr; } }
.rwe-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--lift-1);
}
.rwe-num {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--primary);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.rwe-num i { font-style: normal; font-size: .5em; margin-left: .1em; }
.rwe-stat p { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.rwe-cohort {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--lift-1);
}
.rwe-cohort h3 { margin-bottom: var(--s2); }
.rwe-cohort .detail-list { margin-bottom: var(--s3); }
.rwe-figure { margin: var(--s5) 0 0; display: flex; flex-direction: column; gap: var(--s2); }
.rwe-image { aspect-ratio: 1100 / 500; background-size: cover; background-position: center; }
.rwe-figure figcaption { font-size: .86rem; color: var(--muted); }

/* the cohort list reuses the clinician page's key/value rows */
.detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.detail-list li { display: flex; gap: var(--s3); padding-block: .7rem; border-bottom: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k {
  font-family: var(--f-display); font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); min-width: 78px; flex: none; padding-top: .2rem;
}
.detail-list .v { font-size: .96rem; color: var(--ink); }

/* ---------------- safety information ---------------- */
.safety-panel {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, var(--s5)); box-shadow: var(--lift-1); max-width: 900px;
  border-left: 4px solid var(--danger);
}
.safety-panel h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--danger);
}
.safety-lead { margin-top: var(--s2); font-weight: 600; color: var(--ink); }
.safety-list { margin: var(--s3) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.safety-list li {
  position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .96rem; line-height: 1.55;
}
.safety-list li::before {
  content: ""; position: absolute; left: .35rem; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--danger);
}
