/* The install guides (/start). Same tokens as the landing page. */
@font-face { font-family: Geist; src: url(/assets/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg:#fafaf8; --ink:#111; --muted:#5c5c58; --line:#e3e3de; --card:#fff; --code:#f1f1ec; --accent:#111; --on-accent:#fff; --mark:#ff5b1f; --mark-soft:rgba(255,91,31,.18); --ok:#1d7a46; --warn:#9a6200; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f0f0e; --ink:#f3f3f0; --muted:#a3a39d; --line:#2a2a27; --card:#171715; --code:#1f1f1c; --accent:#f3f3f0; --on-accent:#111; --mark:#ff7a45; --mark-soft:rgba(255,122,69,.22); --ok:#5fcf8f; --warn:#e0b050; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--ink); font: 16px/1.55 Geist, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 16px 56px; min-height: 100vh; display:flex; flex-direction:column; }
@media (min-width: 640px) { .wrap { padding: 32px 24px 64px; } }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
header nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }
.home { display:inline-flex; }
.lockup { height: 24px; width:auto; color: var(--ink); }
main { flex:1; padding: 56px 0 40px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 640; margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 36em; margin: 16px 0 28px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.note b, .note code { color: var(--ink); }

/* plain / with Stet, and the video link */
.bar { display:flex; flex-wrap:wrap; align-items:center; gap: 12px 16px; margin: 0 0 32px; }
.switch { display:inline-flex; background: var(--code); border-radius: 999px; padding: 4px; }
.switch a { text-decoration:none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 7px 14px; border-radius: 999px; }
.switch a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.play { font-size: 14px; font-weight: 500; color: var(--muted); }
.play::before { content: "▶"; font-size: 10px; margin-right: 7px; position: relative; top: -1px; }

/* what you need + copy boxes */
.need { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 8px; }
.need h2, .after h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.need ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.need p, .after p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.code, .prompt, .cmd { position:relative; display:flex; align-items:center; gap: 12px; background: var(--code); border-radius: 10px; padding: 10px 10px 10px 14px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code span, .prompt span, .cmd span { flex:1; overflow-wrap:anywhere; }
.copy { flex: none; appearance:none; border:1px solid var(--line); background:var(--card); color:var(--ink); font: 500 13px Geist, system-ui, sans-serif; padding: 6px 10px; border-radius: 8px; cursor:pointer; }
.copy:focus-visible, .switch a:focus-visible { outline: 3px solid #6b8afd; outline-offset: 2px; }

/* the steps */
.guide { list-style:none; margin: 0; padding: 0; }
.step { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.step h2 { display:flex; align-items:baseline; gap: 12px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 620; margin: 0 0 6px; }
.n { flex:none; display:inline-grid; place-items:center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 640; position: relative; top: -2px; }
.step .text p { margin: 0 0 14px; color: var(--muted); max-width: 40em; padding-left: 40px; }
.step .text p b { color: var(--ink); font-weight: 600; }
.says { display:flex; gap: 10px; align-items: baseline; color: var(--ink) !important; font-size: 15px; }
.says span { flex:none; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 1px 8px; }
.shot { margin: 6px 0 20px 40px; }
.frame { position: relative; width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); }
.frame img { display:block; width:100%; height:auto; }
.mark { position:absolute; box-sizing: content-box; margin: -5px; padding: 2px; border: 3px solid var(--mark); border-radius: 10px; box-shadow: 0 0 0 4px var(--mark-soft); pointer-events:none; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--mark-soft); } }
@media (prefers-reduced-motion: reduce) { .mark { animation: none; } }
.term { margin: 6px 0 20px 40px; background: #111; color: #f3f3f0; border-radius: 12px; padding: 8px; }
.term .cmd { background: #1d1d1b; color: #f3f3f0; }
.term .cmd span::before { content: "$ "; color: #8a8a84; }
.term .copy { background:#2a2a27; color:#f3f3f0; border-color:#3a3a36; }
.term .out { margin: 0; padding: 10px 14px 6px; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #b9b9b2; white-space: pre-wrap; overflow-wrap:anywhere; }
@media (max-width: 560px) { .step .text p, .shot, .term { padding-left: 0; margin-left: 0; } }

/* then talk */
.after { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 12px; }
.prompts { list-style:none; margin: 0 0 16px; padding: 0; display:grid; gap: 8px; }
.prompt { font-family: Geist, system-ui, sans-serif; font-size: 15px; }
.prompt span::before { content: "\201C"; } .prompt span::after { content: "\201D"; }

/* the hub */
.cards { list-style:none; margin: 0; padding: 0; display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display:flex; flex-direction:column; gap: 4px; text-decoration:none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; height: 100%; }
.card:hover { border-color: var(--muted); }
.card b { font-size: 19px; font-weight: 620; }
.card span { color: var(--muted); font-size: 14px; }
.chip { margin-top: 10px; align-self:flex-start; font-style: normal; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--code); color: var(--muted); }
.chip.ready { color: var(--ok); }
.chip.unavailable { color: var(--warn); }
.more { color: var(--muted); font-size: 15px; margin-top: 24px; }

footer { font-size: 13px; color: var(--muted); display:flex; justify-content:space-between; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }

/* the voice-over script */
.script table { width:100%; border-collapse: collapse; font-size: 14px; }
.script th, .script td { text-align:left; vertical-align: top; border-top: 1px solid var(--line); padding: 10px 8px; }
.script th { font-size: 12px; color: var(--muted); font-weight: 600; }
.script td:nth-child(2) { max-width: 180px; overflow-wrap:anywhere; }
@media (max-width: 640px) { .script table, .script tbody, .script tr, .script td { display:block; } .script thead { display:none; } .script tr { border-top: 1px solid var(--line); padding: 8px 0; } .script td { border: 0; padding: 2px 0; } }

/* video mode: a 1920x1080 stage, scaled to the window */
body.playing { overflow: hidden; height: 100vh; }
body.playing .wrap { display:none; }
.stage { position: absolute; inset: 0; height: 100vh; background: var(--bg); } /* not fixed: Stet only stands on elements that scroll with the page */
.stage .canvas { position:absolute; left:0; top:0; width:1920px; height:1080px; transform-origin: 0 0; }
.slide { position:absolute; inset:0; padding: 64px 96px 0; display:flex; flex-direction:column; opacity:0; transition: opacity .35s ease; }
.slide.on { opacity:1; }
.slide .top { display:flex; justify-content:space-between; align-items:center; font-size: 26px; color: var(--muted); height: 40px; }
.slide .top .lockup { height: 34px; }
.slide h2 { font-size: 64px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 640; margin: 26px 0 0; }
.slide .media { position:absolute; left:96px; right:96px; top:262px; height:620px; display:flex; align-items:center; justify-content:center; }
.slide .media .frame { width:auto; flex:none; border-radius: 18px; }
.slide .media .mark { border-width: 5px; margin: -9px; padding: 4px; border-radius: 14px; }
.slide .media .term { margin:0; width: 1500px; padding: 18px; border-radius: 22px; }
.slide .media .term .cmd { font-size: 40px; padding: 22px 26px; border-radius: 14px; }
.slide .media .term .out { font-size: 30px; padding: 22px 26px 10px; }
.slide .media .term .copy { display:none; }
.slide .cap { position:absolute; left:96px; right:96px; bottom:76px; display:flex; justify-content:center; align-items:baseline; gap: 18px; font-size: 38px; line-height:1.3; font-weight: 500; text-align:center; }
.slide .cap span.who { flex:none; font-size: 22px; font-weight: 600; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 3px 16px; position: relative; top: -6px; }
.slide.title, .slide.end { justify-content:center; padding: 0 160px; }
.slide.title .top, .slide.end .top { position:absolute; left:96px; right:96px; top:64px; }
.slide.title h1 { font-size: 120px; line-height: 1.02; margin: 0; }
.slide.title p, .slide.end p { font-size: 40px; color: var(--muted); margin: 28px 0 0; }
.slide.end h1 { font-size: 96px; margin: 0 0 24px; }
.slide.end ul { list-style:none; margin: 0; padding: 0; display:grid; gap: 18px; }
.slide.end li { font-size: 44px; background: var(--code); border-radius: 18px; padding: 20px 30px; }
.slide.end li::before { content: "\201C"; } .slide.end li::after { content: "\201D"; }
.progress { position:absolute; left:0; bottom:0; height:8px; background: var(--mark); width:0; }
.controls { position: fixed; right: 16px; bottom: 16px; display:flex; gap: 6px; z-index: 5; }
.controls button { appearance:none; border:1px solid var(--line); background: var(--card); color: var(--ink); font: 500 13px Geist, system-ui, sans-serif; padding: 7px 11px; border-radius: 8px; cursor:pointer; }
.clean .controls { display:none; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
