/* ==========================================================================
   Pastera Direct Primary Care: design system + components
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Palette */
  --cream: #F7F3EC;
  --cream-2: #EFE8DC;
  --paper: #FCFAF6;
  --ink: #1F2A24;
  --ink-2: #4A564E;
  --ink-3: #5F6A62;
  --sage: #5B7361;
  --sage-deep: #3F5446;
  --sage-soft: #DFE6DC;
  --clay: #B9795A;
  --clay-deep: #955638;
  --clay-soft: #F1E1D6;
  --line: rgba(31, 42, 36, .12);
  --line-strong: rgba(31, 42, 36, .22);
  --on-ink: #F7F3EC;
  --on-ink-2: #C9D1CB;
  --error: #A3362B;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --accent: var(--sage);
  --focus: #2F6B4F;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.7rem, 1.35rem + 5.4vw, 5.9rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.35rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .5vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.02rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;

  /* Space (4pt rhythm) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, .6rem + 3vw, 3.5rem);
  --maxw: 1240px;

  /* Shape + depth */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(31,42,36,.05), 0 4px 14px rgba(31,42,36,.05);
  --shadow-2: 0 2px 6px rgba(31,42,36,.06), 0 18px 40px -12px rgba(31,42,36,.18);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms; --t-base: 260ms; --t-reveal: 900ms;

  /* Layers */
  --z-header: 50; --z-menu: 60; --z-skip: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; font-optical-sizing: auto; }
h3, h4 { line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--sage-soft); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: var(--s-4); top: var(--s-4); z-index: var(--z-skip);
  background: var(--ink); color: var(--on-ink); padding: .8rem 1.1rem; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform var(--t-base) var(--ease-out); text-decoration: none;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--cream-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow { color: #A9BCA9; }
.section--ink .lead, .section--ink p { color: var(--on-ink-2); }

.grid-2 { display: grid; gap: var(--s-7) var(--s-8); align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stack > * + * { margin-top: var(--s-5); }
/* Stays in view beside a longer column, but only when the columns sit side by side */
@media (min-width: 900px) { .sticky-desktop { position: sticky; top: 120px; } }
.stack-sm > * + * { margin-top: var(--s-3); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--plain::before { display: none; }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.028em; }
.h1 { font-size: var(--fs-h1); letter-spacing: -.024em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.02em; }
.h3 { font-size: var(--fs-h3); }
.display em, .h1 em, .h2 em { color: var(--clay); font-weight: 350; }
.section--ink .h2 em, .section--ink .h1 em { color: #E0A988; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); max-width: 38em; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-head.center { margin-inline: auto; }
.section-head > * + * { margin-top: var(--s-4); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 40em; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Placeholder marker: invisible in production, highlighted with ?review */
.review .ph { background: #FFE7A3; box-shadow: 0 0 0 2px #FFE7A3; border-radius: 3px; color: #4a3500; }
.review .ph-block { outline: 2px dashed #D9A400; outline-offset: 4px; }
.review-banner { display: none; }
.review .review-banner {
  display: block; position: fixed; inset: auto 12px 12px auto; z-index: 200; max-width: 280px;
  background: #4a3500; color: #FFE7A3; font-size: 13px; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-2);
}

/* ---------- Icons ---------- */
.icon { width: 1.5rem; height: 1.5rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1.125rem; height: 1.125rem; }
.icon-badge {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px;
  background: var(--sage-soft); color: var(--sage-deep);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-ink); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.55rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 600; font-size: 1rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--sage-deep); transform: translateY(101%); transition: transform 420ms var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--sage-deep); box-shadow: 0 10px 24px -12px rgba(31,42,36,.55); }
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--on-ink); border-color: var(--ink); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); }
.btn--light::before { background: #fff; }
.btn--light:hover { border-color: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-ink); --btn-bd: rgba(247,243,236,.35); }
.btn--outline-light::before { background: var(--cream); }
.btn--outline-light:hover { color: var(--ink); border-color: var(--cream); }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--sage-deep);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size 420ms var(--ease-out), color var(--t-base);
  min-height: 44px;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: calc(var(--z-header) + 1);
  background: var(--sage); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  transition: background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), transform 420ms var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-scrolled { background: rgba(247, 243, 236, .86); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(247, 243, 236, .72); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .625rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); margin-top: .3rem; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; white-space: nowrap;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 380ms var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); position: relative;
}
.menu-toggle span { position: absolute; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 380ms var(--ease-out), opacity var(--t-fast); }
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 1320px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--cream);
  display: flex; flex-direction: column; padding: 96px var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transition: opacity 360ms var(--ease-out), visibility 0s linear 360ms;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity 360ms var(--ease-out); }
.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; min-height: 56px;
  font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 2.5vw, 2.4rem); text-decoration: none; letter-spacing: -.015em;
  transform: translateY(100%); transition: transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 80ms);
}
.mobile-menu li a[aria-current="page"] { color: var(--sage-deep); font-style: italic; }
.menu-open .mobile-menu li a { transform: none; }
.mobile-menu-foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-4); }
.mobile-menu-foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 1rem + 3vw, 4rem); padding-bottom: var(--section); position: relative; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: var(--s-8); } }
.hero-copy > * + * { margin-top: var(--s-5); }
.hero-copy .display { margin-top: 0; font-size: clamp(2.4rem, 1.3rem + 4.3vw, 4.9rem); }
.hero .btn-row { margin-top: var(--s-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: var(--s-6); font-size: var(--fs-small); color: var(--text-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: .5rem; list-style: none; }
.hero-meta .icon { color: var(--sage); width: 1.1rem; height: 1.1rem; stroke-width: 2; }

.portrait { --pp: clamp(18px, 4vw, 34px); position: relative; max-width: 480px; margin-inline: auto; width: 100%; padding: var(--pp) var(--pp) 0; }
.portrait-arch { position: absolute; top: calc(var(--pp) - 14px); left: calc(var(--pp) - 14px); right: calc(var(--pp) - 14px); bottom: 56px; border: 1px solid var(--sage); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; opacity: .7; }
.portrait-frame {
  position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--cream-2); box-shadow: var(--shadow-2); isolation: isolate;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-card {
  position: absolute; left: -4px; bottom: 28px; z-index: 2;
  background: rgba(252, 250, 246, .94); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow-2); max-width: 250px;
}
@supports (backdrop-filter: blur(8px)) { .portrait-card { background: rgba(252,250,246,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.portrait-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.portrait-card span { font-size: var(--fs-xs); color: var(--text-2); }
.seal {
  position: absolute; right: -6px; top: 14%; z-index: 2; width: clamp(104px, 22vw, 132px); aspect-ratio: 1;
  border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text { font-family: var(--font-body); font-size: 10.2px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; fill: #fff; }
.seal-center { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; text-align: center; }
.seal-center small { display: block; font-family: var(--font-body); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; }
@media (prefers-reduced-motion: no-preference) { .seal-ring { animation: spin 38s linear infinite; transform-origin: 50% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: clip; }
.page-hero .h1 { margin-top: var(--s-4); max-width: 15ch; }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .hero-story { margin-top: var(--s-5); position: relative; max-width: 38em; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); }
.page-hero-ornament { position: absolute; right: max(var(--gutter), calc(50% - 620px + var(--gutter))); bottom: 0; height: calc(100% - 1rem); max-height: 460px; width: auto; aspect-ratio: 200 / 240; color: var(--sage); opacity: .4; pointer-events: none; }
.page-hero-ornament path { stroke: currentColor; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 1199px) { .page-hero-ornament { display: none; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; background: var(--paper); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 2.75rem; padding-right: 2.75rem; }
.marquee-item { display: inline-flex; align-items: center; gap: 2.75rem; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); white-space: nowrap; color: var(--ink); }
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding: 0 var(--gutter); }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), border-color var(--t-base);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.card > * + * { margin-top: var(--s-4); }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--text-2); }

.features { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.features--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.features--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.feature { display: grid; gap: var(--s-4); align-content: start; }
.feature h3 { font-size: 1.35rem; }

/* Contrast list (home) */
.compare { display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 0; } }
.compare-col { border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.compare-col h3 { font-size: 1.5rem; margin-bottom: var(--s-5); }
.compare-col ul { list-style: none; display: grid; gap: 0; }
.compare-col li { display: flex; gap: .85rem; align-items: flex-start; padding-block: .9rem; border-top: 1px solid var(--line); }
.compare-col li .icon { margin-top: .2rem; width: 1.15rem; height: 1.15rem; stroke-width: 2; }
.compare-col--old { color: var(--text-2); }
.compare-col--old li .icon { color: #9A8F84; }
.compare-col--new { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-2); }
.compare-col--new li { border-color: rgba(247,243,236,.14); }
.compare-col--new li .icon { color: #A9C4AE; }
.compare-col--new h3 em { color: #E0A988; }
@media (min-width: 820px) { .compare-col--old { padding-right: clamp(2rem, 1rem + 3vw, 4rem); } .compare-col--new { margin-left: -1rem; } }

/* Steps */
.steps { display: grid; gap: var(--s-5); counter-reset: step; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.step { position: relative; padding-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 1rem; color: var(--clay-deep); margin-bottom: var(--s-5); font-feature-settings: "lnum";
}
.step::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
.step.is-in::after, .no-js .step::after { transform: scaleX(1); }
.step h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.step p { color: var(--text-2); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.plan-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.plan-age { font-size: var(--fs-small); color: var(--text-2); margin-top: .35rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.plan-price .amt { font-family: var(--font-display); font-size: clamp(3.4rem, 2.8rem + 2.5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.plan-price .per { color: var(--text-2); }
.plan-founding { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-small); color: var(--clay-deep); font-weight: 600; background: var(--clay-soft); padding: .55rem .9rem; border-radius: var(--r-pill); width: fit-content; }
.plan-founding .icon { width: 1rem; height: 1rem; stroke-width: 2; }
.plan-notice { display: flex; gap: .55rem; align-items: center; font-size: var(--fs-small); font-weight: 600; color: var(--sage-deep); background: var(--sage-soft); padding: .55rem .9rem; border-radius: var(--r-sm); width: fit-content; }
.plan-notice .icon { width: 1rem; height: 1rem; stroke-width: 2; flex: none; }
.plan-term { display: flex; gap: .55rem; align-items: center; font-size: var(--fs-small); color: var(--text-2); margin-top: calc(var(--s-5) * -.5); }
.plan-term .icon { width: 1rem; height: 1rem; color: var(--sage); stroke-width: 2; }
.plan ul { list-style: none; display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: var(--s-5); flex: 1; }
.plan li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-2); }
.plan li .icon { color: var(--sage); width: 1.15rem; height: 1.15rem; margin-top: .25rem; stroke-width: 2.2; }
.plan-badge { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--sage-soft); color: var(--sage-deep); padding: .4rem .7rem; border-radius: var(--r-pill); white-space: nowrap; }
.fee-note { margin-top: var(--s-5); text-align: center; color: var(--text-2); font-size: var(--fs-small); }

/* Founding band */
.founding { display: grid; gap: var(--s-6); align-items: center; background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); position: relative; overflow: hidden; }
@media (min-width: 900px) { .founding { grid-template-columns: 1.1fr .9fr; } }
.founding .h2 { color: var(--on-ink); }
.founding .eyebrow { color: #A9BCA9; }
.founding p { color: var(--on-ink-2); }
.founding-price { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 1; color: #E0A988; letter-spacing: -.03em; }
.founding-price span { font-family: var(--font-body); font-size: 1rem; color: var(--on-ink-2); letter-spacing: 0; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.5vw, 14px); max-width: 320px; margin-inline: auto; }
.dots span { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(247,243,236,.35); background: radial-gradient(circle at 35% 30%, rgba(224,169,136,.95), rgba(185,121,90,.95)); transform: scale(.2); opacity: 0; transition: transform 700ms var(--ease-out), opacity 500ms var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.dots.is-in span, .no-js .dots span { transform: none; opacity: 1; }
.dots-caption { margin-top: var(--s-4); text-align: center; font-size: var(--fs-small); color: var(--on-ink-2); }

/* Price table (labs) */
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.price-table th, .price-table td { text-align: left; padding: .9rem .5rem; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 600; color: var(--text-2); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table .strike { color: var(--text-3); text-decoration: line-through; }

/* ---------- Doctor ---------- */
.doctor { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .doctor { grid-template-columns: .85fr 1.15fr; gap: var(--s-9); } }
.doctor-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--cream-2); max-width: 460px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.quote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: 1; height: .5em; color: var(--clay); margin-bottom: .35rem; }
.quote em { color: var(--clay-deep); }
.quote-by { margin-top: var(--s-5); display: flex; align-items: center; gap: .9rem; font-size: var(--fs-small); color: var(--text-2); }
.quote-by strong { color: var(--text); font-weight: 600; display: block; }
.credentials { list-style: none; display: grid; gap: 0; }
.credentials li { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); padding-block: 1rem; border-top: 1px solid var(--line); }
.credentials li:last-child { border-bottom: 1px solid var(--line); }
.credentials dt, .credentials .k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-top: .2rem; }
@media (max-width: 520px) { .credentials li { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- Split coverage diagram ---------- */
.coverage { display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .coverage { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.coverage-plus { display: grid; place-items: center; font-family: var(--font-display); font-size: 2.5rem; color: var(--clay); }
.coverage .card ul { list-style: none; display: grid; gap: .6rem; }
.coverage .card li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.coverage .card li .icon { width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: var(--sage); stroke-width: 2.2; }
.coverage .card--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.coverage .card--ink p, .coverage .card--ink li { color: var(--on-ink-2); }
.coverage .card--ink li .icon { color: #A9C4AE; }

/* Model diagram */
.model { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .model { grid-template-columns: 1fr 1fr; } }
.model-fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.model-fig figcaption { margin-top: var(--s-4); }
.model-fig figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; display: block; margin-bottom: .35rem; }
.model-fig figcaption span { color: var(--text-2); font-size: var(--fs-small); }
.model-svg { width: 100%; height: auto; }
.model-svg .node rect { fill: var(--cream); stroke: var(--line-strong); }
.model-svg .node--you rect { fill: var(--sage-soft); stroke: var(--sage); }
.model-svg .node--doc rect { fill: var(--ink); stroke: var(--ink); }
.model-svg .node--doc text { fill: var(--on-ink); }
.model-svg text { font-family: var(--font-body); font-size: 13px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.model-svg .flow { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: 4 5; }
.model-svg .flow--direct { stroke: var(--clay); stroke-width: 2; stroke-dasharray: none; }
.model-svg .lbl { font-size: 11px; fill: var(--ink-3); }
.model-svg--maze text { font-size: 12px; }
.model-svg--maze .lbl { font-size: 10.5px; font-style: italic; }
.model-svg--maze .flow { stroke: #8C877F; stroke-width: 1.3; }
.model-svg .dead { fill: none; stroke: var(--clay); stroke-width: 1.6; stroke-linecap: round; }
.model-svg .q { font-family: var(--font-display); font-size: 34px; fill: var(--clay); opacity: .35; }
.model-svg .q--sm { font-size: 22px; opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .model-svg .flow { animation: dash 1.6s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -18; } }
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ctable { width: 100%; border-collapse: collapse; min-width: 560px; }
.ctable th, .ctable td { padding: 1.1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable thead th { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ctable thead th:last-child { color: var(--sage-deep); }
.ctable tbody th { font-weight: 600; font-size: var(--fs-small); width: 26%; }
.ctable td { color: var(--text-2); font-size: var(--fs-small); }
.ctable td:last-child { color: var(--ink); background: rgba(223,230,220,.45); }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service { display: grid; gap: var(--s-4); align-content: start; }
.service ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.service li { font-size: var(--fs-xs); padding: .35rem .7rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink-2); }
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4); padding-bottom: var(--s-6); position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(1.5rem - .5px); top: 3rem; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 1.1rem; background: var(--bg); }
.timeline h3 { font-size: 1.3rem; margin-bottom: .35rem; padding-top: .6rem; }
.timeline p { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.search-field { position: relative; flex: 1 1 280px; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 1.2rem; height: 1.2rem; pointer-events: none; }
.search-field input { width: 100%; min-height: 54px; padding: .8rem 1rem .8rem 2.9rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 1rem; }
.search-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-size: var(--fs-small); font-weight: 500; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group h2 { font-size: 1.6rem; margin-bottom: var(--s-4); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 1.35rem 0; min-height: 64px; font-family: var(--font-display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sage-deep); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color var(--t-base), border-color var(--t-base), transform 400ms var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 400ms var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--ink); color: var(--on-ink); border-color: var(--ink); transform: rotate(180deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 3.5rem 1.6rem 0; color: var(--text-2); max-width: 46em; }
.faq-body p + p { margin-top: .8em; }
.faq-body a { color: var(--sage-deep); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: hidden; transition: block-size 450ms var(--ease-out), content-visibility 450ms allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) { .faq::details-content { transition: none; } }
}
.faq-empty { padding: var(--s-6) 0; color: var(--text-2); }
.faq[hidden], .faq-group[hidden] { display: none; }
@media (max-width: 600px) { .faq-body { padding-right: 0; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 600; }
.field .req { color: var(--clay-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--paper); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A24' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,107,79,.25); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field .error { font-size: var(--fs-xs); color: var(--error); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .error { display: block; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--sage-deep); flex: none; }
.form-status { border-radius: 12px; padding: 1rem 1.2rem; font-size: var(--fs-small); display: none; }
.form-status.is-success { display: flex; gap: .7rem; background: var(--sage-soft); color: var(--sage-deep); }
.form-status.is-error { display: flex; gap: .7rem; background: #F6DEDA; color: var(--error); }
.form-note { font-size: var(--fs-xs); color: var(--text-3); }

.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--sage); margin-top: .15rem; }
.contact-list .k { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map-placeholder { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-soft); display: grid; place-items: center; text-align: center; padding: var(--s-5); }
.map-placeholder svg.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.map-placeholder svg.map-lines path { stroke: #fff; stroke-width: 10; fill: none; }
.map-placeholder .pin { position: relative; display: grid; gap: .5rem; justify-items: center; }
.map-placeholder .pin-dot { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--clay); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.map-placeholder .pin-dot::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); }
@media (prefers-reduced-motion: no-preference) { .map-placeholder .pin-dot { animation: bob 3.2s var(--ease-in-out) infinite; } @keyframes bob { 50% { transform: rotate(-45deg) translate(4px, -4px); } } }

/* Live map */
.map-embed { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 11; border: 0; background: var(--sage-soft); filter: saturate(.85); }
.map-embed figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; font-size: var(--fs-small); color: var(--text-2); }
.map-embed figcaption strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-meta { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-3); }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-bottom: var(--s-7); }
.legal-toc > p { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: .6rem; }
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2 16rem; column-gap: 2rem; }
.legal-toc li { counter-increment: toc; break-inside: avoid; }
.legal-toc li::before { content: counter(toc) "."; display: inline-block; width: 2rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legal-toc a { display: inline-flex; min-height: 36px; align-items: center; font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal { max-width: 46em; }
.legal h2 { font-size: 1.55rem; margin: 2.75rem 0 .9rem; color: var(--text); scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: none; display: grid; gap: .6rem; margin: 1rem 0; }
.legal ul li { position: relative; padding-left: 1.25rem; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.legal a { color: var(--sage-deep); }
.legal-contact { font-style: normal; margin-top: .75rem; line-height: 1.7; color: var(--text); }
.footer-areas { margin-top: 1rem; font-size: var(--fs-xs); line-height: 1.7; color: #AEB8B1; max-width: 34ch; }
.site-footer .footer-areas a { display: inline; min-height: 0; color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { min-height: 0 !important; color: var(--on-ink-2) !important; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal:hover { color: #E0A988 !important; }
.form-note a { color: var(--sage-deep); }

/* Enrollment card (Join page) */
.enroll-card > * + * { margin-top: var(--s-4); }
.enroll-card .h3 { font-size: 1.75rem; margin-top: var(--s-3); }
.enroll-plans { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.enroll-plans li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.enroll-plans span { font-weight: 600; }
.enroll-plans span small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--text-3); }
.enroll-plans strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.enroll-plans strong small { font-family: var(--font-body); font-size: var(--fs-small); color: var(--text-2); margin-left: .15rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .h1 { max-width: 16ch; margin: var(--s-4) auto 0; color: var(--on-ink); }
.cta-band .lead { margin: var(--s-5) auto 0; color: var(--on-ink-2); }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-6); }
.cta-arch { position: absolute; left: 50%; bottom: -1px; width: min(1100px, 150vw); transform: translateX(-50%); color: rgba(247,243,236,.08); pointer-events: none; }
.cta-arch path { stroke: currentColor; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding-top: var(--s-9); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); border-top: 1px solid rgba(247,243,236,.08); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); } }
.site-footer .brand-name { color: var(--on-ink); }
.site-footer .brand-sub { color: #A9BCA9; }
.site-footer .brand-mark .m-ink { stroke: var(--on-ink); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A9BCA9; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: .1rem; }
.site-footer a { text-decoration: none; color: var(--on-ink); display: inline-flex; min-height: 40px; align-items: center; transition: color var(--t-fast); }
.site-footer a:hover { color: #E0A988; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(247,243,236,.12); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-xs); }
.disclaimer { font-size: var(--fs-xs); line-height: 1.6; max-width: 62em; margin-top: var(--s-6); color: #AEB8B1; }

/* ---------- Misc ---------- */
.pill-note { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.pill-note .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; }
.pill-note .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
@media (prefers-reduced-motion: no-preference) { .pill-note .dot::after { animation: pulse 2.4s var(--ease-in-out) infinite; } @keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } } }
.divider-leaf { display: flex; align-items: center; gap: var(--s-4); color: var(--sage); margin-block: var(--s-6); }
.divider-leaf::before, .divider-leaf::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.values { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line-strong); }
.value { padding: var(--s-6) var(--s-5) var(--s-6) 0; }
.value .n { font-family: var(--font-display); color: var(--clay-deep); font-size: 1rem; }
.value h3 { font-size: 1.6rem; margin: var(--s-3) 0 var(--s-3); }
.value p { color: var(--text-2); }
.not-found { min-height: 70dvh; display: grid; place-items: center; text-align: center; }


/* ---------- Menopause care page ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); color: var(--text-3); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { display: inline-flex; min-height: 32px; align-items: center; }

.glance { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow-2); max-width: 480px; justify-self: end; width: 100%; }
.glance-cred { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.glance-mark { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--sage-deep); color: var(--cream); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; box-shadow: inset 0 0 0 4px var(--sage-deep), inset 0 0 0 5px rgba(247,243,236,.45); }
.glance-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.glance-title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 1.25rem 0 .5rem; }
.glance dl { margin: 0; display: grid; }
.glance dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.glance dl > div:first-child { border-top: 0; }
.glance dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: .15rem; }
.glance dd { margin: 0; font-size: var(--fs-small); color: var(--text); }
@media (max-width: 959px) { .glance { justify-self: stretch; max-width: none; } }
@media (max-width: 420px) { .glance dl > div { grid-template-columns: 1fr; gap: .15rem; } }

.spotlight { display: grid; gap: var(--s-6); background: var(--sage-soft); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 900px) { .spotlight { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; } }
.spotlight .prose { color: var(--ink-2); }
.spotlight .link-arrow { min-height: 44px; }

.stages { list-style: none; display: grid; gap: var(--s-5); position: relative; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.stage { position: relative; padding-top: 2.25rem; }
.stage::before { content: ""; position: absolute; left: 0; top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--clay); z-index: 1; }
.section--alt .stage::before { background: var(--cream-2); }
.stage::after { content: ""; position: absolute; left: 0; right: calc(var(--s-6) * -1); top: calc(.55rem + 6px); height: 2px; background: linear-gradient(90deg, var(--clay), var(--sage)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 250ms + 200ms); }
.stage:last-child::after { right: 0; }
.stage.is-in::after { transform: scaleX(1); }
.stage-n { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); }
.stage h3 { font-size: var(--fs-h3); margin: .5rem 0 .75rem; }
.stage p { color: var(--text-2); }
@media (max-width: 899px) {
  .stage { padding: 0 0 0 2.25rem; }
  .stage::before { top: .3rem; }
  .stage::after { left: 6px; right: auto; top: 1.4rem; bottom: calc(var(--s-5) * -1); width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--clay), var(--sage)); }
  .stage.is-in::after { transform: scaleY(1); }
  .stage:last-child::after { display: none; }
}

.symptoms { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .symptoms { grid-template-columns: 1.5fr 1fr; gap: var(--s-7); } }
.symptom-groups { display: grid; gap: var(--s-5); }
.symptom-groups fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.symptom-groups legend { font-family: var(--font-display); font-size: 1.2rem; padding: 0; margin-bottom: .75rem; width: 100%; }
.sym { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem .5rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-small); cursor: pointer; user-select: none; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.sym input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sym span::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: .55rem; vertical-align: -3px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: transparent no-repeat center / 10px; transition: background-color var(--t-fast), border-color var(--t-fast); }
.sym:hover { border-color: var(--ink); }
.sym:active { transform: scale(.97); }
.sym:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sym:has(input:checked) span::before { background-color: #E0A988; border-color: #E0A988; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A24' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.sym:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.symptom-summary { position: sticky; top: 110px; }
.symptom-summary h3 { font-size: 1.5rem; }
.sym-count { color: var(--clay-deep); }
.sym-list { list-style: none; display: grid; gap: .35rem; max-height: 260px; overflow: auto; padding-right: .25rem; }
.sym-list li { display: flex; gap: .5rem; align-items: baseline; font-size: var(--fs-small); color: var(--text); }
.sym-list li:not(.muted)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); transform: translateY(-2px); }
.symptom-summary .btn[disabled] { opacity: .45; pointer-events: none; }
.print-only { display: none; }
@media (max-width: 959px) { .symptom-summary { position: static; } }

.callout { display: flex; gap: 1rem; align-items: flex-start; margin-top: var(--s-7); padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--clay-soft); color: #5E3522; }
.callout .icon { flex: none; color: var(--clay-deep); margin-top: .15rem; }
.callout strong { color: #4A2818; }
.callout--sage { background: var(--sage-soft); color: var(--ink-2); max-width: 820px; margin-inline: auto; margin-top: var(--s-6); }
.callout--sage .icon { color: var(--sage-deep); }
.callout--sage strong { color: var(--ink); }

.plain-list { list-style: none; display: grid; gap: .9rem; }
.plain-list li { position: relative; padding-left: 1.25rem; color: var(--text-2); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.plain-list strong { color: var(--text); font-weight: 600; }

.why-card { background: rgba(247,243,236,.05); border-color: rgba(247,243,236,.14); }
.why-card h3 { color: var(--on-ink); }
.section--ink .why-card p { color: var(--on-ink-2); }
.why-card .icon-badge { background: rgba(169,196,174,.16); color: #C7DBCB; }
.why-card.card-hover:hover, .why-card:hover { border-color: rgba(247,243,236,.3); }

.areas { display: grid; gap: var(--s-5); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (min-width: 900px) { .areas { grid-template-columns: .9fr 1.1fr; } }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-list li { font-size: var(--fs-small); padding: .45rem .9rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink-2); }
.reviewed { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--text-3); }
.reviewed a { color: var(--sage-deep); }

/* Home spotlight for menopause */
.meno-spot { display: grid; gap: var(--s-6); background: var(--sage-soft); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); position: relative; overflow: hidden; }
@media (min-width: 900px) { .meno-spot { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; } }
.meno-spot .chips-static { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.meno-spot .chips-static li { font-size: var(--fs-small); padding: .5rem 1rem; border-radius: var(--r-pill); background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.cred-pill { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-small); font-weight: 600; color: var(--sage-deep); }
.cred-pill b { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 .5rem; border-radius: var(--r-pill); background: var(--sage-deep); color: var(--cream); font-family: var(--font-display); font-weight: 400; font-size: .85rem; letter-spacing: .06em; }

@media print {
  .printing-symptoms body * { visibility: hidden !important; }
  .printing-symptoms .symptom-summary, .printing-symptoms .symptom-summary * { visibility: visible !important; }
  .printing-symptoms .symptom-summary { position: absolute !important; inset: 0 auto auto 0; width: 100%; border: 0; box-shadow: none; opacity: 1 !important; transform: none !important; }
  .printing-symptoms .symptom-summary .btn-row, .printing-symptoms [data-sym-status] { display: none !important; }
  .printing-symptoms .sym-list { max-height: none; overflow: visible; }
  .printing-symptoms .print-only { display: block; }
}

/* ==========================================================================
   Motion: all entrance motion is opt-in via .js and disabled for reduced motion
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Split headline words */
.w { display: inline-block; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; -webkit-clip-path: inset(-.3em -.4em 0 -.4em); clip-path: inset(-.3em -.4em 0 -.4em); }
.w > span { display: inline-block; }
.js .split .w > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--wi) * 70ms + 120ms); }
.js .split.is-in .w > span { transform: none; }

/* Portrait reveal */
.js .portrait-frame img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.js .portrait-frame::after { content: ""; position: absolute; inset: 0; background: var(--cream-2); transform-origin: top; transition: transform 1.2s var(--ease-in-out) .15s; }
.js .portrait.is-in .portrait-frame img { transform: scale(1); }
.js .portrait.is-in .portrait-frame::after { transform: scaleY(0); }
.js .portrait-card, .js .seal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .portrait.is-in .portrait-card { opacity: 1; transform: none; transition-delay: 1s; }
.js .portrait.is-in .seal { opacity: 1; transform: none; transition-delay: 1.2s; }

.js .portrait-arch { clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease-in-out) .3s; }
.js .portrait.is-in .portrait-arch { clip-path: inset(0 0 0 0); }

/* Line drawing */
.js [data-draw] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-in-out); }
.js [data-draw].is-in path { stroke-dashoffset: 0; }

/* Parallax targets get a compositor hint only while enabled */
.parallax-on [data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .split .w > span, .js .portrait-frame img, .js .portrait-card, .js .seal { opacity: 1 !important; transform: none !important; }
  .js .portrait-frame::after { transform: scaleY(0) !important; }
  .js [data-draw] path { stroke-dashoffset: 0 !important; }
  .js .portrait-arch { clip-path: none !important; }
  .dots span { opacity: 1; transform: none; }
}

/* Cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 280ms var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Print */
@media print {
  .site-header, .mobile-menu, .scroll-progress, .marquee, .cta-band, .site-footer .footer-grid > :not(:first-child) { display: none !important; }
  body { background: #fff; }
  .js [data-reveal], .js .split .w > span { opacity: 1 !important; transform: none !important; }
}
