:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B665E;
  --line: #E2DCD0;
  --accent: #E5683B;
  --accent-ink: #1A1A1A;
  --focus: #1A1A1A;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }

.hero { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero-sub { margin: 0 0 24px; color: var(--muted); font-size: 18px; }

.stage { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 16px; }
.stage-top { display: flex; align-items: center; gap: 10px; }
.stage-guide { font-size: 14px; color: var(--muted); }
.av-face { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.av-ink { fill: var(--ink); }
.av-accent { fill: var(--accent); }
.av-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.av-check { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.stage-body { display: grid; min-height: 300px; }
.layer { grid-area: 1 / 1; }
.layer-work { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.col { display: grid; gap: 14px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.prompt-card { min-height: 104px; }
.prompt-text { margin: 8px 0 0; font-size: 18px; min-height: 1.5em; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.btn-wrap { position: relative; justify-self: start; }
.fake-btn { position: relative; display: inline-block; overflow: hidden; border: 2px solid var(--accent); border-radius: 999px; padding: 10px 22px; font-weight: 600; color: var(--accent); }
.fake-btn-fill { position: absolute; inset: 0; background: var(--accent); }
.fake-btn-label { position: relative; }
.cursor { position: absolute; right: 18px; bottom: -14px; fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }

.status { margin: 0; font-size: 15px; color: var(--ink); }
.card-title { margin: 0 0 10px; font-weight: 600; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.chip { display: inline-block; border-radius: 999px; padding: 6px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.auto-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.layer-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel p { margin: 8px 0 0; }
.panel-h { font-weight: 700; font-size: 18px; margin: 0 0 6px !important; }
.chip.more { justify-self: start; background: var(--ink); color: var(--surface); }

.layer-poster { display: grid; place-content: center; text-align: center; }
.poster-name { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.poster-line { margin: 6px 0 0; font-size: 18px; color: var(--muted); }

.stage-captions { display: grid; border-top: 1px solid var(--line); padding-top: 12px; min-height: 3.2em; }
.caption { grid-area: 1 / 1; margin: 0; font-size: 18px; font-weight: 500; }

/* Elements that enter start hidden; hero.js animates them in. */
.prompt-text span, .cursor, .fake-btn-fill, .status span, .structured, .chip,
.layer-panels .panel, .chip.more, .layer-poster, .caption,
#guide-avatar [data-state="working"], #guide-avatar [data-state="done"] { opacity: 0; }

.controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.ctl { font: inherit; font-size: 15px; padding: 8px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.ctl:hover { background: var(--bg); }
.ctl:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ctl:disabled { opacity: 0.45; cursor: default; }
.scene-count { font-size: 15px; color: var(--muted); min-width: 4.5em; text-align: center; }

.transcript { margin-top: 32px; max-width: 70ch; }
.transcript h2 { font-size: 20px; margin: 0 0 8px; }
.transcript li { margin-bottom: 8px; }

.faq { margin-top: 32px; max-width: 70ch; }
.faq h2 { font-size: 20px; margin: 0 0 8px; }
.faq h3 { font-size: 17px; margin: 16px 0 2px; }
.faq p { margin: 0 0 8px; }
.learn a { color: var(--ink); }
.learn a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 600px) {
  .hero { padding: 32px 16px; }
  .stage { padding: 14px; }
  .layer-work, .layer-panels { grid-template-columns: 1fr; }
  .caption, .prompt-text { font-size: 16px; }
  .avatar { width: 44px; height: 44px; }
}

.hero-cta { margin: -8px 0 24px; }
.cta { display: inline-block; padding: 10px 22px; min-height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
