/* The explainer: a 1280×720 stage, scaled to fit. Same palette as the app. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 400; src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 800; src: url(fonts/atkinson-hyperlegible-next-latin-800-normal.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Patrick Hand'; font-weight: 400; src: url(fonts/patrick-hand-latin-400-normal.woff2) format('woff2'); font-display: block; }

:root { --navy: #0F1830; --card: #16223F; --ink: #E8EEF2; --ink-2: #B4BFCE; --mine: #6E9BEF; --coin: #D9A93A; --coin-deep: #E2BE5C; --paper: #EEF4F1; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 17px/1.55 'Atkinson Hyperlegible Next', system-ui, sans-serif; }
main { max-width: 1000px; margin: 0 auto; padding: 16px; }
a { color: var(--mine); }
.sr-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--navy); }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: var(--navy); }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.controls button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--mine); background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.controls input { flex: 1; accent-color: var(--coin); }
.controls span { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 48px; }
.links { color: var(--ink-2); font-size: 15px; }
.transcript h2 { font-size: 20px; }
.transcript ol { padding-left: 22px; color: var(--ink-2); }
.transcript li { margin-bottom: 8px; }
.transcript .en { display: block; color: #8C97AB; font-size: 15px; }
:focus-visible { outline: 3px solid var(--mine); outline-offset: 2px; }

/* Recording: just the stage, unscaled. */
body.record main { padding: 0; max-width: none; }
body.record .player { width: 1280px; height: 720px; aspect-ratio: auto; border-radius: 0; }
body.record .controls, body.record .links, body.record .transcript { display: none; }

/* --- inside the stage --- */
.bg { position: absolute; inset: 0; width: 1280px; height: 720px; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.abs { position: absolute; }
.title { font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.kicker { font-size: 22px; color: var(--coin-deep); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.big { font-size: 64px; }
.mid { font-size: 44px; }
.small { font-size: 26px; color: var(--ink-2); }
.hand { font-family: 'Patrick Hand', cursive; }

.phone { position: absolute; width: 262px; height: 554px; border-radius: 34px; background: #05080F; padding: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 2px #2A3A63; }
.phone .screen { position: relative; width: 250px; height: 541px; border-radius: 28px; overflow: hidden; background: var(--paper); }
.phone .screen img { position: absolute; left: 0; top: 0; width: 250px; display: block; }
.phone .strip { position: absolute; left: 0; top: 0; width: 250px; }
.phone .strip img { position: static; display: block; width: 250px; margin-bottom: 10px; }

.chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 2px solid #2A3A63; font-size: 24px; margin: 6px 8px 6px 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; align-items: center; font-size: 28px; margin: 0 0 22px; color: var(--ink-2); }
.steps li b { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--coin); font-size: 26px; border: 2px solid #2A3A63; }
.steps li.on { color: var(--ink); }
.steps li.on b { background: var(--coin); color: #2a1f00; border-color: var(--coin); }
.deploy { padding: 18px 30px; border-radius: 12px; background: #F6821F; color: #fff; font-weight: 800; font-size: 30px; box-shadow: 0 10px 30px rgba(246,130,31,.35); }
.field { width: 520px; padding: 16px 20px; border-radius: 12px; background: #fff; color: #18244A; font-size: 26px; border: 3px solid var(--mine); }
.field small { display: block; font-size: 18px; color: #4A5675; margin-bottom: 4px; }
.cursor { width: 34px; height: 34px; }
.ripple { width: 80px; height: 80px; border-radius: 50%; border: 4px solid rgba(255,255,255,.8); }
.label { padding: 8px 16px; border-radius: 10px; background: var(--coin); color: #2a1f00; font-weight: 800; font-size: 22px; white-space: nowrap; }

.subs { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.subs p { margin: 0; max-width: 1220px; text-align: center; padding: 4px 16px; border-radius: 8px; background: rgba(5, 8, 15, .78); }
.subs .fr { font-size: 28px; font-weight: 800; color: #fff; }
.subs .en { font-size: 22px; color: #C9D3E0; }
.bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--coin); }
