/* =====================================================================
   Intuitive Psychiatry — shared stylesheet
   Extracted from the homepage; used by every page of the site.
   Palette / type verbatim from the brand PDF (2024.06.12).
===================================================================== */

/* =======================================================================
   INTUITIVE PSYCHIATRY — a brand-faithful system
   Palette verbatim from brand PDF:
     Ivory #e0ded5 · Light Blue #87a7c5 · Mustard #d78d2a
     Primary Indigo #104d84 · Gradient Deep #0f3a6d
   ======================================================================= */
:root {
  --ivory:       #e0ded5;
  --ivory-soft:  #eae7de;
  --ivory-warm:  #f4f1e8;
  --ivory-pale:  #fbf9f2;
  --sky:         #87a7c5;
  --sky-soft:    #c2d1e0;
  --mustard:     #d78d2a;
  --mustard-deep:#b36f15;
  --indigo:      #104d84;
  --indigo-deep: #0f3a6d;
  --indigo-ink:  #0a2847;
  --ink:         #0a1e33;
  --ink-soft:    #3d526a;
  --ink-muted:   #6a7b8e;
  --rule:        rgba(15,58,109,0.14);
  --rule-soft:   rgba(15,58,109,0.08);

  --serif: "Fraunces", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --bg: var(--ivory-pale);
  --bg-alt: var(--ivory-warm);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --accent: var(--mustard);

  --wrap: 1280px;
  --sp-section: clamp(72px, 10vw, 160px);
  --sp-gutter: clamp(20px, 4vw, 40px);
  --radius: 2px;
}

/* palette tweaks */
[data-palette="ivory"]  { --bg: var(--ivory-pale); --bg-alt: var(--ivory-warm); --fg: var(--ink); }
[data-palette="indigo"] { --bg: var(--indigo-deep); --bg-alt: var(--indigo-ink); --fg: var(--ivory); --fg-soft: color-mix(in oklab, var(--ivory) 72%, var(--sky)); --rule: rgba(224,222,213,0.18); --rule-soft: rgba(224,222,213,0.08); }
[data-palette="sky"]    { --bg: color-mix(in oklab, var(--sky) 16%, var(--ivory-pale)); --bg-alt: color-mix(in oklab, var(--sky) 26%, var(--ivory-warm)); }

[data-density="airy"]        { --sp-section: clamp(112px, 14vw, 200px); }
[data-density="comfortable"] { --sp-section: clamp(72px, 10vw, 160px); }
[data-density="compact"]     { --sp-section: clamp(52px, 7vw, 112px); }

[data-mustard="false"] { --accent: var(--indigo); }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--mustard); color: var(--ivory-pale); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-gutter);
  width: 100%;
}

/* ---- typographic primitives ---- */
.eyebrow, .section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .section-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--fg);
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.section-title--on-dark { color: var(--ivory); }
.section-title--on-dark em { color: var(--mustard); }

/* ---- buttons ---- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  height: var(--h);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--lg { --h: 60px; font-size: 16px; padding: 0 30px; }
.btn--primary { background: var(--indigo); color: var(--ivory-pale); }
.btn--primary:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn--ghost { color: var(--fg); border-color: currentColor; }
.btn--ghost:hover { background: var(--indigo); color: var(--ivory); border-color: var(--indigo); }
.btn--mustard { background: var(--mustard); color: var(--indigo-deep); }
.btn--mustard:hover { background: var(--mustard-deep); color: var(--ivory-pale); }

/* ========================== ANNOUNCE ========================== */
.announce {
  background: var(--indigo-deep);
  color: var(--ivory-pale);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announce__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--sp-gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
.announce__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--mustard) 22%, transparent);
  flex: 0 0 auto;
}
.announce__msg { opacity: .9; letter-spacing: 0.005em; }
.announce__tel {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: .85;
}
.announce__tel:hover { color: var(--mustard); opacity: 1; }
@media (max-width: 720px) {
  .announce__msg { font-size: 12px; }
  .announce__msg-long { display: none; }
  .announce__row { padding: 9px var(--sp-gutter); }
}

/* ========================== NAV ========================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--ivory-pale) 82%, transparent);
  border-color: color-mix(in oklab, var(--indigo-deep) 10%, transparent);
  box-shadow: 0 1px 0 rgba(10,30,51,0.02), 0 8px 28px -18px rgba(10,30,51,0.18);
}
.nav.is-scrolled .nav__row { padding-top: 14px; padding-bottom: 14px; }
.nav__row {
  transition: padding .3s ease;
}
.nav__row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px var(--sp-gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
/* Brand lockup — per brand PDF construction */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand__logo {
  height: 52px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 720px) {
  .brand__logo { height: 42px; }
}
.brand--footer { }
.brand__logo--footer {
  height: 72px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  max-width: none;
  opacity: 0.95;
}
@media (max-width: 720px) {
  .brand__logo--footer { height: 56px; }
}
/* On indigo palette / dark sections we swap the wordmark */
[data-palette="indigo"] .brand__logo { content: url("assets/logo-horizontal-ivory.png"); }

.nav__links {
  display: flex; gap: 28px;
  font-size: 14.5px;
  color: var(--fg);
  margin-left: 12px;
}
.nav__links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__portal {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  padding: 9px 14px;
  border: 1px solid color-mix(in oklab, var(--indigo) 25%, transparent);
  border-radius: 999px;
  background: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav__portal::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage, #89a18a);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sage, #89a18a) 25%, transparent);
}
.nav__portal:hover {
  background: var(--indigo);
  color: var(--ivory);
  border-color: var(--indigo);
}
.tel {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: .85;
}
.tel:hover { color: var(--accent); opacity: 1; }

.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-left: auto; }
.nav__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--fg); position: relative;
  transition: transform .25s ease, background .2s;
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--fg);
  transition: transform .25s ease, top .25s ease;
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta .tel { display: none; }
  .nav__cta .btn { display: none; }
  .nav__cta .nav__portal { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ============================================================
 * Mobile menu — slide-from-right drawer with backdrop
 * ============================================================ */
.mm-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 30, 51, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
body.menu-open .mm-backdrop { opacity: 1; }

body.menu-open { position: fixed; left: 0; right: 0; overflow: hidden; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  z-index: 51;
  background: var(--indigo-deep);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(215, 141, 42, 0.12), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(135, 167, 197, 0.10), transparent 60%);
  color: var(--ivory);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.32,.72,.24,1);
  box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  overscroll-behavior: contain;
}
body.menu-open .mobile-menu { transform: translateX(0); }

/* HEAD */
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mm-head__brand { display: inline-flex; align-items: center; }
.mm-head__brand img { height: 38px; width: auto; display: block; }
.mm-close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--ivory);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.mm-close:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); }
.mm-close:active { transform: scale(0.94); }

/* BODY (scrollable) */
.mm-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px 22px;
  -webkit-overflow-scrolling: touch;
}

/* Stagger entrance for body items */
.mm-body > * {
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
body.menu-open .mm-body > * { opacity: 1; transform: none; }
body.menu-open .mm-body > *:nth-child(1) { transition-delay: .08s; }
body.menu-open .mm-body > *:nth-child(2) { transition-delay: .14s; }
body.menu-open .mm-body > *:nth-child(3) { transition-delay: .18s; }
body.menu-open .mm-body > *:nth-child(4) { transition-delay: .22s; }
body.menu-open .mm-body > *:nth-child(5) { transition-delay: .26s; }

/* Big primary CTA card */
.mm-cta {
  display: block;
  position: relative;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--mustard) 0%, var(--mustard-deep) 100%);
  color: var(--indigo-ink);
  border-radius: 4px;
  margin-bottom: 22px;
  overflow: hidden;
  isolation: isolate;
}
.mm-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px 200px at 100% 0%, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.mm-cta:hover::after, .mm-cta:active::after { opacity: 1; }
.mm-cta__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indigo-ink);
  opacity: 0.7;
  margin-bottom: 4px;
}
.mm-cta__title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--serif);
  font-size: 24px; font-weight: 400;
  line-height: 1.1;
  color: var(--indigo-ink);
}
.mm-cta__arrow {
  font-size: 22px; line-height: 1;
  transition: transform .25s ease;
}
.mm-cta:hover .mm-cta__arrow, .mm-cta:active .mm-cta__arrow { transform: translateX(4px); }
.mm-cta__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--indigo-ink);
  opacity: 0.78;
}

/* Sections */
.mm-sect { margin-bottom: 22px; }
.mm-sect__label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Service-style links: title + hint, full-width row */
.mm-link {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: padding .2s ease;
}
.mm-link:last-child { border-bottom: 0; }
.mm-link:hover, .mm-link:active { padding-left: 6px; }
.mm-link__t {
  display: block;
  font-family: var(--sans);
  font-size: 16px; font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.005em;
}
.mm-link__h {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 12px;
  color: color-mix(in oklab, var(--sky) 75%, var(--ivory));
  opacity: 0.85;
}
.mm-link[aria-current="page"] .mm-link__t { color: var(--mustard); }

/* Specialty chips */
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chip {
  display: inline-flex; align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--ivory);
  background: rgba(255,255,255,0.03);
  transition: background .2s, border-color .2s, color .2s;
}
.mm-chip:hover, .mm-chip:active {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--indigo-ink);
}
.mm-chip[aria-current="page"] {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--indigo-ink);
}

/* About tile grid */
.mm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mm-tile {
  display: flex; align-items: center;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--ivory);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1.2;
}
.mm-tile:hover, .mm-tile:active {
  background: rgba(215, 141, 42, 0.14);
  border-color: rgba(215, 141, 42, 0.55);
  color: var(--mustard);
}
.mm-tile[aria-current="page"] {
  background: rgba(215, 141, 42, 0.18);
  border-color: var(--mustard);
  color: var(--mustard);
}

/* Inline row of utility links */
.mm-sect--inline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
  padding-top: 4px;
}
.mm-sect--inline a {
  font-family: var(--sans);
  font-size: 13px;
  color: color-mix(in oklab, var(--ivory) 80%, var(--sky));
  text-decoration: none;
}
.mm-sect--inline a:hover { color: var(--mustard); }
.mm-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-block;
}

/* FOOT */
.mm-foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.10);
  background: var(--indigo-ink);
}
.mm-foot__call {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--ivory);
  transition: background .2s, border-color .2s;
}
.mm-foot__call:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); }
.mm-foot__call svg { color: var(--mustard); flex-shrink: 0; }
.mm-foot__lead {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
  margin-right: 4px;
}
.mm-foot__portal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--sky);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.mm-foot__portal:hover { color: var(--mustard); background: rgba(255,255,255,0.04); }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mm-backdrop, .mm-body > *, .mm-cta__arrow, .mm-link {
    transition: none !important;
  }
}

/* ========================== HERO ========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 88% 12%, color-mix(in oklab, var(--sky) 30%, transparent), transparent 62%),
    radial-gradient(ellipse 70% 70% at 0% 100%, color-mix(in oklab, var(--mustard) 12%, transparent), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero__meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 28px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  color: var(--fg);
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero__headline em::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 0.08em;
  height: 0.18em;
  background: color-mix(in oklab, var(--mustard) 40%, transparent);
  z-index: -1;
  border-radius: 2px;
}

.hero__deck {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 58ch;
  color: var(--fg);
  margin: 0 0 32px;
}
.hero__deck b {
  font-weight: 500;
  font-family: var(--serif);
  font-style: italic;
  color: var(--indigo);
}

.hero__proof {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; gap: 10px;
}
.hero__proof li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 15.5px; color: var(--fg);
}
.hero__proof svg { flex: 0 0 auto; color: var(--accent); width: 14px; height: 14px; transform: translateY(1px); }
.hero__proof-neg {
  color: var(--fg-soft);
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dashed var(--rule);
}
.hero__proof-neg svg { color: var(--ink-muted); }
.hero__proof-neg strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 20px; }
.hero__cta .btn { min-height: 52px; }
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
}
.hero__micro {
  font-size: 13px; color: var(--fg-soft); margin: 0;
  font-family: var(--mono); letter-spacing: 0.01em;
}

/* Hero right side — single image panel */
.hero__side {
  display: grid;
  align-self: stretch;
  min-height: 520px;
}
@media (max-width: 960px) { .hero__side { min-height: 380px; } }

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(140% 100% at 85% 15%, color-mix(in oklab, var(--indigo) 96%, var(--ivory)) 0%, var(--indigo-deep) 60%);
  isolation: isolate;
  min-height: 520px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 3.2vw, 48px);
  color: var(--ivory);
}
.hero__image::before {
  /* subtle atmosphere */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 18% 82%, color-mix(in oklab, var(--mustard) 42%, transparent), transparent 70%),
    radial-gradient(50% 40% at 82% 10%, color-mix(in oklab, var(--sky) 34%, transparent), transparent 70%);
  opacity: .55;
  pointer-events: none;
}
.hero__image::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
  opacity: .35;
  pointer-events: none;
}
.hero__mandala {
  position: absolute;
  top: 50%; right: 50%;
  width: 150%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  opacity: 0.28;
  filter: brightness(1.4) saturate(1.1);
  pointer-events: none;
  animation: mandalaRotate 240s linear infinite;
  transform-origin: center;
  z-index: 0;
}
@keyframes mandalaRotate {
  from { transform: translate(50%, -50%) rotate(0deg); }
  to   { transform: translate(50%, -50%) rotate(360deg); }
}
@keyframes mandalaRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mandala { animation: none; }
}
.hero__image-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 38ch;
}
.hero__image-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--mustard) 70%, var(--ivory));
}
.hero__image-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.hero__image-quote em {
  font-style: italic;
  font-weight: 400;
  color: color-mix(in oklab, var(--mustard) 85%, var(--ivory));
}
.hero__image-attrib {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--ivory) 18%, transparent);
}
.hero__image-attrib-name {
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 500;
}
.hero__image-attrib-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ivory) 62%, var(--sky));
}
.hero__image-label {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--indigo-deep);
  background: color-mix(in oklab, var(--ivory-pale) 90%, transparent);
  padding: 5px 10px; border-radius: 2px;
}

.hero__stat-card {
  background: var(--indigo-deep);
  color: var(--ivory);
  padding: 22px 24px;
  border-radius: var(--radius);
  display: grid; gap: 6px;
  position: relative;
  overflow: hidden;
}
.hero__stat-card::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 90px; height: 90px;
  background: radial-gradient(circle, color-mix(in oklab, var(--mustard) 45%, transparent), transparent 65%);
  opacity: .7;
}
.hero__stat-card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mustard);
}
.hero__stat-card .big {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero__stat-card .big em { font-style: italic; color: var(--sky-soft); font-weight: 300; }
.hero__stat-card .meta {
  font-size: 13.5px;
  color: color-mix(in oklab, var(--ivory) 80%, var(--sky));
  line-height: 1.45;
}

/* Hero marquee */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative; z-index: 1;
  margin-top: clamp(48px, 7vw, 96px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track {
  display: flex; gap: 40px;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  animation: scroll 90s linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee__track span.sep { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ========================== MIRROR ========================== */
.mirror { padding: var(--sp-section) 0; background: var(--bg); }
.mirror__head { max-width: 780px; margin: 0 0 56px; }
.mirror__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.mirror__card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: grid; gap: 16px;
  align-content: start;
  transition: background .3s ease;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mirror__card:nth-child(3n) { border-right: none; }
.mirror__card:nth-last-child(-n+3) { border-bottom: none; }
.mirror__card:hover { background: var(--bg-alt); }
.mirror__card::before {
  content: "";
  width: 18px; height: 14px;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 3.5px);
  /* simple quote-mark glyph substitute */
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'><path d='M0 20V10C0 4.5 4 0 10 0v4c-3 0-5 2-5 6h5v10H0zm14 0V10c0-5.5 4-10 10-10v4c-3 0-5 2-5 6h5v10H14z' fill='black'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'><path d='M0 20V10C0 4.5 4 0 10 0v4c-3 0-5 2-5 6h5v10H0zm14 0V10c0-5.5 4-10 10-10v4c-3 0-5 2-5 6h5v10H14z' fill='black'/></svg>") center / contain no-repeat;
  background: var(--accent);
}
.mirror__q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}
.mirror__a {
  font-size: 15px;
  color: var(--fg-soft);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.mirror__a a {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  color: var(--indigo);
  font-weight: 500;
  text-decoration: none;
  padding: 2px 0;
  transition: color .2s ease;
}
.mirror__a a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.mirror__card:hover .mirror__a a,
.mirror__a a:hover {
  color: var(--mustard-deep);
}
.mirror__a a:hover::after,
.mirror__card:hover .mirror__a a::after {
  transform-origin: left center;
  transform: scaleX(1);
}
@media (max-width: 900px) { .mirror__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mirror__grid { grid-template-columns: 1fr; } }

/* ========================== INSURANCE ========================== */
.insurance {
  padding: var(--sp-section) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.insurance__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.insurance__body { font-size: 17px; line-height: 1.6; max-width: 52ch; margin: 0 0 18px; }
.insurance .muted { color: var(--fg-soft); }
.insurance__stamp {
  margin-top: 28px;
  display: inline-flex;
  gap: 14px; align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.insurance__stamp b { color: var(--indigo); }

@media (max-width: 900px) { .insurance__grid { grid-template-columns: 1fr; } }

.checker {
  background: var(--ivory-pale);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  display: grid; gap: 20px;
  box-shadow: 0 30px 60px -30px rgba(15,58,109,0.14);
}
[data-palette="indigo"] .checker { background: var(--ivory); color: var(--ink); }
.checker__label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.checker__select-wrap { position: relative; }
.checker__select {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  padding: 16px 50px 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.checker__select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--indigo) 18%, transparent);
}
.checker__chev {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-soft);
}
.checker__result {
  min-height: 0;
  font-size: 15px; line-height: 1.55; color: var(--ink);
  transition: background .25s ease, border-color .25s ease;
}
.checker__result--ok   { padding: 16px 18px; background: color-mix(in oklab, var(--indigo) 8%, #fff); border-left: 3px solid var(--indigo); }
.checker__result--bad  { padding: 16px 18px; background: color-mix(in oklab, var(--mustard) 14%, #fff); border-left: 3px solid var(--mustard-deep); }
.checker__result--info { padding: 16px 18px; background: color-mix(in oklab, var(--sky) 16%, #fff); border-left: 3px solid var(--sky); }
.checker__result strong { color: var(--indigo); }

.pricing { border-top: 1px dashed var(--rule); padding-top: 14px; }
.pricing summary {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.pricing summary::-webkit-details-marker { display: none; }
.pricing summary::after { content: "+"; font-family: var(--sans); font-size: 18px; color: var(--accent); transition: transform .25s ease; }
.pricing[open] summary::after { transform: rotate(45deg); }
.pricing__list {
  margin: 14px 0 0; padding: 0;
  display: grid; gap: 2px;
  font-size: 14px;
}
.pricing__list div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pricing__list dt { margin: 0; color: var(--ink); }
.pricing__list dd { margin: 0; font-family: var(--mono); color: var(--indigo); font-weight: 500; }

/* ========================== OFFER ========================== */
.offer { padding: var(--sp-section) 0; }
.offer__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.offer__head p { color: var(--fg-soft); font-size: 17px; line-height: 1.55; max-width: 42ch; margin: 0; }
@media (max-width: 780px) { .offer__head { grid-template-columns: 1fr; gap: 16px; } }

.offer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 880px) {
  .offer__grid { grid-template-columns: 1fr; }
  .offer__card--feature { grid-column: 1 / -1; }
}
.offer__card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: grid; gap: 14px;
  align-content: start;
  position: relative;
  transition: background .3s ease;
}
.offer__card:not(.offer__card--feature):hover { background: var(--bg-alt); }
.offer__card--feature {
  grid-row: span 1;
  background: linear-gradient(165deg, var(--indigo-deep) 0%, var(--indigo) 80%);
  color: var(--ivory);
  padding: clamp(36px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.offer__card--feature::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in oklab, var(--mustard) 35%, transparent), transparent 55%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in oklab, var(--sky) 35%, transparent), transparent 60%);
  pointer-events: none;
  opacity: .9;
}
.offer__card--feature > * { position: relative; z-index: 1; }
.offer__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mustard);
  padding-bottom: 2px;
  width: max-content;
}
.offer__tag::before { content: ""; width: 20px; height: 1px; background: var(--mustard); display: inline-block; }

.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.offer__card--feature .offer__title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300;
  color: var(--ivory);
  margin-top: 24px;
}
.offer__card--feature .offer__title em { color: var(--mustard); font-style: italic; }
.offer__body { color: var(--fg-soft); font-size: 15.5px; margin: 0; line-height: 1.6; }
.offer__card--feature .offer__body { color: color-mix(in oklab, var(--ivory) 85%, var(--sky)); font-size: 16px; }

.offer__bullets {
  margin: 12px 0 0; padding: 0;
  list-style: none;
  display: grid; gap: 6px;
  font-size: 14px;
}
.offer__bullets li {
  display: flex; gap: 10px; align-items: baseline;
  color: color-mix(in oklab, var(--ivory) 90%, var(--sky));
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 10px;
}
.offer__bullets li::before { content: "→"; color: var(--mustard); }

.offer__link {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indigo);
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  position: relative;
}
.offer__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor; transform: scaleX(1); transform-origin: left;
  transition: transform .25s ease;
}
.offer__link:hover { color: var(--accent); }
.offer__link:hover::after { transform: scaleX(.6); }
.offer__card--feature .offer__link { color: var(--mustard); }

@media (max-width: 980px) {
  .offer__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .offer__card--feature { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 600px) {
  .offer__grid { grid-template-columns: 1fr; }
  .offer__card--feature { grid-column: auto; }
}

/* ========================== PATH ========================== */
.path {
  padding: var(--sp-section) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.path__head { margin-bottom: 56px; max-width: 680px; }
.path__head p { color: var(--fg-soft); font-size: 17px; margin: -8px 0 0; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: step;
}
.step--feature {
  background: color-mix(in oklab, var(--mustard) 10%, var(--bg-alt));
}
.step--feature:hover { background: color-mix(in oklab, var(--mustard) 16%, var(--bg-alt)); }
.step--feature .step__num { color: var(--mustard-deep); }
.step--feature .step__num em { font-style: italic; color: var(--mustard-deep); text-transform: none; letter-spacing: 0.02em; margin-left: 4px; }
.step--feature .step__title { color: var(--indigo-deep); }
.step {
  background: var(--bg-alt);
  padding: 28px 20px 30px;
  display: grid; gap: 8px;
  align-content: start;
  min-height: 240px;
  position: relative;
  transition: background .3s ease;
}
.step:hover { background: var(--bg); }
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.step__arrow {
  position: absolute;
  top: 38px;
  right: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.step:hover .step__arrow { background: var(--bg); }
.step:last-child .step__arrow { display: none; }
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.18;
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.step__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0;
}
.step__body {
  color: var(--fg-soft);
  font-size: 13.5px;
  margin: 10px 0 0;
  line-height: 1.5;
}
@media (max-width: 1200px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* keep the chevron chip, but hide on the last card of each row so it never points at a line-break */
  .step:nth-child(3n) .step__arrow,
  .step:last-child .step__arrow { display: none; }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3n) .step__arrow { display: flex; }
  .step:nth-child(2n) .step__arrow,
  .step:last-child .step__arrow { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.path__cta {
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--rule-soft);
}
.path__cta-text { font-family: var(--serif); font-style: italic; color: var(--fg-soft); font-size: 17px; margin: 0; text-align: center; }
.path__cta-text a {
  position: relative;
  color: var(--indigo);
  text-decoration: none;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
  transition: color .2s ease;
}
.path__cta-text a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.path__cta-text a:hover { color: var(--mustard-deep); }
.path__cta-text a:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

/* Shared small-text animated-underline link (matches .path__cta-text a) */
.insight__foot-link {
  color: var(--cream, #f5f0e8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 240, 232, 0.4);
  font-weight: 500;
  font-size: 14.5px;
  transition: text-decoration-color .2s ease;
}
.insight__foot-link:hover {
  text-decoration-color: rgba(245, 240, 232, 1);
}

/* ---- Flow (graphical 6-step process) ---- */
.flow { position: relative; margin: 0 0 8px; }
.flow__track {
  position: absolute; inset: 46px 2% auto 2%;
  width: 96%; height: 120px;
  pointer-events: none;
  z-index: 0;
}
.flow__nodes {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative; z-index: 1;
}
.flow__node {
  display: grid; gap: 6px;
  align-content: start;
  padding: 0 10px;
  text-align: left;
  min-height: 220px;
  position: relative;
  animation: flowIn .6s ease var(--flow-delay, 0ms) both;
}
@keyframes flowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flow__badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin: 0 0 12px;
  box-shadow: 0 4px 14px -10px rgba(15,58,109,0.35);
}
.flow__badge::after {
  content: attr(data-step);
  position: absolute; bottom: -10px; right: -6px;
  background: var(--indigo);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border-radius: 999px;
}
.flow__badge--feature {
  background: var(--mustard);
  border-color: var(--mustard-deep);
  color: var(--ivory);
  box-shadow: 0 6px 18px -8px rgba(179,111,21,0.5);
}
.flow__badge--feature::after { background: var(--mustard-deep); }
.flow__badge--end {
  background: transparent;
  border-style: dashed;
  color: var(--fg-soft);
}
.flow__badge--end::after { background: var(--fg-soft); }

.flow__num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.flow__num em { font-style: italic; color: var(--mustard-deep); letter-spacing: 0.02em; text-transform: none; }
.flow__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.2;
  margin: 2px 0 2px;
  letter-spacing: -0.005em;
}
.flow__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0;
}
.flow__body {
  color: var(--fg-soft);
  font-size: 13.5px;
  margin: 8px 0 0;
  line-height: 1.5;
}
.flow__node--feature .flow__title { color: var(--mustard-deep); }
.flow__node--feature {
  position: relative;
}
.flow__node--feature::before {
  content: "";
  position: absolute; inset: -8px -6px -8px -6px;
  border: 1px dashed color-mix(in oklab, var(--mustard) 55%, transparent);
  border-radius: 10px;
  background: color-mix(in oklab, var(--mustard) 6%, transparent);
  z-index: -1;
}

@media (max-width: 1040px) {
  .flow__nodes { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .flow__track { display: none; }
  .flow__node { min-height: 0; }
}
@media (max-width: 560px) {
  .flow__nodes { grid-template-columns: 1fr; }
}

/* ========================== TEAM ========================== */
.team { padding: var(--sp-section) 0; }
.team__head { margin-bottom: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.team__head .section-title { margin-bottom: 0; }
.team__head p { color: var(--fg-soft); font-size: 17px; line-height: 1.55; max-width: 40ch; margin: 0; padding-bottom: 6px; }
@media (max-width: 780px) { .team__head { grid-template-columns: 1fr; } }

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.clinician { display: grid; gap: 28px; grid-template-rows: auto auto; align-self: start; }
.clinician__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  position: relative;
  background: linear-gradient(165deg, color-mix(in oklab, var(--sky) 40%, var(--ivory-warm)), color-mix(in oklab, var(--indigo) 14%, var(--ivory-pale)));
}
.clinician__photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 30% 30%, color-mix(in oklab, var(--ivory-warm) 70%, transparent), transparent 55%),
    radial-gradient(60% 50% at 80% 80%, color-mix(in oklab, var(--mustard) 22%, transparent), transparent 60%);
}
.clinician__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(125deg, rgba(15,58,109,.045) 0 1px, transparent 1px 4px);
  opacity: .7;
}
.clinician__photo-label {
  position: absolute; bottom: 14px; left: 14px;
  background: color-mix(in oklab, var(--ivory-pale) 92%, transparent);
  padding: 5px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indigo-deep); border-radius: 2px;
}

.clinician__body { display: grid; gap: 10px; }
.clinician__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}
.clinician__role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.clinician__creds {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 4px;
}
.clinician__creds span {
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-soft);
  background: color-mix(in oklab, var(--bg) 60%, var(--bg-alt));
}
.clinician__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.35;
  margin: 14px 0 0;
  color: var(--fg);
  text-wrap: pretty;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
}
.clinician__bio { margin: 0; color: var(--fg-soft); font-size: 15px; line-height: 1.65; }
@media (max-width: 880px) { .team__grid { grid-template-columns: 1fr; gap: 56px; } }

/* ========================== INSIGHT PLAN ========================== */
.insight {
  padding: var(--sp-section) 0;
  background: var(--indigo-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.insight::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, color-mix(in oklab, var(--mustard) 30%, transparent), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in oklab, var(--sky) 30%, transparent), transparent 60%);
  pointer-events: none;
}
.insight > * { position: relative; z-index: 1; }
.insight__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.insight__eyebrow { color: color-mix(in oklab, var(--ivory) 70%, var(--sky)); }
.insight__eyebrow::before { background: var(--mustard); }
.insight__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ivory);
  text-wrap: pretty;
}
.insight__title em { color: var(--mustard); font-style: italic; font-weight: 300; }
.insight__lede {
  font-size: 18px; line-height: 1.55;
  color: color-mix(in oklab, var(--ivory) 86%, var(--sky));
  margin: 0 0 28px;
  max-width: 52ch;
}
.insight__list {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; gap: 0;
}
.insight__list li {
  border-top: 1px solid color-mix(in oklab, var(--ivory) 20%, transparent);
  padding: 18px 0;
  font-size: 15.5px;
  color: color-mix(in oklab, var(--ivory) 85%, var(--sky));
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
}
.insight__list li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--ivory) 20%, transparent); }
.insight__list .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mustard);
}
.insight__list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 4px;
}
.insight__foot {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--ivory) 80%, var(--sky));
  margin: 0;
}
.insight__foot .price { color: var(--mustard); font-size: 16px; letter-spacing: 0.02em; font-weight: 500; }
@media (max-width: 880px) { .insight__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ========================== QUOTES ========================== */
.quotes { padding: var(--sp-section) 0; }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.quote {
  margin: 0;
  padding: 36px 0 0;
  position: relative;
  border-top: 1px solid var(--rule);
}
.quote__source { color: var(--fg-faint, var(--ink-50, #7a7466)); font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.quotes__source { margin: 40px 0 0; text-align: center; color: var(--fg-soft); font-size: 13px; letter-spacing: .02em; }
.quotes__source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.quotes__source a:hover { color: var(--indigo); }
.quote::before {
  content: "“";
  position: absolute; top: -16px; left: -4px;
  font-family: var(--serif);
  font-size: 72px; line-height: 1; color: var(--accent);
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.4;
  margin: 0 0 18px;
  text-wrap: pretty;
  color: var(--fg);
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft);
}
@media (max-width: 880px) { .quotes__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ========================== FAQ ========================== */
.faq {
  padding: var(--sp-section) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-soft);
}
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__note {
  font-size: 14px; color: var(--fg-soft);
  font-family: var(--serif); font-style: italic;
  max-width: 32ch;
}
.faq__list { display: grid; }
.faq__list details {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.faq__list details:last-child { border-bottom: 1px solid var(--rule); }
.faq__list summary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  color: var(--fg);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1;
  color: var(--accent);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin: 16px 0 4px; color: var(--fg-soft); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ========================== FINAL CTA ========================== */
/* ----- Philosophy (full-bleed closing slab) ----- */
.philosophy {
  position: relative;
  padding: clamp(96px, 12vw, 180px) var(--sp-gutter);
  background:
    radial-gradient(90% 80% at 50% 20%, color-mix(in oklab, var(--indigo) 98%, var(--ivory)) 0%, var(--indigo-deep) 70%);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.philosophy::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 14% 90%, color-mix(in oklab, var(--mustard) 22%, transparent), transparent 70%),
    radial-gradient(40% 45% at 86% 10%, color-mix(in oklab, var(--sky) 22%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -2;
}
.philosophy::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px);
  pointer-events: none;
  z-index: -1;
}
.philosophy__mark {
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 1;
  height: auto;
  display: block;
  margin: 0 auto clamp(24px, 3vw, 40px);
  opacity: 0.55;
  filter: brightness(1.3);
  animation: mandalaRotate 240s linear infinite;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .philosophy__mark { animation: none; }
}
.philosophy__wrap {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.philosophy__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--mustard) 82%, var(--ivory));
  margin: 0 0 24px;
}
.philosophy__eyebrow::before,
.philosophy__eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: color-mix(in oklab, var(--mustard) 50%, transparent);
  vertical-align: middle;
  margin: 0 14px;
}
.philosophy__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 clamp(24px, 2.4vw, 36px);
  text-wrap: balance;
}
.philosophy__title em {
  font-style: italic;
  font-weight: 300;
  color: color-mix(in oklab, var(--mustard) 85%, var(--ivory));
}
.philosophy__body {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: color-mix(in oklab, var(--ivory) 85%, var(--sky));
  max-width: 68ch;
  margin: 0 auto clamp(28px, 3vw, 40px);
  text-wrap: pretty;
}
.philosophy__pillars {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ivory) 70%, var(--sky));
}
.philosophy__dot { opacity: .5; }
.philosophy__more {
  margin: clamp(24px, 2.8vw, 36px) 0 0;
}
.philosophy__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--mustard);
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  padding: 4px 0;
  transition: color .2s ease;
}
.philosophy__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.philosophy__link:hover { color: color-mix(in oklab, var(--mustard) 75%, var(--ivory)); }
.philosophy__link:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

.cta-final {
  padding: var(--sp-section) 0;
  background: var(--indigo);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 100% 100%, color-mix(in oklab, var(--mustard) 28%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.cta-final .section-eyebrow { color: color-mix(in oklab, var(--ivory) 74%, var(--sky)); }
.cta-final .section-eyebrow::before { background: var(--mustard); }
.cta-final__body {
  font-size: 18px; line-height: 1.55;
  color: color-mix(in oklab, var(--ivory) 88%, var(--sky));
  max-width: 48ch;
}
.cta-final__actions { display: grid; gap: 12px; }
.big-cta {
  display: grid; gap: 4px;
  padding: 24px 28px;
  background: var(--indigo-deep);
  border: 1px solid color-mix(in oklab, var(--ivory) 22%, transparent);
  color: var(--ivory);
  border-radius: var(--radius);
  transition: background .25s ease, border-color .25s ease, transform .18s ease;
  position: relative;
}
.big-cta:hover { background: color-mix(in oklab, var(--mustard) 14%, var(--indigo-deep)); border-color: var(--mustard); transform: translateY(-1px); }
.big-cta--alt { background: var(--ivory-pale); color: var(--indigo-deep); border-color: transparent; }
.big-cta--alt:hover { background: var(--mustard); color: var(--ivory-pale); }
.big-cta--quiet { background: transparent; }
.big-cta__kicker {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mustard);
}
.big-cta--alt .big-cta__kicker { color: var(--indigo); }
.big-cta__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.big-cta__meta {
  font-size: 13.5px;
  color: color-mix(in oklab, var(--ivory) 75%, var(--sky));
}
.big-cta--alt .big-cta__meta { color: color-mix(in oklab, var(--indigo-deep) 72%, var(--ivory)); }
.big-cta__arrow {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  opacity: .6; transition: transform .25s ease, opacity .25s ease;
}
.big-cta:hover .big-cta__arrow { transform: translateY(-50%) translateX(4px); opacity: 1; }

@media (max-width: 900px) { .cta-final__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ========================== FOOTER ========================== */
.foot {
  background: var(--indigo-ink);
  color: color-mix(in oklab, var(--ivory) 84%, var(--sky));
  padding: 80px 0 28px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
}
.foot .brand__line1, .foot .brand__line2 { color: var(--ivory); }
.foot__addr {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--ivory) 75%, var(--sky));
  max-width: 28ch;
}
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  margin: 0 0 8px;
  font-weight: 500;
}
.foot__col a { font-size: 14.5px; color: color-mix(in oklab, var(--ivory) 90%, var(--sky)); transition: color .2s ease; }
.foot__col a:hover { color: var(--mustard); }
.foot__fax { font-size: 13px; color: color-mix(in oklab, var(--ivory) 70%, var(--sky)); }
.foot__fine {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in oklab, var(--ivory) 18%, transparent);
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: color-mix(in oklab, var(--ivory) 65%, var(--sky));
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.foot__legal a {
  color: color-mix(in oklab, var(--ivory) 75%, var(--sky));
  text-decoration: none;
  transition: color .15s;
}
.foot__legal a:hover { color: var(--mustard); }
.foot__crisis-link {
  color: var(--mustard);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__fine { flex-direction: column; gap: 14px; text-align: center; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ========================== TWEAKS PANEL ========================== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 100;
  background: var(--ivory-pale);
  color: var(--indigo-deep);
  border: 1px solid var(--indigo-deep);
  border-radius: 4px;
  padding: 18px 20px;
  width: 296px;
  box-shadow: 0 30px 70px -20px rgba(15,58,109,0.35);
  font-family: var(--sans);
}
.tweaks[hidden] { display: none; }
.tweaks__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.tweaks__title { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.tweaks__hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mustard);
}
.tweaks__row { display: grid; gap: 8px; margin-bottom: 14px; }
.tweaks__row label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.tweaks__opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks__opts button {
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--indigo-deep) 24%, transparent);
  background: transparent;
  color: var(--indigo-deep);
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.tweaks__opts button:hover { border-color: var(--indigo); }
.tweaks__opts button[aria-pressed="true"] {
  background: var(--indigo);
  color: var(--ivory-pale);
  border-color: var(--indigo);
}
@media (max-width: 600px) { .tweaks { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =======================================================================
   POLISH LAYER — editorial bones, tech-forward micro-interactions
   ======================================================================= */

/* Scroll-reveal: elements lift + fade in when intersecting */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s cubic-bezier(.2, .8, .2, 1),
    transform 0.8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Link underline micro-interaction (Stripe-style reveal) */
.u-underline,
.offer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}
.u-underline::after,
.offer__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.u-underline:hover::after,
.offer__link:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

/* Card lift — warm, not bouncy */
.offer__card:not(.offer__card--feature) {
  transition:
    transform 0.35s cubic-bezier(.2, .8, .2, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    background 0.25s ease;
}
.offer__card:not(.offer__card--feature):hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--indigo-deep) 22%, transparent);
  box-shadow: 0 18px 48px -24px rgba(10, 30, 51, 0.22);
  background: var(--ivory-pale);
}
.offer__card--feature {
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}
.offer__card--feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px -32px rgba(10, 30, 51, 0.45);
}
/* Ensure text stays high-contrast on feature card hover (no washout) */
.offer__card--feature:hover .offer__body,
.offer__card--feature:hover .offer__bullets,
.offer__card--feature:hover .offer__bullets li { color: var(--ivory); }
.offer__card--feature:hover .offer__title { color: var(--ivory); }
.offer__card--feature:hover .offer__title em { color: var(--mustard); }
.offer__card--feature:hover .offer__link { color: var(--mustard); }

/* Hero image frame — layered glass over mustard wash */
.hero__image {
  background:
    radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--mustard) 18%, transparent), transparent 60%),
    radial-gradient(circle at 75% 80%, color-mix(in oklab, var(--sky) 20%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in oklab, var(--indigo) 6%, var(--ivory-warm)), var(--ivory-warm));
}
.hero__mandala {
  animation: heroMandalaSpin 60s linear infinite;
  opacity: 0.16;
  transition: opacity 0.6s ease;
}
.hero:hover .hero__mandala { opacity: 0.22; }
@keyframes heroMandalaSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero__mandala { animation: none; }
}

/* Hero image inner card — glass pane */
.hero__image-inner {
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  background: color-mix(in oklab, var(--ivory-pale) 72%, transparent);
  border: 1px solid color-mix(in oklab, var(--indigo-deep) 8%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 20px 50px -28px rgba(10, 30, 51, 0.35);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease;
}
.hero__image:hover .hero__image-inner {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 32px 72px -32px rgba(10, 30, 51, 0.42);
}

/* Insurance checker — tighter verdict entrance */
.checker__result {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2, .8, .2, 1);
  min-height: 0;
}
.checker__result--ok,
.checker__result--bad,
.checker__result--info {
  opacity: 1;
  transform: translateY(0);
}
.checker__select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.checker__select:hover {
  border-color: color-mix(in oklab, var(--indigo-deep) 28%, transparent);
}

/* Button refinement — mustard glow on primary hover */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--mustard) 30%, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.btn--primary:hover::before { opacity: 0.5; }
.btn > * { position: relative; z-index: 1; }

/* Hero headline — italicized em gets a subtle mustard ink stroke */
.hero__headline em {
  position: relative;
  display: inline-block;
}
.hero__headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.12em;
  height: 0.18em;
  background: color-mix(in oklab, var(--mustard) 34%, transparent);
  z-index: -1;
  transform: skewX(-6deg);
  border-radius: 2px;
}

/* Section headings — subtle reveal-stagger */
.section-title {
  text-wrap: balance;
}

/* Team / image cards get the same gentle lift */
.team__card,
.card-hover {
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}
.team__card:hover,
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -24px rgba(10, 30, 51, 0.24);
}

/* Tel & email links in nav/footer — nicer hover */
.tel, .foot a[href^="tel:"], .foot a[href^="mailto:"] {
  transition: color 0.2s ease;
}
.tel:hover { color: var(--mustard); }

/* Focus-visible: single tasteful ring everywhere */
*:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--mustard) 85%, var(--indigo));
  outline-offset: 3px;
  border-radius: 3px;
}
a, button { outline-color: transparent; }

/* Selection — ivory/mustard */
::selection {
  background: color-mix(in oklab, var(--mustard) 50%, var(--ivory));
  color: var(--indigo-ink);
}

/* Print: hide modals, tweaks panel, announcement bar */
@media print {
  .announce, .tweaks, .ipf__overlay, .nav__burger, .mobile-menu { display: none !important; }
  .nav { position: static; box-shadow: none; background: white; }
  body { color: #111; background: white; }
  a::after { content: " (" attr(href) ")"; font-size: 10px; color: #666; }
  .hero, .cta-final { break-inside: avoid; }
}

/* =======================================================================
   PATIENT APPLICATION (modal) — injected by assets/application.js
   ======================================================================= */
.ipf__overlay {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--indigo-ink) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: stretch; justify-content: center;
  z-index: 9999;
  padding: clamp(0px, 2vw, 32px);
  animation: ipfFade .2s ease-out;
}
.ipf__overlay.is-open { display: flex; }
@keyframes ipfFade { from { opacity: 0 } to { opacity: 1 } }
body.ipf-locked { overflow: hidden; }

.ipf__dialog {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  max-width: 1080px;
  max-height: 100%;
  background: var(--ivory-pale);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(10, 30, 51, 0.45);
  animation: ipfRise .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes ipfRise {
  from { opacity: 0; transform: translateY(18px) scale(.985) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
/* Re-renders (radio toggles, validation) skip the rise-in animation
   so the dialog doesn't visibly flicker off and back. */
.ipf__dialog--no-anim { animation: none !important; }

/* Sidebar */
.ipf__sidebar {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: var(--ivory-pale);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}
.ipf__brand { display: block; line-height: 0; }
.ipf__brand-logo { height: 34px; width: auto; filter: brightness(1.35); }
.ipf__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ipf__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: color-mix(in oklab, var(--ivory) 70%, var(--sky));
  transition: background .15s, color .15s;
}
.ipf__step.is-current {
  background: rgba(255,255,255,0.08);
  color: var(--ivory-pale);
}
.ipf__step.is-done { color: color-mix(in oklab, var(--mustard) 70%, var(--ivory)); }
.ipf__step-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  opacity: .7;
}
.ipf__step.is-current .ipf__step-num { opacity: 1; color: var(--mustard); }
.ipf__step.is-done .ipf__step-num::before { content: "✓ "; }
.ipf__reassure {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ipf__reassure-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--mustard) 82%, var(--ivory));
  margin: 0 0 8px;
}
.ipf__reassure-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--ivory) 75%, var(--sky));
  margin: 0;
}
.ipf__crisis {
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 14px;
  background: rgba(215, 141, 42, 0.14);
  border-left: 2px solid var(--mustard);
  border-radius: 4px;
  color: color-mix(in oklab, var(--ivory) 90%, var(--mustard));
}
.ipf__crisis a {
  color: var(--mustard);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ipf__crisis--inline {
  background: color-mix(in oklab, var(--mustard) 8%, transparent);
  border-left-color: var(--mustard);
  color: var(--ink);
  margin-top: 20px;
}
.ipf__crisis--inline a { color: var(--indigo); }

/* Panel */
.ipf__panel {
  background: var(--ivory-pale);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 4vw);
}
.ipf__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px 12px;
}
.ipf__eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.ipf__dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--mustard); border-radius: 50%;
}
.ipf__close {
  background: transparent; border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 15px;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.ipf__close:hover { background: var(--ivory-warm); color: var(--ink); }

.ipf__progress {
  height: 3px;
  background: color-mix(in oklab, var(--indigo) 10%, transparent);
  margin: 0 32px;
  border-radius: 2px;
  overflow: hidden;
}
.ipf__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mustard), var(--mustard-deep));
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}

.ipf__content {
  padding: 28px 32px 20px;
  overflow-y: auto;
  flex: 1;
}
.ipf__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.ipf__sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 58ch;
  text-wrap: pretty;
}
.ipf__intro-list {
  list-style: none; padding: 0;
  display: grid; gap: 14px;
  margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft);
}
.ipf__intro-list li {
  padding-left: 24px;
  position: relative;
}
.ipf__intro-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 1px;
  background: var(--mustard);
}
.ipf__intro-list strong { color: var(--ink); font-weight: 600; }

/* Form grid */
.ipf__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.ipf__field { display: grid; gap: 6px; min-width: 0; }
.ipf__field--wide { grid-column: 1 / -1; }
.ipf__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ipf__input, .ipf__select, .ipf__textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.ipf__input:focus, .ipf__select:focus, .ipf__textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--indigo) 14%, transparent);
}
.ipf__textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ipf__select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
  linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.ipf__char-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: right;
}
.ipf__error {
  font-size: 12px;
  color: #9c2d1b;
  font-weight: 500;
}
.ipf__error-top {
  background: #fdecea;
  border-left: 2px solid #9c2d1b;
  color: #6b1e11;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 13.5px;
}

/* Top-of-form summary listing all current validation errors */
.ipf__error-summary {
  background: #fff5f3;
  border: 1px solid #f3c5bb;
  border-left: 3px solid #9c2d1b;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 22px;
  scroll-margin-top: 12px;
  animation: ipfErrorSummaryIn 0.18s ease-out;
}
@keyframes ipfErrorSummaryIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.ipf__error-summary-h {
  margin: 0;
  font: 600 14px/1.4 var(--sans, system-ui);
  color: #6b1e11;
}
.ipf__error-summary-list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 4px;
  font: 400 13.5px/1.5 var(--sans, system-ui);
  color: #6b1e11;
}
.ipf__error-summary-list li { color: #6b1e11; }
.ipf__error-summary-list em { font-style: normal; color: #9c2d1b; font-weight: 500; }
.ipf__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Verdict */
.ipf__verdict {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid var(--rule);
  background: var(--ivory-warm);
}
.ipf__verdict-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}
.ipf__verdict--in   .ipf__verdict-icon { background: color-mix(in oklab, #3d8b50 18%, transparent); color: #2e6b3d; }
.ipf__verdict--out  .ipf__verdict-icon { background: color-mix(in oklab, #c14d3a 18%, transparent); color: #8e2e1f; }
.ipf__verdict--maybe,
.ipf__verdict--self { background: color-mix(in oklab, var(--mustard) 8%, var(--ivory-warm)); }
.ipf__verdict--maybe .ipf__verdict-icon,
.ipf__verdict--self  .ipf__verdict-icon { background: color-mix(in oklab, var(--mustard) 22%, transparent); color: var(--mustard-deep); }
.ipf__verdict-title { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); }
.ipf__verdict-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Review */
.ipf__review {
  display: grid; gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--rule);
}
.ipf__review-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.ipf__review-row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}
.ipf__review-row dd { margin: 0; color: var(--ink); }
.ipf__review-reason {
  background: var(--ivory-warm);
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.ipf__review-reason dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.ipf__review-reason dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Consent */
.ipf__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--ivory-warm);
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.ipf__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--indigo);
}
.ipf__consent a { color: var(--indigo); text-decoration: underline; }

/* Footer */
.ipf__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px 22px;
  border-top: 1px solid var(--rule-soft);
  background: var(--ivory-pale);
}
.ipf__btn {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.ipf__btn--primary {
  background: var(--indigo);
  color: var(--ivory-pale);
}
.ipf__btn--primary:hover { background: var(--indigo-deep); }
.ipf__btn--primary:disabled { opacity: .65; cursor: progress; }
.ipf__btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}
.ipf__btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.ipf__btn-arrow { transition: transform .2s; }
.ipf__btn:hover .ipf__btn-arrow { transform: translateX(3px); }
.ipf__btn.is-loading .ipf__btn-arrow { opacity: 0; }

/* Success */
.ipf__success { padding: 12px 0 24px; max-width: 560px; }
.ipf__success-glyph { margin: 0 0 18px; }
.ipf__success-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 12px;
  color: var(--ink);
}
.ipf__success-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 52ch;
}
.ipf__success-steps {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 12px;
  font-size: 14.5px; color: var(--ink-soft);
}
.ipf__success-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  line-height: 1.5;
}
.ipf__success-steps strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mustard-deep);
}
.ipf__success-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ipf__success-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: .1em;
}

/* Section divider inside a step */
.ipf__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ipf__divider::after { content: ""; flex: 1; height: 1px; background: var(--rule-soft); }
.ipf__divider:first-child { margin-top: 0; }

.ipf__help {
  font-size: 12.5px; line-height: 1.5;
  color: var(--ink-muted);
  margin: -2px 0 0;
}

/* Radio card group (single-select) */
.ipf__radios { display: grid; gap: 8px; }
.ipf__radios--cols-2 { grid-template-columns: 1fr 1fr; }
.ipf__radios--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ipf__radios--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ipf__radios--cols-5 { grid-template-columns: repeat(5, 1fr); }
.ipf__radio {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ipf__radio:hover { border-color: var(--indigo); }
.ipf__radio input { position: absolute; opacity: 0; pointer-events: none; }
.ipf__radio-mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: white;
  position: relative;
  transition: border-color .15s, background .15s;
}
.ipf__radio.is-checked {
  border-color: var(--indigo);
  background: color-mix(in oklab, var(--indigo) 5%, white);
  box-shadow: 0 0 0 1px var(--indigo);
}
.ipf__radio.is-checked .ipf__radio-mark { border-color: var(--indigo); }
.ipf__radio.is-checked .ipf__radio-mark::after {
  content: ""; position: absolute;
  inset: 3px; border-radius: 50%;
  background: var(--indigo);
}

/* Checkbox card group (multi-select) */
.ipf__checks { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .ipf__checks { grid-template-columns: 1fr; } }
.ipf__check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ipf__check:hover { border-color: var(--indigo); }
.ipf__check input { position: absolute; opacity: 0; pointer-events: none; }
.ipf__check-mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  background: white;
  position: relative;
  transition: border-color .15s, background .15s;
}
.ipf__check.is-checked {
  border-color: var(--indigo);
  background: color-mix(in oklab, var(--indigo) 5%, white);
  box-shadow: 0 0 0 1px var(--indigo);
}
.ipf__check.is-checked .ipf__check-mark {
  border-color: var(--indigo);
  background: var(--indigo);
}
.ipf__check.is-checked .ipf__check-mark::after {
  content: ""; position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Reveal animation for conditional groups */
.ipf__reveal {
  animation: ipfReveal .25s ease-out;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--ivory-warm);
  border-left: 2px solid var(--mustard);
  border-radius: 0 6px 6px 0;
}
@keyframes ipfReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Crisis safety alert (after Yes on safety question) */
.ipf__safety-alert {
  margin-top: 14px;
  padding: 16px 18px;
  background: color-mix(in oklab, #c14d3a 8%, white);
  border: 1px solid color-mix(in oklab, #c14d3a 32%, transparent);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.ipf__safety-alert strong { color: #8e2e1f; }
.ipf__safety-alert a { color: #8e2e1f; text-decoration: underline; font-weight: 600; }

/* Step micro-headers (small caps inside step content) */
.ipf__step-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Mobile */
@media (max-width: 780px) {
  .ipf__overlay {
    padding: 0;
    overflow: hidden;
    /* Pin to the dynamic viewport so the box matches what's visible as the
       iOS address bar grows/shrinks. */
    height: 100dvh;
  }
  .ipf__dialog {
    grid-template-columns: 1fr;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    /* Fill the fixed overlay (inset:0) exactly. 100dvh disagreed with the
       overlay's height on iOS Safari, leaving the page visible below the
       footer. 100% of the overlay can't mismatch. */
    height: 100%;
    max-height: 100%;
  }
  .ipf__sidebar { display: none; }

  .ipf__panel {
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
  }
  .ipf__header {
    padding: 14px 18px 8px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: var(--ivory-pale);
    border-bottom: 1px solid var(--rule-soft);
    position: sticky; top: 0; z-index: 2;
  }
  .ipf__close {
    width: 44px; height: 44px;
    font-size: 18px;
  }
  .ipf__progress { margin: 0 18px; }
  .ipf__content {
    padding: 22px 18px 28px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ipf__footer {
    padding: 14px 18px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: var(--ivory-pale);
    box-shadow: 0 -4px 20px -10px rgba(10,30,51,0.18);
    position: sticky; bottom: 0; z-index: 2;
  }
  .ipf__btn {
    padding: 14px 22px;
    font-size: 15.5px;
    min-height: 48px;
  }
  .ipf__btn--ghost { padding: 14px 16px; }

  .ipf__heading { font-size: 26px; }
  .ipf__sub { font-size: 14.5px; }

  .ipf__form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ipf__radios--cols-2,
  .ipf__radios--cols-3,
  .ipf__radios--cols-4,
  .ipf__radios--cols-5 { grid-template-columns: 1fr; }
  .ipf__checks { grid-template-columns: 1fr; }

  .ipf__radio, .ipf__check {
    padding: 14px 14px;
    min-height: 48px;
  }
  .ipf__input, .ipf__select, .ipf__textarea {
    /* 16px font prevents iOS zoom on focus */
    font-size: 16px;
    padding: 13px 14px;
    min-height: 48px;
  }
  .ipf__textarea { min-height: 110px; }

  .ipf__review-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .ipf__review-row dt { font-size: 10px; }

  .ipf__verdict { padding: 14px 14px; }

  .ipf__success-ctas { flex-direction: column; align-items: stretch; }
  .ipf__success-ctas .ipf__btn { justify-content: center; }
}

/* --- Mobile menu + secondary --- */
/* Mega-menu styles for nav */
.nav__item { position: relative; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0;
  font: inherit; color: inherit;
  position: relative;
  font-size: 14.5px;
}
.nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: -2px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.nav__item:hover .nav__trigger::after,
.nav__item:focus-within .nav__trigger::after { transform: scaleX(1); }
.nav__mega {
  position: absolute; top: calc(100% + 14px); left: -20px;
  min-width: 320px;
  background: var(--ivory-pale);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 30px 60px -30px rgba(15,58,109,0.2);
  z-index: 50;
}
.nav__item:hover .nav__mega,
.nav__item:focus-within .nav__mega { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__mega a {
  display: grid; gap: 2px;
  padding: 12px 14px;
  border-radius: 2px;
  transition: background .18s ease;
}
.nav__mega a:hover { background: var(--bg-alt); }
.nav__mega a > span:first-child {
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  color: var(--indigo-deep);
  letter-spacing: -0.005em;
}
.nav__mega-hint {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav__mega a:hover > span:first-child { color: var(--mustard-deep); }

/* (Mobile collapsible groups removed — replaced by .mm-* drawer system above) */


/* ------------------------------------------------------------------
 * Sticky mobile CTA bar (mounted via site.js on all public pages)
 * ------------------------------------------------------------------ */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none;
  gap: 8px;
  padding: 8px;
  background: var(--indigo-ink);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(10, 30, 51, 0.22), 0 2px 8px rgba(10, 30, 51, 0.14);
  z-index: 80;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), opacity 240ms ease-out;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-height: 48px;
  line-height: 1.15;
  transition: background-color 160ms ease-out, transform 120ms ease-out;
}
.sticky-cta__btn small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0;
  margin-top: 2px;
}
.sticky-cta__btn--primary {
  flex: 2 1 auto;
  background: var(--mustard);
  color: #1a1203;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.sticky-cta__btn--primary:hover,
.sticky-cta__btn--primary:focus-visible {
  background: var(--mustard-deep);
  color: #fff;
}
.sticky-cta__btn--primary small { color: #1a1203; opacity: 0.78; }
.sticky-cta__btn--primary:hover small,
.sticky-cta__btn--primary:focus-visible small { color: #fff; opacity: 0.9; }
.sticky-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 110px;
}
.sticky-cta__btn--ghost:hover,
.sticky-cta__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
.sticky-cta__btn:active { transform: translateY(1px); }

/* Phones only. Hide on tablet/desktop where the primary nav CTA is visible. */
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  /* Add breathing room at the bottom of main so the bar never covers footer content. */
  body:has(.sticky-cta.is-visible) { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity 120ms ease-out; transform: none; }
}

/* Never print the sticky bar */
@media print { .sticky-cta { display: none !important; } }
