/* SET A — base cinematic styles.
   Layered render:
     - bg / mid stills,
     - fx overlay,
     - captions,
   with persistent chrome over them. */

:root {
  --ink:        #f5f8fb;
  --ink-mute:   rgba(245, 248, 251, 0.72);
  --ink-soft:   rgba(245, 248, 251, 0.5);
  --bg-deep:    #0b1118;
  --bg-shell:   rgba(11, 17, 24, 0.72);
  --accent:     #56e0ff;
  --accent-warm:#ffd99b;
  --shell-blur: blur(14px) saturate(140%);
  --shell-stroke: 1px solid rgba(255, 255, 255, 0.06);
  --shell-radius: 22px;
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.6);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --cinema-easing: cubic-bezier(0.65, 0.05, 0.36, 1);
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(16px, 3vw, 32px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body.set-a {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Cinema is fullscreen while it plays; page can scroll after the cinematic
     unlocks the body. The cinematic stage is fixed full-viewport. */
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link {
  position: fixed; left: -10000px; top: -10000px;
  width: 1px; height: 1px;
  background: var(--accent); color: var(--bg-deep); padding: 8px 12px;
  z-index: 9999; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; }

/* --------------------------------------------------------------- */
/* Stage                                                           */
/* --------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}
/* Cinematic finishes → JS adds .cinema-complete to <body> which lifts the
   stage out of the way so the page can scroll through the post-cinema
   sections. The cinematic stays visible until that toggle happens. */
body.cinema-complete .stage {
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 900px;
}
body.cinema-complete { overflow-y: auto; }

.stage__layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stage__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 800ms var(--cinema-easing), transform 8s linear;
  opacity: 0;
  will-change: opacity, transform;
}
.stage__layer.is-active { opacity: 1; }
.stage__layer--bg { z-index: 1; }
.stage__layer--mid { z-index: 2; }
.stage__layer--fx { z-index: 3; pointer-events: none; }

/* --------------------------------------------------------------- */
/* Chromes                                                         */
/* --------------------------------------------------------------- */

.chrome {
  position: fixed;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chrome--top {
  top: 0; left: 0; right: 0;
  padding: var(--pad-y) var(--pad-x);
  justify-content: space-between;
  pointer-events: none;
}
.chrome--top > * { pointer-events: auto; }

.chrome__brand .brand { height: 22px; }
.brand__my { fill: var(--ink); font: 700 16px/1 var(--font-sans); }
.brand__ai { fill: var(--accent); font: 700 16px/1 var(--font-sans); }

.chrome__cta-skip { display: flex; gap: 8px; }

.chrome--voice {
  bottom: max(20px, env(safe-area-inset-bottom));
  right: var(--pad-x);
  background: var(--bg-shell);
  backdrop-filter: var(--shell-blur);
  -webkit-backdrop-filter: var(--shell-blur);
  border: var(--shell-stroke);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-deep);
}

.voice-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  transition: background 200ms var(--easing), color 200ms var(--easing);
  white-space: nowrap;
}
.voice-pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}
.voice-pill--inline { background: rgba(255,255,255,0.04); }
.voice-pill--inline[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.ghost-btn,
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: var(--shell-stroke);
  background: var(--bg-shell);
  backdrop-filter: var(--shell-blur);
  -webkit-backdrop-filter: var(--shell-blur);
  color: var(--ink);
  text-decoration: none;
  transition: background 200ms var(--easing), color 200ms var(--easing), border-color 200ms var(--easing);
}
.ghost-btn:hover,
.ghost-btn:focus-visible {
  border-color: rgba(86, 224, 255, 0.55);
  outline: none;
}
.primary-btn {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 22px;
}
.primary-btn:hover,
.primary-btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

/* --------------------------------------------------------------- */
/* Captions                                                        */
/* --------------------------------------------------------------- */

.stage__layer--captions {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--pad-x) 8vh;
  z-index: 4;
  opacity: 0;
  transition: opacity 360ms var(--easing);
}
.stage__layer--captions.is-active { opacity: 1; }
.stage__layer--captions .caption {
  display: inline-block;
  max-width: 880px;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  padding: 14px 18px;
  border-radius: 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.65);
}

/* --------------------------------------------------------------- */
/* Start prompt                                                    */
/* --------------------------------------------------------------- */

.start-prompt {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(11,17,24,0.96), rgba(11,17,24,0.86));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  transition: opacity 600ms var(--easing), visibility 600ms var(--easing);
}
.start-prompt.is-hidden {
  opacity: 0; pointer-events: none; visibility: hidden;
}
.start-prompt__inner {
  text-align: center;
  max-width: 540px;
  padding: 32px;
}
.start-prompt h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.start-prompt p {
  color: var(--ink-mute);
  margin: 0 0 22px;
}
.start-prompt__voice {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.start-prompt__voice-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------- */
/* CTA                                                             */
/* --------------------------------------------------------------- */

.cta {
  position: fixed; inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(11,17,24,0.0), rgba(11,17,24,0.78) 70%),
    linear-gradient(180deg, rgba(11,17,24,0.5), rgba(11,17,24,0.96));
  transition: opacity 800ms var(--easing), visibility 800ms var(--easing);
}
.cta.is-hidden {
  opacity: 0; pointer-events: none; visibility: hidden;
}
.cta__inner {
  text-align: center;
  max-width: 720px;
  padding: 24px;
}
.cta__title {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(180deg, var(--ink) 0%, #cdd6e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__copy {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-mute);
  margin: 0 0 28px;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cta__small {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.hidden { display: none !important; }

/* --------------------------------------------------------------- */
/* Accessibility                                                   */
/* --------------------------------------------------------------- */

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

button:focus-visible,
a:focus-visible,
.voice-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced motion — collapse transforms, keep only opacity. */
body[data-reduced-motion="true"] .stage__layer {
  transition: opacity 600ms var(--easing) !important;
  transform: none !important;
}
body[data-reduced-motion="true"] .cta,
body[data-reduced-motion="true"] .start-prompt {
  transition: opacity 200ms linear !important;
}

/* Mobile-specific framing. */
@media (max-width: 720px) {
  :root { --pad-x: 16px; --pad-y: 14px; }
  .chrome--voice { right: 16px; }
  .start-prompt__inner { padding: 18px; }
  .stage__layer--captions { padding-bottom: 14vh; }
}

/* Reduced-data and coarse pointer — strip Ken Burns. */
@media (prefers-reduced-data: reduce) {
  .stage__layer { transition: opacity 400ms linear !important; transform: none !important; }
}

/* No-script fallback banner. */
.noscript-banner {
  position: fixed; inset: auto 0 0 0;
  background: var(--bg-shell); color: var(--ink);
  padding: 18px; text-align: center;
}

/* --------------------------------------------------------------- */
/* Page sections (post-cinema)                                     */
/* --------------------------------------------------------------- */

.page-section {
  position: relative;
  padding: clamp(60px, 9vw, 120px) var(--pad-x);
  background: linear-gradient(180deg, rgba(11,17,24,0) 0%, rgba(11,17,24,1) 18%, rgba(11,17,24,1) 82%, rgba(11,17,24,0) 100%);
  color: var(--ink);
}
.page-section + .page-section { margin-top: -1px; }
.page-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.page-section__inner--legal { max-width: 760px; }
.page-section__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-section__eyebrow[data-tag="NOW"]      { color: var(--accent); }
.page-section__eyebrow[data-tag="NEXT"]     { color: #ffd99b; }
.page-section__eyebrow[data-tag="VISION"]   { color: #cba6ff; }
.page-section__eyebrow[data-tag="COMING"]   { color: #cba6ff; }
.page-section__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 760px;
}
.page-section__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-mute);
  max-width: 760px;
  margin: 0 0 32px;
}

/* Truth grid (NOW / NEXT / VISION) */
.truth-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.truth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: var(--shell-stroke);
  border-radius: var(--shell-radius);
  padding: 26px;
  backdrop-filter: var(--shell-blur);
  -webkit-backdrop-filter: var(--shell-blur);
}
.truth-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border-radius: 999px;
  margin-bottom: 14px;
}
.truth-card--now    .truth-card__tag { background: var(--accent); color: var(--bg-deep); font-weight: 700; }
.truth-card--next   .truth-card__tag { background: #ffd99b; color: var(--bg-deep); font-weight: 700; }
.truth-card--vision .truth-card__tag { background: #cba6ff; color: var(--bg-deep); font-weight: 700; }
.truth-card h3 { margin: 0 0 14px; font-size: 18px; }
.truth-card ul { margin: 0; padding-left: 18px; color: var(--ink-mute); line-height: 1.7; }

/* Brain timeline */
.brain-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: brain-step;
}
.brain-step {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: var(--shell-stroke);
  border-radius: var(--shell-radius);
  padding: 26px;
  position: relative;
  counter-increment: brain-step;
}
.brain-step::before {
  content: counter(brain-step, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: 800;
  color: rgba(86, 224, 255, 0.18);
  letter-spacing: -0.02em;
}
.brain-step__day {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
}
.brain-step h3 { margin: 0 0 10px; font-size: 18px; }
.brain-step p { margin: 0; color: var(--ink-mute); line-height: 1.6; }

/* Offer card */
.offer-card {
  background: linear-gradient(180deg, rgba(86,224,255,0.10), rgba(86,224,255,0.03));
  border: 1px solid rgba(86,224,255,0.35);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.offer-card__price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-feature-settings: "tnum" 1;
}
.offer-card__currency { font-size: 28px; font-weight: 600; color: var(--ink); }
.offer-card__amount { font-size: clamp(72px, 12vw, 120px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.offer-card__period { font-size: 18px; color: var(--ink-mute); }
.offer-card__terms {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  max-width: 560px;
  width: 100%;
}
.offer-card__terms li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.offer-card__terms li:last-child { border-bottom: 0; }
.offer-card__fineprint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* Modules grid */
.modules-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.module-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: var(--shell-stroke);
  border-radius: var(--shell-radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(203,166,255,0.06) 80%, transparent 100%);
  pointer-events: none;
}
.module-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  background: rgba(203,166,255,0.18);
  color: #cba6ff;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 700;
}
.module-card h3 { margin: 0 0 8px; font-size: 17px; }
.module-card p { margin: 0; color: var(--ink-mute); line-height: 1.55; font-size: 14px; }

/* Pre-checkout form */
.checkout-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row__input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms var(--easing), background 200ms var(--easing);
}
.form-row__input:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.form-terms {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.form-terms legend { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.form-checkbox input { margin-top: 3px; accent-color: var(--accent); }
.form-checkbox a { color: var(--accent); text-decoration: underline; }
.checkout-form__status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  min-height: 1.4em;
}
.checkout-form__status[data-state="error"] { color: #ffb3b3; }
.checkout-form__status[data-state="ok"]    { color: var(--accent); }
.checkout-disclosure {
  margin-top: 14px;
  background: rgba(255,255,255,0.03);
  border: var(--shell-stroke);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.checkout-disclosure summary { cursor: pointer; color: var(--ink); }
.checkout-disclosure p { margin: 10px 0 0; }

/* Legal */
.legal-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-block h3 { margin: 0 0 10px; font-size: 17px; }
.legal-block p { color: var(--ink-mute); line-height: 1.65; font-size: 14px; }
.legal-block a { color: var(--accent); }

/* Persistent CTA */
.persistent-cta {
  position: fixed;
  right: var(--pad-x);
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px);
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-shell);
  border: var(--shell-stroke);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  backdrop-filter: var(--shell-blur);
  -webkit-backdrop-filter: var(--shell-blur);
  box-shadow: var(--shadow-deep);
  animation: persistent-cta-rise 600ms var(--easing);
}
@keyframes persistent-cta-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.persistent-cta__close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1;
}
.persistent-cta__close:hover { background: rgba(255,255,255,0.12); color: var(--ink); }

/* Voice label on the top-right pill */
.chrome__voice-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 4px;
}

/* Primary button — large variant */
.primary-btn--large {
  padding: 16px 28px;
  font-size: 15px;
}
.primary-btn[disabled],
.primary-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* CTA card on stage */
.cta__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 999px;
  font-weight: 700;
}
.cta__price-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cta__price { display: flex; align-items: baseline; gap: 6px; }
.cta__price-amount { font-size: clamp(56px, 8vw, 88px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-feature-settings: "tnum" 1; }
.cta__price-period { font-size: 18px; color: var(--ink-mute); }
.cta__price-meta { text-align: left; color: var(--ink-mute); }
.cta__price-meta p { margin: 4px 0; font-size: 14px; }

/* Mobile layout for the page sections */
@media (max-width: 720px) {
  .truth-grid,
  .brain-timeline,
  .modules-grid { grid-template-columns: 1fr; }
  .page-section { padding: 64px 18px; }
  .persistent-cta {
    left: 14px;
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
    justify-content: space-between;
  }
}

/* Reduced motion */
body[data-reduced-motion="true"] .persistent-cta { animation: none; }

