/* ============================================================
   Roth Trade-Off Funnel — stylesheet
   ------------------------------------------------------------
   Direction: a locked film. The opt-in pages are built around a
   cinematic player card the visitor cannot open yet — the form is
   the key. Everything around it stays institutional, because the
   reader is 63 with $700k and a page that looks like a template
   reads to them as a scam.

   Type: Archivo (display + UI) / Source Serif 4 (body prose).
   Serif body is deliberate — it slows the read and signals substance.
   ============================================================ */

:root {
  --ink:        #0C1B2A;   /* midnight navy — page ink, film card ground */
  --ink-2:      #16293D;   /* raised surface on dark */
  --ink-3:      #24394F;   /* borders on dark */
  --ground:     #EDF1F4;   /* cool pale slate — page ground */
  --surface:    #FFFFFF;   /* form + card surfaces */
  --amber:      #D98515;   /* CTA. High contrast on navy AND white */
  --amber-dk:   #A85F08;
  --amber-lt:   #F2B45C;
  --oxblood:    #A32B22;   /* the unknown/liability figure only */
  --muted:      #5A6B7C;
  --muted-lt:   #93A6B5;
  --rule:       #C7D0D8;
  --rule-heavy: #97A8B6;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui:      "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* legacy aliases so the inner pages inherit the new system */
  --paper:      #EDF1F4;
  --paper-warm: #FFFFFF;
  --ink-soft:   #5A6B7C;
  --seal:       #D98515;
  --seal-dark:  #A85F08;
  --mono:       "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 40rem;
  --wide:    72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 20px; } }

img, iframe { max-width: 100%; }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--wide { max-width: var(--wide); }

.band { padding-block: 3rem; }
.band--tight { padding-block: 2rem; }
.band--ink { background: var(--ink); color: #E4EBF1; }
.band--paper { background: var(--surface); }

@media (min-width: 48rem) {
  .band { padding-block: 4.5rem; }
  .band--tight { padding-block: 2.75rem; }
}

/* ============================================================
   MASTHEAD
   ============================================================ */

.masthead {
  background: var(--ink);
  color: #fff;
  padding-block: .8rem;
  border-bottom: 3px solid var(--amber);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.masthead__mark {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.01em; margin: 0; color: #fff;
}
.masthead__note {
  font-family: var(--ui); font-weight: 500;
  font-size: .68rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--amber-lt); margin: 0;
}

/* ============================================================
   TYPE
   ============================================================ */

h1, h2, h3 {
  font-family: var(--display); font-weight: 700;
  line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 1rem; text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 2.8vw, 1.4rem); letter-spacing: -.015em; }

.hl { color: var(--amber); }
.band--ink .hl, .hero .hl { color: var(--amber-lt); }

.eyebrow {
  font-family: var(--ui); font-weight: 600;
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-dk); margin: 0 0 .85rem;
}
.band--ink .eyebrow { color: var(--amber-lt); }

.lede { font-size: 1.08em; color: var(--muted); margin: 0 0 1.5rem; }
.band--ink .lede { color: #B4C4D2; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.fine { font-family: var(--ui); font-size: .78rem; line-height: 1.55; color: var(--muted); }
.band--ink .fine { color: var(--muted-lt); }

/* ============================================================
   HERO — two columns on desktop, form high on mobile
   ============================================================ */

.hero { background: var(--ink); color: #E4EBF1; padding-block: 2rem 2.5rem; }

.hero__grid { display: grid; gap: 2rem; }

/* Mobile stacks: intro -> film + form -> bullets.
   The form must be reachable without wading through five bullets.
   Desktop pulls the media column alongside via grid areas. */
@media (min-width: 62rem) {
  .hero { padding-block: 3.5rem 4rem; }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas: "intro media" "gaps media";
    grid-template-rows: auto 1fr;
    column-gap: 3.5rem; row-gap: 1.75rem;
    align-items: start;
  }
  .hero__intro { grid-area: intro; }
  .hero__media { grid-area: media; }
  .hero__gaps  { grid-area: gaps; }
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lede { color: #B4C4D2; }

.callout-bar {
  display: inline-block;
  font-family: var(--ui); font-weight: 700;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--amber);
  padding: .42rem .75rem; margin: 0 0 1.2rem;
}

/* ---------- Curiosity bullets ---------- */

.gaps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.gaps li {
  position: relative; padding-left: 1.9rem; margin-bottom: .85rem;
  font-size: .95em; line-height: 1.5;
}
.gaps li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: .85rem; height: 2px; background: var(--amber);
}
.hero .gaps li { color: #CBD8E3; }

/* ============================================================
   SIGNATURE — the locked film card
   The film is what's being traded for. Render it as an object the
   visitor can see and cannot open. The lock is honest: the film
   genuinely sits behind the form.
   ============================================================ */

.film {
  background: #060F1A;
  border: 1px solid var(--ink-3);
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(217,133,21,.17), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, #14283C 0%, #060F1A 68%);
}

.film__play {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--amber);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(217,133,21,.14);
}
.film__play::after {
  content: ""; margin-left: 5px;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.film__runtime {
  position: absolute; right: .7rem; bottom: .7rem;
  font-family: var(--ui); font-weight: 600; font-size: .7rem;
  letter-spacing: .08em;
  color: #fff; background: rgba(0,0,0,.62);
  padding: .25rem .5rem;
}

.film__title {
  position: absolute; left: 1rem; top: .9rem; right: 1rem;
  font-family: var(--ui); font-weight: 600;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-lt);
}

.film__lock {
  display: flex; align-items: center; gap: .6rem;
  background: var(--ink-2); border-top: 1px solid var(--ink-3);
  padding: .75rem 1rem;
  font-family: var(--ui); font-weight: 500;
  font-size: .77rem; color: #C3D2DE;
}
.film__lock svg { flex: none; }

/* ============================================================
   OPT-IN PANEL — the page's single job
   ============================================================ */

.optin {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--amber);
  padding: 1.35rem 1.2rem 1.1rem;
  scroll-margin-top: 1rem;
  box-shadow: 0 14px 34px rgba(6,15,26,.28);
}

.optin__head {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.5rem); line-height: 1.14;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 .35rem;
}
.optin__sub {
  font-family: var(--ui); font-size: .82rem; color: var(--muted);
  margin: 0 0 1rem; line-height: 1.45;
}

.form-embed { width: 100%; min-height: 430px; border: 0; display: block; }

.optin__foot {
  font-family: var(--ui); font-size: .72rem; line-height: 1.5;
  color: var(--muted); margin: .85rem 0 0;
  padding-top: .8rem; border-top: 1px solid var(--rule);
}

/* ---------- Trust strip ---------- */

.trust {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
}
.trust li {
  font-family: var(--ui); font-weight: 500;
  font-size: .72rem; letter-spacing: .03em; color: var(--muted);
  display: flex; align-items: center; gap: .35rem;
}
.trust li::before { content: ""; width: 5px; height: 5px; background: var(--amber); flex: none; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: block; width: 100%;
  background: var(--amber); color: var(--ink);
  font-family: var(--ui); font-size: 1.04rem; font-weight: 700;
  line-height: 1.25;
  text-align: center; text-decoration: none;
  border: 0; border-radius: 2px;
  padding: 1.05rem 1.2rem; min-height: 60px;
  cursor: pointer; transition: background-color 130ms ease;
}
.btn:hover, .btn:focus-visible { background: var(--amber-lt); }

.btn__sub {
  display: block; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  opacity: .8; margin-top: .28rem;
}

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px;
}
.band--ink a:focus-visible, .hero a:focus-visible,
.band--ink .btn:focus-visible, .hero .btn:focus-visible { outline-color: var(--amber-lt); }

/* ============================================================
   LEDGER — supporting proof block, no longer the hero
   ============================================================ */

.ledger {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  padding: 1.35rem 1.2rem 1.1rem; margin: 0 0 1.75rem;
}
.band--ink .ledger { background: var(--ink-2); border-color: var(--ink-3); border-top-color: var(--amber); }

.ledger__caption {
  font-family: var(--ui); font-weight: 600;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .45rem;
}
.band--ink .ledger__caption { color: var(--muted-lt); }

.ledger__total {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 7.5vw, 2.9rem); line-height: 1;
  letter-spacing: -.03em; margin: 0 0 .9rem;
  font-variant-numeric: tabular-nums;
}
.band--ink .ledger__total { color: #fff; }

.ledger__row {
  display: flex; align-items: baseline; gap: .7rem;
  font-family: var(--ui); font-size: .82rem; font-weight: 500;
  padding-block: .55rem; border-top: 1px solid var(--rule);
}
.band--ink .ledger__row { border-color: var(--ink-3); }
.ledger__row span:first-child { letter-spacing: .05em; text-transform: uppercase; }
.ledger__dots { flex: 1; height: 1px; border-bottom: 1px dotted var(--rule-heavy); transform: translateY(-.25em); }
.ledger__val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger__val--unknown { color: var(--oxblood); font-weight: 700; }
.band--ink .ledger__val--unknown { color: #E8746A; }

.ledger__foot {
  font-family: var(--ui); font-size: .7rem; line-height: 1.5;
  color: var(--muted); margin: .85rem 0 0;
  padding-top: .7rem; border-top: 1px solid var(--rule);
}
.band--ink .ledger__foot { color: var(--muted-lt); border-color: var(--ink-3); }

/* ============================================================
   SUPPORTING BLOCKS (shared with inner pages)
   ============================================================ */

.statement-rule { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; border: 0; padding: 0; }
.statement-rule::after { content: ""; flex: 1; height: 2px; background: var(--amber); }

.costs { margin: 0; padding: 0; list-style: none; }
.costs li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.costs li:first-child { border-top: 1px solid var(--rule); }
.band--ink .costs li { border-color: var(--ink-3); }
.costs h3 { margin: 0 0 .3rem; }
.costs p { font-size: .93em; color: var(--muted); margin: 0; }
.band--ink .costs p { color: #A9BCCB; }
.band--ink .costs h3 { color: #fff; }

.quals { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); }
.quals li {
  font-family: var(--ui); font-weight: 500; font-size: .84rem;
  padding-block: .65rem; border-bottom: 1px solid var(--rule);
  display: flex; gap: .7rem;
}
.quals li::before { content: ""; width: .8rem; height: 2px; background: var(--amber); margin-top: .75em; flex: none; }
.band--ink .quals, .band--ink .quals li { border-color: var(--ink-3); }

.outcomes { counter-reset: door; margin: 0; padding: 0; list-style: none; }
.outcomes li {
  position: relative; padding: 0 0 1.2rem 3rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.band--ink .outcomes li { border-color: var(--ink-3); }
.outcomes li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.outcomes li::before {
  counter-increment: door; content: counter(door);
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  color: var(--ink); background: var(--amber);
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
}
.band--ink .outcomes h3 { color: #fff; }

.prep {
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 4px solid var(--amber); padding: 1.2rem; margin: 0 0 1.5rem;
}
.prep ul { margin: 0; padding-left: 1.1rem; }
.prep li { margin-bottom: .55rem; }
.prep li:last-child { margin-bottom: 0; }

/* ---------- Video (inner movie page) ---------- */

.video-slot { width: 100%; margin: 0 0 1.5rem; border: 1px solid var(--ink-3); background: #000; overflow: hidden; }
.video-slot > div { max-width: 100%; }

.video-frame { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border: 1px solid var(--rule); margin: 0 0 1.5rem; }
.video-frame > iframe, .video-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cal-embed { width: 100%; min-height: 720px; border: 0; display: block; background: var(--surface); }

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

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--ink); border-top: 2px solid var(--amber);
  padding: .65rem 1rem;
  transform: translateY(115%); transition: transform 220ms ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { max-width: 34rem; margin-inline: auto; padding-block: .8rem; min-height: 52px; }
.has-sticky { padding-bottom: 5.5rem; }

/* ---------- Form panel (inner pages, legacy class) ---------- */

.form-panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 4px solid var(--amber); padding: 1.35rem 1.2rem;
  scroll-margin-top: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot { background: var(--ink); color: var(--muted-lt); padding-block: 2rem; }
.site-foot .fine { color: #8DA0AF; margin-bottom: .8rem; }
.site-foot .fine strong { color: #C3D2DE; }
.site-foot a { color: var(--amber-lt); }

/* ============================================================
   REVEAL + UTILITY
   ============================================================ */

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .sticky-cta { transition: none; }
}

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

/* ============================================================
   BUILD-STATE BANNER
   Only visible when unreplaced placeholders remain.
   See /roth/assets/build-check.js
   ============================================================ */

#build-state-banner {
  position: sticky; top: 0; z-index: 9999;
  background: var(--oxblood); color: #fff;
  font-family: var(--ui); font-size: .76rem; line-height: 1.5;
  padding: .8rem 1.1rem; border-bottom: 3px solid #5E140F;
  display: flex; flex-direction: column; gap: .28rem;
}
#build-state-banner strong { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
#build-state-banner code {
  background: rgba(0,0,0,.3); padding: .1rem .35rem; border-radius: 2px; white-space: nowrap;
}

/* ============================================================
   VSL LANDING (ad → this page)
   Short headline, film, then immediate qualify CTA.
   ============================================================ */

.vsl { background: var(--ink); color: #E4EBF1; padding-block: 1rem 2rem; }
@media (min-width: 48rem) { .vsl { padding-block: 1.25rem 2.5rem; } }

.vsl__head { max-width: 48rem; margin-inline: auto; text-align: center; }
.vsl h1 {
  color: #fff;
  font-size: clamp(2.15rem, 7vw, 3.15rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}
.vsl .lede {
  max-width: 48rem;
  margin: 0 auto 1.8rem;
  color: #D2DCE7;
  font-size: clamp(1.22rem, 2.5vw, 1.45rem);
  line-height: 1.42;
}

.vsl__stage { max-width: 44rem; margin-inline: auto; }
@media (min-width: 64rem) { .vsl__stage { max-width: 46rem; } }
.vsl .video-slot { margin-bottom: .8rem; }

@media (max-width: 47.99rem) {
  .masthead { padding-block: .55rem; border-bottom-width: 2px; }
  .masthead__inner { flex-wrap: nowrap; gap: .65rem; }
  .masthead__mark { font-size: .95rem; }
  .masthead__note { font-size: .58rem; letter-spacing: .08em; white-space: nowrap; }
  .vsl .callout-bar { margin-bottom: .85rem; }
}

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

.cta-slot { max-width: 34rem; margin: 0 auto; }

.cta-note {
  font-family: var(--ui); font-size: .74rem; color: var(--muted-lt);
  text-align: center; margin: .7rem 0 0;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */

.steps { display: flex; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.steps li {
  flex: 1; height: 4px; background: var(--rule);
}
.steps li.is-done { background: var(--amber); }
.steps__label {
  font-family: var(--ui); font-weight: 600; font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .5rem;
}

/* ============================================================
   STEP PAGES (apply / qualify)
   ============================================================ */

.step-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 5px solid var(--amber);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 12px 30px rgba(6,15,26,.10);
  max-width: 34rem; margin-inline: auto;
}
.step-card h1 { font-size: clamp(1.5rem, 4.4vw, 2rem); margin-bottom: .5rem; }

.survey-embed, .apply-embed {
  width: 100%; min-height: 520px; border: 0; display: block;
}

/* ============================================================
   NOT-A-FIT
   ============================================================ */

.softclose { max-width: 36rem; margin-inline: auto; }
.softclose h1 { font-size: clamp(1.7rem, 4.8vw, 2.3rem); }
