@font-face {
  font-family:Geist;
  src:url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap;
}

@font-face {
  font-family:Bricolage;
  src:url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight:200 800;
  font-display:swap;
}

:root {
  --night: #000000;
  --paper: #fafafa;
  --ink: #1b1814;
  --quiet: #A8A8A8;
  --gold: #e5262e;
  --copper: #833c28;
  --line: #d8cebc;
  --font: Geist, system-ui, sans-serif;
  --display: Bricolage, var(--font);
}

*, *::before, *::after { box-sizing:border-box; }
body { margin:0; background:var(--night); color:var(--paper); font:16px/1.6 var(--font); }
a { color:inherit; text-underline-offset:.22em; }
button { font:inherit; cursor:pointer; }
:focus-visible { outline:2px solid #3A3A3A; outline-offset:4px; }
[hidden] { display:none !important; }
h1, h2, h3, p, figure { margin:0; }
.shell { width:min(100% - 64px, 1240px); margin-inline:auto; }
.skip { position:absolute; top:8px; left:8px; padding:8px 12px; z-index:3; transform:translateY(-150%); background:var(--night); }
.skip:focus { transform:none; }
.bar, .footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.bar { min-height:60px; font-size:.9rem; }
.bar a, .footer a { text-decoration:none; }
.bar a:hover, .footer a:hover { color:var(--gold); text-decoration:underline; }
.wordmark { display:inline-flex; align-items:center; gap:7px; color-scheme:dark; font-size:1rem; font-weight:750; letter-spacing:-.025em; }
.keyword { padding:2px 0 12px; text-align:center; font-size:.82rem; color:#E8E8E8; }
.keyword strong { color:var(--gold); }
.sheet { background:var(--paper); color:var(--ink); border-radius:22px; padding:clamp(24px, 5vw, 75px); }
.hero { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, .87fr); gap:clamp(24px, 5vw, 72px); align-items:center; }
.tool, .source { display:flex; align-items:center; gap:8px; }
.tool { margin-bottom:12px; font-weight:650; font-size:.85rem; color:var(--quiet); }
.tool img, .source img { object-fit:contain; }
h1, h2, h3 { font-family:var(--display); line-height:1.03; letter-spacing:-.043em; font-weight:650; }
h1 { margin-left:-.04em; font-size:clamp(3rem, 6.7vw, 6.5rem); }
h1 em { display:block; color:var(--copper); font-style:normal; }
.lead { max-width:42ch; margin-top:16px; font-size:clamp(1rem, 1.4vw, 1.15rem); color:var(--quiet); line-height:1.48; }
.hero-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.hero-actions a { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:8px; padding:8px 13px; border:1px solid transparent; border-radius:7px; text-decoration:none; font-weight:710; font-size:.86rem; line-height:1.2; }
.hero-actions .primary { background:var(--night); color:var(--paper); }
.hero-actions .primary:hover { background:#2E2E2E; }
.hero-actions .plus { background:#242424; color:#E8E8E8; border-color:#5A5A5A; }
.download-note { margin-top:8px; color:var(--quiet); font-size:.82rem; }
.source { width:fit-content; margin-top:8px; color:var(--copper); font-size:.86rem; font-weight:680; }

.demo { min-width:0; color:#E8E8E8; }
.stage { padding:clamp(12px, 2vw, 23px); min-width:0; background:#211a15; border:1px solid #3A3A3A; border-radius:15px 15px 0 0; }
.demo-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.84rem; font-weight:650; }
.time { border:1px solid #3A3A3A; border-radius:4px; padding:2px 7px; color:var(--gold); font-size:.73rem; }
.desk { margin-top:12px; border-radius:9px; padding:8px; background:#242424; }
.files { display:flex; flex-wrap:wrap; gap:4px; padding:0; margin:0 0 7px; list-style:none; }
.files li { padding:3px 6px; border-radius:4px; font:600 clamp(.62rem, 1.3vw, .73rem)/1.4 var(--font); color:#E8E8E8; background:#242424; transition:background .3s, color .3s; }
.demo[data-phase="0"] .files li:first-child,
.demo:not([data-phase="0"]) .files li:last-child { background:#2D2D2D; color:#E8E8E8; }
.demo-pages { display:grid; overflow:hidden; min-height:174px; border-radius:5px; background:#242424; }
.demo-page { grid-area:1 / 1; padding:clamp(11px, 2vw, 18px); min-width:0; background:#242424; color:#E8E8E8; font-size:.84rem; line-height:1.42; transform:translateX(104%) rotate(2deg); transform-origin:bottom right; visibility:hidden; transition:transform .48s cubic-bezier(.22,.61,.36,1), visibility .48s; }
.demo[data-phase="0"] .demo-page-plan,
.demo[data-phase="1"] .demo-page-quiz,
.demo[data-phase="2"] .demo-page-repeat { transform:none; visibility:visible; }
.paper-label { color:#E8E8E8; font-weight:700; font-size:.75rem; }
.paper-title { margin:5px 0; font:680 clamp(1.38rem, 2.5vw, 2rem)/1.05 var(--display); }
.plan-list { margin:7px 0 0; padding-left:18px; }
.wrong-answer { display:inline-block; margin-top:7px; padding:2px 6px; background:#242424; color:#E8E8E8; border-radius:3px; font-weight:720; }
.demo-page-repeat { border-left:4px solid #3A3A3A; }
.demo-controls, .stages { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.demo-controls { justify-content:space-between; background:#242424; border:1px solid #3A3A3A; border-top:0; border-radius:0 0 15px 15px; padding:5px; }
.demo-controls button { padding:4px 6px; min-height:34px; border:1px solid transparent; border-radius:5px; background:transparent; color:#E8E8E8; font-size:.74rem; }
.demo-controls button[aria-pressed="true"] { background:#242424; border-color:#5A5A5A; }
.demo-controls button:hover { border-color:#5A5A5A; }
figcaption { margin-top:5px; text-align:right; color:var(--quiet); font-size:.73rem; }

.guide { max-width:860px; margin:clamp(32px, 6vw, 72px) auto 0; border-top:1px solid var(--line); padding-top:clamp(23px, 4vw, 43px); }
h2 { font-size:clamp(2rem, 4vw, 3.4rem); }
h3 { font-size:clamp(1.53rem, 2.7vw, 2.1rem); }
.steps { margin:9px 0 0; padding-left:26px; }
.steps li { padding:19px 0 22px 10px; border-bottom:1px solid var(--line); }
.steps li::marker { color:var(--copper); font-weight:700; }
.steps p { margin-top:7px; color:var(--quiet); max-width:72ch; }
.steps a { color:var(--copper); font-weight:680; }
code { overflow-wrap:anywhere; background:#2D2D2D; border-radius:3px; padding:1px 3px; font-size:.94em; }
.prompt { margin-top:10px; max-width:72ch; }
.prompt summary { font-size:.91rem; font-weight:675; color:var(--copper); cursor:pointer; }
.prompt pre { background:#242424; border-radius:6px; white-space:pre-wrap; overflow-wrap:anywhere; padding:13px 15px; margin:8px 0; font:.9rem/1.58 var(--font); }
.copy { padding:6px 10px; border:1px solid var(--ink); border-radius:5px; background:transparent; color:var(--ink); font-size:.83rem; font-weight:650; }
.copy:hover { background:var(--ink); color:var(--paper); }
[role="status"] { margin-left:8px; font-size:.83rem; color:var(--quiet); }
.footer { padding-block:21px 31px; font-size:.83rem; color:#E8E8E8; }
.footer div { display:flex; flex-wrap:wrap; gap:6px 14px; }

@media (max-width: 830px) {
  .shell { width:calc(100% - 30px); }
  .hero { grid-template-columns:1fr; }
  .demo { max-width:520px; }
}

@media (max-width: 425px) {
  .bar { min-height:49px; }
  .keyword { padding-bottom:8px; }
  .sheet { padding:18px; border-radius:15px; }
  h1 { font-size:clamp(2.5rem, 13vw, 3.1rem); }
  .lead { margin-top:11px; }
  .hero-actions { margin-top:13px; }
  .steps { padding-left:19px; }
  .steps li { padding-left:4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; }
}
