/* Deen Lab website
   Palette and type follow the lab's results app (app.deenlab.org):
   navy + gold on warm paper, Cinzel display, IBM Plex Sans/Mono. */

:root {
  color-scheme: light;

  --paper: #f8f6f1;
  --paper-2: #f3efe6;
  --surface: #fff;
  --navy: #0a1a30;
  --navy-2: #102340;
  --navy-3: #15294a;
  --navy-ink: #c9d1de;
  --navy-mute: #9aa6ba;
  --text: #0a1a30;
  --text-2: #33424d;
  --text-3: #4e5f6b;
  --line: #e7e1d4;
  --line-strong: #d2caba;
  --hairline: #efe9dd;
  --gold: #b8893f;
  --gold-deep: #9a6b2a;
  --gold-ink: #87591f;
  --gold-mid: #d9b46a;
  --gold-pale: #f3dda8;
  --gold-wash: #f8f0e0;
  --red: #a52227;
  --red-deep: #8e1b24;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px #0a1a300f, 0 1px 3px #0a1a300d;
  --shadow-md: 0 2px 4px #0a1a3012, 0 14px 32px -10px #0a1a3029;
  --shadow-lg: 0 34px 70px -28px #0a1a3052, 0 10px 24px -12px #0a1a3024;
  --focus: 0 0 0 3px #b8893f80;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-2);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { color: var(--text); margin: 0; }
p { margin: 0; }
a { color: inherit; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }

:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

::selection { background: var(--gold-pale); color: var(--navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: var(--r);
  text-decoration: none; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.i--lg { width: 30px; height: 30px; stroke-width: 1.4; }

/* ---------- Type helpers ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 9px -6px 0 -1.5px var(--red);
  margin-right: 8px;
}

h2 {
  font: 600 clamp(1.85rem, 1.25rem + 2.2vw, 2.75rem)/1.12 var(--display);
  letter-spacing: .01em;
}
h3 { font: 600 1.125rem/1.35 var(--sans); }

.caption {
  margin-top: 14px; text-align: center;
  font: 400 .8rem/1.4 var(--mono); color: var(--text-3);
}

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-ink); font-weight: 600; text-underline-offset: 3px;
}
.text-link .i { width: 15px; height: 15px; }
.step p a, .faq__a a { color: var(--gold-ink); font-weight: 500; text-underline-offset: 3px; }

/* "To confirm" placeholders: deliberately loud so none ship by accident */
.tbc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border: 1px dashed var(--gold); border-radius: 6px;
  background: var(--gold-wash); color: var(--gold-ink);
  font: 500 .78rem/1.5 var(--mono); letter-spacing: .01em; vertical-align: middle;
}
.tbc::before { content: "◆"; font-size: .6rem; color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i:has(> use[href="#i-arrow"]) { transform: translateX(3px); }
.btn:hover .i:has(> use[href="#i-external"]) { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }

.btn--primary { --btn-bg: var(--navy); --btn-fg: var(--paper); box-shadow: 0 1px 0 #ffffff1a inset, var(--shadow-sm); }
.btn--primary:hover { --btn-bg: var(--navy-3); box-shadow: 0 1px 0 #ffffff1a inset, var(--shadow-md); }
.btn--primary .i { color: var(--gold-mid); }
.btn--ghost { --btn-bd: var(--line-strong); --btn-bg: #ffffff8c; }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--gold); }
.btn--gold { --btn-bg: var(--gold-mid); --btn-fg: var(--navy); }
.btn--gold:hover { --btn-bg: var(--gold-pale); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #f8f6f1e6;
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.nav-open.site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px #0a1a3040; }

.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 39px; height: 48px; }
.brand__word {
  font: 700 1.45rem/1 var(--display); letter-spacing: .04em; color: var(--navy);
}
.brand__word span { color: var(--gold-deep); }
.brand--light .brand__word { color: var(--paper); }
.brand--light .brand__word span { color: var(--gold-mid); }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; font-size: .96rem; text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--navy); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }

/* Compact "Book" button: only in the phone/tablet header bar */
.header-book { display: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i--close { display: none; }
.nav-open .nav-toggle .i--open { display: none; }
.nav-open .nav-toggle .i--close { display: block; }

@media (max-width: 1200px) {
  .site-nav ul a { padding-inline: 9px; font-size: .92rem; }
  .site-nav ul a::after { left: 9px; right: 9px; }
  .site-nav { gap: 14px; }
}

@media (max-width: 1079px) {
  .site-header__bar { gap: 10px; }
  .header-book { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 32px; margin: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li + li { border-top: 1px solid var(--hairline); }
  .site-nav ul a { padding: 16px 4px; font: 600 1.35rem/1.2 var(--display); color: var(--navy); }
  .site-nav ul a::after { display: none; }
  .site-nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .site-nav__actions .btn { width: 100%; min-height: 52px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.hero::before {
  /* faint graph paper, like a report sheet */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(circle, #f3dda866 0%, transparent 62%);
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero__title {
  margin: 22px 0 22px;
  font: 600 clamp(2.4rem, 1.4rem + 3.6vw, 4.15rem)/1.06 var(--display);
  letter-spacing: .005em; color: var(--navy);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--gold-deep); }

.hero__lead { max-width: 36em; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--text-2); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero__portal { padding: 8px 0; }
.hero__portal .i { transition: transform .25s var(--ease); }
.hero__portal:hover .i { transform: translateX(3px); }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__facts div { padding-right: 16px; }
.hero__facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts dt { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.hero__facts dd { margin: 6px 0 0; font-size: .92rem; line-height: 1.45; color: var(--text); font-weight: 500; }

.hero__visual { position: relative; margin: 0; padding: 12px 0 0; }

/* Desktop: header + hero fit in one screen. Vertical sizes follow the
   viewport height, so shorter laptop screens get a slightly smaller hero. */
@media (min-width: 960px) {
  .hero {
    display: flex; align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: min(calc(100svh - var(--header-h)), 960px);
    padding: clamp(20px, 4vh, 56px) 0;
  }
  .hero__title { margin: min(22px, 2.2vh) 0; font-size: clamp(2.4rem, min(1.4rem + 3.6vw, 7.5vh), 4.15rem); }
  .hero__lead { font-size: clamp(1rem, min(1rem + .3vw, 2.6vh), 1.2rem); line-height: 1.55; }
  .hero__actions { margin-top: clamp(16px, 3vh, 32px); }
  .hero__facts { margin-top: clamp(18px, 3.5vh, 40px); padding-top: clamp(12px, 2vh, 22px); }
  /* Keep the example report short: one line per test */
  .report__table tbody th { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* ---------- Example report (hero) ---------- */

.report {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px 22px 18px; color: var(--text);
}
.report--hero { transform: rotate(1.2deg); }

.report__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.report__head img { width: 26px; height: 32px; }
.report__brand { font: 700 1rem/1 var(--display); letter-spacing: .05em; color: var(--navy); }
.report__brand span { color: var(--gold-deep); }
.report__tag { margin-left: auto; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.report__title { padding: 14px 0 10px; }
.report__name { font: 600 1.35rem/1.15 var(--display); color: var(--navy); }

.report__meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--paper); }
.report__meta div { display: flex; gap: 8px; align-items: baseline; }
.report__meta dt { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.report__meta dd { margin: 0; font: 400 .8rem/1.3 var(--mono); color: var(--text); }

.report__table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.report__table thead th {
  padding: 0 0 8px; text-align: left; white-space: nowrap;
  font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.report__table tbody th, .report__table td { padding: 9px 0; border-top: 1px solid var(--hairline); vertical-align: middle; }
.report__table tbody th { font-weight: 500; text-align: left; padding-right: 10px; }
.report__table .res { font: 500 .9rem/1 var(--mono); white-space: nowrap; padding-right: 12px; }
.report__table .rng { font: 400 .75rem/1.2 var(--mono); color: var(--text-3); white-space: nowrap; text-align: right; }
.report__table .viz { width: 30%; padding-right: 14px; }
.report__table .is-high .res { color: var(--red-deep); }
.report__table abbr {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 4px;
  background: #fbeaeb; color: var(--red-deep); font: 600 .66rem/1 var(--mono); vertical-align: 1px;
}

/* Range bar: gold band = reference range, dot = the result */
.bar { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--hairline); }
.bar::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi));
  border-radius: 6px; background: var(--gold-pale);
}
.bar::after {
  content: ""; position: absolute; top: 50%; left: var(--pos); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--surface);
  transition: left 1.1s var(--ease);
}
.is-high .bar::after { background: var(--red); }
.js .report:not(.is-live) .bar::after { left: calc(var(--lo) + (var(--hi) - var(--lo)) / 2); }

.report__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline);
  font: 400 .75rem/1.3 var(--mono); color: var(--text-3);
}
.seal {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--gold-mid); background: var(--gold-wash); color: var(--gold-ink);
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.seal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--tint { background: var(--paper-2); }

.section__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head h2 { margin-top: 16px; text-wrap: balance; }
.section__lead { margin-top: 18px; font-size: 1.1rem; color: var(--text-2); }
.section__head--left { text-align: left; margin-inline: 0; }

/* ---------- Tests ---------- */

.tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.test {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.test::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 0 0 2px 2px;
  background: var(--gold); transform: scaleX(.18); transform-origin: left;
}
.test__where { display: inline-flex; align-items: center; gap: 7px; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.test__where .i { width: 16px; height: 16px; }
.test h3 { font: 600 1.2rem/1.3 var(--sans); color: var(--navy); }
.test p:not(.test__where) { font-size: .95rem; line-height: 1.55; }

.test--wide {
  grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(100deg, var(--surface) 40%, var(--gold-wash));
}
.test--wide > div { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }

/* ---------- Steps ---------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step__num {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px;
  border-radius: 50%; background: var(--paper-2); border: 1px solid var(--gold);
  font: 500 .85rem/1 var(--mono); color: var(--gold-ink);
}
.step:first-child .step__num { background: var(--navy); border-color: var(--navy); color: var(--gold-mid); }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .97rem; }

/* ---------- Patient Portal ---------- */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split__copy .section__head { margin-bottom: 32px; }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

.phone { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone__frame {
  width: min(300px, 100%); padding: 12px; border-radius: 44px; background: var(--navy);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--navy-3);
}
.phone__screen { min-height: 470px; padding: 22px 18px; border-radius: 34px; background: var(--paper); }
.phone__top { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.phone__top img { width: 20px; height: 25px; }
.phone__top span { font: 600 1.05rem/1 var(--display); color: var(--navy); }
.phone__list { display: grid; gap: 10px; }
.phone__list li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.phone__test { grid-column: 1 / -1; font-weight: 600; color: var(--navy); font-size: .95rem; }
.phone__state { font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.phone__pdf { font: 500 .7rem/1 var(--mono); color: var(--text-3); padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.phone__secure { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--gold-wash); font: 500 .78rem/1.2 var(--mono); color: var(--gold-ink); }
.phone__secure .i { width: 16px; height: 16px; }

.mini-steps__title { margin-bottom: 12px; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.mini-steps { display: grid; gap: 4px; counter-reset: mini; }
.mini-steps li { position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); counter-increment: mini; }
.mini-steps li:last-child { border-bottom: 1px solid var(--line); }
.mini-steps li::before {
  content: counter(mini); position: absolute; left: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold-mid); font: 500 .85rem/1 var(--mono);
}
.mini-steps p { margin-top: 4px; font-size: .97rem; }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none;
  font: 600 1.08rem/1.4 var(--sans); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a30' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-wash); border-color: var(--gold-mid); }
.faq summary:hover { color: var(--gold-deep); }
.faq__a { padding: 0 48px 24px 0; }
.faq__a ul { margin: 0 0 12px; padding-left: 1.2em; }
.faq__a li + li { margin-top: 4px; }
.faq__a li::marker { color: var(--gold); }

/* ---------- Location ---------- */

.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.visit__list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.visit__list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { display: flex; align-items: center; align-self: start; gap: 10px; font-weight: 600; color: var(--navy); }
.visit__list dt .i { color: var(--gold-deep); }
.visit__list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.visit__list address { flex-basis: 100%; color: var(--text); }

.visit__cards { display: grid; gap: 16px; }
.cta-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 30px; border-radius: var(--r-xl); background: var(--navy); color: var(--navy-ink); box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.cta-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid #d9b46a33; box-shadow: 0 0 0 30px #d9b46a0d, 0 0 0 60px #d9b46a08;
}
.cta-card h3 { color: var(--paper); font: 600 1.4rem/1.2 var(--display); }
.cta-card .i--lg { color: var(--gold-mid); }
.cta-card .btn { margin-top: 8px; position: relative; z-index: 1; }
.cta-card--light { background: var(--surface); color: var(--text-2); border: 1px solid var(--line); box-shadow: none; }
.cta-card--light h3 { color: var(--navy); }
.cta-card--light .i--lg { color: var(--gold-deep); }
.cta-card--light::after { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--navy-mute); padding: 64px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { margin-top: 18px; font-size: .92rem; line-height: 1.7; }
.site-footer h2 { font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 16px; }
.site-footer address { color: var(--navy-ink); font-size: .95rem; line-height: 1.7; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--navy-ink); text-decoration: none; font-size: .95rem;
  transition: color .2s var(--ease);
}
.site-footer nav a:hover { color: var(--paper); }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid #ffffff1a; font: 400 .8rem/1.4 var(--mono);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__visual.reveal { transform: translateY(24px) scale(.98); }
.js .hero__visual.reveal.is-in { transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .phone { order: 2; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section__head { position: static; }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero__facts div, .hero__facts div + div { padding: 0; border: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .report { padding: 16px 14px 14px; }
  .report--hero { transform: none; }
  .report__table { font-size: .8rem; }
  .report__table .viz { width: 22%; padding-right: 10px; }
  .report__table .rng { font-size: .68rem; }
  .report__meta { gap: 4px 14px; }
  .report__tag { display: none; }
  .tests, .steps { grid-template-columns: minmax(0, 1fr); }
  .test--wide { flex-direction: column; align-items: flex-start; }
  .visit__list > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq__a, .faq summary { padding-right: 44px; }
}

@media (max-width: 380px) {
  .report__table .viz { display: none; }
  .brand__word { font-size: 1.2rem; }
  .brand { gap: 9px; }
  .brand__mark { width: 33px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
