/* ============================================================
   OPEN WIDE, LaunchPoint flagship 02 (dentist)
   Design system per PRD section 1. Mobile first, 390px base.
   Clinical, restrained, editorial. No gradients, no shadows on
   buttons, no rounded pills, no cartoon anything.
   Easings are clinical ease-outs only, never springy.
   Palette rules (hard): --pulse never in buttons, nav, or
   badges. --gold never sets small text on light grounds.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --porcelain: #FAF9F5;
  --porcelain-deep: #EFEAE0;
  --ink: #1B1E20;
  --ink-soft: #3D434A;
  --jade: #175C4C;
  --jade-deep: #0E3D33;
  --gold: #C9A227;
  --gold-deep: #7C5F1E;
  --pulse: #B23A2E;
  --mist: #DCE8E2;
  --paper-line: #D8D1C1;

  --header-h: 64px;
  --stickybar-h: 56px;
  --maxw: 1200px;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* clinical ease-out, never springy */
  --ease-clinical: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

/* reserve room so the sticky bar never covers a CTA or field */
body.sticky-visible { padding-bottom: calc(var(--stickybar-h) + env(safe-area-inset-bottom, 0px)); }
body.menu-open { overflow: hidden; }

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

a { color: var(--jade); }

a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

::selection { background: var(--mist); color: var(--ink); }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.is-hidden { display: none !important; }

/* ---------- type utilities ---------- */

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.display-m {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 24px;
}

/* 12px mono kickers: --gold-deep or --ink-soft only, never --gold.
   On dark grounds the kicker renders in porcelain for contrast
   (gold-deep is unreadable on jade-deep). */
.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
}
.kicker.on-dark { color: var(--porcelain); }
.kicker.soft { color: var(--ink-soft); }

.mono-data {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- section shell ---------- */

section[id] {
  position: relative;
  z-index: 1;
  padding: 72px 20px;
  min-width: 0;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-width: 0;
}

.section-head { margin-bottom: 40px; max-width: 720px; }

/* ---------- pinned 3D canvas + fallback ---------- */

#scan-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

/* scan3d.js adds .canvas-live during the S3 beat so drags and taps
   reach the canvas through the pointer-events:none beat */
#scan-canvas.canvas-live { pointer-events: auto; }

#fallback-svg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hidden once the first real WebGL frame renders (three-live handshake). */
body.three-live #fallback-svg { display: none; }
body[data-tier="fallback"] #scan-canvas { display: none; }
body[data-tier="fallback"] #fallback-svg { display: flex; }
/* Only the sequence for the current beat is visible. */
#fallback-svg .ow-fallback-seq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
#fallback-svg .ow-fallback-seq.active { opacity: 1; }
#fallback-svg .ow-fallback-seq svg { width: min(560px, 92vw); height: auto; }

/* ---------- S1: clinical header ---------- */

.clinical-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--porcelain);
  border-bottom: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 20px;
  transform: translateY(-100%);
  transition: transform 400ms ease-out, box-shadow 300ms ease-out, background-color 300ms ease-out;
}
body.ready .clinical-header { transform: none; }
.clinical-header.scrolled {
  box-shadow: 0 1px 0 var(--paper-line), 0 8px 24px rgba(27, 30, 32, 0.06);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.header-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jade);
  border-radius: 12px;
  color: var(--jade);
  background: transparent;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.menu-toggle {
  border-color: transparent;
  color: var(--ink);
  font-size: 24px;
}

.header-book {
  min-height: 44px;
  padding: 12px 20px;
  font-size: 13px;
}

/* ---------- buttons: two kinds only ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}

.btn-primary { background: var(--jade); color: var(--porcelain); }
.btn-primary:hover { background: var(--jade-deep); }
.btn-secondary { background: transparent; color: var(--jade); border-color: var(--jade); }
.btn-secondary:hover { background: var(--mist); }
.btn-block { width: 100%; }

/* ---------- mobile menu overlay ---------- */

#menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--porcelain);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 0s linear 300ms;
}
#menu-overlay.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.menu-top { display: flex; justify-content: flex-end; }

.menu-close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.menu-links { display: flex; flex-direction: column; margin-top: 16px; }

.menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-line);
}

.menu-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 24px; }

/* ---------- concept pill (pitch build only) ---------- */

.concept-pill {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--porcelain);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
body.buyer .concept-pill { display: none; }

/* ---------- reveal + entrance ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-clinical), transform 600ms var(--ease-clinical);
}
.reveal.in { opacity: 1; transform: none; }

[data-entrance] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-clinical), transform 600ms var(--ease-clinical);
  transition-delay: var(--d, 0ms);
}
body.ready [data-entrance] { opacity: 1; transform: none; }

/* ============================================================
   Sections S2-S15
   ============================================================ */

/* ---------- S2: hero (Act 1 opens, transparent over canvas) ---------- */

section#s2 {
  background: transparent;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 32px);
}

.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero-title {
  font-size: clamp(46px, 13.3vw, 52px);
  max-width: 14ch;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 20px 0 0;
}

.rating-row {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 20px 0;
}
.rating-row .stars { color: var(--gold-deep); letter-spacing: 0.1em; }

.hero-ctas { display: grid; gap: 12px; margin: 24px 0 20px; max-width: 480px; }

.hero-micro { font-size: 14px; color: var(--ink-soft); max-width: 34em; }
.hero-micro p { margin: 8px 0; }
.hero-micro a { color: var(--jade); font-weight: 600; }

/* ---------- S3: scan beat (~160svh, transparent, pointer-events none) ---------- */

section#s3 {
  background: transparent;
  padding: 0;
  min-height: 160vh;
  min-height: 160svh;
  pointer-events: none;
}

#scan-beat {
  position: relative;
  min-height: 160vh;
  min-height: 160svh;
}

.scan-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin: 0;
}
.scan-caption.top { position: absolute; top: 96px; left: 0; right: 0; }
.scan-caption.bottom { position: absolute; bottom: 96px; left: 0; right: 0; }

#scan-counter {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
#scan-counter:empty { visibility: hidden; }

.scan-progress {
  position: sticky;
  top: calc(50vh - 60px);
  left: 20px;
  width: 2px;
  height: 120px;
  background: var(--mist);
  margin-left: 20px;
}
.scan-progress i {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--jade);
}

/* ---------- S4: proof ticker ---------- */

section#s4 {
  background: var(--jade-deep);
  padding: 18px 0;
  overflow: hidden;
}

.proof-ticker, #ticker { overflow: hidden; cursor: pointer; }

.ticker-track, #ticker-items {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.proof-ticker.paused .ticker-track, #ticker.paused #ticker-items { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--porcelain);
  white-space: nowrap;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

/* gold diamond separators render as real .ticker-sep spans in the DOM */
.ticker-sep {
  color: var(--gold);
  font-size: 14px;
  flex: none;
}

.intake-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-left: 8px;
  text-transform: uppercase;
}

@keyframes ticker-scroll { to { transform: translateX(-33.3333%); } }

/* ---------- S5: treatment plans ---------- */

section#s5 { background: var(--porcelain); }

#plan-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan, .plan-card {
  background: var(--porcelain);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 28px 24px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: transform 300ms var(--ease-clinical), outline-color 200ms ease-out;
}

/* the jade .active outline, set by the viewport-center observer */
.plan.active, .plan-card.active { outline-color: var(--jade); }

.plan-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 8px 0 0;
}

.plan-rule { border: 0; border-top: 1px solid var(--mist); margin: 20px 0; }

.plan-desc { font-size: 16px; color: var(--ink-soft); margin: 0; }

.feel { margin-top: 20px; }

.feel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 8px;
}

.feel-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--paper-line);
  margin: 0;
}
.feel-row dt {
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.feel-row dd { margin: 0; color: var(--ink); }

.plan-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
}

.plan-note {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
}

.plan-cta {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jade);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease-out;
}
.plan-cta:hover { border-color: var(--jade); }

/* ---------- protocol rows (S6, S10, S11) ---------- */

.protocol-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}

.protocol-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--jade);
  padding-top: 4px;
}

.protocol-body { font-size: 16px; line-height: 1.6; }
.protocol-body strong { font-weight: 600; }
.protocol-body p { margin: 0 0 8px; }
.protocol-body p:last-child { margin-bottom: 0; }

/* --pulse is for the pain story only: S6 emergency accents and
   Act 3. Never buttons, nav, or badges. */
.pulse-text { color: var(--pulse); font-weight: 600; }

/* ---------- S6: emergency playbook (jade-deep) ---------- */

section#s6 { background: var(--jade-deep); color: var(--porcelain); }
section#s6 .lede { color: var(--porcelain); }
section#s6 .protocol-row { border-color: rgba(250, 249, 245, 0.22); }
section#s6 .protocol-num { color: var(--porcelain); }
section#s6 .protocol-body a { color: var(--porcelain); }

/* ---------- S7: price before the chair ---------- */

section#s7 { background: var(--porcelain); }

.pledge-row {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
  align-content: center;
}

.pledge-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.pledge-desc { font-size: 16px; color: var(--ink-soft); margin: 0; }

.price-picker { margin-top: 32px; }

.price-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

#price-select {
  width: 100%;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--jade);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

#price-result {
  margin-top: 20px;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 24px;
  background: var(--porcelain);
}
#price-result[hidden] { display: none; }

#price-range {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

#price-insurance { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }

#price-monthly {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--paper-line);
}

/* ---------- S8: wall of proof ---------- */

section#s8 { background: var(--porcelain-deep); }

.rating-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.rating-giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
}

.stars { color: var(--gold-deep); letter-spacing: 0.12em; font-size: 18px; }

.rating-count {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.case-card {
  background: var(--porcelain);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.case-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.case-pair img, .case-pair figure { margin: 0; }
.case-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.case-pair figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.case-note { font-size: 16px; margin: 0; }

.practice-reply {
  background: var(--mist);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 15px;
}
.practice-reply .reply-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}

.review-story { padding: 24px 0; border-bottom: 1px solid var(--paper-line); }
.review-story:first-of-type { border-top: 1px solid var(--paper-line); }

.review-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.review-stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.review-body { font-size: 16px; margin: 0 0 12px; max-width: 42em; }

/* ---------- S9: see your smile first (tap-through frames) ---------- */

section#s9 { background: var(--porcelain); }

[data-smile-frames] { position: relative; cursor: pointer; }

[data-smile-frame] { display: none; }
[data-smile-frame].active {
  display: block;
  animation: frame-in 400ms var(--ease-clinical);
}

@keyframes frame-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.frame-step {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
  margin: 0 0 8px;
}

.frame-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.frame-figure { margin: 16px 0; border-radius: 16px; overflow: hidden; }
.frame-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.frame-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin: 12px 0 0;
}

.frame-dots { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }

[data-frame-dot] {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
[data-frame-dot] i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-line);
  display: block;
  transition: background-color 200ms ease-out;
}
[data-frame-dot].active i { background: var(--jade); }

.s9-cta { margin-top: 32px; }

/* ---------- S10: fear-free protocol (mist) ---------- */

section#s10 { background: var(--mist); }

.s10-cta { margin-top: 32px; }

/* ---------- S11: no-judgment dentistry ---------- */

section#s11 { background: var(--porcelain); }

.s11-cta { margin-top: 32px; }

/* ---------- S12: the doctor ---------- */

section#s12 { background: var(--porcelain-deep); }

.doctor-photo { border-radius: 16px; overflow: hidden; margin: 0 0 8px; }
.doctor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.doctor-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.doctor-story { font-size: 17px; max-width: 40em; }
.doctor-story p { margin: 0 0 16px; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--jade);
  margin: 32px 0;
  padding-left: 20px;
  border-left: 3px solid var(--jade);
}

.credentials {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
}

/* ---------- S13: FAQ ---------- */

section#s13 { background: var(--porcelain); }

.faq-list { border-top: 1px solid var(--paper-line); }

.faq-item { border-bottom: 1px solid var(--paper-line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.faq-q .faq-icon {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--jade);
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease-clinical);
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 42em;
}
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- S14: contact billboard (jade-deep) ---------- */

section#s14 { background: var(--jade-deep); color: var(--porcelain); }
section#s14 .lede { color: var(--porcelain); }

.giant-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 10.5vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--porcelain);
  text-decoration: none;
  display: inline-block;
  margin: 8px 0 32px;
  overflow-wrap: anywhere;
}

.visit-paths { display: grid; gap: 12px; max-width: 560px; margin-bottom: 48px; }
.visit-paths .btn-secondary { color: var(--porcelain); border-color: var(--porcelain); }
.visit-paths .btn-secondary:hover { background: rgba(250, 249, 245, 0.12); }

/* consult form: contact-only, thumb-first */
#consult-form { display: grid; gap: 16px; max-width: 560px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--porcelain);
  margin-bottom: 8px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid transparent;
  border-radius: 12px;
}
.field select { font-family: var(--font-mono); font-size: 16px; }

.field.invalid input, .field.invalid select { border-color: var(--gold); }

.field-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  margin-top: 6px;
}
.field.invalid .field-error { display: block; }

/* honeypot: invisible to humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.radio-row { display: flex; gap: 12px; }

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(250, 249, 245, 0.45);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--porcelain);
  cursor: pointer;
}
.radio-pill input { width: 20px; height: 20px; accent-color: var(--jade); margin: 0; flex: none; }

.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  margin: 8px 0 0;
}

.form-micro {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--porcelain);
  opacity: 0.8;
  margin: 4px 0 0;
}
.form-micro a { color: var(--porcelain); }

#form-success, #form-failure {
  display: none;
  max-width: 560px;
  border: 1px solid rgba(250, 249, 245, 0.5);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
#form-success.show, #form-failure.show { display: block; }

.form-status-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.form-status-body { font-size: 16px; margin: 0; }
#form-failure .giant-number { margin: 16px 0; display: block; }

/* ---------- S15: footer (ink) ---------- */

#s15 { background: var(--ink); color: var(--porcelain); }

.footer-brand { margin-bottom: 32px; }
.footer-brand .wordmark { color: var(--porcelain); }

.footer-nav { list-style: none; margin: 0 0 32px; padding: 0; }
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--porcelain);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 249, 245, 0.15);
}

.footer-facts {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  opacity: 0.75;
  margin: 0 0 24px;
  max-width: 40em;
}

.footer-disclosure {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--porcelain);
  opacity: 0.6;
  margin: 0;
  max-width: 44em;
}

/* retired-claim note: honest disclosure when a promised slot is retired */
#retired-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--porcelain);
  border: 1px dashed var(--paper-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 24px 0;
  max-width: 44em;
}
#s15 #retired-note {
  color: var(--porcelain);
  background: transparent;
  border-color: rgba(250, 249, 245, 0.35);
}

/* ---------- sticky booking bar ---------- */

#sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--porcelain);
  border-top: 2px solid var(--jade);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-clinical);
}
#sticky-bar.visible { transform: none; }

.sticky-half {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--stickybar-h);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.sticky-half + .sticky-half { border-left: 1px solid var(--paper-line); }

/* ---------- no-commit variants ---------- */

.only-nobooking { display: none !important; }
body.no-commit .only-nobooking { display: revert; }
body.no-commit .only-booking { display: none !important; }

/* ============================================================
   Desktop enhancement (full tier), 1024px+
   ============================================================ */

@media (min-width: 1024px) {
  section[id] { padding: 120px 40px; }

  body { font-size: 17px; }

  .display-xl { font-size: 88px; }
  .display-l { font-size: 56px; }
  .display-m { font-size: 36px; }
  .lede { font-size: 21px; }

  .clinical-header { padding: 0 24px 0 32px; }
  .clinical-header.scrolled {
    background: rgba(250, 249, 245, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .header-nav {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    text-decoration: none;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 2px;
    width: 100%;
    background: var(--jade);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-clinical);
  }
  .nav-link:hover::after { transform: scaleX(1); }

  .menu-toggle { display: none; }
  .header-actions .icon-btn { display: none; }

  .hero-ctas {
    grid-template-columns: auto auto;
    justify-content: start;
    max-width: none;
  }
  .hero-ctas .btn { min-width: 240px; }
  .btn-block { width: auto; }

  .ticker-item { font-size: 22px; }
  .proof-ticker:hover .ticker-track { animation-play-state: paused; }

  /* plan hover: 4px lift + jade underline draw (desktop only, no hover dependency) */
  .plan:hover { transform: translateY(-4px); }
  .plan:hover .plan-cta { border-color: var(--jade); }

  .giant-number { font-size: 88px; }

  .visit-paths {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    max-width: none;
  }
  .visit-paths .btn { min-width: 220px; }

  #consult-form { max-width: 640px; }

  .pull-quote { font-size: 36px; }

  .faq-q { font-size: 20px; }

  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* ============================================================
   Reduced motion: first-class static path
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  [data-entrance] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .clinical-header { transform: none !important; transition: none; }

  .ticker-track { animation: none !important; }

  [data-smile-frame].active { animation: none; }

  .faq-a { transition: none; }

  #sticky-bar { transition: none; }

  .plan { transition: none; }
}

/* ============================================================
   Capability tiers (set by scan3d.js via body[data-tier])
   ============================================================ */

/* lite tier: same story, no decorative extras to restyle here */
/* On lite the canvas only takes pointer events once Act 1 is live, so the
   mobile drag-orbit and tap-zone interactions from the PRD keep working. */
body[data-tier="lite"] #scan-canvas:not(.canvas-live) { pointer-events: none; }

/* ============================================================
   Overflow guards: no horizontal overflow at 360 / 390 / 414px
   ============================================================ */

html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

section[id], .section-inner, .hero-inner {
  min-width: 0;
  overflow-wrap: break-word;
}

.ticker-track, .proof-ticker { max-width: 100vw; }

/* ============================================================
   Sibling-DOM compatibility layer
   The HTML worker's real class names, mapped onto this design
   system. These selectors describe index.html as shipped; the
   earlier generic rules (.plan, .protocol-row, etc.) remain as
   aliases so both nomenclatures render identically.
   ============================================================ */

/* ---------- base type for bare section headings ---------- */

section[id] h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

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

.btn-lg { min-height: 56px; padding: 18px 32px; }
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 13px; }

/* ---------- S1: the header is section#s1 > header.site-header ----------
   section#s1 itself is the sticky element (a sticky header cannot
   stick outside a 64px-tall parent section). */

section#s1 {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: var(--porcelain);
  border-bottom: 1px solid var(--paper-line);
  transform: translateY(-100%);
  transition: transform 400ms ease-out, box-shadow 300ms ease-out, background-color 300ms ease-out;
}
body.ready section#s1 { transform: none; }
section#s1.scrolled {
  box-shadow: 0 1px 0 var(--paper-line), 0 8px 24px rgba(27, 30, 32, 0.06);
}

.site-header { background: transparent; }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 20px;
}

.header-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
}

.sub-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}

.site-header .header-nav { display: none; }

.burger {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  flex: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

#menu-overlay[hidden] { display: none; }

#menu-close {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

#menu-overlay nav { display: flex; flex-direction: column; margin-top: 16px; }

#menu-overlay nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-line);
}

/* ---------- concept pill: the shipped element uses an id ---------- */

#concept-pill {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--porcelain);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
body.buyer #concept-pill { display: none; }

/* ---------- S2 hero: bare h1, .microcopy, entrance on children ---------- */

#s2 h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 13.3vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
  max-width: 14ch;
}

.microcopy { font-size: 14px; color: var(--ink-soft); max-width: 34em; margin: 8px 0; }
.microcopy a { color: var(--jade); font-weight: 600; }

#s2 .hero-inner > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-clinical), transform 600ms var(--ease-clinical);
}
body.ready #s2 .hero-inner > * { opacity: 1; transform: none; }
body.ready #s2 .hero-inner > :nth-child(1) { transition-delay: 0ms; }
body.ready #s2 .hero-inner > :nth-child(2) { transition-delay: 80ms; }
body.ready #s2 .hero-inner > :nth-child(3) { transition-delay: 160ms; }
body.ready #s2 .hero-inner > :nth-child(4) { transition-delay: 240ms; }
body.ready #s2 .hero-inner > :nth-child(5) { transition-delay: 320ms; }
body.ready #s2 .hero-inner > :nth-child(6) { transition-delay: 400ms; }

/* ---------- S3 beat captions ---------- */

.beat-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin: 0;
}
.beat-caption-top {
  position: sticky;
  top: calc(var(--header-h) + 56px); /* clears the fixed concept pill */
  padding-top: calc(var(--header-h) + 56px);
  margin-top: calc(-1 * (var(--header-h) + 56px));
}
.beat-caption-bottom {
  position: sticky;
  top: calc(100svh - 190px);
  margin-top: 130svh;
  padding-bottom: 40px;
}
#scan-counter[hidden] { display: none; }

/* ---------- S5: feels-like block ---------- */

.feels-like { margin-top: 20px; }

.feels-head {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 8px;
}

.feels-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--paper-line);
}
.feels-k {
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.feels-v { color: var(--ink); }

/* ---------- protocol rows: .row-num / .row-title / .row-body ----------
   S6 uses li.playbook-row; S10/S11 use li.protocol-row. */

.playbook-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
  list-style: none;
}

.row-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--jade);
  padding-top: 4px;
}

.row-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.row-body { font-size: 16px; line-height: 1.6; margin: 0; }
.row-body + .row-body { margin-top: 8px; }

section#s6 .playbook-row { border-color: rgba(250, 249, 245, 0.22); }
section#s6 .row-num { color: var(--porcelain); }
section#s6 .row-title { color: var(--porcelain); }
section#s6 .row-body { color: var(--porcelain); }
section#s6 .row-body a { color: var(--porcelain); }

/* ---------- S7: price tool ---------- */

#price-tool label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.price-range {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.price-logic { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }
.price-logic:last-child { margin-bottom: 0; }

.pledge-body { font-size: 16px; color: var(--ink-soft); margin: 0; }

.logic-steps { list-style: none; margin: 24px 0 0; padding: 0; }
.logic-steps li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}
.logic-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--jade);
  padding-top: 4px;
}
.logic-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.logic-body { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ink-soft); }

/* ---------- S8: proof classes as rendered ---------- */

.rating-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
}
.rating-stars { color: var(--gold-deep); letter-spacing: 0.12em; font-size: 18px; margin: 8px 0; }
.rating-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}

.case-reply {
  background: var(--mist);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0 0;
  font-size: 15px;
}

.review-text { font-size: 16px; margin: 0 0 12px; max-width: 42em; }
.review-src {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.review-reply {
  background: var(--mist);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 0;
  font-size: 15px;
}

.illustrative-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--paper-line);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 16px 0 0;
}

.proof-empty { font-size: 16px; color: var(--ink-soft); }

/* ---------- S9: smile frames ---------- */

.smile-frames { display: grid; gap: 16px; margin-top: 8px; }

button.smile-frame {
  width: 100%;
  text-align: left;
  background: var(--porcelain);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 200ms ease-out;
}
button.smile-frame.is-current { outline-color: var(--jade); }

.frame-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--jade);
  margin-bottom: 8px;
}
.frame-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.frame-body { display: block; font-size: 16px; color: var(--ink-soft); }

.section-cta { margin-top: 32px; }

/* shared numbered steps: S9 no-scanner variant + S11 lapsed steps */
.consult-steps, #lapsed-steps { list-style: none; margin: 24px 0 0; padding: 0; }
.consult-steps li, #lapsed-steps li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--jade);
  padding-top: 4px;
}
.step-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.step-body { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ink-soft); }

/* ---------- S10 CTA line ---------- */

.protocol-cta { margin-top: 32px; font-size: 16px; }
.protocol-cta a { color: var(--jade); font-weight: 600; }

/* ---------- S12 doctor bits ---------- */

.photo-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 8px 0 24px;
}
#s12 img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.doctor-facts {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
}

/* ---------- S13 FAQ plus icon (no icon span in the DOM) ---------- */

.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--jade);
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease-clinical);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a[hidden] { display: none; }

/* ---------- S14 billboard bits ---------- */

#giant-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 10.5vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--porcelain);
  text-decoration: none;
  display: inline-block;
  margin: 8px 0 32px;
  overflow-wrap: anywhere;
}

.billboard-paths { display: grid; gap: 12px; max-width: 560px; margin-bottom: 48px; }
.billboard-paths .btn-secondary { color: var(--porcelain); border-color: var(--porcelain); }
.billboard-paths .btn-secondary:hover { background: rgba(250, 249, 245, 0.12); }

.form-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--porcelain);
  margin-bottom: 8px;
  padding: 0;
}
label.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--porcelain);
  cursor: pointer;
  padding: 8px 0;
}
label.radio input { width: 20px; height: 20px; accent-color: var(--jade); margin: 0; flex: none; }

/* honeypot: invisible to humans, present for bots */
.honeypot {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--porcelain);
  opacity: 0.8;
  margin: 12px 0 0;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 16px 0 0;
  min-height: 24px;
}

/* failure state: the phone number, big */
.big-fail-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 10.5vw, 52px);
  line-height: 1.1;
  color: var(--porcelain);
  text-decoration: none;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

/* ---------- S15 footer bits ---------- */

#s15 footer nav { margin: 0 0 32px; }
#s15 footer nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--porcelain);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 249, 245, 0.15);
}

.practice-facts { margin: 0 0 24px; }
.practice-facts p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  opacity: 0.75;
  margin: 0 0 6px;
}
.practice-facts a { color: var(--porcelain); }

.concept-pill-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--porcelain);
  opacity: 0.7;
  margin: 0 0 16px;
}

.disclosure {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--porcelain);
  opacity: 0.6;
  margin: 0;
  max-width: 44em;
}

/* ---------- sticky bar: real DOM uses bare anchors + hidden attr ---------- */

#sticky-bar[hidden] { display: none; }

#sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--stickybar-h);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
#sticky-bar a + a { border-left: 1px solid var(--paper-line); }

/* ---------- reveal stagger ---------- */

.reveal { transition-delay: var(--rd, 0ms); }

/* ---------- desktop: sibling-DOM additions ---------- */

@media (min-width: 1024px) {
  section[id] h2 { font-size: 56px; }

  .site-header .header-nav {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header-inner { position: relative; }
  .site-header .header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    text-decoration: none;
  }
  .site-header .header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 2px;
    width: 100%;
    background: var(--jade);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-clinical);
  }
  .site-header .header-nav a:hover::after { transform: scaleX(1); }

  .burger { display: none; }
  .header-actions .icon-btn { display: none; }

  #s2 h1 { font-size: 88px; }
  #giant-number, .big-fail-phone { font-size: 88px; }

  .billboard-paths {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    max-width: none;
  }
  .billboard-paths .btn { min-width: 220px; }

  .plan-card:hover { transform: translateY(-4px); }
  .plan-card:hover .plan-cta { border-color: var(--jade); }

  #ticker-items { font-size: 22px; }
  #ticker:hover #ticker-items { animation-play-state: paused; }

  #s15 footer .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* ---------- reduced motion: sibling-DOM additions ---------- */

@media (prefers-reduced-motion: reduce) {
  #s2 .hero-inner > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  section#s1 { transform: none !important; transition: none; }
  #ticker-items { animation: none !important; }
  .faq-q::after { transition: none; }
}


/* ---- inline SVG fallback sequences (from fallback-svg.html) ---- */
.ow-fb-note{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:13px;
    line-height:1.6;color:#3D434A;background:#F5EFE3;border:1px solid #D8D1C1;
    border-radius:10px;padding:10px 14px;margin:0 0 12px;max-width:560px}
  .ow-fb-note code{background:#EDE7D6;border-radius:4px;padding:1px 6px}
