:root {
  --ink: #0F1535;
  --blue: #2B4BFF;
  --blue-deep: #1B34C8;
  --play: #FF7A1A;
  --sky: #9DB9FF;
  --foley: #5C7BFF;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --muted: #4A5275;
  --line: #DDE2EE;
  --track: #18204A;
  --shot: #2A356E;
  --on-dark: #C9D2F2;
  --on-dark-soft: #AAB6E6;
  --danger: #B3261E;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--play); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1280px; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1C2550; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E9EDFA; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #B9C1D9; color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 28px; border-radius: 14px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-danger { color: var(--danger); }

/* header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--blue); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-top: 56px; padding-bottom: 48px; }
.site-footer .tag { font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.site-footer nav a { color: var(--muted); text-decoration: none; padding: 12px 0; }
.site-footer nav a:hover { color: var(--ink); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* hero and dropzone */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 56px; padding-bottom: 44px; }
.hero > * { flex: 1 1 400px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.035em; }
.hero .sub { margin-top: 20px; font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.3; letter-spacing: -0.02em; }
.hero .lede { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero .more { margin-top: 20px; font-weight: 600; }
.hero-center { display: block; max-width: 820px; text-align: center; padding-top: 48px; padding-bottom: 0; }
.hero-center h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; }
.hero-center .lede { margin: 18px auto 36px; max-width: 600px; }
.dropzone { background: var(--card); border: 2px dashed var(--blue); border-radius: 24px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; transition: background .15s, border-color .15s; }
.dropzone.is-over { background: #EAEEFF; border-style: solid; }
.dropzone.is-busy { border-style: solid; border-color: var(--line); }
.dz-title { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.dz-hint { font-size: 14px; color: var(--muted); }
.dz-error { font-size: 15px; font-weight: 500; color: var(--danger); }
.dz-code { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px; }
.dz-code label { display: block; font-size: 14px; font-weight: 600; text-align: left; margin-bottom: 6px; }
.field { min-height: 44px; padding: 0 14px; border: 1px solid #C3CADC; border-radius: 12px; background: #fff; font-size: 15px; width: 100%; }
.dz-code .field { width: 200px; }
.dz-progress { width: 100%; max-width: 360px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .3s; }
.dz-progress p { margin-top: 10px; font-size: 14px; font-weight: 600; }
.dropzone-row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 32px 40px; gap: 20px 32px; }
.dropzone-row .dz-main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.dropzone-row .dz-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* demo timeline on dark */
.dark-card { background: var(--ink); border-radius: 24px; padding: 28px; color: #fff; }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; font-size: 15px; color: var(--on-dark); }
.demo-head span { font-size: 14px; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.tl { display: flex; gap: 16px; }
.tl-labels { flex: 0 0 84px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--on-dark-soft); }
.tl-labels div { height: 26px; display: flex; align-items: center; }
.tl-rows { flex: 1 1 auto; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl-row { position: relative; height: 26px; background: var(--track); border-radius: 6px; }
.tl-row i { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; }
.tl-row.shots i { top: 0; bottom: 0; background: var(--shot); }
.c-ambience { background: var(--sky); }
.c-foley { background: var(--foley); }
.c-impacts { background: #fff; }
.c-whooshes { background: var(--play); }
.tl-head { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--play); border-radius: 1px; pointer-events: none; }

/* sections */
.section { padding-top: 96px; }
.section h2 { font-size: 36px; }
.steps { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 40px; }
.steps li { flex: 1 1 280px; min-width: 0; }
.steps .num { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--blue); }
.steps h3, .points h2, .layers h3 { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.steps p, .points p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.uses { display: flex; flex-wrap: wrap; gap: 0 48px; margin-top: 32px; }
.uses a { flex: 1 1 420px; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.uses a strong { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.uses a span span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.uses a em { flex: 0 0 auto; font-style: normal; font-size: 15px; font-weight: 600; color: var(--blue); }
.uses a:hover strong { color: var(--blue); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }
.split .lede { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.layers { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.layers > div { flex: 1 1 220px; min-width: 0; }
.layers p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.chip { width: 56px; height: 28px; background: var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.chip i { height: 10px; border-radius: 3px; }
.points { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 72px; }
.points > div { flex: 1 1 280px; min-width: 0; }
.points h2 { margin-top: 0; }
.faq { margin-top: 24px; max-width: 760px; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.faq p { margin-top: 8px; line-height: 1.6; color: var(--muted); }
.two-col { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 72px; }
.two-col > :first-child { flex: 1 1 460px; min-width: 0; }
.two-col > :last-child { flex: 1 1 340px; min-width: 0; }
.two-col h2 { font-size: 28px; }
.linklist { margin-top: 20px; font-weight: 500; }
.linklist li { border-top: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 1px solid var(--line); }
.linklist a { display: block; padding: 14px 0; text-decoration: none; }
.cta { background: var(--ink); border-radius: 28px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta h2 { font-size: clamp(28px, 3.2vw, 44px); color: #fff; max-width: 680px; }
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: 40px; }
.notfound p { margin: 16px 0 28px; color: var(--muted); }

/* app */
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.app-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.app-header .left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-width: 0; }
.app-header .right { display: flex; align-items: center; gap: 16px; font-size: 15px; position: relative; }
.acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; font-size: 14px; }
.acct-credits { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 7px 0 14px; border: 0; border-radius: 999px; background: #E9EDFA; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-credits:not(:disabled):hover { background: #DBE2F8; }
.acct-credits:disabled { padding-right: 14px; cursor: default; }
.acct-credits:disabled .acct-plus { display: none; }
.acct-plus { box-sizing: content-box; padding: 5px; border-radius: 50%; background: var(--blue); color: #fff; }
.acct-who { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.acct a:not(.btn) { color: var(--ink); font-weight: 600; }
.linkbtn { border: 0; background: none; padding: 10px 0; font-size: 14px; color: var(--muted); text-decoration: underline; }
.linkbtn:hover { color: var(--ink); }

/* buying credits */
dialog.buy { width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 90px rgba(15, 21, 53, .35); overflow: auto; overscroll-behavior: contain; }
dialog.buy::backdrop { background: rgba(15, 21, 53, .55); }
dialog.buy[open] { animation: buy-in .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes buy-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.buy-body { padding: 32px; }
.buy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buy-head h2 { font-size: 30px; }
.buy-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.buy-x:hover { background: #E9EDFA; color: var(--ink); }
.buy-lead { margin-top: 8px; max-width: 62ch; color: var(--muted); }
.buy-need { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #FFE8D6; color: #7A3200; font-weight: 500; }
.buy-confirm { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.buy-confirm h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.buy-confirm p { margin-top: 8px; max-width: 62ch; color: var(--muted); }
.buy-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.buy-group { margin-top: 28px; }
.buy-group h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.buy-group > p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.buy-group > .buy-note { margin-top: 14px; max-width: 76ch; }
.buy-note.is-warning { color: var(--danger); font-weight: 500; }
.buy-fine { margin-top: 24px; font-size: 13px; color: var(--muted); }
.buy-body > .dz-error { margin-top: 20px; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 12px; margin-top: 20px; }
.offers-plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.offer { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.offer.is-current { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.offer-text { flex: 1 1 auto; min-width: 0; }
.offer-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.offer-save { position: absolute; top: -11px; right: 14px; padding: 2px 10px; border-radius: 999px; background: #FFE8D6; box-shadow: 0 0 0 2px var(--bg); color: #8F3A00; font-size: 13px; font-weight: 600; white-space: nowrap; }
.offer-price { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.offer-price span { font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.offer-rate { margin-top: 4px; font-size: 14px; color: var(--muted); }
.offer .btn { width: 100%; }
.offer-plan { flex-direction: row; align-items: center; }
.offer-plan .btn { width: auto; flex: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 12px 40px rgba(15, 21, 53, .3); }
.admin .grant { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 28px; }
.admin .grant > div { flex: 1 1 200px; min-width: 0; }
.admin .grant label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.admin .help { margin-top: 10px; font-size: 14px; color: var(--muted); }
.table-wrap { margin-top: 28px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .n { text-align: right; font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.app-title { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.app-main { padding-top: 40px; padding-bottom: 64px; }
.app-main h1 { font-size: 32px; }
.app-main h2 { margin-top: 56px; font-size: 22px; letter-spacing: -0.02em; }
.notice { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: #FFF1E5; border: 1px solid #FFD2AD; font-size: 15px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; margin-top: 20px; }
.project { position: relative; }
.project a.cardlink { display: block; text-decoration: none; color: var(--ink); }
.thumb { aspect-ratio: 16 / 9; background: var(--ink) center / cover no-repeat; border-radius: 14px; }
.project .name { margin-top: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project .meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pill { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: #E3E9FF; font-size: 13px; font-weight: 600; }
.pill.bad { background: #FBE4E2; color: var(--danger); }
.project .bar { margin-top: 12px; }
.project .step { margin-top: 8px; font-size: 13px; font-weight: 600; }
.project .del { margin-top: 6px; background: none; border: 0; padding: 8px 0; font-size: 13px; color: var(--muted); text-decoration: underline; }
.project .del:hover { color: var(--danger); }
.empty { margin-top: 20px; color: var(--muted); }

/* editor */
.editor { padding-top: 24px; padding-bottom: 32px; }
.processing { max-width: 520px; margin: 96px auto; text-align: center; }
.processing h2 { font-size: 26px; }
.processing .bar { margin: 28px 0 14px; }
.processing p { color: var(--muted); }
.processing .btn { margin-top: 24px; }
.stage-row { display: flex; flex-wrap: wrap; gap: 24px; }
.stage { flex: 999 1 520px; min-width: 0; background: var(--ink); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 56vh; aspect-ratio: 16 / 9; }
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.panel { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.panel .eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); }
.panel .clip-name { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.panel .clip-meta { margin-top: 8px; font-size: 15px; color: var(--muted); }
.panel label { display: block; margin-top: 22px; font-size: 14px; font-weight: 600; }
.panel input[type=range] { display: block; width: 100%; height: 32px; margin-top: 4px; accent-color: var(--blue); }
.panel .row { display: flex; gap: 12px; margin-top: 12px; }
.panel .row .btn { flex: 1 1 0; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; }
.panel .field { margin-top: 8px; }
.panel .full { width: 100%; margin-top: 12px; }
.panel .help { margin-top: 10px; font-size: 14px; color: var(--muted); }
.panel .err { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--danger); }
.timeline { margin-top: 24px; background: var(--ink); border-radius: 20px; padding: 20px 24px 24px; color: #fff; }
.transport { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.transport .l, .transport .r { display: flex; align-items: center; gap: 14px; }
.round { width: 44px; height: 44px; border-radius: 22px; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.round svg { fill: var(--ink); }
.time { font-family: var(--display); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.summary { font-size: 14px; color: var(--on-dark-soft); }
.zoom { display: inline-flex; gap: 6px; }
.zoom button { width: 44px; height: 36px; border-radius: 10px; border: 1px solid #3A4585; background: transparent; color: #fff; font-size: 18px; line-height: 1; }
.zoom button:hover { background: var(--track); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark); min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.tl-live { display: flex; gap: 12px; margin-top: 14px; }
.tl-heads { flex: 0 0 184px; display: flex; flex-direction: column; gap: 8px; padding-top: 28px; }
.th { height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--on-dark); }
.th-name { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.th-name i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.th-btns { flex: none; display: flex; gap: 4px; }
.tb { min-width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid #3A4585; background: transparent; color: var(--on-dark); font-family: var(--display); font-weight: 600; font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tb:hover:not(:disabled) { background: var(--track); color: #fff; }
.tb:disabled { opacity: .35; cursor: default; }
.tb-m[aria-pressed=true] { background: var(--play); border-color: var(--play); color: var(--ink); }
.tb-s[aria-pressed=true] { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.tb-x span:empty { display: none; }
.tb-x.is-confirm { padding: 0 8px; background: #E5484D; border-color: #E5484D; color: #fff; }
.th.is-off .th-name { opacity: .45; }
.th.is-confirming .tb-m, .th.is-confirming .tb-s { display: none; }
.tl-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 0 0 10px; scrollbar-color: #3A4585 transparent; }
.tl-inner { position: relative; min-width: 100%; }
.tl-live .tl-inner { min-width: calc(100% - 20px); margin: 0 10px; }
.ruler { position: relative; height: 28px; font-size: 12px; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ruler span { position: absolute; top: 2px; padding-left: 5px; border-left: 1px solid #3A4585; height: 14px; line-height: 14px; pointer-events: none; }
.tl-live .tl-rows { cursor: pointer; gap: 8px; }
.tl-live .tl-row { height: 36px; }
.tl-live .tl-row.shots i { top: 0; bottom: 0; }
.tl-live .tl-row.is-off .clip { opacity: .25; }
.ph { position: absolute; top: 0; bottom: 0; width: 0; z-index: 5; pointer-events: none; }
.ph::after { content: ''; position: absolute; top: 16px; bottom: -6px; left: -1px; width: 2px; background: var(--play); border-radius: 1px; }
.ph-knob { position: absolute; top: 0; left: -18px; width: 36px; height: 28px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.ph-knob span { display: block; margin: 1px auto 0; width: 14px; height: 18px; background: var(--play); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.ph-knob:focus-visible { outline: none; }
.ph-knob:focus-visible span { background: #fff; }
.is-scrubbing, .is-scrubbing * { cursor: ew-resize !important; }
.clip-tools { position: absolute; z-index: 6; display: flex; gap: 2px; padding: 3px; background: #fff; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.clip-tools[hidden] { display: none; }
.clip-tools button { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.clip-tools button:hover { background: #E9EDFA; }
.clip-tools .danger { color: var(--danger); }
.clip-tools .danger:hover { background: #FBE4E2; }
.clip { position: absolute; top: 4px; bottom: 4px; min-width: 6px; border: 0; padding: 0 6px; border-radius: 5px; cursor: grab; touch-action: none; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.clip.is-narrow { padding: 0; font-size: 0; }
.clip.is-muted { opacity: .3; }
.clip.is-selected { top: 2px; bottom: 2px; outline: 2px solid #fff; outline-offset: 1px; z-index: 2; }
.clip.c-impacts.is-selected { outline-color: var(--play); }
.clip:active { cursor: grabbing; }
.part { position: absolute; top: 0; bottom: 0; border-radius: 4px; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.part.working { background: repeating-linear-gradient(-45deg, #2A356E 0 10px, #222C60 10px 20px); color: var(--on-dark); }
.part.failed { border: 1px dashed #FF9C8F; color: #FFC9C2; background: #2B1B3A; }
.part button { border: 0; background: #fff; color: var(--ink); border-radius: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; }
.export-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 12px 32px rgba(15, 21, 53, .16); }
.export-pop p { font-size: 14px; color: var(--muted); }
.export-pop .btn { width: 100%; margin-top: 10px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 64px; }
  .section h2 { font-size: 28px; }
  .hero { padding-top: 28px; }
  .dark-card, .timeline { padding: 18px 14px; border-radius: 18px; }
  .tl-labels { flex-basis: 64px; font-size: 12px; }
  .tl-heads { flex-basis: 104px; }
  .th { height: 58px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; font-size: 12px; }
  .tl-heads .th:first-child { height: 36px; }
  .tl-live .tl-row { height: 58px; }
  .tl-live .tl-row.shots { height: 36px; }
  .cta { padding: 44px 20px; border-radius: 22px; }
  .dropzone { padding: 36px 20px; }
  .dropzone-row { padding: 24px 20px; }
  .dropzone-row .dz-side { align-items: stretch; width: 100%; }
  .nav { gap: 0 18px; }
  .app-title { max-width: 80vw; }
  .buy-body { padding: 22px 18px; }
  .buy-head h2 { font-size: 26px; }
  .offer { padding: 16px; }
  .offer-plan { flex-direction: column; align-items: stretch; }
  .offer-plan .btn { width: 100%; }
  .acct-credits { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar > span, .dropzone { transition: none; }
  dialog.buy[open] { animation: none; }
}

/* pricing on the home page */
.pricing-lead { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.pricing-group { margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.pricing-note { margin-top: 6px; color: var(--muted); }
#pricing .offers { margin-top: 24px; }
#pricing > .pricing-note:last-child { margin-top: 28px; font-size: 14px; }

/* footer legal row */
.site-footer .foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .foot-legal span { padding: 12px 0; color: var(--muted); }

/* terms, privacy, refunds */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal-updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; }
.legal p, .legal li { line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal-contact { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* check the video before Start */
.confirm { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 24px; }
.confirm-video { flex: 999 1 520px; min-width: 0; background: var(--ink); border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 64vh; display: flex; }
.confirm-video video { width: 100%; height: 100%; object-fit: contain; }
.confirm-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.confirm-side h2 { font-size: 30px; }
.confirm-lead { color: var(--muted); line-height: 1.5; }
.confirm-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.confirm-facts div { display: contents; }
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { margin: 0; font-weight: 600; }
.engine-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.engine-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.engine-pick[hidden] { display: none; }
.engine-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; margin-bottom: 8px; }
.engine-opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.engine-opt input { margin-top: 3px; accent-color: var(--blue); }
.engine-opt strong { display: block; }
.engine-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.45; }
#discard-btn { align-self: flex-start; }

/* sound style tiers on the Start screen */
.engine-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.engine-tier { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.engine-tier.is-pro { background: #FFE8D6; color: #8F3A00; }
.engine-price { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.engine-opt > span { flex: 1 1 auto; min-width: 0; }

/* model picker: three dots on a line (pricing section and Start screen) */
.model-slider { display: grid; gap: 18px; margin-top: 20px; }
.ms-track { position: relative; height: 64px; margin: 0 28px; }
.ms-line { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 999px; background: var(--line); }
.ms-fill { height: 100%; width: 0; border-radius: inherit; background: var(--blue); }
.ms-dot { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.ms-dot.is-past { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 5px #fff; }
.ms-dot.is-on { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px rgba(43, 75, 255, .15); }
.ms-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.ms-label { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; font-size: 13px; line-height: 1.3; color: var(--muted); }
.ms-label strong { font-size: 15px; color: var(--ink); }
.ms-dot.is-on .ms-label strong { color: var(--blue); }
.ms-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-head h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
.ms-price { font-weight: 600; color: var(--ink); }
.ms-about { margin: 8px 0 0; }
.ms-features { margin: 8px 0 0; padding-left: 20px; color: var(--muted); list-style: disc; }
.ms-features li { margin: 2px 0; }
.pricing-from { margin: 4px 0 6px; font-size: 18px; }
.pricing-from strong { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
#confirm .model-slider { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .ms-fill { transition: width .2s ease; } .ms-dot { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; } }

.demo-video { margin: 20px 0 0; }
.demo-video video { width: 100%; height: auto; display: block; border-radius: 16px; background: #000; }
.demo-video figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ms-track > .ms-dot:nth-child(2) .ms-label { left: 0; transform: none; align-items: flex-start; }
.ms-track > .ms-dot:last-child .ms-label { left: auto; right: 0; transform: none; align-items: flex-end; }
.ms-track { margin: 0 18px; }
.ms-track { cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ms-track.is-dragging, .ms-track.is-dragging .ms-dot { cursor: grabbing; }
.ms-dot { cursor: grab; }
