/* ==========================================================================
   Dr. Nakata's Holistic Learning Course — "The Comeback Drive"
   Night → Dawn two-state theme. Tokens flip on body[data-theme].
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Brand: Achieve Education extended palette — purples #8762DF/#8E44AD,
   tangerine #E67E22, teal #16A085, warm creams #FDF8EC/#F5EFE0 */
:root {
  --orange: #E67E22;
  --orange-deep: #CF6A14;
  --amber: #FFB020;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1120px;
  --radius: 14px;
}

body[data-theme="night"] {
  --bg: #14101F;
  --bg-alt: #1C1630;
  --card: #241D3D99;
  --ink: #F0EDF7;
  --ink-soft: #A99FD4;
  --teal: #2BB3A5;
  --purple: #BFA9DF;
  --line: #2E2650;
  --success: #3ECF8E;
  --cta-ink: #1C1B1B;
  --orange-text: #FF9E57; /* orange tuned for AA as TEXT on this bg */
}

body[data-theme="dawn"] {
  --bg: #FDF8EC;
  --bg-alt: #F5EFE0;
  --card: #FFFFFFCC;
  --ink: #1C1B1B;
  --ink-soft: #595959;
  --teal: #0F7C6A;
  --purple: #8E44AD;
  --line: #E8E2D1;
  --success: #1E9E6A;
  --cta-ink: #1C1B1B;
  --orange-text: #B4510E; /* orange tuned for AA as TEXT on cream */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Theme flip crossfade — low-specificity so it never fights components */
body.theme-animating, body.theme-animating :where(*) {
  transition: background-color .8s ease, color .8s ease, border-color .8s ease, fill .8s ease, stroke .8s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #1C1B1B; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.center { text-align: center; margin-top: 40px; }

section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: .6em;
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: .35em; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.1em;
}
.eyebrow--dim { color: var(--amber); opacity: .75; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.finePrint { font-size: .8rem; color: var(--ink-soft); opacity: .85; margin-top: 14px; }
em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 16px 34px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn--primary {
  background: var(--orange);
  color: #1C1B1B;
  box-shadow: 0 6px 24px -6px color-mix(in srgb, var(--orange) 55%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--orange) 70%, transparent); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--teal) 12%, transparent); }
.btn--ghostlight { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--ghostlight:hover { background: color-mix(in srgb, var(--orange) 14%, transparent); }
.btn--sm { padding: 10px 22px; font-size: .9rem; }
.btn--xl { padding: 20px 46px; font-size: 1.15rem; }
.link-quiet { color: var(--ink-soft); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: var(--ink); }
.link-arrow { font-family: var(--font-display); font-weight: 600; color: var(--orange-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Road line (desktop) ---------- */
.roadline {
  position: fixed; inset: 0 auto 0 clamp(12px, 1.8vw, 30px); width: 16px; z-index: 40;
  display: none; pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
.roadline.is-active { opacity: 1; }
@media (min-width: 1200px) { .roadline { display: block; } }
.roadline__track {
  position: absolute; top: 10vh; bottom: 10vh; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--line) 85%, transparent) 6%, color-mix(in srgb, var(--line) 85%, transparent) 94%, transparent);
  border-radius: 1px;
}
.roadline__dashes {
  position: absolute; inset: 4% 0; width: 1px; left: .5px;
  background-image: linear-gradient(var(--ink-soft) 45%, transparent 45%);
  background-size: 1px 12px; opacity: .22;
}
.roadline__light {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--line) 80%, var(--ink-soft));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.roadline__light[data-light="1"] { top: 18%; }
.roadline__light[data-light="2"] { top: 26%; }
.roadline__light[data-light="3"] { top: 34%; }
.roadline__light.is-on {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in srgb, var(--amber) 50%, var(--line)), 0 0 10px 2px color-mix(in srgb, var(--amber) 55%, transparent);
}
.roadline__light.is-off {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in srgb, var(--success) 40%, var(--line)), 0 0 7px 1px color-mix(in srgb, var(--success) 40%, transparent);
}
.roadline__car {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--orange) 45%, transparent));
}
.roadline__car svg { width: 13px; height: 21px; }

/* ---------- Sticky header ---------- */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 3vw, 40px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .35s ease;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__brand { display: flex; align-items: center; }
.stickybar__logo { height: 38px; width: auto; }
.stickybar__price { font-size: .85rem; color: var(--ink-soft); margin-left: auto; }

/* ---------- 1. HERO ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: clamp(96px, 12vh, 140px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__eyebrow { color: var(--amber); }
.hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: .45em;
}
.hero__h1 em { color: var(--orange); font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.6em; }
.hero__ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 2em; }
.hero__cred { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; max-width: 56ch; }
.hero__art { position: relative; }
.hero__img {
  width: 100%; height: auto; border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), 0 0 0 8px color-mix(in srgb, var(--purple) 8%, transparent);
}
.hero__hazard {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 8, 18, .72); backdrop-filter: blur(4px);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; color: var(--amber);
}
.hazard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: hazardBlink 1.6s ease-in-out infinite; }
@keyframes hazardBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hero__roadglow {
  position: absolute; inset: auto 0 0 0; height: 26vh; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--purple) 16%, transparent), transparent 70%);
}

/* ---------- 2. PROBLEM ---------- */
.warncards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 44px; }
.warncard {
  flex: 0 1 310px;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; color: var(--ink);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.warncard:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .5); }
.warncard__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--amber) 5%, transparent);
  border: 1px solid var(--line);
  transition: color .35s ease, filter .35s ease, background-color .35s ease, border-color .35s ease;
}
.warncard__icon svg { width: 26px; height: 26px; }
.warncard__label { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--ink-soft); }
.warncard__text { color: var(--ink-soft); font-size: .98rem; }
.warncard.is-lit { border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.warncard.is-lit .warncard__icon {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--amber) 50%, transparent));
}
.warncard.is-lit .warncard__label { color: var(--amber); }
.problem__closer {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3;
  margin-top: 64px; max-width: 24ch;
}
.problem__closer em { color: var(--amber); }
.problem__pivot { margin-top: 20px; font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.problem__pivot strong { color: var(--ink); }

/* ---------- 3. STORY ---------- */
.story { padding-block: 0; }
.story__pinwrap { min-height: 100svh; display: flex; align-items: center; overflow: hidden; position: relative; }
.story__stage { position: relative; padding-block: 96px; z-index: 2; }
.story__iwasyou { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--ink-soft); margin-bottom: .8em; }
.story__h2 { max-width: 22ch; }
.failstamp-wrap { position: relative; white-space: nowrap; }
.failstamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.6);
  font-family: var(--font-display); font-weight: 800; letter-spacing: .1em;
  color: #FF5A4E; border: 3px solid #FF5A4E; border-radius: 6px;
  padding: 1px 10px; font-size: .55em; opacity: 0; pointer-events: none;
}
.firehose { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.fh-word {
  position: absolute; left: 110%; top: 50%;
  font-family: var(--font-display); font-weight: 600;
  color: color-mix(in srgb, var(--teal) 60%, var(--ink-soft));
  opacity: 0; white-space: nowrap;
}
.story__quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.25;
  margin-block: 1.2em .6em; max-width: 20ch;
}
.story__quote em { color: var(--teal); font-style: normal; }
.story__feelings { color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.story__refused {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.4;
  margin-top: 1.6em; font-family: var(--font-display);
}
.story__refused strong { color: var(--orange-text); }
.story__outro { padding-block: clamp(48px, 7vw, 88px); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; display: grid; gap: 14px; }
.story__outro strong { color: var(--ink); }

/* ---------- 4. IGNITION ---------- */
.ignition__stage { max-width: 820px; }
.ignition__lede { margin-bottom: 1em; }
.ignition__keybox { position: relative; width: min(240px, 60vw); margin: clamp(36px, 5vw, 56px) auto; text-align: center; }
.ignition__key { width: 100%; overflow: visible; }
.dial-face { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.ignition__flare {
  position: absolute; left: 50%; top: 44%; width: 12px; height: 12px;
  border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #FFE9B8 0%, var(--orange) 40%, transparent 70%);
  pointer-events: none;
}
.ignition__hint {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 14px;
  transition: opacity .5s ease;
}
.ignition__keybox.is-on .ignition__hint { opacity: 0; }
.ignition__worked { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-family: var(--font-display); margin-bottom: 1.2em; }
.ignition__worked strong { color: var(--orange-text); }
.ignition__handoff { color: var(--ink-soft); }
.ignition__product { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; margin-block: .15em; }
.ignition__meta { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.8em; }
.outcomes { list-style: none; display: grid; gap: 14px; max-width: 60ch; margin-bottom: 2em; }
.outcomes li { position: relative; padding-left: 38px; font-size: 1.08rem; }
.outcomes li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success); font-weight: 700; font-size: .85rem;
}

/* ---------- 5. PILLARS ---------- */
.pillars { padding-block: clamp(72px, 10vw, 128px) 0; background: var(--bg-alt); }
.pillars__head { padding-bottom: 40px; }
.pillars__pinwrap { overflow: hidden; }
.pillars__track { display: flex; }
.pillar { flex: 0 0 100vw; min-height: 72svh; display: grid; place-items: center; padding: 24px clamp(20px, 6vw, 80px); }
.pillar__board {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 52px); max-width: 620px; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35);
}
.pillar__board::after {
  position: absolute; top: -14px; right: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(84px, 10vw, 128px);
  line-height: 1; color: var(--ink); opacity: .05; pointer-events: none;
}
.pillar[data-pillar="1"] .pillar__board::after { content: "01"; }
.pillar[data-pillar="2"] .pillar__board::after { content: "02"; }
.pillar[data-pillar="3"] .pillar__board::after { content: "03"; }
.pillar__kicker { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--orange-text); margin-bottom: 12px; }
.pillar__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4em; }
.pillar__text { color: var(--ink-soft); font-size: 1.05rem; max-width: 48ch; margin-bottom: 28px; }
.pillar__gauge, .pillar__route, .pillar__spark { width: min(300px, 70%); }
.route-dot { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--orange) 60%, transparent)); }

.route-path { stroke-dashoffset: 0; }
.route-dot { offset-path: path("M12 92 C 60 92, 60 30, 110 30 S 168 84, 208 24"); offset-distance: 0%; }
.pillars__closer { padding-block: clamp(40px, 6vw, 72px); font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.pillars__closer strong { color: var(--ink); }
.pillars__driving { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--ink); margin-top: .6em; }

/* Mobile pillars: swipe carousel */
@media (max-width: 899px) {
  .pillars__pinwrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .pillar { flex: 0 0 88vw; scroll-snap-align: center; min-height: unset; padding: 12px 10px 28px; }
}

/* ---------- 6. AI ---------- */
.ai__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.aidemo__head { margin-bottom: 22px; }
.aidemo__head p { color: var(--ink-soft); max-width: 44ch; }
.phone {
  width: min(320px, 100%); margin-inline: auto;
  border: 3px solid var(--line); border-radius: 34px;
  padding: 12px; background: var(--bg-alt);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .4);
}
.phone__screen { position: relative; border-radius: 24px; overflow: hidden; background: var(--bg); min-height: 380px; }
.scan__notes { position: absolute; inset: 14px; }
.scribble { fill: none; stroke: #8A94A6; stroke-width: 2.5; stroke-linecap: round; }
.scan__line {
  position: absolute; left: 0; right: 0; top: -8%; height: 5px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--teal) 65%, transparent);
}
.scan__cards { position: absolute; inset: 14px; display: grid; gap: 10px; align-content: center; }
/* Initial hidden states for the demos live in JS (gsap.set) so the page
   stays fully readable if the CDN is blocked */
.scan__card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: .82rem; line-height: 1.45;
}
.scan__card b { color: var(--orange-text); }
.scan__card span { display: block; color: var(--ink-soft); }
.scan__timer {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: color-mix(in srgb, var(--success) 20%, var(--bg));
  color: var(--success); border-radius: 999px; padding: 5px 14px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.phone__screen--chat { padding: 16px 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; }
.chat__bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px;
  font-size: .84rem; line-height: 1.45;
}
.chat__bubble--ai { background: var(--bg-alt); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__bubble--you { background: color-mix(in srgb, var(--teal) 24%, var(--bg)); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__bubble b { color: var(--orange-text); }
.chat__wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 6px; }
.chat__wave i { width: 3px; background: var(--teal); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.chat__wave i:nth-child(1) { height: 6px; } .chat__wave i:nth-child(2) { height: 11px; animation-delay: .12s; }
.chat__wave i:nth-child(3) { height: 8px; animation-delay: .24s; } .chat__wave i:nth-child(4) { height: 12px; animation-delay: .36s; }
.chat__wave i:nth-child(5) { height: 5px; animation-delay: .48s; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.chat__tick { align-self: center; color: var(--success); font-family: var(--font-display); font-size: .78rem; font-weight: 700; }
.aidemo__replay { background: none; border: none; color: var(--ink-soft); font-size: .82rem; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.aidemo__replay:hover { color: var(--ink); }
.ai__finePrint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: 36px; }

/* ---------- 7. TEN DAYS ---------- */
.tendays { background: var(--bg-alt); }

/* Two dashboard instruments — K. F.'s before→after, in the page's gauge language */
.gauges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px; margin-top: clamp(40px, 6vw, 52px); max-width: 780px; margin-inline: auto;
}
.instr {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px 24px; text-align: center;
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .3);
}
.instr__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.instr__gauge { width: 100%; max-width: 280px; margin: 0 auto 6px; display: block; overflow: visible; }
.instr__cap { font-family: var(--font-display); font-weight: 700; font-size: 9px; fill: var(--ink-soft); text-anchor: middle; }
.instr__cap--good { fill: var(--success); }
.instr__ghost { opacity: .5; }  /* resting state; from-tween rewinds it to 0 on entry */
.instr__readout { display: flex; align-items: baseline; justify-content: center; gap: clamp(.35em, 2vw, .6em); flex-wrap: nowrap; margin-top: 6px; }
.instr__before { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3.4vw, 1.6rem); color: var(--ink-soft); opacity: .6; white-space: nowrap; }
.instr__before i { font-style: normal; font-size: .55em; margin-left: .1em; }
.instr__strike { position: absolute; left: -4%; top: 52%; width: 108%; height: 2px; background: currentColor; transform: scaleX(1); transform-origin: left center; }
.instr__arrow { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--orange-text); line-height: .9; }
.instr__after { font-family: var(--font-display); font-weight: 800; line-height: .9; color: var(--orange-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.instr__num { font-size: clamp(2.8rem, 7.5vw, 3.6rem); }
.instr__after i { font-style: normal; font-size: .34em; font-weight: 700; color: var(--ink-soft); margin-left: .1em; }
.instr__delta { margin-top: 16px; }
.dchip {
  display: inline-block;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success); font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: 6px 15px; border-radius: 999px;
}
@media (max-width: 640px) {
  .gauges { grid-template-columns: 1fr; gap: 18px; }
  .instr__num { font-size: clamp(3rem, 13vw, 3.6rem); }
}
/* K. F.'s story card — the human behind the numbers */
.kfstory {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  max-width: 880px; margin: 48px auto 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .3);
}
.kfstory__imgwrap img { border-radius: 14px; width: 100%; height: auto; }
.kfstory__quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4;
  margin-bottom: 14px;
}
.kfstory__name { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }
.kfstory__fine { text-align: center; max-width: 880px; margin-inline: auto; }
@media (max-width: 700px) {
  .kfstory { grid-template-columns: 1fr; }
  .kfstory__imgwrap { max-width: 340px; margin-inline: auto; }
}

/* ---------- 8. PROOF ---------- */
.proof__inner {
  max-width: 1000px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 14px clamp(28px, 4vw, 56px); align-items: start;
}
.proof__inner > .eyebrow { grid-column: 1 / -1; }
.proof__photo { grid-row: span 4; }
.proof__photo img {
  width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, .35);
}
@media (max-width: 899px) {
  .proof__inner { grid-template-columns: 1fr; }
  .proof__photo { grid-row: auto; max-width: 420px; }
}
.proof__quote p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; letter-spacing: -.01em;
}
.proof__quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.marker { position: relative; white-space: normal; }
/* --mk (0→1) is scrubbed by scroll in JS; defaults to 1 so no-JS shows it drawn */
.marker::after {
  content: ""; position: absolute; inset: 55% -4px 1px;
  background: color-mix(in srgb, var(--orange) 45%, transparent);
  border-radius: 2px;
  z-index: -1; transform: scaleX(var(--mk, 1)); transform-origin: left center;
}
.proof__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: .9rem; color: var(--ink-soft);
}
.chip b { color: var(--ink); font-family: var(--font-display); }
.proof__body { margin-top: 26px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- 9. STACK ---------- */
.stack { background: var(--bg-alt); }
.stack__list { list-style: none; margin-top: 40px; display: grid; gap: 12px; max-width: 780px; }
.stack__row {
  display: grid; grid-template-columns: minmax(200px, .8fr) 1.2fr; gap: 6px 24px; align-items: baseline;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
.stack__row b { font-family: var(--font-display); font-size: 1.02rem; }
.stack__row span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 640px) { .stack__row { grid-template-columns: 1fr; } }
.stack__tease { margin-top: 32px; font-size: 1.1rem; max-width: 54ch; }

/* ---------- 10. OFFER ---------- */
.offer__inner { max-width: 640px; text-align: center; }
.offer .eyebrow, .offer .h2 { text-align: center; }
.offercard {
  background: var(--card); border: 2px solid color-mix(in srgb, var(--orange) 45%, var(--line));
  border-radius: 22px; padding: clamp(28px, 5vw, 48px); margin-top: 32px;
  box-shadow: 0 32px 72px -32px color-mix(in srgb, var(--orange) 30%, transparent);
}
.offercard__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.offercard__sub { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }
.offercard__options { display: grid; gap: 12px; margin-block: 30px; text-align: left; }
.payopt {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.payopt.is-selected, .payopt:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 7%, transparent); }
.payopt input { accent-color: var(--orange); width: 20px; height: 20px; flex: none; }
.payopt__price { display: block; font-size: 1.06rem; }
.payopt__price b { font-family: var(--font-display); font-size: 1.2em; }
.payopt__note { display: block; font-size: .84rem; color: var(--ink-soft); }
.payopt__badge {
  position: absolute; top: -11px; right: 14px;
  background: var(--orange); color: #14232E;
  font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .12em;
  border-radius: 999px; padding: 3px 12px;
}
.offercard__cta { width: 100%; }
.offercard__trust { margin-top: 16px; font-size: .84rem; color: var(--ink-soft); }

/* ---------- 11. GUARANTEE ---------- */
.guarantee { padding-top: 0; }
.guarantee__box {
  max-width: 640px; margin-inline: auto; text-align: center;
  border: 2px solid var(--teal); border-radius: 22px;
  padding: clamp(32px, 5vw, 56px);
  background: var(--card);
}
.guarantee__seal { width: 132px; height: auto; margin: 0 auto 20px; overflow: visible; }
.guarantee__terms { text-align: left; max-width: 46ch; margin: 24px auto 0; display: grid; gap: 10px; padding-left: 22px; }
.guarantee__terms li { padding-left: 6px; }
.guarantee__why { margin-top: 28px; font-style: italic; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.guarantee__why strong { color: var(--ink); font-style: normal; }
.guarantee__sig { font-family: var(--font-display); font-weight: 700; margin-top: 10px; }

/* ---------- 12. NOT FOR ---------- */
.notfor { background: #0D0918; color: #F0EDF7; }
body[data-theme="dawn"] .notfor { --ink: #F0EDF7; --ink-soft: #A99FD4; --line: #2E2650; --card: #241D3D99; --purple: #BFA9DF; }
.notfor__inner { max-width: 820px; }
.notfor__h2 { color: #F0EDF7; }
.notfor__hint { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #6E6392; margin-bottom: 28px; }
@media (hover: none), (max-width: 899px) { .notfor__hint { display: none; } }
.notfor__reveal { position: relative; border-radius: var(--radius); }
.notfor__list { list-style: none; display: grid; gap: 22px; font-size: 1.08rem; line-height: 1.65; color: #CFC7E4; }
.notfor__list b { color: #FFFFFF; font-family: var(--font-display); }
/* dim by default; beam reveals via mask on the shade overlay */
.notfor__beam {
  position: absolute; inset: -20px; pointer-events: none; border-radius: inherit;
  background: #0D0918;
  /* readable-by-default dim (AA); the deep-dim drama is reserved for
     devices with a cursor that can actually chase the beam */
  opacity: .35;
  -webkit-mask-image: radial-gradient(circle 190px at var(--mx, 50%) var(--my, -40%), transparent 0 55%, #000 100%);
  mask-image: radial-gradient(circle 190px at var(--mx, 50%) var(--my, -40%), transparent 0 55%, #000 100%);
}
@media (hover: hover) and (pointer: fine) { .notfor__beam { opacity: .72; } }
.notfor__reveal.is-revealed .notfor__beam { opacity: 0; transition: opacity .5s ease; }
.notfor__closer { margin-top: 44px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: #fff; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trafficlight { display: inline-flex; gap: 5px; background: #0E1822; border-radius: 999px; padding: 5px 9px; }
.tl { width: 12px; height: 12px; border-radius: 50%; background: #223442; }
.tl--red.is-on { background: #FF5A4E; box-shadow: 0 0 8px #FF5A4E88; }
.tl--yellow.is-on { background: var(--amber); box-shadow: 0 0 8px #FFB02088; }
.tl--green.is-on { background: var(--success); box-shadow: 0 0 8px #3ECF8E88; }

/* ---------- 13. COACHING ---------- */
.coaching { background: var(--bg-alt); }
.coaching__inner { max-width: 760px; }
.coaching__photo { margin-block: 8px 28px; }
.coaching__photo img {
  width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, .3);
}
.coaching__lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.coaching__lede strong { color: var(--ink); }
.coaching__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.coaching__list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.coaching__list li::before { content: "→"; position: absolute; left: 0; color: var(--orange-text); font-weight: 700; }
.coaching__guarantee { margin-top: 28px; font-size: 1.08rem; max-width: 54ch; }
.coaching__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.coaching__handback { margin-top: 30px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- 14. FAQ ---------- */
.faq__inner { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  padding: 20px 44px 20px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--orange); transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- 14b. LEAD CAPTURE ---------- */
.leadcap { background: var(--bg-alt); }
.leadcap__inner { max-width: 640px; text-align: center; }
.leadcap__inner .lede { margin-inline: auto; }
.leadcap__form { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.leadcap__email {
  flex: 1 1 260px; min-width: 0;
  font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 14px 22px;
}
.leadcap__email:focus { outline: none; border-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.leadcap__msg { margin-top: 16px; font-weight: 600; min-height: 1.5em; }
.leadcap__msg.is-ok { color: var(--success); }
.leadcap__msg.is-err { color: #C93A3A; }
.leadcap__msg a { color: inherit; }
.leadcap__alt { margin-top: 26px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Dr. Nakata portrait (ignition) ---------- */
.ignition__portrait { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.ignition__portrait img {
  width: 96px; height: auto; border-radius: 50%;
  aspect-ratio: 1; object-fit: cover; object-position: top;
  border: 3px solid var(--orange);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .4);
}
.ignition__portrait figcaption { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- 15. CLOSE ---------- */
.close { padding: 0; overflow: hidden; }
.close__vista { position: relative; max-height: 64vh; overflow: hidden; }
.close__img { width: 100%; height: auto; display: block; }
.close__vista::after {
  content: ""; position: absolute; inset: 60% 0 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.close__copy { text-align: center; padding-block: clamp(56px, 8vw, 96px); max-width: 720px; }
.close__promise { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink-soft); margin-bottom: 2em; }
.close__promise strong { color: var(--ink); }
.close__recap { display: grid; gap: 12px; justify-items: center; }
.close__pricing { font-size: .95rem; color: var(--ink-soft); }
.close__guarantee { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--teal); }
.close__ps { margin-top: 48px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-size: .98rem; color: var(--ink-soft); }
.close__ps strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px 120px; }
.footer__inner { display: grid; gap: 10px; text-align: center; }
.footer__logo { width: 120px; height: auto; margin-inline: auto; }

/* ---------- Mobile buy bar ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.buybar.is-visible { transform: translateY(0); }
.buybar__cta { flex: 1; padding: 13px 18px; font-size: 1rem; }
.buybar__g { font-size: .82rem; color: var(--ink-soft); }
@media (min-width: 900px) { .buybar { display: none; } }

/* ---------- Enroll modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 8, 18, .62); backdrop-filter: blur(3px); animation: modalFade .25s ease; }
.modal__dialog {
  position: relative; z-index: 1; width: min(440px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  animation: modalPop .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: none; background: transparent; color: var(--ink-soft);
  font-size: 1.7rem; line-height: 1; border-radius: 50%;
}
.modal__close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.modal__eyebrow { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.modal__eyebrow span { color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 6px 0 4px; }
.modal__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.modal__tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.modal__tab { flex: 1; border: none; background: transparent; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: .9rem; padding: 9px; border-radius: 999px; }
.modal__tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.modal__form { display: grid; gap: 12px; }
.modal__input {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px;
}
.modal__input:focus { outline: none; border-color: var(--purple); }
.modal__submit { width: 100%; margin-top: 4px; }
.modal__msg { min-height: 1.2em; font-size: .88rem; color: #C93A3A; font-weight: 600; margin: 2px 0; }
.modal__fine { margin-top: 16px; font-size: .8rem; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.modal__link { background: none; border: none; color: var(--teal); text-decoration: underline; text-underline-offset: 2px; font: inherit; font-size: inherit; padding: 0; }
.modal__plans { display: grid; gap: 12px; margin-bottom: 6px; }
.modal__plan { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.modal__plan.is-selected { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 7%, transparent); }
.modal__plan input { accent-color: var(--orange); width: 20px; height: 20px; flex: none; }
.modal__plan b { font-family: var(--font-display); display: block; }
.modal__plan small { color: var(--ink-soft); font-size: .84rem; }

/* ---------- Sections that stay dark before the flip ---------- */
.section--dark { background: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; margin-inline: auto; }
  .stickybar__price { display: none; }
  .stickybar .btn--sm { padding: 8px 16px; font-size: .82rem; white-space: nowrap; }
  .beforeafter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 72px; }
  .hero__ctas .btn { width: 100%; }
  .warncard { flex-basis: 100%; }
}

/* ---------- Reveal helpers (JS adds .is-inview) ---------- */
.reveal { opacity: 0; transform: translateY(36px); }
.no-js .reveal, .reveal.is-inview { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .notfor__beam { display: none; }
  .fh-word { display: none; }
  .failstamp { opacity: 1; }
  .scan__cards .scan__card, .chat__bubble, .chat__tick, .scan__timer { opacity: 1; transform: none; }
  .marker::after { transform: scaleX(1); }
  .gauge-fill { stroke-dashoffset: 8 !important; }
}
