/* =============================================================================
   Clarity Mind Psychiatry — stylesheet v2
   Brand direction: "Quiet Modern" — lavender editorial, serif/sans contrast
   -----------------------------------------------------------------------------
   - Display type: Instrument Serif (400 only — scale carries the hierarchy).
   - UI/body type: Instrument Sans. Graceful native fallbacks offline.
   - Single accent discipline: lavender family only. Deep-aubergine "night"
     bands provide contrast instead of a second hue.
   - WCAG 2.2 AA: --lav (#A796CE) is DECORATIVE ONLY — text uses --primary
     (#5D4E8C, ~6:1 on paper) or --ink. On night bands, text uses --night-ink.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* palette */
  --ink:        #231D2C;   /* near-black aubergine — primary text */
  --paper:      #FAF9F6;   /* warm off-white */
  --surface:    #EFEBF7;   /* soft lavender wash */
  --surface-2:  #F5F3FA;   /* lighter lavender for nested cards */
  --primary:    #5D4E8C;   /* deep lavender-violet — actions, links */
  --primary-dk: #483B72;   /* hover */
  --lav:        #A796CE;   /* mid lavender — DECORATIVE ONLY (fails AA) */
  --lav-soft:   #DCD3EE;   /* pale lavender — hairlines on night, rings */
  --night:      #262033;   /* deep aubergine band */
  --night-ink:  #F0ECF8;   /* text on night */
  --night-mut:  #B9AED4;   /* secondary text on night (AA on --night) */
  --muted:      #6E677E;   /* secondary text on paper */
  --line:       #E5E0ED;   /* hairlines */
  --line-strong:#CDC4DF;

  /* type */
  --display: "Instrument Serif", "Hoefler Text", "Georgia", serif;
  --sans:    "Instrument Sans", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --body:    var(--sans);
  --ui:      var(--sans);

  /* scale & rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35,29,44,.05), 0 10px 28px -18px rgba(35,29,44,.20);
  --shadow-md: 0 4px 12px -6px rgba(35,29,44,.10), 0 30px 64px -36px rgba(35,29,44,.32);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint lavender atmosphere — depth without an image */
  background-image:
    radial-gradient(1100px 560px at 88% -6%, color-mix(in srgb, var(--surface) 72%, transparent), transparent 62%),
    radial-gradient(900px 520px at -12% 108%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 55%);
  background-attachment: fixed;
}
/* film grain — the quiet texture that keeps flat lavender from feeling sterile */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--lav-soft); color: var(--ink); }

/* visible, on-brand focus for keyboard users (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  font-family: var(--sans); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Layout helpers ------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--primary);
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* =============================================================================
   Crisis bar — site-wide, always visible (mental-health table stakes)
   ========================================================================== */
.crisisbar {
  background: var(--night); color: var(--night-ink);
  font-family: var(--sans); font-size: 13.5px; text-align: center;
  padding: 9px var(--gutter); letter-spacing: .01em;
}
.crisisbar a { color: #fff; font-weight: 600; text-underline-offset: 2px; }
.crisisbar strong { color: #fff; }

/* =============================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .logomark { width: 42px; height: 42px; flex: none; }
.brand .logomark svg { width: 100%; height: 100%; }
.brand .wordmark { line-height: 1.02; }
.brand .wordmark .nm { font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--ink); letter-spacing: .005em; }
.brand .wordmark .sub { display:block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-family: var(--sans); }
/* brand lockup shown ONLY inside the open mobile menu */
.menu-brand { display: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .8; transition: opacity .15s var(--ease); position: relative; }
.nav-links a:hover { opacity: 1; }
/* animated underline — draws in from the left on hover */
.nav-links a:not(.btn):not(.menu-brand)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:not(.btn):not(.menu-brand):hover::after { transform: scaleX(1); }
.nav-links a.is-current { opacity: 1; }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.btn { color: #fff !important; opacity: 1; }
.nav-links a.btn:hover { color: #fff !important; }

.btn {
  --btn-bg: var(--primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg); border-radius: var(--pill);
  padding: 11px 22px; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--primary); background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-fg: #fff; background: var(--primary); border-color: var(--primary); color: #fff; }
/* dark-ink variants (legacy .btn--sage names kept so interior pages restyle for free) */
.btn--sage { --btn-bg: var(--ink); --btn-fg: #fff; background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sage:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn--sage-outline { --btn-bg: transparent; --btn-fg: var(--ink); background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--sage-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--lg { font-size: 16px; padding: 14px 28px; }
/* light buttons for night bands */
.btn--light { --btn-bg: #fff; --btn-fg: var(--night); background: #fff; border-color: #fff; color: var(--night); }
.btn--light:hover { background: var(--lav-soft); border-color: var(--lav-soft); color: var(--night); }
.btn--light-ghost { --btn-bg: transparent; --btn-fg: var(--night-ink); background: transparent; color: var(--night-ink); border-color: rgba(240,236,248,.4); }
.btn--light-ghost:hover { background: rgba(240,236,248,.12); border-color: rgba(240,236,248,.7); color: #fff; }

/* hamburger (mobile). The open drawer slides OVER the header (industry-standard
   side-drawer pattern) and carries its own close button — see .nav-close below. */
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--pill); width: 48px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
/* close button lives inside the drawer; hidden everywhere except the open mobile panel */
.nav-close { display: none; }

/* =============================================================================
   Hero — editorial, asymmetric, arch portrait
   ========================================================================== */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 72px); overflow: hidden; }
/* oversized ghost lotus — brand watermark, barely-there */
.hero .watermark {
  position: absolute; right: -120px; top: -80px; width: 560px; height: 560px;
  opacity: .55; pointer-events: none;
}
.hero .watermark svg { width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--ink);
}
.hero h1 .soft { color: var(--primary); font-style: italic; }
.hero-lede { margin-top: 24px; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink); opacity: .78; max-width: 52ch; line-height: 1.7; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* hairline-divided stat row — replaces the old reassurance sentence */
.hero-stats { margin-top: 40px; display: flex; border-top: 1px solid var(--line); max-width: 560px; }
.hero-stats .stat { flex: 1; padding: 16px 20px 0 0; }
.hero-stats .stat + .stat { border-left: 1px solid var(--line); padding-left: 20px; }
.hero-stats .stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--primary); line-height: 1.1; }
.hero-stats .stat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }

/* arch portrait — the signature shape */
.hero-figure { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-arch {
  position: relative; width: min(380px, 82%); aspect-ratio: 4 / 5;
  border-radius: var(--pill) var(--pill) 22px 22px;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* offset lavender echo of the arch, behind */
.hero-figure::before {
  content: ""; position: absolute; width: min(380px, 82%); aspect-ratio: 4 / 5;
  border-radius: var(--pill) var(--pill) 22px 22px;
  border: 1.5px solid var(--lav); transform: translate(16px, 16px);
  z-index: -1;
}
.hero-badge {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--pill);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink);
  padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero-name { margin-top: 22px; font-family: var(--display); font-size: 21px; color: var(--ink); text-align: center; }
.hero-name span { color: var(--muted); font-style: italic; }

/* =============================================================================
   Trust ticker — slim uppercase editorial strip
   ========================================================================== */
.trust { border-block: 1px solid var(--line); background: transparent; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 34px; padding-block: 15px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.trust-row .item b { color: var(--primary); font-weight: 700; }
.trust-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lav); }

/* =============================================================================
   Generic section scaffolding
   ========================================================================== */
.section { padding-block: clamp(52px, 7vw, 96px); }
.section--surface { background: var(--surface); }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.008em; margin-top: 14px; color: var(--ink); }
.section-head h2 em { color: var(--primary); font-style: italic; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink); opacity: .78; line-height: 1.7; }
/* editorial index count beside a heading, e.g. (08) */
.head-count { font-family: var(--display); font-style: italic; font-size: .55em; color: var(--lav); vertical-align: super; margin-left: .3em; letter-spacing: 0; }

/* ---- Night band — deep aubergine sections -------------------------------- */
.section--night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.section--night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 420px at 80% 10%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 65%);
}
.section--night > .container { position: relative; }
.section--night .eyebrow { color: var(--lav); }
.section--night a:not(.btn) { color: var(--lav-soft); }

/* clinician quote (home) */
.clinician-quote { max-width: 880px; }
.clinician-quote blockquote { font-family: var(--display); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.22; font-style: italic; color: var(--night-ink); margin-top: 20px; letter-spacing: -.005em; }
.clinician-quote blockquote::before { content: "“"; color: var(--lav); }
.clinician-quote blockquote::after { content: "”"; color: var(--lav); }
.clinician-quote .byline { margin-top: 26px; font-family: var(--sans); display: flex; align-items: center; gap: 14px; }
.clinician-quote .byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(240,236,248,.3); }
.clinician-quote .byline b { color: #fff; font-size: 16px; display: block; }
.clinician-quote .byline span { color: var(--night-mut); display: block; font-size: 13.5px; margin-top: 2px; }
.clinician-quote .about-links { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================================================
   Care index — numbered editorial rows (replaces the icon-card grid)
   ========================================================================== */
.care-index { margin-top: 44px; border-top: 1px solid var(--line-strong); counter-reset: care; }
.care-row {
  counter-increment: care;
  display: grid; grid-template-columns: 64px minmax(200px, 300px) 1fr 32px;
  align-items: baseline; gap: 18px;
  padding: 20px 10px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.care-row::before {
  content: counter(care, decimal-leading-zero);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; color: var(--lav);
}
.care-row .nm { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.4vw, 27px); color: var(--ink); line-height: 1.15; transition: color .2s var(--ease); }
.care-row .ds { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.care-row .go { font-family: var(--sans); color: var(--lav); font-size: 18px; justify-self: end; transition: transform .2s var(--ease), color .2s var(--ease); }
.care-row:hover { background: var(--surface-2); padding-left: 18px; }
.care-row:hover .nm { color: var(--primary); }
.care-row:hover .go { transform: translateX(4px); color: var(--primary); }
.care-foot { margin-top: 22px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.care-foot a { font-weight: 600; }

/* =============================================================================
   Steps — how care begins (01 → 03)
   ========================================================================== */
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 2px solid var(--line-strong); padding-top: 22px; position: relative; }
.step .num { font-family: var(--display); font-style: italic; font-size: 44px; color: var(--lav); line-height: 1; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); margin-top: 12px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* =============================================================================
   GeneSight callout band (home)
   ========================================================================== */
.gs-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 48px); display: grid; grid-template-columns: 1.5fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.gs-band .helix { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 260px; opacity: .16; pointer-events: none; }
.gs-band .helix svg { width: 100%; stroke: var(--primary); }
.gs-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; color: var(--ink); margin-top: 12px; }
.gs-band h2 em { color: var(--primary); font-style: italic; }
.gs-band p { margin-top: 12px; font-size: 16px; color: var(--ink); opacity: .78; max-width: 54ch; line-height: 1.65; }
/* keep content above the decorative helix; lower specificity than .gs-band .helix
   so the helix itself stays position:absolute */
.gs-band > * { position: relative; }

/* =============================================================================
   Booking chooser — the centerpiece UX
   ========================================================================== */
.booking-cards { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin-inline: auto; }
.bcard {
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcard .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.bcard .tag .swatch { width: 9px; height: 9px; border-radius: 50%; }
.bcard h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 14px 0 10px; }
.bcard p { font-size: 15px; line-height: 1.6; flex: 1; }
.bcard .meta { margin-top: 18px; font-family: var(--sans); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.bcard .meta svg { width: 15px; height: 15px; flex: none; }
.bcard .btn { margin-top: 22px; justify-content: center; }
/* insurance = featured night card */
.bcard.is-ins { background: var(--night); color: var(--night-ink); }
.bcard.is-ins .tag { color: var(--lav); }
.bcard.is-ins .tag .swatch { background: var(--lav); }
.bcard.is-ins h3 { color: #fff; }
.bcard.is-ins p { color: var(--night-ink); opacity: .82; }
.bcard.is-ins .meta { color: var(--night-mut); }
.bcard.is-ins .meta svg { stroke: var(--lav); }
/* self-pay = light card */
.bcard.is-self { background: var(--paper); border: 1.5px solid var(--line-strong); }
.bcard.is-self .tag { color: var(--primary); }
.bcard.is-self .tag .swatch { background: var(--primary); }
.bcard.is-self h3 { color: var(--ink); }
.bcard.is-self p { color: var(--ink); opacity: .78; }
.bcard.is-self .meta { color: var(--muted); }
.bcard.is-self .meta svg { stroke: var(--primary); }
/* the two CTAs differ by MORE than color (a11y): filled-light vs filled-plum + distinct icons */
.newtab { font-size: 12px; opacity: .7; }

.notsure { text-align: center; margin-top: 28px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.notsure button { background: none; border: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.plans-panel {
  max-width: 920px; margin: 16px auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; overflow: hidden;
}
.plans-panel h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--primary); text-transform: uppercase; margin-bottom: 14px; }
.plans-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.plans-list li { list-style: none; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.plans-list li svg { width: 15px; height: 15px; stroke: var(--primary); flex: none; }
.plans-panel .foot { margin-top: 16px; font-size: 14px; color: var(--muted); }
.plans-panel[hidden] { display: none; }

/* =============================================================================
   CTA strip + Footer
   ========================================================================== */
.cta-strip {
  background: var(--night); color: var(--night-ink); border-radius: var(--radius);
  padding: clamp(36px, 5.5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 320px at 85% 0%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 65%);
}
.cta-strip > * { position: relative; }
.cta-strip h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; color: #fff; }
.cta-strip h2 em { color: var(--lav); font-style: italic; }
.cta-strip p { margin-top: 12px; opacity: .82; font-size: 16px; }
.cta-strip .btn { --btn-bg: #fff; --btn-fg: var(--night); background: #fff; border-color: #fff; color: var(--night); }
.cta-strip .btn:hover { background: var(--lav-soft); border-color: var(--lav-soft); color: var(--night); }

.site-footer { margin-top: clamp(56px, 9vw, 96px); border-top: 1px solid var(--line); padding-block: 52px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-blurb { font-size: 15px; color: var(--muted); max-width: 38ch; line-height: 1.65; }
.footer-col h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; color: var(--ink); opacity: .8; text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { opacity: 1; color: var(--primary); }
.footer-legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-legal .crisis-reminder { color: var(--ink); }
.footer-legal .crisis-reminder b { color: var(--primary); }

/* =============================================================================
   Entrance animation — one orchestrated, staggered page-load reveal
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .15s; }
.reveal.d3 { animation-delay: .25s; }
.reveal.d4 { animation-delay: .35s; }
.reveal.d5 { animation-delay: .45s; }

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin-inline: auto; }
  .hero .watermark { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .gs-band { grid-template-columns: 1fr; }
  .gs-band .helix { display: none; }
  .care-row { grid-template-columns: 48px 1fr 24px; }
  .care-row .ds { grid-column: 2; }
  .care-row .go { grid-row: 1; grid-column: 3; }
  .cta-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  /* NO overflow-x on html/body here. `hidden` breaks the sticky header (body becomes
     a scroll container); `clip` on the root propagates to the viewport and disables
     page scrolling entirely in Chrome. Instead, the closed drawer below is
     visibility:hidden, so nothing pokes past the right edge in the first place. */
  /* CRITICAL: the header's backdrop-filter creates a containing block that traps the
     position:fixed nav panel inside the header's box. Drop the backdrop-filter on mobile
     so the fixed panel anchors to the viewport and renders full-height. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FAF9F6; }
  /* The drawer is a CHILD of the sticky header, whose z-index traps it in the
     header's stacking context. Raise the whole header above the scrim (105)
     while open so the drawer can paint on top — and dim the header bar with its
     own overlay so the hamburger/logo read as "behind" like the rest of the page. */
  .site-header::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(35,29,44,.45); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  body.nav-open .site-header { z-index: 110; }
  body.nav-open .site-header::after { opacity: 1; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    background: #FAF9F6; border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 4px; padding: 26px 28px 28px; transform: translateX(100%);
    /* hidden while closed: keeps the off-screen panel out of the tab order and
       out of the page's scrollable overflow. The 0s/.3s delay hides it only
       AFTER the slide-out finishes, so the close animation stays visible. */
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
    box-shadow: var(--shadow-md);
    z-index: 120; /* above the scrim (105) */
    overflow-y: auto;
  }
  .nav-links .menu-brand {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 4px 52px 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line);
    text-decoration: none;
  }
  /* the drawer's own close button — top-right, aligned with the brand row */
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 20px; width: 42px; height: 42px;
    background: var(--surface); border: 1.5px solid var(--line-strong);
    border-radius: var(--pill); cursor: pointer;
  }
  .nav-close svg { width: 20px; height: 20px; stroke: var(--ink); }
  .nav-links .menu-brand .logomark { width: 40px; height: 40px; flex: none; }
  .nav-links .menu-brand .logomark svg { width: 100%; height: 100%; }
  .nav-links .menu-brand .wordmark .nm { font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1.05; }
  .nav-links .menu-brand .wordmark .sub { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
  .nav-links a { font-size: 18px; padding-block: 10px; width: 100%; }
  .nav-links a:not(.btn):not(.menu-brand)::after { display: none; }
  .nav-links .menu-brand { padding-block: 4px 16px; }
  .nav-links a.btn { margin-top: 8px; text-align: center; justify-content: center; }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s 0s; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(35,29,44,.45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 105; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .booking-cards { grid-template-columns: 1fr; }
  .plans-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; border-top: none; max-width: none; }
  .hero-stats .stat { border-top: 1px solid var(--line); padding: 12px 0 12px 0; }
  .hero-stats .stat + .stat { border-left: none; padding-left: 0; }

  /* About page: disable the desktop sticky sidebar on mobile so it can't overlap the prose */
  .bio-grid { grid-template-columns: 1fr; }
  .bio-aside { position: static; top: auto; }
  .bio-photo { max-width: 360px; }
}

/* =============================================================================
   INTERIOR PAGES — shared scaffolding
   ========================================================================== */

/* page hero (compact, for interior pages) */
.page-hero { padding-block: clamp(44px, 6.5vw, 80px) clamp(30px, 4vw, 48px); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); max-width: 20ch; }
.page-hero h1 em { color: var(--primary); font-style: italic; }
.page-hero .lede { margin-top: 20px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink); opacity: .78; max-width: 56ch; line-height: 1.7; }
.breadcrumb { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* long-form prose */
.prose { max-width: 66ch; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink); opacity: .88; margin-bottom: 20px; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 36px); margin: 40px 0 14px; color: var(--ink); }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 26px 0 10px; color: var(--ink); }
.prose ul { margin: 0 0 20px 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 16px; line-height: 1.6; color: var(--ink); opacity: .88; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--lav); }
.prose strong { color: var(--ink); font-weight: 600; }

/* about layout */
.bio-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.bio-aside { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-aside { position: static; top: auto; margin-bottom: 8px; }
  .bio-photo { max-width: 380px; }
}
.bio-photo { border-radius: var(--pill) var(--pill) 18px 18px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bio-facts { margin-top: 20px; background: var(--surface); border-radius: var(--radius); padding: 22px; font-family: var(--sans); }
.bio-facts h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.bio-facts dl { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bio-facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bio-facts dd { font-size: 15.5px; color: var(--ink); margin-top: 1px; }
.pub-list { margin-top: 24px; }
.pub-list h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.pub-item { display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); background: var(--paper); }
.pub-item:hover { border-color: var(--primary); transform: translateX(2px); }
.pub-item .t { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); }
.pub-item .src { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pub-item .src .newtab { opacity: .6; }

/* services list */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 720px) { .svc-list { grid-template-columns: 1fr; } }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.svc:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.svc .ic { width: 28px; height: 28px; stroke: var(--primary); margin-bottom: 14px; }
.svc h3 { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--ink); }
.svc p { font-size: 15px; color: var(--ink); opacity: .78; margin-top: 8px; line-height: 1.6; }

/* GeneSight feature card on the Services page — spans the full grid width */
.svc--feature {
  grid-column: 1 / -1; background: var(--surface);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 26px; align-items: start;
  scroll-margin-top: 110px;
}
.svc--feature .ic { width: 34px; height: 34px; margin-top: 4px; }
.svc--feature .svc-body { min-width: 0; }
.svc--feature .svc-tag { display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 4px 12px; margin-bottom: 10px; }
.svc--feature h3 { font-size: 26px; }
.svc--feature .svc-points { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.svc--feature .svc-points li { display: flex; align-items: center; gap: 7px; }
.svc--feature .svc-points svg { width: 14px; height: 14px; stroke: var(--primary); flex: none; }
@media (max-width: 720px) { .svc--feature { grid-template-columns: 1fr; } .svc--feature .ic { margin-top: 0; } }

/* deepened conditions (Services page) — editorial label + description rows */
.cond-detail { border-top: 1px solid var(--line-strong); counter-reset: cond; }
.cdrow { display: grid; grid-template-columns: 250px 1fr; gap: clamp(16px, 4vw, 48px); padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cdrow h3 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); line-height: 1.15; }
.cdrow h3::before { counter-increment: cond; content: counter(cond, decimal-leading-zero); display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--lav); margin-bottom: 6px; }
.cdrow p { font-size: 16px; line-height: 1.68; color: var(--ink); opacity: .85; }
@media (max-width: 700px) { .cdrow { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } }

/* fees */
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 720px) { .fee-cards { grid-template-columns: 1fr; } }
.fee-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--paper); }
.fee-card.is-feature { background: var(--night); border-color: var(--night); color: var(--night-ink); }
.fee-card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); }
.fee-card.is-feature h3 { color: #fff; }
.fee-card .price { font-family: var(--display); font-style: italic; font-size: 32px; color: var(--primary); margin: 10px 0 4px; }
.fee-card.is-feature .price { color: var(--lav); }
.fee-card .price small { font-size: 14px; font-style: normal; color: var(--muted); font-family: var(--sans); }
.fee-card p { font-size: 15px; color: var(--ink); opacity: .8; margin-top: 8px; line-height: 1.6; }
.fee-card.is-feature p { color: var(--night-ink); opacity: .82; }
.fee-card ul { list-style: none; margin-top: 16px; }
.fee-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); margin-bottom: 9px; }
.fee-card.is-feature li { color: var(--night-ink); }
.fee-card li svg { width: 16px; height: 16px; stroke: var(--primary); flex: none; margin-top: 3px; }
.fee-card.is-feature li svg { stroke: var(--lav); }
.fee-card .btn { margin-top: 22px; }
.fee-card.is-feature .btn { --btn-bg: #fff; --btn-fg: var(--night); background: #fff; border-color: #fff; color: var(--night); }
.fee-card.is-feature .btn:hover { background: var(--lav-soft); border-color: var(--lav-soft); }
.gfe-note { margin-top: 30px; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; font-size: 15px; color: var(--ink); opacity: .9; line-height: 1.65; }
.gfe-note strong { color: var(--primary); }

/* FAQ accordion */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font-family: var(--display); font-size: 22px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s var(--ease); }
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 24px; height: 24px; position: relative; transition: transform .2s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; }
.faq summary .pm::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq summary .pm::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: transform .2s var(--ease); }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq details[open] summary { color: var(--primary); }
.faq .ans { padding: 0 0 26px; font-size: 16px; line-height: 1.7; color: var(--ink); opacity: .86; max-width: 64ch; }
.faq .ans a { color: var(--primary); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .row svg { width: 21px; height: 21px; stroke: var(--primary); flex: none; margin-top: 3px; }
.contact-info .row b { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-info .row a, .contact-info .row span { font-size: 17px; color: var(--ink); text-decoration: none; }
.contact-info .row a:hover { color: var(--primary); }

.form-card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); margin-bottom: 6px; }
.form-field { margin-top: 18px; }
.form-field label { display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-field label .opt { color: var(--muted); font-weight: 400; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; background: var(--paper); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-disclaimer { margin-top: 18px; background: var(--surface); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.form-disclaimer strong { color: var(--primary); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-card .btn { margin-top: 22px; width: 100%; justify-content: center; }
.form-status { margin-top: 14px; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: var(--surface); color: var(--primary-dk); border: 1px solid var(--lav); }
.form-status.err { display: block; background: #fbeaea; color: #8a3232; border: 1px solid #d99; }

/* resources */
.res-list { max-width: 760px; }
.res-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.res-item .res-name { font-family: var(--display); font-size: 21px; color: var(--ink); flex: 1; }
.res-item .res-contact { font-family: var(--sans); font-size: 15.5px; color: var(--primary); text-align: right; }
.res-item .res-contact a { color: var(--primary); text-decoration: none; font-weight: 600; }
.res-item .res-contact a:hover { text-decoration: underline; }
.res-item .res-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
