:root {
  --bg: #f6f6f4; --panel: #ffffff; --panel-2: #f2f2ef; --panel-3: #ebebe7;
  --line: #e5e3de; --line-2: #d7d4cd; --ink: #0d0d0c; --ink-2: #393834; --muted: #75726b; --faint: #85817a;
  --ok: #17803d; --warn: #a65d06; --bad: #c0352b; --rec: #ff4a2b;
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 28px; background: rgba(246,246,244,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.brand .mark i { width: 6px; height: 10.6px; border-radius: 1.5px; background: var(--bg); display: block; }
.tag { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 8px; }
.nav { display: flex; gap: 22px; color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--ink); }
.top .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 550; font-size: 14px; white-space: nowrap; transition: transform .15s var(--ease), background .15s, opacity .15s; }
.btn:hover { background: #2a2a28; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel); border-color: var(--ink-2); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn .mono { font-size: 12px; opacity: .65; font-weight: 400; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* intro */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 34px 0 22px; }
.intro h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; max-width: 15.5em; }
.intro p { margin: 0; color: var(--muted); max-width: 25em; font-size: 15px; }

/* app frame */
.app { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 24px 48px -32px rgba(0,0,0,.22); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 14px 0 8px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; }
.tab { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.tab.on { background: var(--panel-2); color: var(--ink); }
.tab:hover { color: var(--ink); }
.doc { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-left: 6px; min-width: 0; }
.doc .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; transition: background .2s; }
.doc.live .dot { background: var(--rec); box-shadow: 0 0 0 3px rgba(255,74,43,.15); }
.doc.done .dot { background: var(--ok); }
.doc span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .hint { margin-left: auto; font-size: 12px; color: var(--muted); }
kbd { font: 500 11px/1 var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; color: var(--ink-2); background: var(--panel); }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 430px; }

/* controls */
.controls { padding: 8px 28px 26px; border-right: 1px solid var(--line); }
.step { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step-h .num { font: 500 12px/1 var(--mono); color: var(--faint); }
.step-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.step-h .val { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--muted); }
.step-h .val.over { color: var(--bad); }

.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style-card { position: relative; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .2s var(--ease); }
.style-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.style-card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.style-card .thumb { display: block; position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--panel-3); }
.style-card canvas { position: absolute; left: 0; top: -24%; width: 100%; aspect-ratio: 9 / 16; display: block; }
.style-card .lbl { display: block; padding: 10px 12px 12px; }
.style-card .lbl b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.style-card .lbl span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.style-card .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.style-card[aria-checked="true"] .tick { opacity: 1; transform: none; }
.style-card .tick svg { width: 12px; height: 12px; }

.seg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13px/1 var(--mono); transition: background .15s, color .15s, box-shadow .15s; }
.seg button small { display: block; font: 400 11.5px/1 var(--sans); margin-top: 3px; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.voice { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-align: left; transition: border-color .15s, box-shadow .15s; }
.voice:hover { border-color: var(--line-2); }
.voice[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.voice .who { flex: 1; min-width: 0; }
.voice .who b { display: block; font-size: 13.5px; font-weight: 600; }
.voice .who span { display: block; font-size: 12px; color: var(--muted); }
.eq { display: flex; align-items: center; gap: 2.5px; height: 20px; }
.eq i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--line-2); }
.voice[aria-checked="true"] .eq i { background: var(--ink); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s !important; } .eq i:nth-child(3) { animation-delay: -.45s !important; } .eq i:nth-child(4) { animation-delay: -.7s !important; } .eq i:nth-child(5) { animation-delay: -.35s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.prompt { position: relative; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.prompt:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.prompt.block { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(192,53,43,.08); }
.prompt textarea { display: block; width: 100%; min-height: 78px; resize: none; border: 0; outline: 0; background: transparent; padding: 14px 16px 8px; font-size: 16px; line-height: 1.45; letter-spacing: -0.01em; }
.prompt textarea::placeholder { color: var(--faint); }
.prompt .meter { position: relative; margin: 0 16px; height: 2px; background: var(--panel-3); border-radius: 2px; overflow: hidden; }
.prompt .meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s, background .15s; }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 10px 16px; }
.prompt-hint { font-size: 11.5px; color: var(--muted); }
.prompt-go { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; font-weight: 600; }
.prompt-go:hover:not(:disabled) { background: #c4482f !important; border-color: #c4482f !important; }
.guard { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 20px; }
.guard svg { width: 15px; height: 15px; flex: none; }
.guard.ok { color: var(--ok); } .guard.note, .guard.warn { color: var(--warn); } .guard.block { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chips .lab { font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.chip { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 12.5px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-2); background: var(--panel-2); }

.gen-row { display: flex; align-items: center; gap: 18px; padding-top: 22px; }
.gen-row .fine { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 21em; line-height: 1.4; }

/* preview stage */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 28px 26px; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box; background-color: var(--panel-2); }
.stage-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 318px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.badge.draft::before { background: var(--faint); }
.badge.live::before { background: var(--rec); animation: blink 1s steps(2) infinite; }
.badge.ready::before { background: var(--ok); }
@keyframes blink { 50% { opacity: .2; } }
.screen { position: relative; width: 100%; max-width: 318px; border-radius: 18px; overflow: hidden; background: #ddd; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -22px rgba(0,0,0,.45); }
.screen canvas { display: block; width: 100%; aspect-ratio: 9 / 16; cursor: pointer; }
.screen .tap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.screen .tap span { width: 56px; height: 56px; border-radius: 50%; background: rgba(13,13,12,.55); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; }
.screen.paused .tap { opacity: 1; }
.screen .tap svg { width: 20px; height: 20px; }
.transport { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 318px; margin-top: 14px; }
.icon-btn { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; }
.icon-btn svg { width: 14px; height: 14px; }
.transport canvas { flex: 1; height: 34px; cursor: pointer; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; width: 100%; max-width: 318px; margin-top: 12px; font-size: 11.5px; color: var(--ink-2); }
.meta span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }

.render { width: 100%; max-width: 318px; margin-top: 14px; }
.render .bar { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.render .bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.render ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.render li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.render li .st { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.render li.on { color: var(--ink); }
.render li.on .st { border-color: var(--ink); border-top-color: transparent; animation: spin .7s linear infinite; }
.render li.done { color: var(--ink-2); }
.render li.done .st { background: var(--ink); border-color: var(--ink); }
.render li.done .st::after { content: ""; width: 5px; height: 3px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.render li .tm { margin-left: auto; font: 400 11.5px var(--mono); }
@keyframes spin { to { transform: rotate(360deg); } }
.ready { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; width: 100%; max-width: 318px; margin-top: 14px; }

/* sections below */
section.block { padding: 96px 0 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-h h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; font-weight: 650; }
.sec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.reel-row { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 16px; overflow-x: auto; padding: 4px 4px 18px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ex { scroll-snap-align: start; text-align: left; border: 0; padding: 0; background: transparent; }
.ex .frame { display: block; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .25s var(--ease), box-shadow .25s; }
.ex:hover .frame { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 16px 30px -18px rgba(0,0,0,.4); }
.ex canvas { display: block; width: 100%; aspect-ratio: 9 / 16; }
.ex .use { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12.5px; font-weight: 550; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: .2s var(--ease); }
.ex:hover .use, .ex:focus-visible .use { opacity: 1; transform: none; }
.ex .cap { display: block; margin-top: 10px; font-size: 13px; font-weight: 550; line-height: 1.3; }
.ex .sub { display: block; margin-top: 3px; font: 400 11.5px var(--mono); color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-top: 40px; }
.specs div { padding: 16px 18px; border-left: 1px solid var(--line); }
.specs div:first-child { border-left: 0; }
.specs dt { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 8px 0 0; font-size: 15px; font-weight: 550; letter-spacing: -0.01em; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 26px; display: flex; flex-direction: column; }
.plan.main { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan .name { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.plan .price b { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .lede { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; margin-top: 3px; flex: none; }
.plan .btn { margin-top: auto; }
.plan .flag { position: absolute; top: 22px; right: 22px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: #fff; border-radius: 99px; padding: 6px 9px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-size: 15px; font-weight: 550; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; color: var(--ink-2); max-width: 46em; font-size: 14.5px; }
.two { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }

footer { margin-top: 110px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
footer nav { display: flex; gap: 18px; }

/* dialog and toast */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(13,13,12,.42); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { width: 100%; max-width: 420px; background: var(--panel); border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); transform: translateY(8px) scale(.98); transition: transform .25s var(--ease); }
.scrim.open .sheet { transform: none; }
.sheet h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.sheet p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.sheet label { display: block; font-size: 12.5px; font-weight: 550; margin-bottom: 6px; }
.sheet input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; font-size: 15px; background: var(--panel); }
.sheet input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.sheet .btn { width: 100%; margin-top: 12px; }
.sheet .alt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sheet .alt a { color: var(--ink); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.sheet .x { float: right; margin: -8px -8px 0 0; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; font-size: 13.5px; padding: 11px 16px; border-radius: 10px; transition: .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-gen { display: none; }

@media (max-width: 1080px) {
  .app-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .stage { padding: 20px 20px 24px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 860px) {
  .top { padding: 0 16px; gap: 14px; }
  .nav { display: none; }
  .top .ghost { display: none; }
  .wrap { padding: 0 16px; }
  .intro { padding: 22px 0 16px; }
  .intro h1 { font-size: 30px; }
  .intro p { font-size: 14.5px; }
  .app { border-radius: 16px; }
  .app-bar .hint, .app-bar .tabs .tab:not(.on) { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .stage { order: -1; padding: 18px 16px 18px; border-bottom: 1px solid var(--line); }
  .screen, .stage-top, .transport, .meta, .render, .ready { max-width: 236px; }
  .controls { padding: 0 16px 18px; border-right: 0; }
  .styles { gap: 8px; }
  .style-card .lbl { padding: 8px 9px 10px; }
  .style-card .lbl span { display: none; }
  .seg { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .seg button small { display: none; }
  .gen-row { display: none; }
  .mobile-gen { display: flex; position: sticky; bottom: 0; z-index: 10; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-gen .btn { flex: 1; }
  .mobile-gen .fine { font-size: 11.5px; color: var(--muted); max-width: 9.5em; line-height: 1.3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div { border-left: 0; border-top: 1px solid var(--line); }
  .specs div:nth-child(-n+2) { border-top: 0; }
  .specs div:nth-child(even) { border-left: 1px solid var(--line); }
  .plans, .two { grid-template-columns: 1fr; gap: 14px; }
  section.block { padding-top: 64px; }
  .sec-h { flex-direction: column; gap: 6px; }
  .reel-row { grid-auto-columns: 150px; }
}
@media (max-width: 480px) {
  .tag, .top .long { display: none; }
  .intro h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Studio (Beta) site additions: shared pages, account, admin, legal ---- */
.tag.beta { color: var(--ink-2); }
.stage-top { gap: 10px; }
.stage-top > span { white-space: nowrap; }
.nav a.on { color: var(--ink); font-weight: 550; }
.mark-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mark-row input { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); padding: 0 12px; font-size: 14px; background: var(--panel); min-width: 0; flex: 1 1 180px; max-width: 260px; }
.mark-row input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.mark-row input:disabled { background: var(--panel-2); color: var(--muted); }
.mark-row .fine, .fine { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin: 0; }
.fine a, .prose a, .card a.link { text-decoration: underline; text-underline-offset: 3px; }
.notice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.notice.bad { border-color: rgba(192,53,43,.35); color: var(--bad); }
.notice.ok { border-color: rgba(23,128,61,.3); color: var(--ok); }
.page { padding: 40px 0 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; font-weight: 650; line-height: 1.08; }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.card.ink { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card .k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card .big { font-size: 34px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.card .big small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.card p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.card .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.quota { height: 8px; background: var(--panel-3); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.quota i { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.quota.hot i { background: var(--rec); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 8px; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill.on::before, .pill.completed::before, .pill.beta_pass::before { background: var(--ok); }
.pill.blocked_safety::before, .pill.blocked::before { background: var(--bad); }
.pill.blocked_quota::before, .pill.warn::before { background: var(--warn); }
.pill.rec::before { background: var(--rec); animation: blink 1s steps(2) infinite; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 550; }
.field input, select.inp { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; font-size: 15px; background: var(--panel); width: 100%; }
select.inp { height: 32px; font-size: 13px; padding: 0 8px; width: auto; }
.field input:focus, select.inp:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.signin { max-width: 440px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl .mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.prompt { min-width: 240px; max-width: 420px; }
.tbl .acts { display: flex; gap: 6px; flex-wrap: nowrap; }
.tbl-wrap .empty { padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.kill { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kill .btn.danger { background: var(--rec); border-color: var(--rec); }
.kill .btn.danger:hover { background: #e23a1c; }
.caps { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.caps .field input { width: 110px; height: 38px; font-size: 14px; }
.meter2 { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--muted); margin-top: 8px; }
.prose { max-width: 720px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.prose h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; font-weight: 650; line-height: 1.08; color: var(--ink); margin: 0 0 6px; }
.prose h2 { font-size: 19px; letter-spacing: -0.02em; font-weight: 620; color: var(--ink); margin: 38px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { font: 400 12.5px var(--mono); color: var(--muted); margin-bottom: 28px; }
.help-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.contact-card { position: sticky; top: 84px; align-self: start; }
@media (max-width: 860px) {
  .grid2, .grid3, .help-grid { grid-template-columns: 1fr; }
  .page { padding-top: 24px; }
  .contact-card { position: static; }
}
.top .acct-m { display: none; font-size: 13px; font-weight: 550; color: var(--ink-2); }
@media (max-width: 860px) {
  .top .acct-m { display: inline-flex; }
}
@media (max-width: 480px) {
  .tag.beta { display: inline-block; padding: 4px 6px; font-size: 10px; }
  .top { gap: 10px; }
}
footer nav { flex-wrap: wrap; gap: 8px 18px; }

/* Generate sits under the preview on desktop; phones keep the sticky bar */
.stage-gen { width: 100%; max-width: 318px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.stage-gen .btn { width: 100%; }
.stage-gen .fine { text-align: center; }
@media (max-width: 860px) {
  .stage-gen { display: none; }
  .chip { height: 44px; padding: 0 14px; font-size: 13.5px; }
  .seg button { height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .transport canvas { height: 44px; }
  .top .btn.sm { height: 40px; }
  .top .acct-m { min-height: 44px; align-items: center; padding: 0 4px; }
  footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .sheet .x { width: 44px; height: 44px; }
}
@media (min-width: 861px) {
  .app { overflow: clip; }
  .app-body { align-items: start; background: linear-gradient(90deg, transparent calc(100% - 430px), var(--panel-2) 0); }
  .stage { position: sticky; top: 60px; padding-top: 16px; padding-bottom: 18px; }
  .screen, .stage-top, .transport, .meta, .render, .ready, .stage-gen { max-width: 288px; }
  .stage-gen { margin-top: 12px; padding-top: 14px; }
  .intro { padding: 26px 0 18px; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .app-body { background: linear-gradient(90deg, transparent calc(100% - 360px), var(--panel-2) 0); }
}
@media (max-width: 860px) {
  .brand, footer .wrap > span a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---- Contact form, FAQ search, Funnel & Cookie consent banner ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.support-stack { max-width: 780px; }
.faq-search { margin-bottom: 18px; }
.faq-search input { width: 100%; height: 46px; border-radius: 11px; border: 1px solid var(--line-2); padding: 0 16px; font: 400 15px var(--sans); background: var(--panel); color: var(--ink); }
.faq-search input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.contact-cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.contact-cta-bar strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.support-stack .contact-card { position: static; margin-top: 16px; max-width: 560px; }
.funnel-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.funnel-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); }
.funnel-grid > div .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.funnel-grid > div b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.funnel-grid > div b small { font-size: 12px; font-weight: 450; color: var(--muted); margin-left: 3px; }
@media (max-width: 860px) {
  .funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-form { display: grid; gap: 12px; margin-top: 14px; }
.contact-form select.inp.full { width: 100%; height: 42px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.contact-form textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); padding: 10px 12px; font: 400 14px/1.45 var(--sans); background: var(--panel); resize: vertical; min-height: 92px; }
.contact-form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.07); }
.foot-link { background: 0; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.foot-link:hover { color: var(--ink); }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(13,13,12,.12); padding: 14px 18px; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); flex: 1 1 320px; }
.cookie-inner p a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cookie-acts { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
@media (max-width: 860px) {
  .cookie-bar { bottom: 76px; padding: 12px 14px; }
  .cookie-acts { width: 100%; justify-content: flex-end; }
}

/* ---- Sound pill, real-time recording note & upgrade nudge ---- */
.sound-pill { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(13,13,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 500 11.5px/1 var(--sans); letter-spacing: -0.01em; box-shadow: 0 4px 12px rgba(0,0,0,.22); transition: background .15s, transform .15s var(--ease), opacity .2s; }
.sound-pill:hover { background: rgba(13,13,12,.88); transform: translateY(-1px); }
.sound-pill svg { width: 13px; height: 13px; flex: none; }
.icon-btn[aria-pressed="true"] { color: var(--muted); background: var(--panel-2); }
.rec-note { width: 100%; max-width: 288px; margin-top: 8px; text-align: center; color: var(--ink-2); }
.upgrade-nudge { width: 100%; max-width: 288px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--panel); display: grid; gap: 10px; box-shadow: 0 6px 18px -10px rgba(13,13,12,.18); }
.upgrade-nudge .un-copy { display: grid; gap: 2px; }
.upgrade-nudge .un-copy strong { font-size: 13px; font-weight: 620; color: var(--ink); letter-spacing: -0.01em; }
.upgrade-nudge .un-copy span { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.upgrade-nudge .btn { width: 100%; }
@media (max-width: 860px) {
  .rec-note, .upgrade-nudge { max-width: 236px; }
}

/* ============================================================
   v7 — Three-page architecture: themes, showcase index,
   dark studio workspace, Runway-style pricing.
   ============================================================ */

/* ---- Theme palettes ---- */
body.theme-light {
  --bg: #f5efe1; --panel: #fbf6ec; --panel-2: #f1e8d6; --panel-3: #e9ddc6;
  --line: #e4d7bf; --line-2: #d8c7a7; --ink: #2b2622; --ink-2: #5a5249; --muted: #8a7f6f; --faint: #a89b86;
  --accent: #d9533b;
}
body.theme-dark {
  --bg: #0b0b0d; --panel: #131317; --panel-2: #19191f; --panel-3: #22222a;
  --line: #26262f; --line-2: #33333e; --ink: #f5f3ee; --ink-2: #cfccc3; --muted: #9a9890; --faint: #6f6d67;
  --accent: #e0523c;
}
body.theme-light .top { background: rgba(245,239,225,.86); }
body.theme-dark .top { background: rgba(11,11,13,.82); }
body.theme-dark .tag.beta { color: var(--ink-2); }

/* Buttons re-tint per theme (base .btn fills with var(--ink)) */
.theme-dark .btn { background: var(--ink); color: #0b0b0d; border-color: var(--ink); }
.theme-dark .btn:hover { background: #e7e4db; }
.theme-dark .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.theme-dark .btn.ghost:hover { background: var(--panel-2); border-color: var(--ink-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #c4482f; border-color: #c4482f; }
.btn.full { width: 100%; }
.theme-dark .cookie-bar { background: rgba(19,19,23,.97); border-color: var(--line-2); }
.theme-dark .cookie-inner p { color: var(--ink-2); }
.theme-dark .cookie-inner p a { color: var(--ink); }
.theme-dark .mobile-gen { background: rgba(11,11,13,.92); border-top-color: var(--line); }

.quota-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   PAGE 1 — Warm-paper showcase index
   ============================================================ */
.idx { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.idx .block { padding: 80px 0 0; }
.idx .sec-h h2 { font-size: clamp(22px, 2.6vw, 30px); }

/* Section A — hero cinema */
.hero-cinema {
  position: relative; margin-top: 22px; height: 580px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(130% 90% at 50% 15%, #1a1816 0%, #100f0e 60%, #0a0908 100%);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 40px 80px -40px rgba(43,38,34,.5);
  color: #f6efe2;
}
.hc-amb { position: absolute; top: 0; bottom: 0; width: 42%; pointer-events: none; opacity: .5; }
.hc-amb-l { left: 0; background: radial-gradient(60% 70% at 0% 40%, rgba(217,83,59,.28), transparent 70%); }
.hc-amb-r { right: 0; background: radial-gradient(60% 70% at 100% 55%, rgba(227,180,72,.22), transparent 70%); }
.hc-pill {
  position: absolute; z-index: 4; top: 16px; display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,9,8,.6); backdrop-filter: blur(8px); color: #f6efe2; font-size: 11.5px; letter-spacing: .02em;
}
.hc-cut { left: 16px; text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; max-width: calc(100% - 200px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-sound { right: 16px; cursor: pointer; transition: background .15s; }
.hc-sound:hover { background: rgba(10,9,8,.85); }
.hc-sound svg { width: 13px; height: 13px; }
.hc-stage { position: absolute; inset: 0; display: grid; place-items: center; }
@media (min-width: 981px) {
  .hc-screen { transform: translateX(48px); }
}
.hc-screen { position: relative; height: 100%; aspect-ratio: 9 / 16; max-height: 520px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.6); }
.hc-screen canvas { display: block; width: 100%; height: 100%; aspect-ratio: 9 / 16; cursor: pointer; }
.hc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.14); }
.hc-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.hc-overlay { position: absolute; left: 32px; bottom: 28px; z-index: 3; max-width: 440px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hc-eyebrow { display: inline-block; font-size: 11px; letter-spacing: .13em; color: #f3c9ab; margin-bottom: 10px; }
.hc-overlay h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; color: #fff; }
.hc-overlay p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #e6dccb; max-width: 30em; }
.hc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-cta { background: var(--accent); border-color: var(--accent); color: #fff; height: 46px; padding: 0 18px; }
.hero-cta:hover { background: #c4482f; }
.hero-cinema .btn.hero-ghost { background: rgba(255,250,240,.14); border: 1.5px solid rgba(255,250,240,.58); color: #fffaf0; height: 46px; padding: 0 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-cinema .btn.hero-ghost:hover { background: rgba(255,250,240,.24); border-color: #fffaf0; color: #ffffff; }
.hc-cuts { position: absolute; right: 16px; bottom: 18px; z-index: 3; display: grid; grid-template-columns: repeat(2, auto); gap: 7px; justify-content: end; }
.hc-cuts button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(10,9,8,.55); backdrop-filter: blur(6px); color: #e6dccb; font-size: 11.5px; transition: background .15s, border-color .15s, color .15s; }
.hc-cuts button b { color: var(--accent); font-size: 10.5px; }
.hc-cuts button:hover { background: rgba(10,9,8,.8); color: #fff; }
.hc-cuts button[aria-selected="true"] { background: #f6efe2; color: #171513; border-color: #f6efe2; }
.hc-cuts button[aria-selected="true"] b { color: var(--accent); }

/* Section B — showcase strip */
.show-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.show-card { display: flex; flex-direction: column; }
.sc-frame { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--panel-3); box-shadow: 0 0 0 1px var(--line); transition: transform .22s var(--ease), box-shadow .22s; }
.show-card:hover .sc-frame { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -20px rgba(43,38,34,.5); }
.sc-frame canvas { display: block; width: 100%; aspect-ratio: 9 / 16; }
.sc-badge { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 7px; background: rgba(10,9,8,.7); backdrop-filter: blur(6px); color: #fff; font-size: 9px; letter-spacing: .06em; }
.sc-open { position: absolute; left: 9px; right: 9px; bottom: 9px; height: 32px; border-radius: 9px; background: rgba(251,246,236,.94); color: var(--ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: .2s var(--ease); }
.show-card:hover .sc-open, .show-card:focus-visible .sc-open { opacity: 1; transform: none; }
.sc-title { display: block; margin-top: 11px; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.sc-sub { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

/* Section C — hosts */
.hosts-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.host-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.host-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.host-av { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel-3); }
.host-av canvas { position: absolute; left: 0; bottom: -4%; width: 100%; aspect-ratio: 9 / 16; }
.host-av img.host-portrait, .hp-thumb img.host-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.host-av.make, .hp-thumb.make { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--panel-2), var(--panel-2) 8px, var(--panel-3) 8px, var(--panel-3) 16px); }
.host-av.make .plus, .hp-thumb.make .plus { font-size: 34px; font-weight: 300; color: var(--accent); line-height: 1; }
.host-card h3 { margin: 12px 12px 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.host-role { display: block; margin: 3px 12px 0; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.host-card p { margin: 7px 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.host-make { border-style: dashed; }

/* Section D — language bar */
.lang-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.lang-pill { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s, transform .15s var(--ease); }
.lang-pill:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lang-pill b { font-size: 16px; letter-spacing: .02em; }
.lang-pill span { font-size: 12px; color: var(--muted); }
.lang-pill[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lang-pill[aria-checked="true"] b { color: var(--accent); }

/* Section E — launch banner */
.launch-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 34px 36px; border-radius: 22px; background: #171513; color: #f6efe2; }
.launch-banner h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; color: #fff; }
.launch-banner p { margin: 8px 0 0; color: #cfc4b2; font-size: 14.5px; }
.lb-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.launch-banner .btn.lg { background: var(--accent); border-color: var(--accent); color: #fff; }
.launch-banner .btn.lg:hover { background: #c4482f; }
.launch-banner .btn.ghost.lg { background: transparent; border-color: rgba(255,255,255,.3); color: #f6efe2; }
.launch-banner .btn.ghost.lg:hover { background: rgba(255,255,255,.1); }

@media (max-width: 980px) {
  .show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hosts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lang-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .idx { padding: 0 16px; }
  .hero-cinema { height: auto; padding-bottom: 20px; }
  .hc-stage { position: relative; padding: 54px 0 0; }
  .hc-screen { height: 56vh; max-height: 460px; margin-top: 0; }
  .hc-overlay { position: static; margin: 18px 16px 0; max-width: none; }
  .hc-cuts { position: static; margin: 16px 16px 0; grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .hc-cut { max-width: calc(100% - 180px); }
  .show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-banner { padding: 24px 22px; }
}

/* ============================================================
   PAGE 2 — Dark studio workspace
   ============================================================ */
.studio-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr) 360px; gap: 0; max-width: 1340px; margin: 0 auto; min-height: calc(100vh - 60px); }
.ws-sidebar { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px 16px; border-right: 1px solid var(--line); position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); }
.ws-nav { display: grid; gap: 4px; }
.ws-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.ws-item svg { width: 16px; height: 16px; flex: none; }
.ws-item:hover { color: var(--ink); background: var(--panel-2); }
.ws-item.on { color: var(--ink); background: var(--panel-3); }
.ws-foot { display: grid; gap: 10px; }
.ws-quota { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); }
.ws-quota .k { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.ws-quota-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ws-meter { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; margin-top: 9px; }
.ws-meter i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.ws-foot .btn { width: 100%; }

.ws-work { min-width: 0; padding: 0 26px 40px; }
.ws-bar { display: flex; align-items: center; gap: 16px; height: 52px; }
.ws-bar .hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.theme-dark kbd { background: var(--panel-2); border-color: var(--line-2); color: var(--ink-2); }

.ws-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin-bottom: 18px; overflow: hidden; }
.ws-panel-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ws-panel-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ws-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.ws-x:hover { background: var(--panel-2); color: var(--ink); }
.ws-panel-body { padding: 16px 18px; }
.hist-group { margin-bottom: 14px; }
.hist-group:last-child { margin-bottom: 0; }
.hist-group .k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.hist-list { display: grid; gap: 8px; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.hist-row .hr-main { flex: 1; min-width: 0; }
.hist-row .hr-title { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .hr-sub { font-size: 11px; color: var(--muted); }
.hist-empty { font-size: 13px; color: var(--muted); padding: 6px 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpl-card { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); transition: border-color .15s, transform .15s var(--ease); }
.tpl-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tpl-cat { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; }
.tpl-text { display: block; font-size: 13px; line-height: 1.35; }
.lang-overview { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lang-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; background: var(--panel-2); }
.lang-chip b { color: var(--accent); }

/* step 01 — hosts picker + custom builder */
.hosts-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.host-pick { display: flex; flex-direction: column; padding: 0 0 8px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .18s var(--ease); }
.host-pick:hover { border-color: var(--line-2); transform: translateY(-1px); }
.host-pick[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hp-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel-3); margin-bottom: 7px; }
.hp-thumb canvas { position: absolute; left: 0; bottom: -4%; width: 100%; aspect-ratio: 9 / 16; }
.hp-name { font-size: 12.5px; font-weight: 600; }
.hp-role { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 1px; }
.host-pick.make { border-style: dashed; }
.cc-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cc-field { display: grid; gap: 6px; }
.cc-field span { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.cc-field .inp { width: 100%; }
.cc-panel .fine { margin-top: 12px; }
.scene-modes, .dur-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.dur-row { margin-top: 10px; }
.sm-lab { min-width: 52px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.scene-mode, .dur-pill { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--ink-2); font-size: 12.5px; font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
.scene-mode:hover, .dur-pill:hover { border-color: var(--line-2); color: var(--ink); background: var(--panel-2); }
.scene-mode[aria-checked="true"], .dur-pill[aria-checked="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); background: rgba(224,82,60,.1); }

/* step 02 — dual subtitle toggle */
.dual-sub { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--ink-2); font-size: 13.5px; transition: border-color .15s; }
.dual-sub small { color: var(--muted); }
.dual-sub .ds-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.dual-sub[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.dual-sub[aria-pressed="true"] .ds-box { background: var(--accent); border-color: var(--accent); }
.dual-sub[aria-pressed="true"] .ds-box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* step 03 — durations */
.durations { display: flex; gap: 8px; margin-bottom: 14px; }
.dur { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: border-color .15s, color .15s; }
.dur:hover { border-color: var(--line-2); color: var(--ink); }
.dur[aria-checked="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); }

/* stage — camera shot badge + quick actions + beat editor */
.cam-shot { color: var(--accent); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.studio-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; max-width: 318px; margin-top: 14px; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink-2); font-size: 12.5px; font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
.act-btn-wide { grid-column: 1 / -1; }
.act-btn svg { width: 15px; height: 15px; flex: none; }
.act-btn:hover { border-color: var(--line-2); color: var(--ink); background: var(--panel-2); }
.act-btn.on { border-color: var(--accent); color: var(--ink); }
.beat-editor { width: 100%; max-width: 318px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: grid; gap: 8px; }
.be-h { display: flex; align-items: center; justify-content: space-between; }
.be-h .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.be-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
.be-row span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.be-row .inp { height: 36px; font-size: 13px; }
.beat-editor .fine { margin-top: 2px; }
.ready { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 318px; margin-top: 14px; }
.ready #dl { flex: 1 1 140px; }

.theme-dark .screen { background: #000; }
.theme-dark .icon-btn { background: var(--panel-2); border-color: var(--line-2); }
.theme-dark .prompt { background: var(--panel); border-color: var(--line-2); }
.theme-dark .mark-row input, .theme-dark select.inp, .theme-dark .field input, .theme-dark .sheet input { background: var(--panel-2); border-color: var(--line-2); color: var(--ink); }
.theme-dark .chip { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.theme-dark .chip:hover { background: var(--panel-2); border-color: var(--line-2); }
.theme-dark .seg { background: var(--panel-2); }
.theme-dark .seg button[aria-checked="true"] { background: var(--panel-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.theme-dark .voice { background: var(--panel); border-color: var(--line); }
.theme-dark .voice[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-dark .sheet { background: var(--panel); }
.theme-dark .scrim { background: rgba(0,0,0,.6); }
.theme-dark .toast { background: var(--panel-3); color: var(--ink); }
.theme-dark .doc .dot { background: var(--faint); }

@media (min-width: 981px) {
  .studio-shell .stage { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; border-left: 1px solid var(--line); background: var(--panel); }
}
@media (max-width: 980px) {
  .studio-shell { grid-template-columns: 1fr; min-height: 0; }
  .ws-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px; padding: 12px 16px; }
  .ws-nav { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; flex: 1; }
  .ws-item span { display: none; }
  .ws-item { width: 44px; justify-content: center; }
  .ws-foot { display: none; }
  .ws-quota { display: none; }
  .ws-bar .hint { display: none; }
  .studio-shell .stage { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 16px 16px 20px; }
  .ws-work { padding: 0 16px 24px; }
  .controls { padding: 0 0 18px; border-right: 0; }
  .screen { max-width: 236px; }
  .stage-top, .transport, .meta, .render, .ready, .studio-actions, .beat-editor, .rec-note, .upgrade-nudge { max-width: 288px; }
  .hosts-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-grid, .tpl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hosts-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices { grid-template-columns: 1fr; }
  .scene-modes .sm-lab, .dur-row .sm-lab { width: 100%; margin-bottom: -2px; }
}

/* ============================================================
   PAGE 3 — Runway-style pricing
   ============================================================ */
.pricing { padding: 44px 28px 0; }
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.pricing-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; font-weight: 650; line-height: 1.05; }
.pricing-head p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.pricing-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.aud-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.aud { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.aud:hover { color: var(--ink); }
.aud.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.bill-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.bt-lab.on { color: var(--ink); font-weight: 550; }
.bt-lab em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 2px; }
.bt-switch { position: relative; width: 46px; height: 26px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel-2); transition: background .15s; }
.bt-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.bt-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s var(--ease); }
.bt-switch[aria-checked="true"] .bt-knob { transform: translateX(20px); }

.pricing-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.pricing-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ptier { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.ptier.popular { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); padding-top: 40px; }
.ptier.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); padding-top: 40px; }
.pt-ribbon { position: absolute; top: 0; left: 0; right: 0; height: 28px; display: grid; place-items: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pt-ribbon.best { background: var(--accent); }
.pt-name { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-weight: 600; }
.roll-pill { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 99px; background: var(--panel-3); color: var(--ink-2); font-size: 9.5px; letter-spacing: .02em; text-transform: none; }
.pt-sub { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; min-height: 52px; }
.pt-sub strong { color: var(--ink); font-weight: 600; }
.pt-price { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 4px; }
.pt-price .strike { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.pt-price .price-num { font-size: 40px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.pt-price .per { color: var(--muted); font-size: 13px; }
.pt-quota { margin: 6px 0 16px; }
.pt-quota strong { display: block; font-size: 14px; color: var(--accent); font-weight: 650; }
.pt-quota span { font-size: 12px; color: var(--muted); }
.ptier .btn { margin-bottom: 18px; }
.ptier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.ptier li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.ptier li svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--accent); }
.aud-note { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.aud-note h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.aud-note p { margin: 0 auto 18px; color: var(--muted); max-width: 48em; }
.pricing .faq-sec { padding-top: 64px; max-width: 760px; margin: 0 auto; }

@media (max-width: 980px) {
  .pricing-grid-3, .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-sub { min-height: 0; }
}
@media (max-width: 560px) {
  .pricing { padding: 28px 16px 0; }
  .pricing-grid-3, .pricing-grid-4 { grid-template-columns: 1fr; }
  .pricing-switch { justify-content: center; }
}
