/* RoShot Studio landing page
   Palette: night street + sodium streetlight (primary accent), with a dusk secondary set:
   dusk violet for sky and washes, teal for "good / ready" states, rose for "wrong / shock" states.
   Radius rule: buttons, chips and pills are full-pill; inputs 14px; panels and tiles 22px; the phone 40px. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --night: #0A1024;
  --night-2: #0F1731;
  --night-3: #16203F;
  --studio: #1C1F27;       /* plugin chrome, a neutral graphite like Studio's dark theme */
  --studio-2: #262A34;
  --line: rgba(172, 188, 236, 0.13);
  --line-2: rgba(172, 188, 236, 0.22);
  --text: #EBEEF7;
  --muted: #A1AAC4;
  --dim: #737C99;
  --sodium: #FFB547;
  --sodium-hi: #FFC970;
  --sodium-ink: #241500;
  --dusk: #8C82E6;
  --dusk-deep: #241F5A;
  --teal: #4CC4B4;
  --rose: #F27C8C;
  --cap-key: #FFD23F;
  --cap-shock: #FF5247;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-panel: 22px;
  --r-input: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::after { /* film grain, fixed so it never repaints while scrolling */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--sodium); color: var(--sodium-ink); }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sodium); color: var(--sodium-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font: 650 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--sodium {
  background: var(--sodium); color: var(--sodium-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -10px rgba(255,170,60,.55);
}
.btn--sodium:hover { background: var(--sodium-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 38px -10px rgba(255,170,60,.7); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(172,188,236,.4); background: rgba(255,255,255,.05); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn__icon { width: 14px; height: 14px; margin-left: -4px; }
button.btn { font-family: var(--font); }

/* ---------- try-the-plugin band ---------- */
.tryit { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: var(--r-panel);
  border: 1px solid rgba(140,130,230,.28); background: linear-gradient(100deg, rgba(36,31,90,.75), rgba(15,23,49,.6) 60%, rgba(255,181,71,.08)); }
.tryit__title { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.tryit__text { color: var(--muted); margin-top: 4px; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(10, 16, 36, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.brand__mark { width: 28px; height: 28px; flex: none; border-radius: 8px; box-shadow: 0 4px 14px -4px rgba(98,82,196,.55); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vh, 72px) 0 40px; overflow: clip; }
.hero::before { /* night sky wash behind the stage */
  content: ""; position: absolute; inset: 0 -10% auto auto; width: 70%; height: 100%; pointer-events: none;
  background: radial-gradient(closest-side at 60% 55%, rgba(98, 82, 196, .30), rgba(56, 78, 160, .14) 55%, transparent 80%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: min(760px, calc(100dvh - 120px)); }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.025);
}
.status::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--teal) 0 35%, rgba(76,196,180,.25) 36% 100%); }
.hero__title {
  font-size: clamp(46px, 6.1vw, 96px); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title span { display: block; color: var(--text); }
.hero__sub { margin-top: 26px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 18px; color: var(--dim); font-size: 13px; text-align: right; }

.stage { position: relative; height: clamp(560px, 74vh, 700px); display: flex; align-items: center; justify-content: flex-end; padding-right: 4%; }
.stage__glow { position: absolute; right: 2%; top: 50%; width: 520px; height: 520px; translate: 0 -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 168, 64, .22), rgba(255, 168, 64, .06) 55%, transparent); filter: blur(10px); }

.phone {
  --pw: min(340px, 100%);
  position: relative; margin: 0; width: var(--pw); aspect-ratio: 9 / 16; padding: 9px; border-radius: 42px;
  background: linear-gradient(160deg, #2A3150, #11162A 40%, #0B0F1E);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 0 rgba(255,255,255,.14), 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
  height: min(100%, 640px); width: auto;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #070B18; isolation: isolate; container-type: inline-size; }
.phone__canvas { width: 100%; height: 100%; }
.phone__fallback { position: absolute; inset: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(60% 40% at 30% 55%, rgba(255,181,71,.22), transparent 70%), linear-gradient(#08102A, #1B2550 62%, #0D1530); }
.phone.is-ready .phone__fallback { opacity: 0; }
.phone__fade { position: absolute; inset: 0; background: #000; opacity: var(--fade, 0); pointer-events: none; }
.phone__island { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 76px; height: 22px; border-radius: 999px; background: #03050C; }

/* Short-form caption: one word, white, black outline, yellow key nouns, red shock words, 70% down */
.cap {
  position: absolute; left: 6%; right: 6%; top: 66%; margin: 0; text-align: center; z-index: 2;
  font: 900 12cqi/1 var(--font); letter-spacing: -0.01em; color: #fff;
  -webkit-text-stroke: 0.15em #000; paint-order: stroke fill;
  text-shadow: 0 0.06em 0 #000, 0 0.2em 0.5em rgba(0,0,0,.5);
  opacity: 0; transform-origin: 50% 60%;
}
.cap.is-on { opacity: 1; animation: pop .16s var(--ease); }
.cap.is-key { color: var(--cap-key); }
.cap.is-shock { color: var(--cap-shock); }
@keyframes pop { from { transform: scale(1.22); } to { transform: scale(1); } }

/* plugin chrome (inside-Studio look) */
.plugin {
  background: var(--studio); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05); font-size: 14px;
}
.plugin__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: #C9CDD8; font-weight: 650; font-size: 13px; }
.plugin__bar .brand__mark { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.plugin__body { padding: 14px; display: grid; gap: 12px; }
.plugin--hero { position: absolute; right: calc(4% + min(340px, 100%) - 40px); bottom: 4%; width: 290px; z-index: 3; }

.msg { margin: 0; padding: 10px 13px; border-radius: 14px; line-height: 1.45; max-width: 100%; }
.msg--you { justify-self: end; background: #2E3443; color: #E7EAF1; border-bottom-right-radius: 5px; }
.msg--bot { background: transparent; color: #DADDE6; padding-inline: 2px; }
.plugin--hero .msg--you { min-height: 3.1em; }
.msg--you.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sodium); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #AEB3C1; font-size: 13.5px; }
.steps li { display: grid; grid-template-columns: 16px 1fr; align-items: center; column-gap: 9px; opacity: .35; transition: opacity .4s; }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #5A6070; }
.steps li.is-done { opacity: 1; }
.steps li.is-done::before { border: 0; background: var(--sodium) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23241500' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps li.is-active { opacity: 1; }
.steps li.is-active::before { border-color: var(--sodium); border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps__count { color: var(--text); margin-left: 4px; font-variant-numeric: tabular-nums; }
.steps__bar { grid-column: 2; display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.steps__bar i { display: block; height: 100%; width: 0; background: var(--sodium); transition: width .3s linear; }

/* ---------- shared section type ---------- */
section { position: relative; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); max-width: 56ch; }
.muted { color: #9DA3B2; font-size: 13.5px; margin-top: 2px; }
.fineprint { margin-top: 22px; color: var(--dim); font-size: 13px; }

/* ---------- comparison ---------- */
.compare { padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
  background: linear-gradient(180deg, transparent, rgba(36, 31, 90, .38) 38%, rgba(36, 31, 90, .22) 70%, transparent); }
.duel { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duel__side { border-radius: var(--r-panel); padding: 22px; border: 1px solid var(--line); background: var(--night-2); }
.duel__side h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.duel__side--ai h3 { color: var(--muted); }
.duel__side--real { border-color: rgba(255,181,71,.35); background: linear-gradient(180deg, rgba(255,181,71,.07), rgba(255,181,71,0) 40%), var(--night-2); box-shadow: 0 30px 80px -40px rgba(255,170,60,.35); }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: linear-gradient(#0B1330, #1B2550 62%, #0D1530); }
.frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.frame img.is-in { opacity: 1; }
.frame__shot { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 650; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--sodium-ink); background: var(--sodium); box-shadow: 0 0 0 4px rgba(255,181,71,.25), 0 2px 8px rgba(0,0,0,.5); }
.duel__side--ai .mark { background: var(--rose); color: #2A0910; box-shadow: 0 0 0 4px rgba(242,124,140,.25), 0 2px 8px rgba(0,0,0,.5); }
.tells { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.tells li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.tells b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--rose); color: #2A0910; margin-top: 1px; }
.duel__side--ai { background: linear-gradient(180deg, rgba(242,124,140,.05), transparent 40%), var(--night-2); }
.duel__side--real .tells { color: var(--text); }
.duel__side--real .tells b { background: var(--sodium); color: var(--sodium-ink); }

/* ---------- how it works ---------- */
.how { padding: clamp(70px, 9vw, 120px) 0;
  background: radial-gradient(45% 35% at 0% 22%, rgba(140,130,230,.13), transparent 70%), radial-gradient(35% 30% at 100% 75%, rgba(76,196,180,.07), transparent 70%); }
.thread { margin-top: 60px; display: grid; }
.thread__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(28px, 5vw, 72px); }
.thread__note { padding: 34px 0; position: relative; }
.thread__note .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  border: 1px solid rgba(255,181,71,.5); color: var(--sodium); font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums;
}
.thread__note h3 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; }
.thread__note p { margin-top: 8px; color: var(--muted); max-width: 40ch; }
.thread__chat { background: var(--studio); border-inline: 1px solid rgba(255,255,255,.07); padding: 26px 26px; display: grid; gap: 12px; align-content: center; font-size: 15px; }
.thread__row:first-child .thread__chat { border-top: 1px solid rgba(255,255,255,.07); border-radius: 18px 18px 0 0; padding-top: 58px; position: relative; }
.thread__row:first-child .thread__chat::before { /* window bar */
  content: "RoShot Studio"; position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; padding-left: 44px;
  font-size: 13px; font-weight: 650; color: #C9CDD8; border-bottom: 1px solid rgba(255,255,255,.06);
  background: url("/assets/mark.svg?v=mw9sctko") 16px 50%/18px 18px no-repeat;
}
.thread__row:last-child .thread__chat { border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0 0 18px 18px; }
.thread__row + .thread__row .thread__chat { border-top: 1px dashed rgba(255,255,255,.06); }
.thread__row + .thread__row .thread__note { border-top: 1px solid var(--line); }
.thread .msg--you { max-width: 88%; }

.hooks { display: grid; gap: 8px; margin-top: 10px; }
.hook { padding: 10px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); color: #C5C9D4; font-size: 14px; }
.hook.is-picked { border-color: rgba(255,181,71,.6); background: rgba(255,181,71,.08); color: #F3E3C6; }
.card { background: var(--studio-2); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 16px; }
.card__title { font-weight: 700; color: #F0F2F7; letter-spacing: -0.01em; }
.card__grid { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.card__grid dt { font-size: 12.5px; color: #8D93A3; }
.card__grid dd { margin: 2px 0 0; font-size: 14px; color: #E2E5EC; }
.card__cost { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; color: #B9BECB; }
.card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 650; border: 1px solid rgba(255,255,255,.14); color: #DADDE6; white-space: nowrap; }
.pill--sodium { background: var(--sodium); color: var(--sodium-ink); border-color: transparent; }
.draft { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; }
.draft__thumb { position: relative; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: linear-gradient(#0B1330, #1B2550 62%, #0D1530); }
.draft__thumb img { width: 100%; height: 100%; object-fit: cover; filter: blur(.6px) saturate(.9); }
.draft__play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 3.8v8.4l6.6-4.2z' fill='%23fff'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.diff ul, .files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.diff li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 13px; border-radius: 10px; background: var(--studio-2); font-size: 14px; }
.diff li span:first-child { color: #AEB3C1; }
.diff li span:last-child { color: #F3E3C6; font-weight: 650; }
.diff li i { font-style: normal; color: #8D93A3; font-weight: 400; margin: 0 4px; }
.diff li.diff__same span:last-child { color: #8D93A3; font-weight: 400; }
.diff .muted { margin-top: 10px; }
.diff u { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; color: #DADDE6; }
.files .card__title { margin-bottom: 12px; }
.files li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #C5C9D4; }
.file { flex: none; width: 42px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--sodium); background: rgba(255,181,71,.1); box-shadow: inset 0 0 0 1px rgba(255,181,71,.3); }

/* ---------- features bento ---------- */
.kit { padding: clamp(70px, 9vw, 120px) 0;
  background: radial-gradient(50% 40% at 85% 10%, rgba(140,130,230,.12), transparent 70%); }
.bento { margin-top: 52px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "cap cap voice" "cap cap cast" "sound refilm refilm" "cost cost cost"; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-panel); padding: 26px; border: 1px solid var(--line); background: var(--night-2); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 250px; }
.tile > h3 { margin-top: auto; }
.tile > h3 + p { margin-top: -22px; }
.tile h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.tile--captions { grid-area: cap; min-height: 520px;
  background: radial-gradient(70% 55% at 30% 30%, rgba(255,181,71,.18), transparent 70%), linear-gradient(180deg, #0A1230 0%, #1A2450 55%, #0F1731 100%); }
.tile--captions::before { content: ""; position: absolute; inset: 0; background: var(--still, none) center 30% / cover; opacity: .5; filter: blur(3px) saturate(1.1); transform: scale(1.06); transition: opacity 1s; }
.tile--captions::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,36,.15), rgba(10,16,36,.35) 55%, rgba(15,23,49,.96) 88%); }
.tile--captions > * { position: relative; z-index: 1; }
.capdemo { position: absolute !important; inset: 0 0 110px; container-type: inline-size; }
.capdemo .cap { top: 46%; font-size: clamp(54px, 11cqi, 110px); }
.tile--voice { grid-area: voice; background: radial-gradient(90% 70% at 100% 0%, rgba(140,130,230,.24), transparent 70%), var(--night-2); }
.tile--cast { grid-area: cast; background: radial-gradient(90% 70% at 0% 0%, rgba(76,196,180,.2), transparent 70%), var(--night-2); }
.tile--sound { grid-area: sound; background: radial-gradient(90% 70% at 100% 0%, rgba(242,124,140,.16), transparent 70%), var(--night-2); }
.tile--refilm { grid-area: refilm; }
.tile--cost { grid-area: cost; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 32px;
  background: linear-gradient(90deg, var(--night-2), rgba(255,181,71,.07)); }

.wave { position: relative; height: 92px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; border-radius: 3px; background: rgba(140,130,230,.35); min-height: 4px; transition: background-color .2s; }
.wave i.is-said { background: var(--sodium); }

.cast { position: relative; display: flex; gap: 10px; }
.cast i { position: relative; width: 58px; height: 92px; }
.cast i::before { content: ""; position: absolute; left: 13px; top: 0; width: 32px; height: 32px; border-radius: 9px; background: #8A5A3C; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.cast i::after { content: ""; position: absolute; left: 0; top: 36px; width: 58px; height: 52px; border-radius: 10px 10px 6px 6px; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.cast i:nth-child(2)::before { background: #E1B48E; }
.cast i:nth-child(3)::before { background: #C08A64; }

.lanes { position: relative; display: grid; gap: 12px; margin-top: 14px; }
.lane { position: relative; height: 26px; border-radius: 8px; }
.lane--music { display: grid; grid-template-columns: 62% 1fr; gap: 0; }
.lane--music i { border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255,181,71,.55) 0 2px, rgba(255,181,71,.18) 2px 6px); }
.lane--music i:last-child { margin-left: 22%; }
.lane--voice { display: flex; gap: 4px; }
.lane--voice i { flex: var(--w, 1); border-radius: 6px; background: rgba(172,188,236,.16); box-shadow: inset 0 0 0 1px rgba(172,188,236,.14); }
.lane--sfx { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; background: rgba(172,188,236,.06); }
.lane--sfx b { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--rose); opacity: .8; }
.lanes__twist { position: absolute; left: 62%; top: -10px; bottom: -14px; border-left: 1.5px dashed rgba(255,181,71,.7); padding-left: 6px; font-size: 12px; color: var(--sodium); line-height: 1; }

.shots { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.shots span { aspect-ratio: 9/16; border-radius: 6px; background: var(--night-3) center/cover; opacity: .55; filter: saturate(.7); transition: opacity .4s, filter .4s; position: relative; }
.shots span.is-re { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--sodium); }
.shots span.is-re::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,201,112,.35), transparent); background-size: 200% 100%; animation: sweep 1.6s linear infinite; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.approve { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-radius: 999px; background: var(--studio); border: 1px solid rgba(255,255,255,.08); }
.approve__label { font-size: 13px; color: #8D93A3; }
.approve__val { font-size: 14px; color: #E2E5EC; font-weight: 650; }

/* ---------- stance ---------- */
.stance { padding: clamp(90px, 13vw, 170px) 0; text-align: center; overflow: clip; }
.stance::before { content: ""; position: absolute; left: 50%; bottom: -330px; width: 900px; height: 520px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side at 38% 50%, rgba(140,130,230,.16), transparent), radial-gradient(closest-side at 62% 50%, rgba(255,181,71,.14), transparent); }
.stance__in { position: relative; display: grid; justify-items: center; }
.stance__big { font-size: clamp(34px, 5vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.stance__small { margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); max-width: 52ch; text-wrap: pretty; }

/* ---------- faq ---------- */
.faq { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.faq .h2 { position: sticky; top: 100px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: clamp(17px, 1.5vw, 19.5px); font-weight: 650; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .35s var(--ease);
  background: linear-gradient(var(--muted), var(--muted)) center/14px 1.6px no-repeat, linear-gradient(var(--muted), var(--muted)) center/1.6px 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg);
  background: linear-gradient(var(--sodium), var(--sodium)) center/14px 1.6px no-repeat, linear-gradient(var(--sodium), var(--sodium)) center/1.6px 14px no-repeat; }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- waitlist ---------- */
.join { padding: clamp(80px, 11vw, 140px) 0 clamp(90px, 12vw, 150px); }
.join::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 55% at 82% 40%, rgba(140,130,230,.14), transparent 70%), radial-gradient(45% 55% at 70% 65%, rgba(255,181,71,.09), transparent 70%); }
.join__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.join__card { border-radius: var(--r-panel); padding: clamp(22px, 3vw, 34px); background: rgba(15, 23, 49, .85); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 100px -40px rgba(0,0,0,.8); min-height: 300px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14.5px; font-weight: 650; color: var(--text); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--dim); font-weight: 500; margin-left: 6px; }
.field input[type="email"], .field input[type="text"] {
  height: 52px; padding: 0 16px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: #070C1C; color: var(--text);
  font: 500 16px var(--font); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input::placeholder { color: #6E7896; }
.field input:hover { border-color: rgba(172,188,236,.36); }
.field input:focus { outline: none; border-color: var(--sodium); box-shadow: 0 0 0 4px rgba(255,181,71,.18); }
.field input[aria-invalid="true"] { border-color: #FF7A6E; }
.field__error, .form__error { color: #FF9C93; font-size: 14px; }
.seg { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; justify-content: start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14.5px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.seg label:hover span { border-color: rgba(172,188,236,.4); color: var(--text); }
.seg input:checked + span { border-color: var(--sodium); color: var(--sodium-ink); background: var(--sodium); }
.seg input:focus-visible + span { outline: 2px solid var(--sodium); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: -4px; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(36,21,0,.3); border-top-color: var(--sodium-ink); animation: spin .8s linear infinite; }

.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 10px; outline: none; }
.done__mark { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 10px 30px -8px rgba(140,130,230,.6); animation: rise .7s var(--ease) both; }
.done__title { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; animation: rise .7s .06s var(--ease) both; }
.done__text { color: var(--muted); max-width: 36ch; animation: rise .7s .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 36px; overflow: clip;
  background: radial-gradient(40% 120% at 0% 0%, rgba(140,130,230,.10), transparent 70%), linear-gradient(180deg, rgba(15,23,49,.0), rgba(15,23,49,.65)); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(140,130,230,.45) 30%, rgba(255,181,71,.45) 70%, transparent); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.foot__brand .brand { font-size: 18px; }
.foot__tag { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 36ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__h { font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: -0.005em; margin-bottom: 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__col a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot__col a:hover { color: var(--sodium-hi); }
.foot__bottom { margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px 40px; flex-wrap: wrap; }
.foot__legal { color: var(--dim); font-size: 13px; max-width: 70ch; }
.foot__copy { color: var(--dim); font-size: 13px; white-space: nowrap; }

/* ---------- legal + contact pages ---------- */
.sub main { min-height: 60vh; }
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 110px);
  background: radial-gradient(40% 30% at 85% 0%, rgba(140,130,230,.12), transparent 70%); }
.legal__in { max-width: 820px; }
.legal__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); margin-bottom: 36px; }
.legal__tabs a { padding: 7px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s, background-color .2s; }
.legal__tabs a:hover { color: var(--text); }
.legal__tabs a[aria-current="page"] { background: var(--text); color: var(--night); }
.legal__head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.legal__date { margin-top: 14px; color: var(--dim); font-size: 14px; }
.legal__lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); color: var(--text); max-width: 60ch; line-height: 1.55; }
.prose { margin-top: 44px; display: grid; gap: 0; }
.prose section { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 40px; }
.prose h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; }
.prose section > :not(h2) { grid-column: 2; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; line-height: 1.7; max-width: 62ch; }
.prose p + p { margin-top: 12px; }
.prose b { color: var(--text); font-weight: 650; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--sodium); }
.prose a, .contact a, .form__note a { color: var(--sodium-hi); text-decoration: underline; text-decoration-color: rgba(255,201,112,.4); text-underline-offset: 3px; }
.prose a:hover, .contact a:hover { text-decoration-color: currentColor; }

.contact { padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 10vw, 130px);
  background: radial-gradient(40% 55% at 85% 30%, rgba(140,130,230,.14), transparent 70%), radial-gradient(40% 50% at 70% 70%, rgba(255,181,71,.07), transparent 70%); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__copy { padding-top: 12px; }
.contact__notes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__notes li { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15,23,49,.6); color: var(--muted); font-size: 15px; max-width: 46ch; }
.contact__notes b { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.contact__notes li:first-child { border-color: rgba(76,196,180,.3); }
.field textarea { padding: 14px 16px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: #070C1C; color: var(--text);
  font: 500 16px/1.5 var(--font); resize: vertical; min-height: 150px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea:hover { border-color: rgba(172,188,236,.36); }
.field textarea:focus { outline: none; border-color: var(--sodium); box-shadow: 0 0 0 4px rgba(255,181,71,.18); }
.field textarea[aria-invalid="true"] { border-color: #FF7A6E; }
#contact-form .seg { grid-template-columns: repeat(4, auto); }

/* ---------- load choreography (one moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { animation: rise .9s var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .2s; }
  .js .phone { animation: phoneIn 1.2s .1s var(--ease) both; }
  .js .plugin--hero { animation: rise 1s .45s var(--ease) both; }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .plugin--hero { width: 260px; right: calc(4% + 250px); }
  .bento { grid-template-areas: "cap cap voice" "cap cap cast" "sound refilm refilm" "cost cost cost"; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; gap: 34px; }
  .stage { height: auto; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0; }
  .stage__glow { right: 50%; translate: 50% -50%; width: 420px; height: 420px; }
  .phone { width: min(76vw, 330px); height: auto; }
  .plugin--hero { position: relative; left: auto; right: auto; bottom: auto; width: min(92%, 360px); margin-top: -64px; }
  .hero__note { text-align: center; }
  .duel { grid-template-columns: 1fr; }
  .thread__row { grid-template-columns: 1fr; }
  .thread__note { padding: 40px 0 18px; }
  .thread__row + .thread__row .thread__note { border-top: 0; }
  .thread__chat, .thread__row + .thread__row .thread__chat { border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 20px; }
  .thread__row:first-child .thread__chat { border-radius: 18px; padding-top: 56px; }
  .thread__row:last-child .thread__chat { border-radius: 18px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "cap cap" "voice cast" "sound sound" "refilm refilm" "cost cost"; }
  .tile--captions { min-height: 420px; }
  .faq__in { grid-template-columns: 1fr; gap: 24px; }
  .faq .h2 { position: static; }
  .join__in { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; gap: 36px; }
  .contact__in { grid-template-columns: 1fr; }
  .prose section { grid-template-columns: 1fr; }
  .prose section > :not(h2) { grid-column: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .tryit { flex-direction: column; align-items: stretch; padding: 22px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot__col:last-child { grid-column: 1 / -1; }
  .foot__bottom { flex-direction: column; }
  #contact-form .seg { grid-template-columns: 1fr 1fr; }
  .legal__tabs { margin-bottom: 28px; }
  .nav__in { height: 60px; }
  .hero { padding-top: 22px; }
  .status { margin-bottom: 20px; font-size: 13px; }
  .hero__title { font-size: clamp(44px, 13.4vw, 60px); }
  .hero__sub { margin-top: 18px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta { flex-wrap: nowrap; gap: 10px; }
  .hero__cta .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; }
  .nav__in .btn { padding: 0 15px; }
  .duel { margin-top: 36px; }
  .duel__side { padding: 16px; }
  .reel { gap: 6px; }
  .mark { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; }
  .frame__shot { display: none; }
  .thread__chat { padding: 16px; font-size: 14.5px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "cap" "voice" "cast" "sound" "refilm" "cost"; }
  .tile { min-height: 230px; padding: 22px; }
  .tile--captions { min-height: 340px; }
  .shots { grid-template-columns: repeat(8, 1fr); }
  .shots span:nth-child(n + 17) { display: none; }
  .tile--cost { flex-direction: column; align-items: stretch; padding: 22px; gap: 20px; }
  .approve { justify-content: space-between; flex-wrap: wrap; border-radius: 18px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg span { width: 100%; justify-content: center; }
  .card__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   "Try the plugin" demo window (Studio dock widget look)
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.demo-open { overflow: hidden; }
dialog.demo { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none;
  width: min(1060px, calc(100vw - 48px)); height: min(730px, calc(100dvh - 48px)); overflow: visible; }
dialog.demo::backdrop { background: rgba(5, 7, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.demo[open] .dw { animation: dwIn .45s var(--ease) both; }
@keyframes dwIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.dw { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #1C1F27; color: #DADDE6;
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; font-size: 14px; line-height: 1.45;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05); }
.dw button, .dw input, .dw select, .dw textarea { font: inherit; color: inherit; }
.dw button { cursor: pointer; }
.dw button:disabled { cursor: not-allowed; }
.dw__bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: #23262F; border-bottom: 1px solid rgba(255,255,255,.07); }
.dw__logo { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.dw__title { font-size: 14px; font-weight: 700; color: #F1F3F8; letter-spacing: -0.01em; }
.dw__tag { font-size: 12px; font-weight: 600; color: #C8C2FF; background: rgba(140,130,230,.14); border: 1px solid rgba(140,130,230,.32); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.dw__credits { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: #1A1C23; border: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #AEB3C1; white-space: nowrap; }
.dw__credits i { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE2A8, var(--sodium) 55%, #C98418); box-shadow: 0 0 0 2px rgba(255,181,71,.18); }
.dw__credits b { color: #F3E3C6; font-variant-numeric: tabular-nums; }
.dw__x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: #AEB3C1; }
.dw__x:hover { background: rgba(255,255,255,.07); color: #fff; }
.dw__x svg { width: 16px; height: 16px; }

.dw__body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 0; }
.dw__main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-right: 1px solid rgba(255,255,255,.07); }
.dw__tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.07); background: #1F222A; overflow-x: auto; scrollbar-width: none; }
.dw__tabs [role="tab"] { height: 42px; padding: 0 14px; border: 0; background: none; color: #9AA0AF; font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dw__tabs [role="tab"]:hover { color: #E5E8EF; }
.dw__tabs [role="tab"][aria-selected="true"] { color: #fff; border-bottom-color: var(--sodium); }
.dw__panel { min-height: 0; overflow: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: #3A3F4C transparent; }
.dw__panel--chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; }
.dw__panel[hidden] { display: none; }
.dw :focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }

.chat { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: #3A3F4C transparent; }
.m { max-width: 94%; }
.m p + p, .m p + div, .m div + p { margin-top: 8px; }
.m--you { align-self: flex-end; background: #2E3443; color: #EEF0F5; padding: 9px 13px; border-radius: 14px 14px 5px 14px; max-width: 82%; }
.m--bot { align-self: flex-start; }
.m__meta { font-size: 12.5px; color: #9AA0AF; }
.m__meta b { color: var(--teal); font-weight: 650; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: #262A34; border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8D93A3; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.starter { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); background: #262A34; color: #E3E6EE; font-size: 13.5px; text-align: left; transition: border-color .2s, background-color .2s; }
.starter:hover:not(:disabled) { border-color: rgba(255,181,71,.6); background: #2C2A2A; }
.starter:disabled, .hook2:disabled { opacity: .5; }
.hooks2 { display: grid; gap: 8px; margin-top: 10px; }
.hook2 { text-align: left; padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.11); background: #22252E; color: #E3E6EE; font-size: 13.5px; transition: border-color .2s; }
.hook2:hover:not(:disabled) { border-color: rgba(255,181,71,.6); }
.hook2.is-picked { opacity: 1; border-color: rgba(255,181,71,.7); background: rgba(255,181,71,.09); color: #F6E6C8; }

.plan, .diff2 { margin-top: 10px; background: #262A34; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
.plan__title { font-weight: 750; color: #F3F5FA; font-size: 15px; letter-spacing: -0.01em; }
.plan__grid { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.plan__grid dt { font-size: 11.5px; color: #8D93A3; }
.plan__grid dd { margin: 1px 0 0; font-size: 13px; color: #E2E5EC; }
.score { display: inline-block; padding: 0 8px; border-radius: 999px; background: rgba(76,196,180,.15); color: #7FE0D2; font-weight: 650; font-size: 12.5px; }
.plan__scenes { margin: 12px 0 0; padding-left: 18px; color: #AEB3C1; font-size: 12.5px; display: grid; gap: 2px; }
.cost { margin-top: 12px; background: #1E2128; border-radius: 10px; padding: 12px; }
.cost__head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 650; color: #C9CDD8; margin-bottom: 8px; }
.cost__demo { font-size: 11px; font-weight: 600; color: #C8C2FF; background: rgba(140,130,230,.14); padding: 1px 8px; border-radius: 999px; }
.cost ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cost li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #AEB3C1; }
.cost li span:last-child { color: #E2E5EC; font-variant-numeric: tabular-nums; }
.cost__total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.cost__total b { color: var(--sodium); font-variant-numeric: tabular-nums; }
.cost__note { font-size: 12px; color: #8D93A3; margin-top: 4px; }
.plan__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill2 { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #E3E6EE; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pill2:hover:not(:disabled) { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.pill2--sodium { background: var(--sodium); border-color: transparent; color: var(--sodium-ink); }
.pill2--sodium:hover:not(:disabled) { background: var(--sodium-hi); }
.pill2:disabled { opacity: .45; }
.pill2--sm { height: 28px; padding: 0 11px; font-size: 12px; }
.diff2__head { font-size: 12.5px; color: #AEB3C1; margin-bottom: 8px; }
.diff2 ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.diff2 li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 11px; border-radius: 8px; background: #1E2128; font-size: 13px; color: #AEB3C1; }
.diff2 li b { color: #F6E6C8; }
.diff2 li.same span:last-child { color: #7FE0D2; }

.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.07); background: #1F222A; }
.composer input { flex: 1; min-width: 0; height: 40px; padding: 0 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #15171D; font-size: 14px; }
.composer input::placeholder { color: #6E7486; }
.composer input:focus { outline: none; border-color: var(--sodium); box-shadow: 0 0 0 3px rgba(255,181,71,.15); }
.composer__send { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--sodium); color: var(--sodium-ink); }
.composer__send svg { width: 16px; height: 16px; }

.room { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #191B22; min-height: 0; overflow: auto; }
.room__head { font-size: 12.5px; font-weight: 650; color: #9AA0AF; }
.room__screen { position: relative; aspect-ratio: 9 / 16; height: min(430px, 100%); max-width: 100%; margin-inline: auto; border-radius: 12px; overflow: hidden; container-type: inline-size;
  background: radial-gradient(70% 50% at 50% 40%, rgba(140,130,230,.22), transparent 70%), linear-gradient(#0B1330, #22205A 62%, #0D1530); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.room__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.room__img[src] { opacity: 1; }
.room__img.is-draft { filter: blur(1.3px) saturate(.8) contrast(.95); }
.room[data-state="filming"] .room__img { opacity: .35; }
.room__cap { position: absolute; left: 4%; right: 4%; top: 66%; margin: 0; text-align: center; font: 900 13cqi/1 var(--font); color: #fff; -webkit-text-stroke: .15em #000; paint-order: stroke fill; }
.room__cap.is-key { color: var(--cap-key); }
.room__badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; }
.room[data-state] .room__badge { opacity: 1; }
.room[data-state="final"] .room__badge { background: var(--teal); color: #052421; }
.room__info { display: grid; gap: 8px; }
.room__status { font-size: 13px; color: #C9CDD8; }
.room__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.room__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dusk), var(--sodium)); transition: width .1s linear; }
.room__files { display: flex; flex-wrap: wrap; gap: 6px; }
.file2 { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(76,196,180,.4); background: rgba(76,196,180,.08); color: #9BE8DC; font-size: 12.5px; font-weight: 650; }

.dw__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.07); background: #23262F; }
.dw__spacer { flex: 1; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,.09); background: #2B2F3A; color: #E3E6EE; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tb svg { width: 15px; height: 15px; }
.tb:hover:not(:disabled) { background: #333846; }
.tb:disabled { opacity: .4; }
.tb [data-ver] { color: #8D93A3; font-variant-numeric: tabular-nums; }
.tb--ghost { background: transparent; border-color: rgba(255,181,71,.5); color: #FFD596; }
.tb--ghost:hover:not(:disabled) { background: rgba(255,181,71,.08); }
.tb--sodium { background: var(--sodium); border-color: transparent; color: var(--sodium-ink); }
.tb--sodium:hover:not(:disabled) { background: var(--sodium-hi); }
.hist { position: relative; }
.hist__menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; width: 290px; max-height: 260px; overflow: auto; list-style: none; margin: 0; padding: 6px; border-radius: 12px; background: #2A2E39; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); }
.hist__menu button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font-size: 13px; color: #C9CDD8; }
.hist__menu button:hover { background: rgba(255,255,255,.06); }
.hist__menu button[aria-current] { background: rgba(76,196,180,.12); color: #E9FBF8; }
.hist__menu b { color: #F1F3F8; }
.hist__menu span { font-size: 11.5px; color: #8D93A3; }
.dw__toast { position: absolute; left: 50%; bottom: 66px; translate: -50% 8px; z-index: 6; padding: 9px 14px; border-radius: 999px; background: #0F1117; border: 1px solid rgba(255,255,255,.12); color: #EDEFF5; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); }
.dw__toast.is-on { opacity: 1; translate: -50% 0; }

/* panes: script, shots, settings */
.pane { display: grid; gap: 14px; }
.pane__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pane__row--meta { font-size: 12.5px; color: #8D93A3; }
.pane__title { font-size: 15px; font-weight: 700; color: #F1F3F8; }
.pane__sub { font-size: 13px; color: #9AA0AF; }
.ok { color: #7FE0D2; }
.dw textarea { width: 100%; resize: vertical; min-height: 180px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #15171D; font-size: 14px; line-height: 1.6; }
.dw textarea:focus { outline: none; border-color: var(--sodium); }
.dw textarea[readonly] { border-style: dashed; border-color: rgba(76,196,180,.45); color: #C9CDD8; }
.script__err { color: #FF9C93; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; font-size: 13px; font-weight: 600; color: #DADDE6; padding: 4px; }
.switch__track { width: 36px; height: 20px; border-radius: 999px; background: #3A3F4C; position: relative; transition: background-color .2s; }
.switch__track i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--teal); }
.switch[aria-checked="true"] .switch__track i { transform: translateX(16px); }
.empty { display: grid; justify-items: start; gap: 8px; padding: 30px 6px; }
.empty .pill2 { margin-top: 6px; }
.shots2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shot { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #22252E; border: 1px solid rgba(255,255,255,.05); }
.shot__thumb { aspect-ratio: 9/16; border-radius: 6px; background: radial-gradient(80% 50% at 50% 35%, rgba(255,181,71,.35), transparent 70%), linear-gradient(var(--h), #0E1430); }
.shot.is-busy .shot__thumb { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.shot__txt p { font-size: 12.5px; color: #C9CDD8; }
.shot__txt b { color: #F1F3F8; margin-right: 4px; }
.shot__line { color: #8D93A3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__state { color: #7FE0D2 !important; font-size: 12px !important; }
.shot__state:empty { display: none; }
.shot__btns { display: flex; gap: 6px; }
.shots2__more { padding-left: 4px; }

.pane--settings { gap: 18px; padding-bottom: 8px; }
.seg2 { display: inline-flex; padding: 3px; border-radius: 999px; background: #15171D; border: 1px solid rgba(255,255,255,.08); }
.seg2 button { height: 28px; padding: 0 13px; border-radius: 999px; border: 0; background: none; color: #9AA0AF; font-size: 12.5px; font-weight: 650; }
.seg2 button[aria-pressed="true"] { background: #F1F3F8; color: #15171D; }
.grp { margin: 0; padding: 0; border: 0; min-width: 0; }
.grp legend { display: flex; width: 100%; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: #AEB3C1; margin-bottom: 8px; padding: 0; }
.grp legend output { color: var(--sodium); font-variant-numeric: tabular-nums; }
.grp__note { margin-top: 8px; font-size: 12.5px; color: #8D93A3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); color: #C9CDD8; font-size: 13px; font-weight: 600; transition: all .18s; }
.chip:hover span { border-color: rgba(255,255,255,.3); }
.chip input:focus-visible + span { outline: 2px solid var(--sodium); outline-offset: 2px; }
.chip input:checked + span { background: rgba(255,181,71,.14); border-color: var(--sodium); color: #FFE0A8; }
.chip--horror input:checked + span { background: rgba(242,124,140,.15); border-color: var(--rose); color: #FFC2CB; }
.chip--wholesome input:checked + span { background: rgba(76,196,180,.14); border-color: var(--teal); color: #A6F0E5; }
.chip--mystery input:checked + span { background: rgba(140,130,230,.17); border-color: var(--dusk); color: #D6D1FF; }
.chips--genre .chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--c, var(--sodium)); }
.chip--horror { --c: var(--rose); } .chip--wholesome { --c: var(--teal); } .chip--comedy { --c: var(--sodium); } .chip--mystery { --c: var(--dusk); }
.dw input[type="range"] { width: 100%; accent-color: var(--sodium); }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice { position: relative; display: block; cursor: pointer; }
.voice > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.voice__body { display: grid; gap: 1px; padding: 10px 48px 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #22252E; transition: border-color .18s; }
.voice__body b { font-size: 13px; color: #EEF0F5; }
.voice__body small { font-size: 11.5px; color: #8D93A3; }
.voice > input:checked + .voice__body { border-color: var(--sodium); background: rgba(255,181,71,.07); }
.voice > input:focus-visible + .voice__body { outline: 2px solid var(--sodium); outline-offset: 2px; }
.voice__play { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: #2B2F3A; display: flex; align-items: center; justify-content: center; gap: 2px; z-index: 1; }
.voice__play i { width: 2.5px; height: 8px; border-radius: 2px; background: #C9CDD8; }
.voice__play i:nth-child(2) { height: 12px; }
.voice__play.is-playing i { background: var(--sodium); animation: eq .5s ease-in-out infinite alternate; }
.voice__play.is-playing i:nth-child(2) { animation-delay: .15s; } .voice__play.is-playing i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1.3); } }
.capprev { margin-top: 10px; height: 74px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(60% 80% at 50% 30%, rgba(140,130,230,.25), transparent 70%), linear-gradient(#0E1536, #22205A); }
.capprev span { font: 900 26px/1 var(--font); color: #fff; }
.capprev--bold span { -webkit-text-stroke: 5px #000; paint-order: stroke fill; }
.capprev--bold .k { color: var(--cap-key); }
.capprev--karaoke span { -webkit-text-stroke: 5px #000; paint-order: stroke fill; color: rgba(255,255,255,.55); }
.capprev--karaoke .k { color: #fff; background: var(--rose); -webkit-text-stroke: 0; padding: 4px 8px; border-radius: 8px; }
.capprev--boxed span { background: #000; padding: 6px 8px; font-size: 22px; }
.capprev--boxed .k { color: var(--cap-key); }
.capprev--minimal span { font-weight: 650; font-size: 21px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.grp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 6px; font-size: 12.5px; font-weight: 650; color: #AEB3C1; }
.fld select { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #15171D; color: #EEF0F5; font-size: 13px; font-weight: 500; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.est { position: sticky; bottom: -16px; margin: 14px -16px -16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #23262F; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #C9CDD8; }
.est small { margin-left: 6px; font-size: 11px; color: #C8C2FF; background: rgba(140,130,230,.14); padding: 1px 8px; border-radius: 999px; }
.est b { color: var(--sodium); font-size: 16px; font-variant-numeric: tabular-nums; }

/* phones: full-screen sheet */
@media (max-width: 760px) {
  dialog.demo { width: 100vw; height: 100dvh; margin: 0; inset: 0; }
  dialog.demo[open] .dw { animation: sheetIn .4s var(--ease) both; }
  @keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }
  .dw { border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .dw__bar { flex-wrap: wrap; row-gap: 6px; padding: 10px 8px 10px 14px; }
  .dw__tag { order: 5; font-size: 11.5px; }
  .dw__credits-l { display: none; }
  .dw__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dw__main { order: 2; border-right: 0; }
  .room { order: 1; flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.07); overflow: visible; }
  .room__head, .room__cap, .room__badge { display: none; }
  .room__screen { width: 44px; height: auto; flex: none; border-radius: 6px; margin: 0; }
  .room__info { flex: 1; min-width: 0; gap: 6px; }
  .room__status { font-size: 12.5px; }
  .file2 { height: 26px; font-size: 12px; padding: 0 9px; }
  .dw__tabs [role="tab"] { flex: 1; padding: 0 8px; }
  .voices, .grp2, .jobs { grid-template-columns: 1fr; }
  .shot { grid-template-columns: 30px minmax(0, 1fr); }
  .shot__btns { grid-column: 2; }
  .dw__foot { gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .tb { padding: 0 10px; }
  .hist__menu { width: min(290px, calc(100vw - 20px)); }
  .dw__toast { bottom: 62px; max-width: calc(100vw - 32px); white-space: normal; text-align: center; border-radius: 14px; }
}
