:root {
  --bg: #0f0d0c; --card: #1b1816; --line: #2e2925; --text: #f4ede6; --muted: #a89c91;
  --accent: #ff7a45; --accent-2: #25d366; --danger: #ff5a5a; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 4px; letter-spacing: -0.5px; }
h1 span { color: var(--accent); }
h2 { font-size: 18px; margin: 0 0 12px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 16px; }
.step { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #12100f; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type=file] { width: 100%; font-size: 14px; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes label { margin: 0; padding: 12px 8px; text-align: center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #12100f; }
.modes label b { display: block; font-size: 16px; }
.modes label span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.modes input:checked + label { border-color: var(--accent); background: #2a1a12; }
.modes input:focus-visible + label { outline: 2px solid var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; color: #1a0d06; background: var(--accent); cursor: pointer; text-decoration: none; text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.whatsapp { background: var(--accent-2); color: #062b14; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.error { color: var(--danger); background: #2a1414; border: 1px solid #4a2020; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.notice { color: var(--muted); font-size: 13px; margin-top: 10px; }
[hidden] { display: none !important; }
.stages { list-style: none; padding: 0; margin: 8px 0 0; }
.stages li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--muted); }
.stages li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.stages li.done { color: var(--text); }
.stages li.done::before { background: var(--accent); border-color: var(--accent); }
.stages li.now { color: var(--text); font-weight: 600; }
.stages li.now::before { border-color: var(--accent); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(255,122,69,.6); } to { box-shadow: 0 0 0 6px rgba(255,122,69,0); } }
video { width: 100%; border-radius: 12px; background: #000; display: block; }
.letter { white-space: pre-wrap; font-family: Georgia, serif; font-size: 15px; line-height: 1.6; max-height: 360px; overflow: auto; background: #12100f; border-radius: 10px; padding: 14px; }
.flags li { margin-bottom: 8px; font-size: 14px; }
.flags li em { color: var(--muted); display: block; }
footer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 24px; }
a { color: var(--accent); }

/* ---------- the paid flow (claude/paywall-prd.md, claude/design/spill-the-chat-paywall) ---------- */
.wordmark { font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.wordmark span { color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.eyebrow.muted { color: var(--muted); }
.center { text-align: center; }
.pill { display: inline-block; background: #0f2a1a; color: #7ee2a8; border: 1px solid #1e5a35; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.btn.big { font-size: 17px; min-height: 52px; }
.btn svg { flex: none; }
.under { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
/* the preview's audio card */
.player { display: flex; align-items: center; gap: 12px; }
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; padding: 0; }
.play:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-label { font-size: 14px; font-weight: 600; }
.bars { display: flex; align-items: center; gap: 3px; height: 20px; }
.bars span { width: 3px; border-radius: 2px; background: #5a4a40; }
.bars span.on { background: var(--accent); }
.transcript { font-size: 14px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.transcript b { margin-right: 4px; }
.transcript .host-A b { color: #ff3d8f; }
.transcript .host-B b { color: #4de1ff; }
.transcript .fade { background: linear-gradient(90deg, var(--text) 0%, var(--text) 55%, rgba(244,237,230,.15) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.transcript .fade b { color: inherit; }
.locked { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 700; }
/* real messages, as in the video: green/right for "me", grey/left otherwise */
.bubbles { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bubble { align-self: flex-start; background: #202c33; border-radius: 10px; padding: 7px 11px; max-width: 85%; font-size: 15px; overflow-wrap: anywhere; }
.bubble .who { color: var(--accent); font-size: 12px; font-weight: 700; }
.bubble.me { align-self: flex-end; background: #005c4b; }
.bubble.me .who { color: #8fe3c9; }
.connector { margin: 0; font-size: 14px; color: var(--muted); }
.more { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
/* the waiting screen's fact card */
.fact p { margin: 8px 0 0; font-size: 15px; }
.fact .big { font-size: 26px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0 0; }
.fact .note { color: var(--muted); font-size: 13px; }
.fact .bubbles { margin-top: 8px; }
.linkrow { margin-top: 10px; text-align: center; font-size: 13px; }
/* the test checkout */
.testbar { background: #3a2a05; color: #ffd98a; border: 1px solid #6a5420; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; text-align: center; margin: 10px 0 14px; }
.checkout { background: #f2f2f2; color: #222; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.checkout .kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #555; }
.checkout .product { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.checkout label { margin: 0; color: #444; }
.checkout input[type=email] { width: 100%; height: 44px; font: inherit; color: #222; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 0 12px; }
.checkout .field { height: 44px; border: 1px dashed #bbb; border-radius: 8px; background: #fafafa; display: flex; align-items: center; padding: 0 12px; color: #777; font-size: 14px; }
.checkout button { height: 48px; border: 0; border-radius: 8px; background: #222; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.checkout button[disabled] { opacity: .6; cursor: wait; }
.checkout p { margin: 0; font-size: 13px; color: #444; }
