/* BYOPDF landing v2 — dark, literary, one promise. */
:root {
  --bg: #15100e;
  --bg-2: #1d1512;
  --panel: #241a16;
  --panel-2: #2c211c;
  --line: rgba(242, 233, 220, 0.10);
  --line-strong: rgba(242, 233, 220, 0.18);
  --cream: #f2e9dc;
  --cream-2: #d9cdbd;
  --muted: #a89684;
  --accent: #c8623b;
  --accent-2: #e0823f;
  --accent-soft: rgba(200, 98, 59, 0.16);
  --gold: #d9a441;
  --paper: #f5edde;
  --paper-ink: #2a211e;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, body { background: var(--bg); color: var(--cream); }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(200, 98, 59, 0.12), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(217, 164, 65, 0.06), transparent 60%);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; position: relative; }
.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 14px 0 16px; }
.lede { color: var(--cream-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 56ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(200, 98, 59, .7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-tour { padding: 14px 26px; font-size: 16px; animation: tourpulse 2.4s ease-out infinite; }
.btn-tour .sub { color: rgba(255,255,255,.72); font-weight: 400; margin-left: 2px; }
@keyframes tourpulse {
  0% { box-shadow: 0 12px 30px -12px rgba(200,98,59,.7), 0 0 0 0 rgba(224,130,63,.45); }
  70%, 100% { box-shadow: 0 12px 30px -12px rgba(200,98,59,.7), 0 0 0 16px rgba(224,130,63,0); }
}
.btn .ico { width: 18px; height: 18px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0; transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(21, 16, 14, 0.78); backdrop-filter: blur(14px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 38px; width: auto; }
.logo span { font-family: var(--display); font-size: 20px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--cream-2); }
.nav-links a:hover { color: var(--cream); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: grid; align-items: center; padding: 140px 0 80px; position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.98; margin: 18px 0 30px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-media { display: flex; justify-content: center; }
.phone {
  width: min(340px, 80vw); aspect-ratio: 9 / 17.5; border-radius: 42px; overflow: hidden;
  background: #000; border: 8px solid #2a201b; box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #15100e; border-radius: 999px; }
.hero-scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ---------- BEATS (pinned) ---------- */
.beat { position: relative; z-index: 1; }
.beat-stage { min-height: 100vh; display: grid; align-items: center; padding: 90px 0; }
.beat-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.beat-grid.rev { grid-template-columns: 1.15fr 0.85fr; }
.beat-copy .steps { margin-top: 28px; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: baseline; color: var(--muted); transition: color .3s; }
.step b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--line-strong); min-width: 28px; transition: color .3s; }
.step.on { color: var(--cream); }
.step.on b { color: var(--accent-2); }

/* Device / UI mock shared */
.ui {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04);
}

/* Beat 2: bring any book */
.b2-stage { position: relative; height: 520px; }
.dropzone {
  position: absolute; inset: 0; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted); font-size: 15px; transition: border-color .3s, background .3s;
}
.dropzone.hot { border-color: var(--accent); background: var(--accent-soft); color: var(--cream); }
.dropzone svg { width: 44px; height: 44px; margin: 0 auto 10px; display: block; color: var(--accent-2); }
.file-card {
  position: absolute; left: 50%; top: 50%; width: 230px;
  padding: 18px; border-radius: 14px; background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.9); will-change: transform, opacity;
}
.file-card .fc-ico { width: 38px; height: 48px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,.12); position: relative; margin-bottom: 12px; }
.file-card .fc-ico::after { content: "PDF"; position: absolute; bottom: 6px; left: 6px; font-size: 10px; font-weight: 800; color: var(--accent); }
.file-card b { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.2; display: block; }
.file-card small { color: #6b5e54; }
.book-ui { position: absolute; inset: 0; padding: 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; opacity: 0; }
.book-ui .bk-head { display: flex; gap: 14px; align-items: center; }
.book-ui .bk-cover { width: 54px; height: 78px; border-radius: 4px; object-fit: cover; box-shadow: 0 8px 20px -8px #000; }
.book-ui .bk-title { font-family: var(--display); font-size: 20px; }
.chapters { display: grid; gap: 6px; align-content: start; overflow: hidden; }
.chapter { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; opacity: 0; transform: translateY(10px); }
.chapter span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter.dl::after { content: "↓"; color: var(--accent-2); margin-left: 10px; }
.voice-pick { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.voice-pick img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.voice-pick img.sel { border-color: var(--accent); }
.player { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); opacity: 0; transform: translateY(14px); }
.play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.play-btn svg { width: 18px; height: 18px; }
.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; width: 0%; background: var(--accent-2); }
.player .t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player .meta { display: grid; gap: 6px; }
.player .meta small { font-size: 12px; color: var(--muted); }

/* Beat 2 file chips */
.drop-files { position: absolute; inset: 0; pointer-events: none; }
.fchip { position: absolute; left: 50%; top: 42%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--paper-ink); font-size: 13px; font-weight: 500; box-shadow: 0 20px 40px -18px rgba(0,0,0,.9); opacity: 0; will-change: transform, opacity; }
.fchip i { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 5px; padding: 3px 6px; }
.fchip[data-k="epub"] i { background: #5E7A52; }
.fchip[data-k="text"] i { background: #6b5e54; }

/* Beat 3 wrapper + avatar burst */
.script-wrap { position: relative; }
.vburst { position: absolute; inset: -20px; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; pointer-events: none; z-index: 3; }
.vburst img { width: 56px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; opacity: 0; transform: scale(.4); box-shadow: 0 8px 20px -8px #000; }
.script .dw.now { box-shadow: 0 2px 0 0 var(--accent); }

/* Beat 4 explainer card */
.explainer { padding: 26px 28px; display: grid; gap: 10px; align-content: start; }
.explainer h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); }
.explainer p { font-size: 14.5px; color: var(--cream-2); }
.explainer .hook { font-family: var(--display); font-style: italic; color: var(--accent-2); font-size: 16px; }
.explainer .cast-list { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.explainer .cast-list b { color: var(--cream); font-weight: 600; }
.explainer .meta-line { font-size: 13px; color: var(--gold); }
.explainer .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.explainer .chips span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--cream-2); }

/* Beat 3: voices */
.script { padding: 28px 30px; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; }
.script .ln { display: block; padding: 4px 8px; border-radius: 8px; transition: background .35s, color .35s; position: relative; margin: 0 -8px; }
.script .ln.lit { background: rgba(200, 98, 59, .12); }
.script .ln .tag { position: absolute; right: 100%; top: 50%; transform: translate(-14px, -50%) scale(.8); opacity: 0; display: flex; align-items: center; gap: 8px; background: var(--bg); color: var(--cream); font-family: var(--body); font-size: 12px; padding: 5px 10px 5px 5px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -10px #000; }
.script .ln .tag img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.script .ln.lit .tag { opacity: 1; transform: translate(-14px, -50%) scale(1); transition: all .4s cubic-bezier(.2,.8,.2,1); }
.script .ln .who { color: var(--accent); font-style: italic; }
.cast-toggle { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 22px; gap: 4px; }
.cast-toggle button { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.cast-toggle button.on { background: var(--accent); color: #fff; }
.cast-toggle button .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.cast-toggle button.playing .dot { animation: pulse 1s infinite; opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4 } }
.voice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--cream-2); background: rgba(255,255,255,.02); transition: border-color .2s; }
.vchip:hover, .vchip.playing { border-color: var(--accent); color: var(--cream); }
.vchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.vchip small { color: var(--muted); }

/* Beat 4: read-along + shelf */
.reader { padding: 34px 38px; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.75; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); text-align: justify; position: relative; }
.reader .w { border-radius: 3px; padding: 0 1px; transition: background .08s, color .08s; }
.reader .w.lit { background: none; }
.reader .w.now { background: none; box-shadow: 0 2px 0 0 var(--accent); }
.reader-bar { display: flex; gap: 14px; align-items: center; margin-top: 22px; font-family: var(--body); font-size: 13px; color: #6b5e54; }
.reader-bar .bar { flex: 1; background: rgba(42,33,30,.12); }
.reader-bar .bar i { background: var(--accent); }
.shelf-wrap { overflow: hidden; margin-top: 60px; padding: 10px 0 30px; }
.shelf { display: flex; gap: 18px; width: max-content; will-change: transform; padding-left: max(24px, calc((100vw - 1180px) / 2)); }
.cover { width: 150px; aspect-ratio: 2/3; border-radius: 6px; object-fit: cover; box-shadow: 0 22px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); background: var(--panel); flex: none; }
.shelf-line { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.free-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; }

/* Beat 5: habit */
.habit-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); }
.ring { width: 150px; height: 150px; position: relative; margin: 6px auto 14px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .prog { stroke: var(--accent-2); stroke-dasharray: 408; stroke-dashoffset: 408; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 32px; line-height: 1; }
.ring .val small { font-family: var(--body); font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px; }
.kv b { color: var(--cream); font-weight: 500; }
.streak { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; margin-top: 14px; }
.badge { display: grid; place-items: center; gap: 10px; text-align: center; }
.badge .medal { width: 110px; height: 130px; border-radius: 14px; background: linear-gradient(160deg, #3a2b22, #241a16); border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; filter: grayscale(1) brightness(.7); transform: scale(.92); }
.badge .medal svg { width: 60px; height: 60px; color: var(--gold); }
.badge .medal::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,164,65,.35); border-radius: 10px; }
.badge.unlocked .medal { filter: none; transform: scale(1); box-shadow: 0 0 0 1px rgba(217,164,65,.5), 0 30px 60px -25px rgba(217,164,65,.55); transition: all .6s cubic-bezier(.2,.8,.2,1); }
.badge b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.badge small { color: var(--muted); }
.badge.unlocked small { color: var(--gold); }
.weeks { display: flex; gap: 6px; align-items: end; height: 70px; margin-top: 18px; }
.weeks i { flex: 1; background: rgba(255,255,255,.08); border-radius: 3px 3px 0 0; height: 100%; transform-origin: bottom; }
.weeks i.hi { background: var(--accent); }

/* Beat 6: price */
.price-anchor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 56px; text-align: center; }
.anchor { padding: 30px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.anchor .n { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.anchor .l { color: var(--muted); margin-top: 10px; font-size: 14px; }
.anchor.me { border-color: var(--accent); background: var(--accent-soft); }
.anchor.me .n { color: var(--accent-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); position: relative; }
.plan.best { border-color: var(--accent); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.plan h3 small { font-family: var(--body); font-size: 13px; color: var(--muted); }
.plan .amt { font-family: var(--display); font-size: 52px; line-height: 1; margin: 16px 0 4px; }
.plan .amt sup { font-size: 22px; vertical-align: top; margin-right: 2px; }
.plan .amt small { font-family: var(--body); font-size: 15px; color: var(--muted); }
.plan .bill { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 15px; color: var(--cream-2); }
.plan li::before { content: "✓"; color: var(--accent-2); margin-right: 10px; }
.plan .btn { width: 100%; justify-content: center; }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Beat 7 */
.founder { text-align: center; padding: 120px 0 60px; }
.founder p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; max-width: 28ch; margin: 0 auto 18px; }
.founder small { color: var(--muted); }
.founder .founder-b { margin-top: 34px; font-size: clamp(19px, 2vw, 26px); color: var(--cream-2); }
.faq { max-width: 760px; margin: 0 auto; padding: 40px 0 100px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 20px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--cream-2); margin-top: 10px; font-size: 15px; }
.final-cta { text-align: center; padding: 40px 0 120px; }
.final-cta h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 26px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 50px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .logo img { height: 28px; }
footer nav { display: flex; gap: 20px; }

/* ---------- TOUR ---------- */
.tour-ui { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; justify-content: center; padding: 0 20px 22px; pointer-events: none; transform: translateY(120%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tour-ui.on { transform: none; }
.tour-card { pointer-events: auto; width: min(520px, 100%); background: rgba(21,16,14,.9); backdrop-filter: blur(16px); border: 1px solid var(--line-strong); border-radius: 14px; padding: 9px 14px 8px; box-shadow: 0 30px 80px -30px #000; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; }
.tour-card .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; position: relative; }
.tour-card .avatar i { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.tour-ui.on .avatar i { animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .8 } 100% { transform: scale(1.5); opacity: 0 } }
.tour-card .cap { font-family: var(--display); font-size: 14px; line-height: 1.3; }
.tour-card .tnote { display: block; font-family: var(--body); font-size: 13px; color: var(--accent-2); min-height: 1.2em; }
.tour-card .tctl { display: flex; gap: 8px; align-items: center; }
.tour-card .tctl button { border: 1px solid var(--line-strong); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--cream-2); }
.tour-card .tctl button:hover { border-color: var(--accent); color: var(--cream); }
.tour-card .tctl .stop { width: auto; height: auto; padding: 5px 11px; font-size: 12px; }
.tour-card .cap small { display: block; font-family: var(--body); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.tour-card .stop { border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--cream-2); }
.tour-card .stop:hover { border-color: var(--accent); color: var(--cream); }
.tour-card .tbar { grid-column: 1 / -1; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.tour-card .tbar i { display: block; height: 100%; width: 0; background: var(--accent-2); }
.tour-ui.on ~ .hero-scroll-cue { display: none; }

#tourFab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(21,16,14,.85); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); color: var(--cream-2); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s ease; box-shadow: 0 16px 40px -16px #000; }
#tourFab svg { color: var(--accent-2); }
#tourFab.show { opacity: 1; pointer-events: auto; transform: none; }
#tourFab:hover { border-color: var(--accent); color: var(--cream); }

/* Finale */
.finale { text-align: center; padding: 90px 0 60px; min-height: 100svh; display: grid; align-items: center; }
.finale-mark { height: 120px; width: auto; margin: 0 auto 20px; opacity: 0; transform: translateY(16px) scale(.92); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.finale-word { font-size: clamp(52px, 9vw, 120px); letter-spacing: .04em; color: var(--cream); }
.finale-word span { display: inline-block; opacity: 0; transform: translateY(.25em); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), text-shadow .9s ease; }
.finale-word span.on { opacity: 1; transform: none; }
.finale-line { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 26px); color: var(--accent-2); margin-top: 14px; opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; }
.finale.pre .finale-mark, .finale.lit .finale-mark { opacity: 1; transform: none; }
.finale.lit .finale-word span { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms); }
.finale.lit .finale-word span, .finale-word span.on { text-shadow: 0 0 60px rgba(224,130,63,.45); }
.finale.lit .finale-line { opacity: 1; transform: none; transition-delay: .6s; }

/* FAB states + gate attention */
#tourFab.touring { border-color: var(--accent); color: var(--cream); box-shadow: 0 0 0 1px rgba(200,98,59,.5), 0 16px 40px -16px #000; }
#tourFab.touring svg { animation: fabpulse 1.6s ease-in-out infinite; }
@keyframes fabpulse { 50% { transform: scale(1.25); } }
.cast-toggle.attn { animation: attn 1.4s ease-in-out infinite; }
@keyframes attn { 50% { box-shadow: 0 0 0 6px rgba(224,130,63,.25); border-color: var(--accent); } }

/* reveal helpers */
.rv { opacity: 0; transform: translateY(24px); }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .nav { padding: 12px 0; }
  .logo img { height: 30px; }
  .logo span { font-size: 17px; }
  .nav-links { display: none; }
  .nav .btn { padding: 9px 16px; font-size: 13px; }

  /* Hero: headline and film share the first screen, CTAs beneath */
  .hero { padding: 78px 0 28px; min-height: auto; display: block; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 0; align-items: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-column: 1 / -1; grid-row: 1; font-size: 11px; }
  .hero h1 { grid-column: 1; grid-row: 2; font-size: clamp(28px, 8vw, 34px); line-height: 1.04; margin: 10px 0 0; }
  .hero-media { grid-column: 2; grid-row: 2; order: 0; align-self: center; }
  .hero-ctas { grid-column: 1 / -1; grid-row: 3; flex-direction: column; align-items: stretch; margin-top: 22px; }
  .hero-ctas .btn { justify-content: center; }
  .hero .hero-note { grid-column: 1 / -1; grid-row: 4; text-align: center; margin-top: 12px; }
  .phone { width: clamp(96px, 30vw, 120px); border-radius: 20px; border-width: 4px; }
  .phone::after { width: 36px; height: 9px; top: 5px; }
  .hero-scroll-cue { display: none; }

  /* Beats: each beat owns the whole screen, so the tour never shows a neighbor */
  .beat-stage { min-height: 100svh; padding: 72px 0 48px; align-content: center; }
  .beat-grid, .beat-grid.rev { grid-template-columns: 1fr; gap: 26px; }
  .beat-grid.rev .beat-copy { order: -1; }
  .h2 { font-size: clamp(29px, 8vw, 36px); }
  .lede { font-size: 16px; }
  .beat-copy .steps { margin-top: 20px; gap: 7px; font-size: 15px; }
  .step b { font-size: 19px; }

  /* Beat 2 */
  .b2-stage { height: 360px; }
  .book-ui { padding: 16px; gap: 10px; }
  .book-ui .bk-title { font-size: 17px; }
  .book-ui .bk-cover { width: 42px; height: 62px; }
  .chapter { padding: 8px 10px; font-size: 12.5px; }
  .chapter:nth-child(n+5) { display: none; }
  .fchip { font-size: 11px; padding: 8px 10px; gap: 7px; }
  .fchip span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player { grid-template-columns: 38px 1fr auto; gap: 10px; padding: 8px 10px; }
  .play-btn { width: 38px; height: 38px; }

  /* Beat 3 */
  .script { font-size: 15px; padding: 20px 18px; }
  .script .ln .tag { position: static; transform: none; opacity: 1; display: inline-flex; margin-right: 8px; vertical-align: middle; }
  .vburst { inset: 0; gap: 7px; }
  .vburst img { width: 42px; }
  .cast-toggle { width: 100%; justify-content: center; }
  .cast-toggle button { flex: 1; justify-content: center; }
  .voice-row { gap: 8px; }

  /* Beat 4 */
  .shelf-wrap { margin-top: 24px; padding: 6px 0 12px; }
  .cover { width: 104px; }
  .explainer { padding: 20px; }
  .free-pill { font-size: 12px; }

  /* Beat 5 */
  .habit-ui { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .weeks { height: 52px; margin-top: 14px; }

  /* Price: one glance, three numbers */
  .price-anchor { grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 8px; }
  .anchor { padding: 16px 8px; }
  .anchor .n { font-size: 25px; }
  .anchor .l { font-size: 10.5px; margin-top: 6px; line-height: 1.3; }
  .price-foot { font-size: 12.5px; }

  /* Finale + commit */
  .finale { padding: 84px 0 48px; }
  .finale-mark { height: 84px; }
  .founder { padding: 72px 0 36px; }
  .founder p { font-size: clamp(19px, 5.6vw, 24px); }
  .faq { padding: 24px 0 56px; }
  .faq summary { font-size: 17px; }
  .final-cta { padding: 24px 0 90px; }
  .plans { grid-template-columns: 1fr; gap: 26px; }
  .plan { padding: 22px; }
  .plan .amt { font-size: 42px; }

  footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  #tourFab { right: 12px; bottom: 18px; padding: 9px 13px; font-size: 12px; }
}
/* Tour spotlight: only the beat being narrated stays lit */
body.touring section, body.touring footer { transition: opacity .7s ease; }
body.touring section:not(.tour-focus), body.touring footer { opacity: .16; }
/* While the narrator speaks, he IS the subtext: written ledes bow out AND give back
   their space, so the beat sits snug under its headline. Uses grid-template-rows
   rather than max-height: a pixel cap would clip long copy at large accessibility
   text sizes, this collapses to exactly the content's own height whatever it is.
   !important because the scroll-reveal leaves inline styles on revealed copy. */
.beat .lede-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s ease; }
.beat .lede-wrap > .lede { overflow: hidden; min-height: 0; transition: opacity .4s ease; }
body.touring .beat .lede-wrap { grid-template-rows: 0fr; }
body.touring .beat .lede-wrap > .lede { opacity: 0 !important; }

/* Gate escape hatch, revealed only if they hesitate */
#skipGate {
  display: none; margin-top: 14px; padding: 9px 16px; font-size: 13px; font-weight: 500;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s;
}
#skipGate.show { display: inline-block; }
#skipGate:hover { color: var(--cream); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue i, .tour-ui.on .avatar i, .btn-tour { animation: none; }
}
