/* ════════════════════════════════════════════════════════════
   The Physicians' Greenbook — Homepage (carousel redesign)
   Newsreader (serif headlines) + Outfit (sans body) · warm cream
   Token block + shared atoms only; sections rebuilt per task.
   ════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --paper:        #F6F3EB;   /* primary page background */
  --paper-alt:    #FBF9F3;   /* alternating section background */
  --forest:       #244F26;   /* primary accent / CTAs */
  --forest-deep:  #19371A;   /* dark sections (hero, app, fellows) */
  --plum:         #241623;   /* finale / primary ink */
  --lime:         #A2D729;   /* lime accent (dark bgs + decorative) */
  --ink:          #241623;   /* body text on light */
  --ink-soft:     #3A2E38;   /* softer headline ink */
  --muted:        #5A5059;   /* secondary text (AA on paper) */
  --tertiary:     #6B636B;   /* small notes/captions (AA on paper) */
  --label:        #AD5125;   /* terracotta chapter labels (AA on paper) */
  --num-accent:   #3F6B1F;   /* specialty index — AA-safe green on paper */
  --on-dark:      #FAFBF6;   /* text on dark sections */
  --border:       #E3DDCD;   /* hairlines on light */
  --border-strong:#C6BFAE;   /* dividers / ghost-button borders */
  --goal-grey:    #C9C2B2;   /* "building toward" map dots */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1180px;
  --pad-x: clamp(24px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--forest-deep); }

/* ── Shared atoms ────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow--label { color: var(--label); }
.eyebrow--lime  { color: var(--lime); letter-spacing: 0.22em; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--forest-deep); font-weight: 700; }
.btn--lime:hover { box-shadow: 0 10px 30px rgba(162,215,41,0.35); }
.btn--solid-forest { background: var(--forest); color: var(--on-dark); }
.btn--solid-forest:hover { box-shadow: 0 10px 30px rgba(36,79,38,0.30); }
.btn--ghost { background: transparent; border: 1px solid rgba(250,251,246,0.4); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.skip-link {
  position: absolute;
  top: -56px; left: 16px;
  z-index: 100;
  background: var(--lime);
  color: var(--forest-deep);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

a:focus-visible,
.btn:focus-visible,
.skip-link:focus-visible {
  /* Two-edge ring: lime clears 3:1 on dark sections, the plum halo clears 3:1
     on cream — so the focus indicator stays visible on every background. */
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--plum);
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  background: rgba(246,243,235,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled { background: rgba(246,243,235,0.92); box-shadow: 0 1px 0 rgba(36,22,35,0.04); }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__logo-icon {
  width: 38px; height: 38px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.nav__logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo-text { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--forest); }
.nav__links a.nav__cta {
  color: var(--on-dark);
  background: var(--forest);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
}
.nav__links a.nav__cta:hover { color: var(--on-dark); background: var(--forest-deep); }

/* ── Reveal (JS adds .is-in; CSS is the no-JS truth) ──── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ── Reduced motion / no-motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
body.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ── Responsive nav ──────────────────────────────────── */
@media (max-width: 880px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ════════════════════════════════════════════════════════
   § Hero — slider + dot-map + waitlist form
   ════════════════════════════════════════════════════════ */

/* Section shell */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-deep);
  padding-top: 74px;   /* clear fixed nav */
}

/* Full-bleed dot-map canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Gradient veil: left edge fully opaque, right side transparent */
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--forest-deep)          16%,
    rgba(25,55,26,0.72)         46%,
    rgba(25,55,26,0.28)         70%,
    rgba(25,55,26,0.06)        100%
  );
  pointer-events: none;
}

/* Left content column */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px);
}

/* ── Slider ──────────────────────────────────────────── */
.hero__slider {
  position: relative;
  /* Reserve enough height for the tallest headline (two lines at max size)
     so swapping between 1-line and 2-line slides doesn't shift the sub-line
     and form below. Adjust the clamp upper bound if headline font-size changes. */
  min-height: clamp(88px, 13vw, 188px);
}

/* All slides stacked; only .is-active is visible */
.hero__slider .slide {
  display: none;
}
.hero__slider .slide.is-active {
  display: block;
}

.slide .eyebrow--lime {
  display: block;
  margin-bottom: 22px;
  letter-spacing: 0.26em;
}

/* Headline */
.hero__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--on-dark);
}
.hero__h em {
  font-style: italic;
  color: var(--lime);
}

/* Shared sub-line */
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(250,251,246,0.78);
  max-width: 34ch;
  margin-top: 28px;
}

/* ── Slide dots ──────────────────────────────────────── */
.hero__dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
/* Dots are rendered by createCarousel as <button class="dot"> */
.hero__dots .dot {
  display: block;
  width: 28px;
  height: 3px;
  background: rgba(250,251,246,0.35);
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero__dots .dot.on {
  background: var(--lime);
  width: 44px;
}
.hero__dots .dot:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ── Waitlist form ───────────────────────────────────── */
.wait {
  margin-top: 32px;
}
.wait__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.wait__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
}
.wait__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,251,246,0.65);
}
.wait__input,
.wait__select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--on-dark);
  background: rgba(250,251,246,0.10);
  /* Dark-context hairline: explicit rgba so it reads on forest-deep / plum bgs */
  border: 1px solid rgba(250,251,246,0.25);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wait__input::placeholder { color: rgba(250,251,246,0.38); }
.wait__input:focus,
.wait__select:focus {
  border-color: var(--lime);
  background: rgba(250,251,246,0.14);
}
.wait__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A2D729' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.wait__select option { background: var(--forest-deep); color: var(--on-dark); }

/* Honeypot: visually and navigationally invisible */
.wait__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.wait__btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: var(--lime);
  border: none;
  border-radius: 4px;
  padding: 13px 26px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-end;
  /* match input height */
  height: 49px;
}
.wait__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(162,215,41,0.38);
}
.wait__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.wait__btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--plum);
}

.wait__status {
  min-height: 22px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250,251,246,0.75);
}
.wait__status[data-kind="error"]   { color: #F4A261; }
.wait__status[data-kind="success"] { color: var(--lime); }

/* ── Trust line ──────────────────────────────────────── */
.hero__trust {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,251,246,0.72);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ── Hero responsive ─────────────────────────────────── */
@media (max-width: 880px) {
  .hero__content { max-width: 100%; }
  /* Vertical veil on mobile: top portion fully opaque so copy is legible
     over whatever the dot-map shows; bottom fades to reveal map below. */
  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(25,55,26,0.92) 0%,
      rgba(25,55,26,0.82) 60%,
      rgba(25,55,26,0.68) 100%
    );
  }
}
@media (max-width: 560px) {
  .wait__fields { flex-direction: column; }
  .wait__field  { flex: 1 1 auto; width: 100%; }
  .wait__btn    { width: 100%; height: auto; padding: 15px 26px; }
}

/* reduced-motion: hide the scroll-cue on hero (no cue element yet, but guard) */
body.no-motion .hero__cue { display: none; }

/* ════════════════════════════════════════════════════════════
   § 5 · App Section — carousel + specialties marquee
   ════════════════════════════════════════════════════════════ */

.appsec {
  background: var(--paper-alt);
  padding: clamp(72px, 9vw, 112px) 0;
}
.appsec__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ── Header ──────────────────────────────────────────── */
.appsec__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.appsec__heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.1;
}

/* ── Carousel shell ──────────────────────────────────── */
.appcar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

/* ── Track: only the active slide is shown ───────────── */
.appcar__track {
  display: grid;
  /* All slides stack in the same cell; active shown via is-active */
}
.appcar__track > * {
  grid-area: 1 / 1;
}
.appscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.appscreen.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Phone frame ─────────────────────────────────────── */
.appscreen__frame {
  background: #0F230F;
  border-radius: 40px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.06),
    0 24px 64px rgba(15,35,15,0.35);
  width: fit-content;
}
.appscreen__frame img {
  display: block;
  width: clamp(240px, 28vw, 320px);
  height: auto;
  border-radius: 28px;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}

/* ── Caption ─────────────────────────────────────────── */
.appscreen__caption {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Arrow buttons ───────────────────────────────────── */
.appcar__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* offset from phone frame edges */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.appcar__arrow--prev { left: clamp(0px, 2vw, 20px); }
.appcar__arrow--next { right: clamp(0px, 2vw, 20px); }
.appcar__arrow:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--on-dark);
  box-shadow: 0 6px 18px rgba(36,79,38,0.28);
}
.appcar__arrow:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ── Dots ────────────────────────────────────────────── */
.appcar__dots {
  display: flex;
  gap: 8px;
}
/* Dots rendered by createCarousel as <button class="dot"> */
.appcar__dots .dot {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--border-strong);
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.appcar__dots .dot.on {
  background: var(--forest);
  width: 44px;
}
.appcar__dots .dot:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ── Specialties marquee ─────────────────────────────── */
.marquee {
  font-family: var(--sans);
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 var(--pad-x);
}

/* ── App-section responsive ──────────────────────────── */
@media (max-width: 640px) {
  .appcar__arrow--prev { left: 4px; }
  .appcar__arrow--next { right: 4px; }
  .appcar__arrow { width: 38px; height: 38px; }
}

/* ════════════════════════════════════════════════════════════
   § 6 · The Movement — live-stats callout
   ════════════════════════════════════════════════════════════ */

.movement {
  background: var(--paper);
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.movement__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* ── Header ──────────────────────────────────────────── */
.movement__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.movement__line {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* ── Stats row ───────────────────────────────────────── */
.movement__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  width: 100%;
}

.movement__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-width: 180px;
}

/* ── Large numerals ──────────────────────────────────── */
.movement__num {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--forest);
}

/* ── Stat labels ─────────────────────────────────────── */
.movement__label {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ── Movement responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .movement__stats {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
  .movement__stat { min-width: 0; }
}

/* ════════════════════════════════════════════════════════════
   § 7 · Founder — photo slot + quote
   ════════════════════════════════════════════════════════════ */

.founder {
  background: var(--paper-alt);
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.founder__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: clamp(200px, 28vw, 340px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* ── Photo slot ──────────────────────────────────────── */
.founder__photo {
  /* Visible frame so the placeholder is tastefully contained */
  border: 2.5px solid var(--forest);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: color-mix(in srgb, var(--forest) 6%, var(--paper-alt));
}

.founder__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
}

.founder__photo-label {
  font-family: var(--sans);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

/* ── Text col ────────────────────────────────────────── */
.founder__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.founder__quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.founder__quote em {
  font-style: italic;
  color: var(--forest);
}

.founder__attribution {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Founder responsive ──────────────────────────────── */
@media (max-width: 680px) {
  .founder__inner {
    grid-template-columns: 1fr;
  }
  .founder__photo {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ════════════════════════════════════════════════════════════
   § 8 · Voices — quote carousel
   ════════════════════════════════════════════════════════════ */

.voices-sec {
  background: var(--paper);
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.voices-sec__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Section header ──────────────────────────────────── */
.voices-sec__header {
  text-align: center;
}

/* ── Carousel shell ──────────────────────────────────── */
.voices {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ── Track: slides stack; active shown ──────────────── */
.voices__track {
  display: grid;
  width: 100%;
}
.voices__track > * {
  grid-area: 1 / 1;
}

/* ── Individual slide ────────────────────────────────── */
.voices__slide {
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.voices__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Pull-quote ──────────────────────────────────────── */
.voices__quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 720px;
  padding: 0 var(--pad-x);
}

/* ── Dots ────────────────────────────────────────────── */
.voices__dots {
  display: flex;
  gap: 8px;
}
/* Dots rendered by createCarousel as <button class="dot"> */
.voices__dots .dot {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--border-strong);
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.voices__dots .dot.on {
  background: var(--forest);
  width: 44px;
}
.voices__dots .dot:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ── Caption ─────────────────────────────────────────── */
.voices-sec .voices__caption {
  font-family: var(--sans);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── FAQ accordion ───────────────────────────────── */
.faq-sec {
  background: var(--paper-alt);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
}

.faq-sec__inner {
  max-width: 780px;
  margin: 0 auto;
}

.faq-sec .eyebrow {
  margin-bottom: 16px;
}

.faq-sec__heading {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-top: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

/* Hide native disclosure markers */
.faq__item summary {
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Custom marker — a "+" that rotates to "×" when open */
.faq__item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--forest);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.25s ease, color 0.2s ease;
  line-height: 1;
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--label);
}

.faq__item summary:hover::after {
  color: var(--label);
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.faq__a {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 48px 24px 0;
}

.faq__a a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__a a:hover {
  color: var(--label);
}

/* ── Voices responsive ───────────────────────────── */
@media (max-width: 520px) {
  .voices__quote {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    padding: 0 var(--pad-x);
  }
}

/* ── FAQ responsive ───────────────────────────────── */
@media (max-width: 600px) {
  .faq__item summary {
    padding-right: 40px;
    font-size: 16px;
  }
  .faq__item summary::after {
    font-size: 20px;
  }
  .faq__a {
    padding-right: 0;
    font-size: 15px;
  }
}

/* ════════════════════════════════════════════════════════════
   § 9 · Finale — dark plum CTA + second waitlist form + footer
   ════════════════════════════════════════════════════════════ */

.finale {
  background: var(--plum);
  color: var(--on-dark);
  padding: clamp(80px, 11vw, 150px) var(--pad-x) 0;
}

.finale__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.finale__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}

.finale__title em {
  font-style: italic;
  color: var(--lime);
}

.finale__sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(250,251,246,0.68);
  margin-top: 26px;
}

/* ── Finale waitlist form (centered, max-width constrained) */
.finale__wait {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Store badges ────────────────────────────────────── */
.finale__stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.store-btn {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(250,251,246,0.35);
  padding: 14px 26px;
  text-align: left;
  color: var(--on-dark);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.store-btn:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.store-btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.store-btn__small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,251,246,0.55);
}

.store-btn__big {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  max-width: var(--max-w);
  margin: clamp(72px, 9vw, 120px) auto 0;
  border-top: 1px solid rgba(250,251,246,0.16);
  padding: 44px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cream chip keeps the dark caduceus in the emblem legible on the dark footer. */
.footer__brand .nav__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border-radius: 50%;
  padding: 5px;
}

.footer__brand .nav__logo-icon img {
  width: 100%;
  height: 100%;
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--on-dark);
}

.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer__links a {
  text-decoration: none;
  color: rgba(250,251,246,0.66);
  font-family: var(--sans);
  font-size: 13px;
  transition: color 0.25s ease;
}

.footer__links a:hover {
  color: var(--lime);
}

.footer__copy {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,251,246,0.5);
  padding: 0 var(--pad-x) 36px;
  background: var(--plum);
  margin: 0;
}

/* ── Finale responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .footer {
    justify-content: center;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
}
@media (max-width: 520px) {
  .finale__title {
    font-size: clamp(36px, 11vw, 56px);
  }
  .finale__stores {
    flex-direction: column;
    align-items: center;
  }
  .store-btn {
    width: 100%;
    max-width: 260px;
  }
}
