/* ═══════════════════════════════════════════════════════════
   Ahead AI — The Greenroom
   Editorial-cinematic landing page. Midnight + amber.
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --midnight: #080c18;
  --midnight-deep: #030510;
  --obsidian: #0f1629;
  --slate: #1a2340;
  --steel: #2d3a5c;
  --fog: #8b97b8;
  --cloud: #cad2e5;
  --white: #ffffff;

  --amber: #f5a623;
  --amber-light: #ffca57;
  --amber-dark: #d48d0f;
  --amber-glow: rgba(245, 166, 35, 0.18);
  --amber-faint: rgba(245, 166, 35, 0.08);

  --glass: rgba(26, 35, 64, 0.4);
  --hairline: rgba(139, 151, 184, 0.15);
  --hairline-strong: rgba(139, 151, 184, 0.28);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', 'SFMono-Regular', ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --stage-gutter: clamp(20px, 5vw, 88px);
  --stage-max: 1320px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--midnight);
  color: var(--cloud);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv01', 'cv02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1400px 900px at 50% -200px, rgba(245, 166, 35, 0.14), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(59, 130, 246, 0.06), transparent 65%),
    linear-gradient(180deg, var(--midnight) 0%, var(--midnight-deep) 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; padding: 0; }
::selection { background: var(--amber); color: var(--midnight); }

/* ── Grain overlay ────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 240px 240px;
}

/* ── Container ────────────────────────────────────────────── */
.stage {
  max-width: var(--stage-max);
  margin: 0 auto;
  padding-left: var(--stage-gutter);
  padding-right: var(--stage-gutter);
}

/* ── Section number + label ───────────────────────────────── */
.cue {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 28px;
}
.cue::before {
  content: attr(data-act);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--amber);
  font-feature-settings: 'ss01';
}
.cue-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--hairline-strong), transparent 80%);
  margin-left: 4px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(8, 12, 24, 0.6);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  font-feature-settings: 'ss01';
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(245, 166, 35, 0.5);
}
.brand-mark svg { width: 13px; height: 13px; color: var(--midnight); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--fog);
}
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--cloud); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber);
  color: var(--midnight);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(245, 166, 35, 0.55); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: clamp(80px, 12vw, 160px);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center top,
    rgba(245, 166, 35, 0.22) 0%,
    rgba(245, 166, 35, 0.08) 25%,
    transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}

.hero-timecode {
  font-family: var(--mono, var(--sans));
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--fog);
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 24px;
}
.hero-timecode span::after {
  content: ''; display: inline-block; margin: 0 8px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--amber); vertical-align: middle;
  transform: translateY(-2px);
}

.hero h1 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 85, 'opsz' 144, 'wght' 340;
  font-weight: 340;
  font-size: clamp(54px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 .accent {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 340;
  color: var(--amber);
}
.hero h1 .period {
  color: var(--amber);
}
.hero h1 .cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  background: var(--amber);
  margin-left: 0.04em;
  vertical-align: -0.08em;
  animation: blink 1.1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 48ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--cloud);
  margin: 0 0 36px;
  opacity: 0.92;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber);
  color: var(--midnight);
  font-weight: 600;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 15px;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 18px 40px -18px rgba(245, 166, 35, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -18px rgba(245, 166, 35, 0.7); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cloud);
  font-size: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease-out), color .2s var(--ease);
}
.btn-ghost:hover { color: var(--white); background-size: 100% 1px; }
.btn-ghost svg { width: 12px; height: 12px; opacity: 0.8; }

.hero-meta {
  display: flex; gap: 20px; align-items: center;
  margin-top: 32px;
  font-size: 13px; color: var(--fog);
}
.hero-meta .dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 12px var(--amber); }
.hero-meta strong { color: var(--cloud); font-weight: 600; }

/* Hero right: call sheet */
.callsheet {
  font-family: var(--sans);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(26, 35, 64, 0.35), rgba(15, 22, 41, 0.2));
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.callsheet::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, var(--amber-faint), transparent 70%);
  pointer-events: none;
}
.callsheet-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.callsheet-top strong { color: var(--amber); font-weight: 600; }

.callsheet h3 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 4px;
}
.callsheet p { margin: 0; color: var(--fog); font-size: 14px; }

.callsheet-rows {
  margin: 22px 0 4px;
  display: grid; gap: 14px;
}
.row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  font-size: 13px;
  color: var(--cloud);
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
}
.row:last-child { border-bottom: none; }
.row time {
  font-family: var(--mono, var(--sans));
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--fog);
  font-size: 12px;
}
.row .tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.row em {
  color: var(--white); font-style: normal;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 36, 'wght' 420;
  font-size: 16px;
}

.callsheet-footer {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--fog); letter-spacing: 0.12em; text-transform: uppercase;
}
.callsheet-footer span { color: var(--cloud); }

/* ── Industry marquee ─────────────────────────────────────── */
.marquee {
  margin-top: 80px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: scroll 42s linear infinite;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 72, 'wght' 320;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--fog);
  opacity: 0.85;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: '✱'; color: var(--amber); font-size: 0.7em; font-style: normal;
  font-variation-settings: 'SOFT' 0; display: inline-block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Generic sections ─────────────────────────────────────── */
section { position: relative; }
.scene {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--hairline);
}
.scene-header {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-bottom: 60px;
}
@media (min-width: 960px) {
  .scene-header { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}
.scene-header h2 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 90, 'opsz' 144, 'wght' 360;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.scene-header h2 .accent {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 360;
  color: var(--amber);
}
.scene-header .lede {
  font-size: 17px;
  color: var(--cloud);
  opacity: 0.9;
  line-height: 1.6;
  max-width: 48ch;
  margin: 0;
}

/* ── II. The room — pull quote ────────────────────────────── */
.room {
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
}
.pullquote {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 340;
  font-style: italic;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 24ch;
  margin: 0 auto;
  position: relative;
  text-wrap: balance;
}
.pullquote::before {
  content: '“';
  position: absolute;
  top: -0.45em; left: -0.35em;
  font-size: 2.3em;
  line-height: 1;
  color: var(--amber);
  opacity: 0.6;
  font-style: normal;
  font-variation-settings: 'wght' 260;
}
@media (max-width: 600px) {
  .pullquote::before { left: -0.1em; top: -0.5em; font-size: 1.8em; }
}
.pullquote-attr {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
}
.pullquote-attr::before {
  content: ''; display: inline-block; width: 30px; height: 1px;
  background: var(--amber);
  margin-right: 14px; vertical-align: middle;
}

/* ── III. The rundown — feature cards ─────────────────────── */
.rundown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
}
@media (min-width: 720px) { .rundown-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .rundown-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: 34px 30px 40px;
  background: rgba(15, 22, 41, 0.7);
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at var(--mx, 50%) var(--my, 0%), var(--amber-faint), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature:hover .feature-time { color: var(--amber); }

.feature-time {
  font-family: var(--mono, var(--sans));
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 24px;
  display: block;
  transition: color .3s var(--ease);
}
.feature h3 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 72, 'wght' 420;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 12px;
  text-wrap: balance;
}
.feature p {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: var(--fog);
  max-width: 34ch;
}
.feature .feature-tag {
  position: absolute;
  top: 30px; right: 30px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
}

/* ── IV. Rehearsal — voice readout ────────────────────────── */
.rehearsal {
  padding: clamp(90px, 12vw, 160px) 0;
}
.rehearsal-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 960px) {
  .rehearsal-grid { grid-template-columns: 1fr 1.1fr; gap: 90px; }
}
.readout {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 38px;
  background: linear-gradient(180deg, rgba(26, 35, 64, 0.4), rgba(15, 22, 41, 0.2));
  backdrop-filter: blur(14px);
  position: relative;
}
.readout::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 400px at 100% 0%, var(--amber-glow), transparent 60%);
  pointer-events: none; opacity: 0.5;
}
.readout-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fog);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
  position: relative;
}
.readout-top .status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--amber);
}
.readout-top .status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.scores {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 28px;
  position: relative;
}
.score {
  text-align: left;
  padding: 22px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.5);
}
.score-value {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 420;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  display: block;
}
.score-value .sub {
  font-size: 0.35em;
  color: var(--fog);
  margin-left: 4px;
  font-variation-settings: 'wght' 300;
}
.score-label {
  display: block;
  margin-top: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fog);
}
.score[data-level='high'] .score-value { color: #0ecb81; }
.score[data-level='med'] .score-value { color: var(--amber); }

.suggestions {
  padding: 22px; border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.4);
  position: relative;
}
.suggestions-title {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.suggestions ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--cloud);
}
.suggestions li {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px;
  line-height: 1.5;
}
.suggestions li::before {
  content: '→';
  color: var(--amber);
  font-size: 13px;
  line-height: 1.6;
}

.rehearsal-copy h2 { margin-bottom: 24px; }
.rehearsal-copy p { color: var(--cloud); font-size: 17px; line-height: 1.6; opacity: 0.9; max-width: 44ch; }
.rehearsal-copy ul {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 14px;
}
.rehearsal-copy li {
  /* flex instead of grid — prevents each text-run / <strong> from
     becoming its own grid item and collapsing into a 20px column. */
  display: flex; gap: 14px;
  font-size: 15px; color: var(--cloud);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  align-items: flex-start;
}
.rehearsal-copy li:last-child { border-bottom: none; padding-bottom: 0; }
.rehearsal-copy li::before {
  content: '·';
  flex: 0 0 auto;
  width: 8px;
  color: var(--amber);
  font-size: 28px; line-height: 0.85;
  font-family: var(--serif);
  text-align: center;
}

/* ── V. The terms — pricing ───────────────────────────────── */
.plans {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 28px; } }

.plan {
  padding: 40px 34px 36px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 35, 64, 0.35), rgba(15, 22, 41, 0.15));
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.plan--pro {
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 30px 80px -40px rgba(245, 166, 35, 0.35);
}
.plan--pro::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 100% 0%, var(--amber-faint), transparent 60%);
  pointer-events: none;
}
.plan-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
  padding: 6px 10px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.06);
}
.plan-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 20px;
}
.plan-price {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 420;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 8px;
}
.plan-price .currency { font-size: 0.55em; vertical-align: top; letter-spacing: 0; color: var(--cloud); }
.plan-price .unit { font-size: 0.32em; color: var(--fog); font-variation-settings: 'wght' 300; margin-left: 4px; }
.plan-sub {
  font-size: 14px; color: var(--fog);
  margin-bottom: 30px;
}
.plan ul {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; gap: 12px;
  font-size: 14px; color: var(--cloud);
}
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.plan li::before {
  content: '→'; color: var(--amber); font-size: 13px;
}
.plan .btn-primary, .plan .btn-ghost { margin-top: auto; }
.plan--free .btn {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--hairline-strong);
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.plan--free .btn:hover { border-color: var(--cloud); color: var(--white); }

.plan-fine {
  margin-top: 22px;
  font-size: 12px; color: var(--fog);
  text-align: center;
}

/* ── VI. Questions — FAQ ──────────────────────────────────── */
.faq { display: grid; gap: 0; margin-top: 20px; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
  cursor: pointer; list-style: none;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 90, 'opsz' 72, 'wght' 420;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--sans); font-size: 26px; line-height: 0.9;
  color: var(--amber);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--amber); }
.faq summary:hover { color: var(--amber-light); }
.faq .answer {
  margin-top: 16px;
  font-size: 16px; line-height: 1.65;
  color: var(--fog);
  max-width: 70ch;
}

/* ── Final CTA ────────────────────────────────────────────── */
.final {
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  position: relative;
}
.final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 50%, var(--amber-glow), transparent 70%);
  pointer-events: none;
}
.final h2 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 360;
  font-size: clamp(40px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 0 28px;
  text-wrap: balance;
}
.final h2 em {
  font-style: italic; color: var(--amber);
  font-variation-settings: 'SOFT' 100, 'opsz' 144, 'wght' 360;
}
.final p {
  max-width: 52ch; margin: 0 auto 40px;
  font-size: 17px; color: var(--cloud); opacity: 0.9; line-height: 1.55;
}
.final-ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 80px 0 40px;
  background: var(--midnight-deep);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; } }

.footer-brand { max-width: 40ch; }
.footer-brand h3 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'opsz' 72, 'wght' 420;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 12px;
}
.footer-brand p { font-size: 14px; color: var(--fog); line-height: 1.6; margin: 0; }

.footer-col h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fog); margin: 0 0 18px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.footer-col a { color: var(--cloud); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  font-size: 12px; color: var(--fog);
  letter-spacing: 0.06em;
}
.footer-bottom .curtain {
  font-family: var(--serif); font-style: italic;
  font-variation-settings: 'SOFT' 100, 'opsz' 36, 'wght' 360;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-size: 13px;
}

/* ── Reveal animation on scroll ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   Mobile polish
   ═══════════════════════════════════════════════════════════ */

/* Safe-area insets for notched phones */
@supports (padding: env(safe-area-inset-left)) {
  :root {
    --stage-gutter: max(clamp(20px, 5vw, 88px), env(safe-area-inset-left));
  }
  .nav-inner { padding-top: env(safe-area-inset-top); }
  footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* iOS tap polish */
a, button, summary, .btn, .btn-primary, .btn-ghost, .nav-cta {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Guarantee no horizontal overflow anywhere */
html, body { overflow-x: clip; }

/* ── Phones (< 640px) ───────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Nav: tighten height, keep Download visible */
  .nav-inner { height: 58px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }

  /* Hero: tighter vertical rhythm */
  .hero { padding-top: 48px; padding-bottom: 72px; }
  .hero::before { width: 120vw; height: 560px; top: -160px; }

  .hero-timecode {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
  }
  /* Hide the middle timecode item on small screens so the three labels
     don't wrap onto two lines */
  .hero-timecode span:nth-child(2) { display: none; }

  .hero h1 {
    font-size: clamp(44px, 13.5vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    /* on phones, don't force line breaks — let type reflow */
    text-wrap: balance;
  }
  .hero h1 br { display: none; }

  .hero-sub { font-size: 16px; margin-bottom: 28px; }

  .hero-ctas { gap: 10px; width: 100%; }
  .btn-primary { padding: 14px 22px; font-size: 14px; border-radius: 12px; }
  .btn-ghost { padding: 12px 2px; font-size: 13px; }
  .hero-meta { font-size: 12px; margin-top: 24px; }

  /* Call sheet: keep readable on narrow screens */
  .callsheet { padding: 22px 20px; border-radius: 18px; }
  .callsheet-top { font-size: 10px; letter-spacing: 0.14em; }
  .callsheet h3 { font-size: 24px; }
  .callsheet p { font-size: 13px; }

  /* Row: stack the tag on a 2nd line when space is tight so "OPENER"
     doesn't clip into the line of dialogue */
  .row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 12px 0;
  }
  .row time { font-size: 11px; grid-row: 1; }
  .row em { font-size: 15px; grid-column: 2; grid-row: 1; }
  .row .tag { grid-column: 2; grid-row: 2; font-size: 9px; letter-spacing: 0.12em; }

  /* Marquee: slower + smaller on phones */
  .marquee { margin-top: 56px; padding: 16px 0; }
  .marquee-track { gap: 40px; animation-duration: 34s; font-size: 22px; }
  .marquee-track span { gap: 40px; }

  /* Sections */
  .scene { padding: 72px 0; }
  .scene-header { gap: 20px; margin-bottom: 40px; }
  .scene-header h2 { font-size: clamp(34px, 9vw, 54px); line-height: 1.02; }
  .scene-header .lede { font-size: 15px; }

  /* Section cue markers */
  .cue { font-size: 10px; letter-spacing: 0.16em; margin-bottom: 22px; gap: 10px; }
  .cue::before { font-size: 18px; }

  /* Pullquote */
  .room { padding: 80px 0; }
  .pullquote { font-size: clamp(28px, 8vw, 40px); max-width: none; }

  /* Feature grid rounding */
  .rundown-grid { border-radius: 16px; }
  .feature { padding: 26px 22px 30px; }
  .feature h3 { font-size: 22px; }
  .feature p { font-size: 14px; }
  .feature .feature-tag { top: 22px; right: 22px; font-size: 9px; }
  .feature-time { margin-bottom: 18px; font-size: 10px; }

  /* Rehearsal */
  .rehearsal { padding: 72px 0; }
  .rehearsal-grid { gap: 32px; }
  .readout { padding: 26px 22px; border-radius: 18px; }
  .readout-top { font-size: 10px; margin-bottom: 22px; padding-bottom: 14px; }
  .scores { gap: 8px; margin-bottom: 22px; }
  .score { padding: 16px 12px; border-radius: 12px; }
  .score-value { font-size: 36px; }
  .score-value .sub { font-size: 0.32em; }
  .score-label { font-size: 10px; letter-spacing: 0.14em; margin-top: 6px; }
  .suggestions { padding: 18px; }
  .suggestions-title { font-size: 10px; margin-bottom: 10px; }
  .suggestions ul { font-size: 13px; gap: 8px; }

  .rehearsal-copy p { font-size: 15px; }
  .rehearsal-copy ul { gap: 12px; margin-top: 22px; }
  .rehearsal-copy li { font-size: 14px; }

  /* Pricing */
  .plans { gap: 16px; margin-top: 28px; }
  .plan { padding: 30px 24px 28px; border-radius: 18px; }
  .plan-badge { top: 16px; right: 16px; font-size: 9px; padding: 5px 8px; }
  .plan-price { font-size: clamp(48px, 12vw, 72px); }
  .plan-sub { font-size: 13px; margin-bottom: 24px; }
  .plan ul { font-size: 13px; gap: 10px; margin-bottom: 26px; }
  .plan-fine { font-size: 11px; }

  /* FAQ */
  .faq details { padding: 22px 0; }
  .faq summary {
    font-size: 18px;
    gap: 18px;
    line-height: 1.3;
  }
  .faq summary::after { font-size: 22px; }
  .faq .answer { font-size: 14px; margin-top: 12px; }

  /* Final CTA */
  .final { padding: 80px 0; }
  .final h2 { font-size: clamp(36px, 11vw, 60px); margin-bottom: 22px; }
  .final p { font-size: 15px; margin-bottom: 28px; }
  .final-ctas { flex-direction: column; width: 100%; gap: 10px; }
  .final-ctas .btn-primary { justify-content: center; width: 100%; }

  /* Footer */
  footer { padding: 60px 0 32px; }
  .footer-grid { gap: 36px; }
  .footer-brand h3 { font-size: 22px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { margin-bottom: 14px; font-size: 10px; }
  .footer-col ul { gap: 10px; font-size: 13px; }
  .footer-bottom {
    margin-top: 48px; padding-top: 22px;
    flex-direction: column; align-items: flex-start; gap: 12px;
    text-align: left;
  }
}

/* ── Very small phones (iPhone SE, Galaxy S8 portrait) ─── */
@media (max-width: 360px) {
  .hero h1 { font-size: 40px; }
  .scene-header h2 { font-size: 30px; }
  .plan-price { font-size: 44px; }
  .pullquote { font-size: 26px; }
  .score-value { font-size: 30px; }
  .final h2 { font-size: 34px; }
}

/* ── Landscape phones: prevent hero from eating the viewport ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(36px, 8vw, 60px); line-height: 0.98; }
}

/* ── Legal / support pages on phones ─────────────────────── */
@media (max-width: 640px) {
  .doc { padding: 40px 0 80px; }
  .doc h1 { font-size: clamp(40px, 11vw, 60px); margin-bottom: 18px; }
  .doc .meta { font-size: 11px; letter-spacing: 0.14em; margin-bottom: 32px; padding-bottom: 18px; }
  .doc h2 { font-size: 22px; margin: 38px 0 12px; }
  .doc h3 { font-size: 10px; letter-spacing: 0.16em; margin: 26px 0 6px; }
  .doc p, .doc li { font-size: 15px; line-height: 1.65; }
  .doc .aside { padding: 18px 20px; font-size: 14px; border-radius: 12px; }
  .doc .toc { padding: 18px; border-radius: 12px; }
  .doc .toc ol { columns: 1; }
}
