/* Explainer Studio (local). One stylesheet, no external requests.
   Fonts are self-hosted; sources, versions and hashes are in fonts/README.txt. */

@font-face {
  font-family: "Hanken Grotesk Variable";
  src: url("../fonts/hanken-grotesk/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("../fonts/bricolage-grotesque/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --sunken: #f3efe4;
  --ink: #1c1a17;
  --muted: #5b564d;
  --line: #ddd6c6;
  --line-strong: #8a8372;
  --accent: #1f4f4a;
  --accent-hover: #173d39;
  --accent-soft: #e2efec;
  --on-accent: #fdf9ef;
  --focus: #1257d6;
  --error: #9f1f17;
  --error-bg: #fdeeec;
  --warn: #6b4500;
  --warn-bg: #fff3d4;
  --warn-line: #b97a00;
  --ok: #1c5f2e;
  --ok-bg: #e6f3e9;
  --info: #1f4763;
  --info-bg: #e8f0f6;
  --ai: #45287d;
  --ai-bg: #eee7fb;
  --bench: #f6f2ea;
  --bench-deep: #ebe0c9;
  --ink-strong: #15130f;
  --cobalt: #1f3fbf;
  --cobalt-hover: #17309a;
  --cobalt-soft: #e3e8fb;
  --vermilion: #e0432a;
  --vermilion-ink: #b2321c;
  --radius: 10px;
  --font-body: "Hanken Grotesk Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Hanken Grotesk Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, .mono { font-family: var(--font-mono); font-size: 0.875em; }
code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; }
q { quotes: "“" "”"; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 8px 12px; background: var(--ink); color: #fff; border: 0; border-radius: 6px; font: inherit; }
.skip:focus { top: 8px; }
.noscript { max-width: 60ch; margin: 40px auto; padding: 0 16px; }

/* ---- shell ---- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.1rem var(--font-display); }
.brand-tag { font: 600 0.7rem var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; }
.nav a:hover { background: var(--sunken); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.key-status { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.key-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.main { max-width: 960px; margin: 0 auto; padding: 28px 20px 120px; }

/* ---- basics ---- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.stack > * + * { margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.lead { color: var(--muted); margin-top: 6px; max-width: 65ch; }
.eyebrow { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.875rem; }
.meta-inverse { opacity: 0.85; font-weight: 400; }
.hint { color: var(--muted); font-size: 0.875rem; }
.quote { font-style: italic; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-title { margin-top: 28px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.section-row .section-title { margin-top: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 0.95rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sunken); color: var(--ink); }
.btn:disabled { cursor: not-allowed; color: #77726a; background: var(--sunken); border-color: var(--line); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--accent); }
.btn-small { min-height: 32px; padding: 4px 10px; font-size: 0.875rem; }
.btn-icon { min-height: 36px; width: 36px; padding: 0; justify-content: center; }

/* ---- notices ---- */
.notice { border: 1px solid var(--line-strong); border-left-width: 5px; border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.notice > * + * { margin-top: 8px; }
.notice ul { list-style: disc; padding-left: 20px; }
.notice-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 650; }
.notice-title .icon { margin-top: 0.15em; }
.notice-error { background: var(--error-bg); border-color: var(--error); color: #4d100b; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); color: #123f1e; }
p.notice-ok, p.notice-warn { display: flex; gap: 8px; align-items: flex-start; }
.notice-info { background: var(--info-bg); border-color: var(--info); color: #16334a; }
.notice-progress { background: var(--surface); border-color: var(--accent); }
.notice .hint, .notice .meta { color: inherit; opacity: 0.85; }
.server-message, .code-line { font-size: 0.875rem; }
.countdown { font-size: 0.875rem; }
.progress { display: block; width: 100%; height: 10px; accent-color: var(--accent); }
.op-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.875rem; color: var(--muted); }

/* ---- forms ---- */
.form > * + * { margin-top: 22px; }
.field > * + * { margin-top: 6px; }
.label { display: block; font-weight: 600; font-size: 0.925rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.input { display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
textarea.input { resize: vertical; min-height: 64px; }
.input[readonly] { background: var(--sunken); border-color: var(--line); }
.input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; background: #fffafa; }
.select { width: auto; min-width: 200px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: 0.875rem; font-weight: 550; }
.counter { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter-over { color: var(--error); font-weight: 650; }
.fieldset { border: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; min-width: 0; }
:not(.form) > .fieldset { margin-top: 0; }
.form > .fieldset:first-child { margin-top: 0; }
.fieldset legend { margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.choice:hover { background: var(--sunken); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choice-text { display: flex; flex-direction: column; }
.choice-label { font-weight: 600; }
.choice-hint { color: var(--muted); font-size: 0.8125rem; }
.choice-disabled { cursor: not-allowed; border-style: dashed; border-color: var(--line); background: var(--sunken); }
.choice-disabled .choice-label { color: var(--muted); }
.frame { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 4px; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); flex: none; }
.frame-landscape { width: 64px; height: 36px; }
.frame-vertical { width: 27px; height: 48px; }
.frame-line { height: 3px; background: var(--line-strong); border-radius: 2px; }
.frame-line-short { width: 60%; }
.range { display: block; width: 100%; accent-color: var(--accent); height: 28px; }
.range-value { font-weight: 650; font-variant-numeric: tabular-nums; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; }
.key-card { max-width: 560px; margin: 24px auto; }
.key-card > * + * { margin-top: 16px; }
.help summary, .history summary, .labels summary, .regen summary { cursor: pointer; font-weight: 600; }
.help > * + * { margin-top: 8px; }
.code { background: var(--ink); color: #f4efe2; padding: 12px; border-radius: 8px; overflow-x: auto; margin: 0; }
.code code { background: none; padding: 0; color: inherit; }

/* ---- empty, lists ---- */
.empty { text-align: center; padding: 36px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.empty > * + * { margin-top: 12px; }
.empty p { color: var(--muted); max-width: 60ch; margin-left: auto; margin-right: auto; }
.example-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; text-align: left; margin-top: 16px; }
.example { display: block; height: 100%; padding: 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.example:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.example-title { display: block; font: 650 1rem var(--font-display); }
.example-prompt { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 4px; }
.project-list > li + li { margin-top: 12px; }
.project-card { display: block; color: var(--ink); text-decoration: none; }
.project-card:hover { border-color: var(--accent); color: var(--ink); }
.project-title { display: block; font: 650 1.1rem var(--font-display); }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.project-head { width: 100%; }
.project-head h1 { margin-top: 4px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- skeleton ---- */
.skeleton > * + * { margin-top: 10px; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #ebe5d6 25%, #f5f1e6 50%, #ebe5d6 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-w1 { width: 55%; } .skeleton-w2 { width: 90%; } .skeleton-w3 { width: 72%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- storyboard ---- */
.origin > * + * { margin-top: 10px; }
.origin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.origin-label { font-size: 0.925rem; }
.origin-flag { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; color: var(--warn); font-size: 0.925rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 2px solid; font-weight: 650; font-size: 0.925rem; }
.badge-small { padding: 1px 8px; font-size: 0.75rem; border-width: 1px; }
.badge-ai { background: var(--ai-bg); border-color: var(--ai); color: var(--ai); }
.badge-offline { background: #e9edf0; border-color: #33414d; color: #26323c; border-style: dashed; }
.badge-authored { background: var(--info-bg); border-color: var(--info); color: var(--info); border-style: dashed; }
.badge-edited { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.badge-unknown { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); border-style: dotted; }
.facts { margin: 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.scene-list > li + li { margin-top: 14px; }
.scene > * + * { margin-top: 14px; }
.scene-invalid { border-color: var(--error); border-width: 2px; }
.scene-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scene-number { font: 650 1.05rem var(--font-display); }
.scene-type { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; background: var(--sunken); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.scene-tools { margin-left: auto; display: inline-flex; gap: 6px; }
.drag { display: inline-flex; padding: 6px 2px; color: var(--muted); cursor: grab; border-radius: 6px; }
.drag:hover { background: var(--sunken); color: var(--ink); }
.dragging { opacity: 0.5; }
.drop-target { outline: 3px dashed var(--accent); outline-offset: 3px; }
.tag { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.tag-edited { border-color: var(--accent); color: var(--accent); }
.tag-error { border-color: var(--error); color: var(--error); }
.steps { padding: 10px 14px; background: var(--sunken); border-radius: 8px; }
.steps ul { list-style: disc; padding-left: 18px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; }
.chip-kind { color: var(--muted); font-size: 0.75rem; }
.route { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.875rem; }
.alt-list { list-style: none !important; padding-left: 0 !important; }
.alt-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.issue-list li { display: flex; gap: 8px; align-items: flex-start; }
.issue-list li + li { margin-top: 4px; }
.notice ul.issue-list { list-style: none; padding-left: 0; }
.scene-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.field-inline { min-width: 220px; }
.regen { flex: 1 1 280px; }
.regen summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--accent); }
.regen-body > * + * { margin-top: 8px; }
.history > * + *, .labels > * + * { margin-top: 12px; }
.history summary, .labels summary { display: flex; align-items: center; gap: 8px; }
.history-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.history-title { font-weight: 650; }
.history-current { background: var(--accent-soft); margin: 0 -12px; padding-left: 12px !important; padding-right: 12px !important; border-radius: 6px; }
.label-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(28, 26, 23, 0.12); }
.savebar:empty { display: none; }
.savebar-text { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 550; }
.savebar-dirty { border-color: var(--warn-line); border-width: 2px; background: var(--warn-bg); }
.savebar-dirty .savebar-text { color: var(--warn); }

/* ---- cost ---- */
.cost-total > * + * { margin-top: 4px; }
.cost-amount { display: flex; align-items: center; gap: 10px; font: 650 2rem var(--font-display); font-variant-numeric: tabular-nums; }
.cost-unknown { border: 2px solid var(--warn-line); background: var(--warn-bg); }
.cost-unknown .cost-amount, .cost-unknown .hint, .cost-unknown .eyebrow { color: var(--warn); }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-unknown-cell { color: var(--warn); font-weight: 650; }

/* ---- render ---- */
.render-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.render-card > * + * { margin-top: 12px; }
.render-head { display: flex; flex-direction: column; gap: 2px; }
.player-wrap { background: #14120f; border-radius: 8px; overflow: hidden; display: flex; justify-content: center; }
.player { display: block; width: 100%; max-height: 420px; aspect-ratio: 16 / 9; background: #14120f; }
.render-vertical .player { aspect-ratio: 9 / 16; width: auto; max-width: 100%; height: 420px; }
.thumb-row { display: flex; align-items: center; gap: 10px; }
.thumb { height: 54px; width: auto; border: 1px solid var(--line); border-radius: 4px; }

/* ---- site look (Create, Examples, Pricing, Docs, Sign in/up) ---- */
body.is-home { background: var(--bench); }
body.is-home .topbar { background: transparent; border-bottom: 0; padding: 14px 32px; min-height: 60px; }
body.is-home .main { max-width: 1240px; padding: 8px 32px 56px; }
.topbar .brand img { display: block; }
.topbar .brand { font: 700 1.05rem var(--font-display); letter-spacing: -0.01em; }
.nav a[hidden] { display: none; }
body.is-home .nav a { color: var(--ink-strong); font-weight: 500; padding: 6px 10px; }
body.is-home .nav a:hover { background: rgba(21, 19, 15, 0.06); }
body.is-home .nav a[aria-current="page"] { background: transparent; color: var(--ink-strong); font-weight: 700; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mono { font-family: var(--font-label); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.02em; }

/* Create: headline, one supporting line, one composer */
.create { padding-top: 20px; }
.create-title {
  font: 500 clamp(2.1rem, 8vw, 7.4rem)/1 var(--font-display);
  letter-spacing: -0.045em; color: #33312d; white-space: nowrap; text-align: center;
}
.create > * + * { margin-top: 14px; }
.create .composer { margin-top: 26px; }
.composer {
  position: relative;
  background: #fffdf8; border: 2px solid var(--ink-strong); border-radius: 16px;
  padding: 16px 16px 12px 20px;
}
.composer-busy { border-color: var(--line-strong); }
.composer-input {
  display: block; width: 100%; min-height: 58px; max-height: 300px; resize: vertical;
  border: 0; background: transparent; color: var(--ink-strong);
  font: 400 1.3rem/1.4 var(--font-body); padding: 2px 0;
}
.composer-input::placeholder { color: #8a8374; }
.composer-input:focus-visible { outline: none; }
.composer:focus-within { box-shadow: 0 0 0 3px var(--cobalt-soft); }
.composer-input[readonly] { color: #5b564d; }
.composer-input[aria-invalid="true"] { background: #fff4f1; border-radius: 6px; }
.composer:has(.composer-input[aria-invalid="true"]) { border-color: var(--error); }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 10px; }
.composer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.composer-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-quiet-ink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1.5px solid var(--ink-strong); border-radius: 999px; background: transparent;
  color: var(--ink-strong); font: 600 0.9rem var(--font-body); cursor: pointer;
}
.btn-quiet-ink:hover { background: rgba(21, 19, 15, 0.06); }
.btn-quiet-ink[aria-expanded="true"] { background: var(--ink-strong); color: #fffdf8; }
.opt-caret { transition: transform 120ms ease; }
.opt-toggle[aria-expanded="true"] .opt-caret { transform: rotate(180deg); }
.gh-toggle .icon { width: 1.05em; height: 1.05em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-example {
  min-height: 36px; padding: 6px 12px; border: 1.5px dashed #a59d8c; border-radius: 999px;
  background: transparent; color: #3b372f; font: 500 0.9rem var(--font-body); cursor: pointer;
}
.chip-example:hover { border-style: solid; border-color: var(--ink-strong); color: var(--ink-strong); }
.chip-example:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-animate {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; min-width: 132px; padding: 10px 24px;
  border: 0; border-radius: 12px; background: var(--cobalt); color: #fff;
  font: 700 1.05rem var(--font-body); letter-spacing: 0.01em; cursor: pointer;
  transition: background-color 120ms ease;
}
.btn-animate:hover { background: var(--cobalt-hover); }
.btn-animate:disabled { cursor: progress; background: #4a5e9f; }
.btn-animate:disabled .btn-animate-label::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 8px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; vertical-align: -0.08em; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer-error:empty { display: none; }
.opt-panel, .int-panel { margin-top: 12px; padding-top: 14px; border-top: 1.5px solid #e6dfd0; }
.opt-panel:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.opt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.opt-label { color: var(--muted); text-transform: uppercase; padding: 0; }
.opt-select { min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--ink-strong); border-radius: 10px; background: #fffdf8; color: var(--ink-strong); font: 500 0.92rem var(--font-body); }
.opt-radios { display: flex; gap: 8px; }
.opt-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--ink-strong); border-radius: 10px; cursor: pointer; }
.opt-radio:has(input:checked) { background: var(--ink-strong); color: #fffdf8; }
.opt-radio input { accent-color: var(--cobalt); margin: 0; }
.opt-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
.opt-summary { color: var(--muted); }
.int-heading { font: 700 1rem var(--font-body); }
.int-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 8px; }
.int-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1.5px dashed #b9b1a0; border-radius: 10px; }
.int-name { font-weight: 700; }
.int-use { grid-column: 1 / -1; color: #3b372f; font-size: 0.9rem; }
.int-state { grid-column: 2; grid-row: 1; justify-self: end; color: var(--muted); }
.int-note { margin-top: 10px; color: var(--muted); font-size: 0.88rem; max-width: 72ch; }

.composer-status:empty { display: none; }
.composer-status > * + * { margin-top: 10px; }
.status-kept { display: flex; align-items: center; gap: 6px; }
.status-extra > * + * { margin-top: 8px; }
.result-card .actions { margin-top: 12px; }
.result-scenes { list-style: decimal; padding-left: 22px; }
.result-scenes li + li { margin-top: 6px; }
.demo-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1.5px dashed currentColor; border-radius: 6px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border: 2px dashed #b2321c; border-radius: 12px; background: #fff3ee; color: #5f1a0d; font-size: 0.925rem; }
.demo-banner strong { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.demo-banner a { margin-left: auto; color: #5f1a0d; font-weight: 600; }
.key-inline > * + * { margin-top: 10px; }
.key-inline-row { display: flex; flex-wrap: wrap; gap: 8px; }
.key-inline-row .input { flex: 1 1 260px; width: auto; }
body.is-home .btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
body.is-home .btn-primary:hover { background: var(--cobalt-hover); color: #fff; }
body.is-home .btn-quiet { color: var(--cobalt); }
body.is-home .progress { accent-color: var(--cobalt); }
body.is-home .notice-progress { border-color: var(--cobalt); }

/* Examples: a filterable grid on the page's cream */
body.is-home { overflow-x: clip; }
.reel { margin: 120px calc(50% - 50vw) 0; color: var(--ink-strong); scroll-margin-top: 16px; }
.reel-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px 24px; }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.reel-intro { max-width: 640px; }
.reel-eyebrow { font: 400 0.78rem var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--vermilion-ink); }
.reel-heading { margin-top: 14px; font: 500 clamp(2.2rem, 4.4vw, 3.9rem)/1.02 var(--font-display); letter-spacing: -0.03em; color: var(--ink-strong); }
.reel-lede { margin-top: 16px; max-width: 54ch; font-size: 1.1rem; line-height: 1.55; color: var(--muted); }
.reel-all { flex: none; padding-bottom: 4px; color: var(--vermilion-ink); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.reel-all:hover { text-decoration: underline; }
.reel a:focus-visible, .reel button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.reel-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.reel-filter { min-height: 44px; padding: 8px 20px; border: 1.5px solid #cfc7b6; border-radius: 999px; background: transparent; color: var(--ink-strong); font: 500 1rem var(--font-body); cursor: pointer; }
.reel-filter:hover { border-color: var(--ink-strong); }
.reel-filter-on, .reel-filter-on:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: #fbf7ef; }
.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin-top: 32px; }
.reel-card { display: flex; flex-direction: column; min-width: 0; animation: reel-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reel-card:nth-child(2) { animation-delay: 60ms; }
.reel-card:nth-child(3) { animation-delay: 120ms; }
.reel-card:nth-child(4) { animation-delay: 180ms; }
.reel-card:nth-child(5) { animation-delay: 240ms; }
@keyframes reel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #ebe4d6; box-shadow: inset 0 0 0 1px rgba(21, 19, 15, 0.08); }
.reel-on .reel-frame { box-shadow: 0 0 0 3px var(--cobalt); }
.reel-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.reel-play:hover img { transform: scale(1.04); }
.reel .reel-play:focus-visible { outline-offset: -3px; }
.reel-play-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(21, 19, 15, 0.82); color: #fff; transition: transform 200ms ease; }
.reel-play:hover .reel-play-badge { transform: scale(1.1); }
.reel-play-badge .icon { width: 18px; height: 18px; margin-left: 3px; }
.reel-time { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(21, 19, 15, 0.78); color: #fbf7ef; font-size: 0.72rem; }
.reel-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #15130f; }
.reel-title { margin-top: 16px; font: 500 1.35rem/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ink-strong); }
.reel-facts { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.reel-use { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 34px; padding: 4px 14px; border: 1.5px solid var(--ink-strong); border-radius: 999px; background: transparent; color: var(--ink-strong); font: 600 0.85rem var(--font-body); cursor: pointer; }
.reel-use:hover { background: rgba(21, 19, 15, 0.06); }
.reel-use-on, .reel-use-on:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.reel-off { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

/* ---- centred boxed nav, mono labels, square corners ---- */
body.is-home .topbar {
  width: fit-content; max-width: calc(100% - 24px); min-height: 0; margin: 12px auto 0;
  padding: 6px 6px 6px 12px; gap: 6px 22px;
  background: #fffdf8; border: 1px solid #a59d8c; border-radius: 4px;
}
body.is-home .nav a, .top-link, .lang-summary, .key-note { font-family: var(--font-label); font-size: 0.82rem; font-weight: 400; }
body.is-home .nav a[aria-current="page"] { font-weight: 400; }
body.is-home .key-status { margin-left: 0; }
.topbar .lang-summary, .btn-quiet-ink, .chip-example, .reel-filter, .reel-use { border-radius: 4px; }
.btn-quiet-ink, .chip-example, .reel-filter, .reel-use { font-family: var(--font-label); font-weight: 400; font-size: 0.82rem; }
.topbar .btn-start { min-height: 40px; padding: 6px 16px; border-radius: 3px; border-color: #26336b; background: #26336b; color: #fffdf8; font: 400 0.85rem var(--font-label); }
.topbar .btn-start:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.btn-animate { border-radius: 4px; font: 400 0.95rem var(--font-label); }
.composer { border-width: 1.5px; border-radius: 6px; }
.create > .composer, .create > .notice, .create > .composer-error, .create > .demo-banner, .create > .composer-status { max-width: 1000px; margin-left: auto; margin-right: auto; }
.reel-frame { border-radius: 6px; }
.reel-title { font-weight: 500; }

.site-foot { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 0 20px 28px; font: 400 0.8rem var(--font-label); }
.site-foot a, .site-foot-btn { color: var(--muted); background: none; border: 0; padding: 4px 2px; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-foot a:hover, .site-foot-btn:hover { color: var(--ink-strong); }

.top-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpl-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.api-list > li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2dbcc; }
.api-path { font-size: 0.9rem; overflow-wrap: anywhere; }
.api-method { display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--ink-strong); color: #fffdf8; }

.hero-anim { position: relative; max-width: 1180px; margin: 28px auto 0; }
.hero-anim-video {
  display: block; width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-anim-video { cursor: pointer; }
.aud-band { margin: 72px calc(50% - 50vw) 0; border-top: 1px solid #ddd6c6; border-bottom: 1px solid #ddd6c6; background: rgba(21, 19, 15, 0.025); }
.aud-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; max-width: 1240px; margin: 0 auto; padding: 18px 32px; }
.aud-lead { color: var(--muted); font-size: 0.98rem; }
.aud-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aud-pill { padding: 6px 14px; border: 1px solid #cfc7b6; border-radius: 999px; font-size: 0.9rem; color: var(--ink-strong); }

/* shared site-page pieces */
.home-section { margin-top: 72px; }
.section-head { max-width: 760px; }
.section-kicker { display: inline-block; font: 400 0.8rem var(--font-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.section-heading { margin-top: 6px; font: 800 clamp(2rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink-strong); }
.section-lead { margin-top: 12px; color: #3b372f; font-size: 1.05rem; max-width: 62ch; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.look { display: flex; flex-direction: column; border: 1.5px solid var(--ink-strong); border-radius: 14px; background: #fffdf8; overflow: hidden; }
.look-media { position: relative; border-bottom: 1.5px solid var(--ink-strong); }
.look-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.look-still { position: absolute; left: 10px; bottom: 10px; padding: 1px 8px; border-radius: 6px; background: rgba(21, 19, 15, 0.82); color: #fff; font: 400 0.72rem var(--font-label); text-transform: uppercase; }
.look-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.look-title { font: 700 1.3rem var(--font-display); letter-spacing: -0.01em; }
.look-source { color: var(--muted); font-size: 0.8rem; }
.home-footer { margin-top: 56px; padding-top: 18px; border-top: 1.5px solid #e2dbcc; color: var(--muted); font-size: 0.9rem; }
.home-footer a { color: var(--ink-strong); }

/* ---- topbar: language, blob toggle, sign in / sign up / start free ---- */
.key-status { gap: 12px; }
.top-link { color: #4a453c; font-weight: 500; font-size: 0.88rem; text-decoration: none; padding: 6px 4px; }
.top-link:hover { color: var(--cobalt); text-decoration: underline; }
.top-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--vermilion); }
.btn-start {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px;
  border: 1.5px solid var(--ink-strong); border-radius: 999px;
  background: transparent; color: var(--ink-strong); text-decoration: none;
  font: 600 0.88rem var(--font-body);
}
.btn-start:hover { background: var(--ink-strong); color: #fffdf8; }
.lang-menu { position: relative; }
.lang-summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 9px; border: 1px solid #b9b1a0; border-radius: 999px; background: #fffdf7; cursor: pointer; list-style: none; font: 600 0.85rem var(--font-body); }
.lang-summary::-webkit-details-marker { display: none; }
.lang-summary:hover { background: var(--cobalt-soft); }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 260px; padding: 14px 16px; border: 2px solid var(--ink-strong); border-radius: 12px; background: #fffdf7; box-shadow: 5px 5px 0 var(--ink-strong); }
.lang-panel > * + * { margin-top: 8px; }
.lang-heading { font: 600 0.75rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lang-option { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cobalt); }
.lang-note { color: var(--muted); font-size: 0.85rem; }
.blob-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #b9b1a0; border-radius: 50%; background: #fffdf7; cursor: pointer; }
.blob-toggle img { display: block; }
.blob-toggle[aria-pressed="false"] { border-style: dashed; background: transparent; }
.blob-toggle[aria-pressed="false"] img { filter: grayscale(1); opacity: 0.5; }
.blob-toggle:hover { background: var(--cobalt-soft); }

/* ---- the blob that follows the cursor ---- */
.blob-cursor { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; z-index: 60; transition: opacity 220ms ease; }
.blob-off { display: none; }
.blob-shy, .blob-typing { opacity: 0.2; }
.blob-away { opacity: 0; }
.blob-bob { transform-box: fill-box; transform-origin: 50% 100%; animation: blob-bob 2.4s ease-in-out infinite; }
@keyframes blob-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.blob-hop .blob-bob { animation: blob-hop 420ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes blob-hop { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(2px) scale(1.12, 0.86); } 65% { transform: translateY(-16px) scale(0.92, 1.1); } 100% { transform: translateY(0) scale(1, 1); } }
.blob-bead { transition: fill 160ms ease; }
.blob-curious .blob-bead { fill: #34d399; }

/* ---- site pages ---- */
.site-intro { max-width: 760px; padding: 32px 0 8px; }
.site-title { margin-top: 6px; font: 650 clamp(2.4rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-strong); }
.auth-wrap { display: flex; justify-content: center; padding: 32px 0 24px; }
.auth-card { width: 100%; max-width: 560px; padding: 28px; border: 2.5px solid var(--ink-strong); border-radius: 18px; background: #fffdf7; box-shadow: 7px 7px 0 var(--ink-strong); }
.auth-card > * + * { margin-top: 16px; }
.auth-title { font: 650 2.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.auth-switch { color: var(--muted); }
.auth-switch a, .auth-card .hint a { color: var(--cobalt); font-weight: 600; }
.signup-steps { list-style: none; counter-reset: step; }
.signup-steps > li { position: relative; padding-left: 48px; counter-increment: step; }
.signup-steps > li + li { margin-top: 18px; }
.signup-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--ink-strong); border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%; font: 650 1rem var(--font-display); background: var(--bench); }
.signup-steps > li > * + * { margin-top: 6px; }

.example-list { display: grid; gap: 40px; margin-top: 32px; }
.example-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.example-frame { border: 2.5px solid var(--ink-strong); border-radius: 16px; box-shadow: 7px 7px 0 var(--ink-strong); background: #fbf8f1; overflow: hidden; }
.example-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fbf8f1; }
.example-body > * + * { margin-top: 10px; }
.example-title { font: 650 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
.example-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.example-tag { padding: 2px 10px; border: 1.5px solid var(--ink-strong); border-radius: 999px; font: 600 0.8rem var(--font-body); background: #fffdf7; }
.example-tag-off { border-style: dashed; color: #4a453c; background: transparent; }
.example-length { color: var(--muted); font-size: 0.85rem; }

.price-intro { margin-top: 36px; text-align: center; }
.price-headline { font: 500 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--font-display); letter-spacing: -0.02em; color: #33312d; }
.price-underline { text-decoration: underline dotted var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 1080px; margin: 56px auto 0; align-items: center; }
.price-card { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 440px; padding: 44px 40px 40px; background: #efeae0; color: #33312d; box-shadow: 2px 3px 0 rgba(21, 19, 15, 0.14); }
.price-card:nth-child(2) { position: relative; z-index: 1; min-height: 500px; padding-top: 74px; background: #cf5631; color: #fff8f0; }
.price-card:nth-child(3) { background: #2f4bb0; color: #f4f6ff; }
.price-name { font: 500 1.9rem/1.1 var(--font-display); letter-spacing: -0.02em; text-align: center; }
.price-amount { margin-top: 8px; font: 500 1rem var(--font-body); letter-spacing: 0; text-align: center; opacity: 0.72; }
.price-unit { font: inherit; }
.price-points { align-self: stretch; margin-top: 28px; }
.price-points li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px dashed currentColor; font-weight: 500; font-size: 0.98rem; line-height: 1.25; }
.price-points li { border-bottom-color: rgba(51, 49, 45, 0.3); }
.price-card:nth-child(n+2) .price-points li { border-bottom-color: rgba(255, 255, 255, 0.35); }
.price-points .icon { width: 14px; height: 14px; margin-top: 0.2em; opacity: 0.75; }
.price-card > a {
  display: inline-flex; align-items: center; gap: 22px; min-height: 48px; min-width: 200px; margin-top: auto; padding: 5px 26px 5px 5px;
  border: 0; border-radius: 3px; background: #fffdf8; color: #15130f; box-shadow: 1px 2px 0 rgba(21, 19, 15, 0.2);
  font: 400 0.95rem var(--font-label); text-decoration: none;
}
.price-card > a::before { content: "\2192"; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 2px; background: #cf5631; color: #fff; }
.price-card:nth-child(2) > a::before { background: #2f4bb0; }
.price-card > a:hover { background: #fff; box-shadow: 2px 3px 0 rgba(21, 19, 15, 0.3); }
.price-card .price-points { margin-bottom: 36px; }
.price-none { margin-top: auto; font: 400 0.85rem var(--font-label); opacity: 0.8; }
.price-foot { margin-top: 44px; text-align: center; font: 400 0.82rem var(--font-label); color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-top: 32px; align-items: start; }
.docs-toc { position: sticky; top: 20px; }
.docs-toc ul { margin-top: 8px; display: grid; gap: 2px; }
.docs-toc-link { width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: 550 0.95rem var(--font-body); color: var(--ink-strong); cursor: pointer; }
.docs-toc-link:hover { background: rgba(21, 19, 15, 0.06); color: var(--cobalt); }
.docs-body { max-width: 720px; }
.docs-section { padding: 22px 26px; border: 2px solid var(--ink-strong); border-radius: 14px; background: #fffdf7; }
.docs-section + .docs-section { margin-top: 20px; }
.docs-section > * + * { margin-top: 12px; }
.docs-section:focus { outline: none; }
.docs-section:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.docs-heading { font: 650 1.5rem var(--font-display); letter-spacing: -0.015em; }
.docs-list { list-style: decimal; padding-left: 22px; }
.docs-bullets { list-style: disc; }
.docs-list li + li { margin-top: 8px; }

@media (max-width: 1000px) {
  .example-card { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card, .price-card:nth-child(2) { min-height: 0; padding: 40px 28px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
}
@media (max-width: 1100px) {
  .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt-panel:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.is-home .topbar { gap: 8px 10px; padding: 10px 16px; }
  .top-link-signup, .key-note-detail, .brand-tag { display: none; }
  .key-status { margin-left: auto; gap: 8px; }
  .lang-summary .lang-code { display: none; }
  body.is-home .main { padding: 4px 16px 40px; }
  .create { padding-top: 12px; }
  .create-title { font-size: clamp(1.9rem, 10.4vw, 3.2rem); }
  .composer { padding: 12px 12px 10px 14px; }
  .composer-input { font-size: 1.1rem; min-height: 84px; }
  .composer-left, .composer-actions { width: 100%; }
  .composer-actions { margin-left: 0; }
  .gh-label { display: none; }
  .btn-animate { flex: 1; }
  .opt-panel:not([hidden]) { grid-template-columns: 1fr; }
  .int-list { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .top-tabs { order: 5; width: 100%; }
  .reel { margin-top: 72px; }
  .reel-inner { padding: 0 16px 16px; }
  .aud-band { margin-top: 44px; }
  .aud-inner { padding: 16px; }
  .reel-head { flex-direction: column; align-items: flex-start; }
  .reel-filters { flex-wrap: nowrap; overflow-x: auto; margin: 28px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .reel-filter { flex: none; }
  .reel-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr; }
  .home-section { margin-top: 56px; }
}
@media (hover: none) {
  .blob-toggle { display: none; }
}

/* The blob replaces the system pointer while it follows it (see js/blob-cursor.js). */
html.blob-cursor-on, html.blob-cursor-on * { cursor: none !important; }
html.blob-cursor-on input, html.blob-cursor-on textarea, html.blob-cursor-on select, html.blob-cursor-on [contenteditable] { cursor: text !important; }
html.blob-cursor-on video[controls] { cursor: auto !important; }
.blob-shy .blob-dot { opacity: 0; }

@media (max-width: 600px) {
  .main { padding: 20px 14px 120px; }
  .card { padding: 16px; }
  .key-status { margin-left: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .scene-tools { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .skeleton-line { background: #ebe5d6; }
}
.cost-unknown-cell .icon { margin-right: 6px; }
