/* Remake: a precise editing tool. Cool paper or near-black, hairline rules, an always-dark editor panel, one signal
   colour (cut orange) for cuts and "yours", text-beat yellow, mono timecodes. The motif is "original -> yours": the same
   cuts, timing and text beats with different footage. Every app class from the shared TypeScript is styled here; art
   without rasters is drawn in CSS (.art-*). No third-party marks or brand colours.
   Contrast (AA): --ink/--bg 17.4:1, --muted/--bg 5.9:1, ink on --cut 7.0:1, --accent-ink/--bg 5.3:1 (light) and
   --accent-ink/--bg 7.6:1 (dark), --ed-muted/--ed 6.0:1. */

:root {
  --bg: #f4f4f1;
  --bg-tint: #eaeae5;
  --surface: #ffffff;
  --surface-2: #f8f8f5;
  --ink: #111318;
  --ink-2: #2c2f36;
  --muted: #5b5f69;
  --line: #d9d9d2;
  --line-strong: #111318;
  --cut: #ff6a13;
  --cut-soft: #ffe7d8;
  --beat: #ffc800;
  --accent-ink: #b8430a;
  --on-cut: #111318;
  --danger: #c0262d;
  --danger-soft: #fde4e4;
  --ok: #157a46;
  --ok-soft: #dff5e8;
  --info: #2d55c8;
  --info-soft: #e3eafd;
  --focus: #e25500;
  --shadow: 0 1px 0 rgba(17, 19, 24, .04), 0 18px 40px -26px rgba(17, 19, 24, .45);
  --ed: #121418;
  --ed-2: #1b1e24;
  --ed-3: #262a32;
  --ed-line: #2e323b;
  --ed-ink: #eef0f3;
  --ed-muted: #8f95a0;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --hair: 1px solid var(--line);
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --loop: 8s;                                              /* the hero edit: 16 beats at 120 BPM */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e11;
    --bg-tint: #14161a;
    --surface: #17191e;
    --surface-2: #1c1f25;
    --ink: #f2f3f5;
    --ink-2: #d5d8de;
    --muted: #9ca2ad;
    --line: #2a2d34;
    --line-strong: #555b66;
    --cut-soft: #3a2012;
    --accent-ink: #ff8a3d;
    --danger: #ff8f94;
    --danger-soft: #3a171a;
    --ok: #72dca1;
    --ok-soft: #12301f;
    --info: #9db4ff;
    --info-soft: #172045;
    --focus: #ff8a3d;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 22px 44px -26px rgba(0, 0, 0, .9);
    --ed: #15171c;
    --ed-2: #1d2027;
    --ed-line: #31353f;
    color-scheme: dark;
  }
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; outline: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 116%; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 1.3rem + 5.6vw, 5.5rem); line-height: .93; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.3rem); }
h3 { font: 700 1.16rem/1.25 var(--font-display); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; }
em { font-style: normal; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: var(--narrow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cut); color: #111318; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: var(--hair);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 1.42rem/1 var(--font-display); font-stretch: 122%; letter-spacing: -.04em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.m-bg { fill: #111318; }
@media (prefers-color-scheme: dark) { .m-bg { fill: #23262d; } }
.m-orig { fill: none; stroke: #9aa0ab; stroke-width: 2; }
.m-yours { fill: var(--cut); transition: transform .35s cubic-bezier(.2, .9, .2, 1); transform-origin: 21px 16px; }
.m-cut { fill: #f5f6f8; transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.brand:hover .m-cut { transform: translateX(1.5px); }
.brand:hover .m-yours { transform: scaleY(1.08); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  appearance: none; border: 1px solid transparent; background: none; cursor: pointer; font: 600 .94rem/1 var(--font-body);
  color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: 10px; min-height: 40px;
  display: inline-flex; align-items: center;
}
.nav a:hover, .nav button:hover { background: var(--bg-tint); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--line-strong); color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: var(--bg); }
.nav .nav-cta:hover { background: var(--cut); color: #111318; }

.site-footer { position: relative; overflow: hidden; background: #0d0e11; color: #eef0f3; border-top: 1px solid #23262d;
  padding: 44px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer .muted { color: #a3a9b4; }
.site-footer .small { max-width: 40em; }
.foot-grid { display: grid; gap: 18px; grid-template-columns: 1fr; position: relative; z-index: 1; }
.foot-brand { font: 800 1.45rem/1 var(--font-display); font-stretch: 122%; letter-spacing: -.04em; margin-bottom: .5em; color: #fff; }
.foot-brand::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .12em; border-radius: 2px; background: var(--cut); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: start; }
.foot-links a { color: #eef0f3; text-decoration: none; padding: 6px 0; font-weight: 600; }
.foot-links a:hover { color: var(--cut); text-decoration: underline; }
.foot-tc { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 30px; color: #3d424c;
  font: 700 .72rem/1 var(--font-mono); letter-spacing: .08em; user-select: none; }
.foot-tc span:first-child, .foot-tc span:last-child { padding-bottom: .9em; white-space: nowrap; }
.foot-word { margin-bottom: -.16em; font: 800 clamp(3.6rem, 1rem + 14vw, 13rem)/.8 var(--font-display); font-stretch: 125%;
  letter-spacing: -.06em; color: #1b1e24; white-space: nowrap; }
@media (max-width: 600px) { .foot-tc span:first-child, .foot-tc span:last-child { display: none; } }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } .foot-links { justify-content: flex-end; } }

/* ---------- buttons / inputs ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; position: relative;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap; color: var(--ink); background: var(--surface);
  transition: background-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(17, 19, 24, .5); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.06rem; border-radius: 14px; }
.btn-primary { background: var(--cut); color: #111318; border-color: var(--cut); }
.btn-primary:hover { background: #ff7d33; color: #111318; border-color: #ff7d33; }
.btn-quiet { background: transparent; border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--surface); }
.btn-text { background: none; border: 0; box-shadow: none; color: var(--accent-ink); padding-inline: 6px; min-height: 40px; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.btn-text:hover, .btn-text:active { transform: none; box-shadow: none; color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.hint { color: var(--muted); font-size: .95rem; margin: -2px 0 12px; }
.input, .textarea {
  width: 100%; font: 400 1.05rem/1.5 var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 52px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus { outline: none; border-color: var(--cut); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cut) 26%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 128px; resize: vertical; }
.input-code { font: 700 1.1rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: var(--hair); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.panel-raised { border-color: color-mix(in srgb, var(--line-strong) 40%, var(--line)); }
.panel + .panel { margin-top: 22px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .97rem; margin: 12px 0;
  border: 1px solid currentColor; font-weight: 600; }
.notice::before { content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: currentColor; }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice p { margin: 0; color: var(--ink); }
.form-msg:empty { display: none; }
.tc { display: inline-block; margin-right: 10px; padding-right: 10px; border-right: 1px solid currentColor; color: var(--accent-ink); }
/* ---------- landing: hero ---------- */
.hero { position: relative; padding: clamp(26px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 12px 7px 10px; border-radius: 8px;
  border: var(--hair); background: var(--surface); color: var(--ink-2); font: 700 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .18); }
.hero h1 { margin-bottom: .4em; }
.hero h1 .hl { position: relative; display: inline-block; padding: 0 .14em; margin-left: -.14em; z-index: 0; }
.hero h1 .hl::before { content: ""; position: absolute; z-index: -1; inset: .1em 0 -.1em; border-radius: .06em;
  background: color-mix(in srgb, var(--cut) 20%, transparent); border: 2px solid var(--cut); border-left-width: .14em; border-right-width: .14em; }
.lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.26rem); color: var(--ink-2); max-width: 31em; }
.lead-sm { font-size: 1.1rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; border: var(--hair);
  background: var(--surface); font-size: .9rem; color: var(--ink-2); }
.facts li::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--cut); }
.facts li:nth-child(2)::before { background: var(--beat); }
.facts li:nth-child(3)::before { background: var(--muted); }
.facts strong { color: var(--ink); }

/* hero visual: an editor window, the original and yours side by side over one timeline */
.hero-visual { position: relative; margin: 0 auto; width: min(100%, 560px); }
.editor { position: relative; border-radius: 20px; background: var(--ed); color: var(--ed-ink); border: 1px solid #23262d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -40px rgba(17, 19, 24, .7), 0 12px 24px -16px rgba(17, 19, 24, .5);
  translate: 0 calc(var(--py, 0) * -24px); }
.ed-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ed-line);
  font: 700 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
.ed-rec { display: inline-flex; align-items: center; gap: 7px; color: #ff6b62; }
.ed-file { flex: 1; color: var(--ed-ink); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.ed-tc { font-variant-numeric: tabular-nums; color: var(--ed-ink); }
.ed-frames { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 14px 10px; }
.ed-label { display: flex; align-items: center; gap: 6px; margin: 0 0 7px 2px; font: 700 .64rem/1 var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ed-muted); }
.yours .ed-label { color: var(--cut); }
.ed-label::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; border: 1.2px solid currentColor; }
.yours .ed-label::before { background: currentColor; }
.screen, .phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; isolation: isolate; }
.screen { background: var(--ed-2); box-shadow: 0 0 0 1px #343944 inset; }
.phone-screen { background: #000; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cut) 70%, transparent), 0 14px 30px -16px rgba(255, 106, 19, .55); }
.phone-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample-cap { text-align: center; }
.slot { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.slot.s1 { opacity: 1; }
.slot picture, .slot .shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot .loop { z-index: 1; }
.wf { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.screen .guides { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%23ff6a13' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13V5h8M85 13V5h-8M5 147v8h8M85 147v8h-8'/%3E%3C/svg%3E") center / 100% 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%232b2f37' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 0v160M60 0v160M0 53h90M0 107h90'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wf-wide { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 50h90'/%3E%3Ccircle cx='72' cy='34' r='8'/%3E%3Cpath d='M38 50 0 104M52 50l38 44'/%3E%3Cpath d='M44 0l6 86M66 0v88'/%3E%3Cpath d='M44 94q1-9 12-7l17 4q8 2 8 9v3H44z'/%3E%3Cpath d='M6 160 66 106l24 8-52 46'/%3E%3C/svg%3E"); }
.wf-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 60h32l-4 54H34z'/%3E%3Cpath d='M27 56h38'/%3E%3Cpath d='M22 100c6-9 15-7 19 4M58 92c7 2 9 11 4 17'/%3E%3Cpath d='M0 154v-26h12v-16h10v24h14v-10h12v28h12v-34h10v20h20'/%3E%3C/svg%3E"); }
.wf-pan { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='58' cy='32' r='7'/%3E%3Cellipse cx='44' cy='82' rx='15' ry='22'/%3E%3Cpath d='M4 70h12M2 82h17M6 94h11'/%3E%3Cpath d='M0 108h90'/%3E%3Cpath d='M0 124q11-6 22 0t22 0 22 0 24 0'/%3E%3C/svg%3E"); }
.wf-detail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 96a29 29 0 0 0 58 0z'/%3E%3Cpath d='M72 20 52 80M80 24 58 82'/%3E%3Cpath d='M52 80v18M57 82v16'/%3E%3Cpath d='M32 62q-4-6 0-12t0-12M42 58q-4-6 0-12t0-12'/%3E%3Ccircle cx='62' cy='104' r='6'/%3E%3C/svg%3E"); }
.wf-road { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 60h90'/%3E%3Cpath d='M4 60v-8h10v8M22 60v-12h6v12M60 60v-10h14v10'/%3E%3Cpath d='M42 60 14 126M48 60l28 66'/%3E%3Cpath d='M45 70v6M45 84v8M45 100v10'/%3E%3Cpath d='M0 126q45-14 90 0'/%3E%3Cpath d='M30 146q8-12 20-8'/%3E%3C/svg%3E"); }
.wf-burst { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M49.9 63.2L67.5 66.8M48.5 66.0L62.0 77.9M45.9 67.7L51.6 84.8M42.8 67.9L39.2 85.5M40.0 66.5L28.1 80.0M38.3 63.9L21.2 69.6M38.1 60.8L20.5 57.2M39.5 58.0L26.0 46.1M42.1 56.3L36.4 39.2M45.2 56.1L48.8 38.5M48.0 57.5L59.9 44.0M49.7 60.1L66.8 54.4'/%3E%3Cpath d='M45 70 51 140'/%3E%3Cpath d='M38 142q10-6 22 2v16'/%3E%3Ccircle cx='10' cy='18' r='3'/%3E%3Ccircle cx='26' cy='14' r='3'/%3E%3Ccircle cx='70' cy='18' r='3'/%3E%3Ccircle cx='84' cy='12' r='3'/%3E%3C/svg%3E"); }
.wf-tag { position: absolute; left: 8%; bottom: 5.5%; z-index: 3; padding: 3px 5px; border-radius: 4px; background: rgba(13, 14, 17, .7);
  font: 700 clamp(.5rem, .44rem + .2vw, .6rem)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ed-muted); }
.ph, .cap { position: absolute; left: 50%; z-index: 2; transform: translateX(-50%); }
.ph { display: block; height: 6.5%; border-radius: 5px; background: #3b404a; }
.ph-top { top: 13%; width: 62%; }
.ph-mid { top: 45%; width: 76%; }
.ph-big { top: 38%; width: 70%; height: 10%; }
.cap { padding: .34em .6em .38em; border-radius: 6px; background: #fff; color: #111318; white-space: nowrap;
  font: 700 clamp(.6rem, .45rem + .55vw, .84rem)/1.1 var(--font-display); letter-spacing: -.01em; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .6); }
.cap-top { top: 13%; }
.cap-mid { top: 45%; }
.cap-big { top: 38%; padding: .3em .5em .34em; font-size: clamp(.84rem, .6rem + .9vw, 1.2rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; }
.ed-arrow { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 18px; border-radius: 50%; background: var(--cut); color: #111318; }
.ed-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* the shared timeline: the same cuts for both, a text-beat lane and a playhead */
.ed-timeline { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 12px 14px 15px; border-top: 1px solid var(--ed-line); }
.tl-labels, .tl-lanes { display: grid; grid-template-rows: 8px 22px 34px; gap: 6px; }
.tl-labels span { align-self: center; font: 700 .56rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
.tl-lanes { position: relative; container-type: inline-size; }
.lane { position: relative; display: flex; min-width: 0; }
.clip { position: relative; display: block; flex: none; height: 100%; padding: 0 1.5px; font-style: normal; }
.clip::after { content: ""; position: absolute; inset: -2px 0; border: 1.5px solid var(--cut); border-radius: 6px; opacity: 0; pointer-events: none; }
.c1 { width: 18.75%; }
.c2 { width: 12.5%; }
.c3 { width: 18.75%; }
.c4 { width: 12.5%; }
.c5 { width: 25.0%; }
.c6 { width: 12.5%; }
.lane-orig .clip b { display: block; height: 100%; padding: 6px 0 0 6px; border-radius: 4px; background: var(--ed-3); color: var(--ed-muted);
  font: 700 .56rem/1 var(--font-mono); letter-spacing: .06em; }
.lane-yours .clip picture { display: block; height: 100%; border-radius: 4px; overflow: hidden; }
.lane-yours .clip img { width: 100%; height: 100%; object-fit: cover; }
.tx { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--beat); }
.tx1 { left: calc(0.0% + 1.5px); width: calc(18.75% - 3px); }
.tx3 { left: calc(31.25% + 1.5px); width: calc(18.75% - 3px); }
.tx5 { left: calc(62.5% + 1.5px); width: calc(25.0% - 3px); }
.cut { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--cut); z-index: 2; }
.cut::before { content: ""; position: absolute; left: -2px; top: -2px; width: 6px; height: 6px; border-radius: 1px; background: var(--cut); transform: rotate(45deg); }
.k1 { left: 18.75%; }
.k2 { left: 31.25%; }
.k3 { left: 50.0%; }
.k4 { left: 62.5%; }
.k5 { left: 87.5%; }
.playhead { position: absolute; top: -8px; bottom: -6px; left: 9%; width: 2px; margin-left: -1px; z-index: 3; background: #fff; border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(13, 14, 17, .4); }
.playhead::before { content: ""; position: absolute; left: -5px; top: -4px; width: 12px; height: 9px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); }
@media (max-width: 480px) {
  .ed-frames { gap: 6px; padding: 12px 10px 8px; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .ed-arrow { width: 24px; height: 24px; }
  .ed-timeline { grid-template-columns: 34px minmax(0, 1fr); padding: 10px 10px 13px; }
  .ed-file { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .editor.in-view .slot.s1, .editor.in-view .clip.c1::after { animation: sl1 var(--loop) step-end infinite; }
  .editor.in-view .slot.s1 .shot, .editor.in-view .slot.s1 .loop, .editor.in-view .slot.s1 .wf { animation: kb1 var(--loop) linear infinite; }
  .editor.in-view .slot.s2, .editor.in-view .clip.c2::after { animation: sl2 var(--loop) step-end infinite; }
  .editor.in-view .slot.s2 .shot, .editor.in-view .slot.s2 .loop, .editor.in-view .slot.s2 .wf { animation: kb2 var(--loop) linear infinite; }
  .editor.in-view .slot.s3, .editor.in-view .clip.c3::after { animation: sl3 var(--loop) step-end infinite; }
  .editor.in-view .slot.s3 .shot, .editor.in-view .slot.s3 .loop, .editor.in-view .slot.s3 .wf { animation: kb3 var(--loop) linear infinite; }
  .editor.in-view .slot.s4, .editor.in-view .clip.c4::after { animation: sl4 var(--loop) step-end infinite; }
  .editor.in-view .slot.s4 .shot, .editor.in-view .slot.s4 .loop, .editor.in-view .slot.s4 .wf { animation: kb4 var(--loop) linear infinite; }
  .editor.in-view .slot.s5, .editor.in-view .clip.c5::after { animation: sl5 var(--loop) step-end infinite; }
  .editor.in-view .slot.s5 .shot, .editor.in-view .slot.s5 .loop, .editor.in-view .slot.s5 .wf { animation: kb5 var(--loop) linear infinite; }
  .editor.in-view .slot.s6, .editor.in-view .clip.c6::after { animation: sl6 var(--loop) step-end infinite; }
  .editor.in-view .slot.s6 .shot, .editor.in-view .slot.s6 .loop, .editor.in-view .slot.s6 .wf { animation: kb6 var(--loop) linear infinite; }
  .editor.in-view .slot.s1 .cap { animation: cap1 var(--loop) linear infinite; }
  .editor.in-view .slot.s3 .cap { animation: cap3 var(--loop) linear infinite; }
  .editor.in-view .slot.s5 .cap { animation: cap5 var(--loop) linear infinite; }
  .editor.in-view .playhead { animation: playhead var(--loop) linear infinite; }
  .editor.in-view .ed-rec .rec { animation: blink 1s steps(2, jump-none) infinite; }
}
@keyframes sl1 { 0.0% { opacity: 1; } 18.75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb1 { 0% { transform: scale(1); } 18.75%, 100% { transform: scale(1.09); } }
@keyframes sl2 { 0% { opacity: 0; } 18.75% { opacity: 1; } 31.25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb2 { 0%, 18.75% { transform: scale(1); } 31.25%, 100% { transform: scale(1.09); } }
@keyframes sl3 { 0% { opacity: 0; } 31.25% { opacity: 1; } 50.0% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb3 { 0%, 31.25% { transform: scale(1); } 50.0%, 100% { transform: scale(1.09); } }
@keyframes sl4 { 0% { opacity: 0; } 50.0% { opacity: 1; } 62.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb4 { 0%, 50.0% { transform: scale(1); } 62.5%, 100% { transform: scale(1.09); } }
@keyframes sl5 { 0% { opacity: 0; } 62.5% { opacity: 1; } 87.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb5 { 0%, 62.5% { transform: scale(1); } 87.5%, 100% { transform: scale(1.09); } }
@keyframes sl6 { 0% { opacity: 0; } 87.5% { opacity: 1; } 100% { opacity: 1; } }
@keyframes kb6 { 0%, 87.5% { transform: scale(1); } 100% { transform: scale(1.09); } }
@keyframes cap1 { 0% { transform: translateX(-50%) scale(.82); opacity: 0; } 2.2%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes cap3 { 0%, 31.25% { transform: translateX(-50%) scale(.82); opacity: 0; } 33.45%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes cap5 { 0%, 62.5% { transform: translateX(-50%) scale(.82); opacity: 0; } 64.7%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes playhead { from { transform: translate3d(-9cqw, 0, 0); } to { transform: translate3d(91cqw, 0, 0); } }
@keyframes blink { 50% { opacity: .2; } }

/* the hero with the real sample pair: our stock-clip original and the remake Remake made of it, as synced muted loops
   (motion.ts data-pair) over their real timeline; the still shows until the loop plays and under reduced motion */
.pair .film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .screen > .loop, .pair .phone-screen > .loop { z-index: 1; }
.pair .screen > .wf-tag, .pair .phone-screen > .wf-tag { z-index: 2; }
.pair .lane .clip img { display: block; width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.editor.pair .playhead, .editor.pair.in-view .playhead { left: 0; animation: none; transform: translate3d(calc(var(--t, 0) * 100cqw), 0, 0); }
/* pair:geometry (runs/preview-remake/tools/hero.py): shot widths, text beats and cuts as % of the films */
.po1 { width: 14.46%; }
.po2 { width: 4.99%; }
.po3 { width: 9.64%; }
.po4 { width: 7.23%; }
.po5 { width: 9.64%; }
.po6 { width: 4.82%; }
.po7 { width: 7.4%; }
.po8 { width: 9.64%; }
.po9 { width: 32.19%; }
.pr1 { width: 14.63%; }
.pr2 { width: 4.82%; }
.pr3 { width: 9.64%; }
.pr4 { width: 7.4%; }
.pr5 { width: 9.64%; }
.pr6 { width: 4.82%; }
.pr7 { width: 7.23%; }
.pr8 { width: 9.64%; }
.pr9 { width: 32.19%; }
.pt1 { left: calc(0.0% + 1.5px); width: calc(14.46% - 3px); }
.pt2 { left: calc(19.45% + 1.5px); width: calc(9.64% - 3px); }
.pt3 { left: calc(29.09% + 1.5px); width: calc(7.23% - 3px); }
.pt4 { left: calc(36.32% + 1.5px); width: calc(9.64% - 3px); }
.pt5 { left: calc(70.22% + 1.5px); width: calc(29.78% - 3px); }
.pk1 { left: 14.46%; }
.pk2 { left: 19.45%; }
.pk3 { left: 29.09%; }
.pk4 { left: 36.32%; }
.pk5 { left: 45.96%; }
.pk6 { left: 50.77%; }
.pk7 { left: 58.18%; }
.pk8 { left: 67.81%; }
/* pair:geometry end */

/* ---------- timecode ruler ---------- */
.ruler { position: relative; overflow: hidden; margin: 0 0 clamp(16px, 3vw, 32px); padding: 22px 0 12px; border-block: var(--hair);
  background: var(--surface); }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 60px) 0 0 / 100% 12px no-repeat; opacity: .5; }
.reel-track { display: flex; width: max-content; animation: tape 40s linear infinite; animation-play-state: paused; }
.reel.in-view .reel-track { animation-play-state: running; }
.ruler span { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding-right: 36px; white-space: nowrap;
  font: 700 .8rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ruler span b { color: var(--ink); font-weight: 700; }
.ruler span::before { content: ""; align-self: center; width: 8px; height: 8px; border-radius: 1.5px; background: var(--cut); transform: rotate(45deg); }
.ruler span:nth-child(2)::before, .ruler span:nth-child(7)::before, .ruler span:nth-child(11)::before, .ruler span:nth-child(16)::before { background: var(--beat); }
.ruler span:nth-child(5)::before, .ruler span:nth-child(14)::before { background: var(--muted); border-radius: 50%; }
@keyframes tape { to { transform: translate3d(-50%, 0, 0); } }
@keyframes reel { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- landing: sections ---------- */
.section { padding: clamp(48px, 8vw, 104px) 0; }
.section-tint { background: var(--bg-tint); border-block: var(--hair); }
.signin-section { padding-top: 8px; }
.kicker { display: inline-flex; align-items: center; margin: 0 0 16px; font: 700 .76rem/1.2 var(--font-mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-2); }
.section-title { max-width: 17em; margin-bottom: 34px; }

/* invite: a production slate */
.slate { position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: var(--shadow); }
.slate-top { height: 34px; background: repeating-linear-gradient(-56deg, #111318 0 22px, var(--cut) 22px 44px); border-bottom: 1px solid #111318;
  transform-origin: 0 100%; }
.slate-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: var(--hair); }
.slate-meta div { padding: 10px clamp(14px, 3vw, 22px); border-right: var(--hair); }
.slate-meta div:last-child { border-right: 0; }
.slate-meta dt { font: 700 .62rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.slate-meta dd { margin: 0; font: 700 1.05rem/1 var(--font-mono); color: var(--ink); }
.slate-body { padding: clamp(22px, 4vw, 36px); }
.slate-body h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .3em; }
.signin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signin-row .input { flex: 1 1 220px; }
.signin-row .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .signin-row .btn { flex: 1 1 100%; } }
.welcome h3 { font: 800 1.8rem/1.1 var(--font-display); font-stretch: 114%; letter-spacing: -.03em; margin-bottom: .3em; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }
@media (prefers-reduced-motion: no-preference) {
  .slate:hover .slate-top, .slate:focus-within .slate-top { animation: clap .5s cubic-bezier(.3, 1.4, .5, 1); }
}
@keyframes clap { 40% { transform: rotate(-4deg); } 100% { transform: none; } }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; background: var(--surface); border: var(--hair); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .9, .2, 1), border-color .2s ease; }
@media (hover: hover) { .step:hover { transform: translateY(-3px); border-color: var(--line-strong); } }
.step-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--hair); background: var(--surface-2); }
.step-art::after { content: "STEP 0" counter(step); counter-increment: step; position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 7px; border-radius: 6px; background: #111318; color: #eef0f3; font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; }
.step-art-roll picture, .step-art-roll img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-body { padding: 18px 20px 22px; }
.step p { color: var(--ink-2); margin: 0; }
.pick { position: absolute; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  background: var(--cut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23111318' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.p1 { left: calc(33.3% - 30px); top: calc(50% + 8px); } .p2 { left: calc(100% - 30px); top: 8px; } .p3 { left: calc(66.6% - 30px); top: calc(50% + 8px); }

/* copied vs never */
.copied { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .copied { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.readout { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ed); color: var(--ed-ink); border: 1px solid #23262d; padding: 8px 0 6px; box-shadow: var(--shadow); }
.readout-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 12px clamp(16px, 3vw, 24px) 14px;
  font: 700 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-muted); }
.never .readout-head { padding-inline: 0; color: var(--muted); }
.ok-chip, .no-chip { padding: 5px 8px; border-radius: 6px; font: 700 .64rem/1 var(--font-mono); letter-spacing: .12em; }
.ok-chip { background: var(--cut); color: #111318; }
.no-chip { border: 1px solid currentColor; color: var(--danger); }
.readout dl { margin: 0; }
.readout dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px clamp(16px, 3vw, 24px);
  border-top: 1px solid var(--ed-line); }
.readout dt { font: 700 .76rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cut); }
.readout dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 1px; background: currentColor;
  transform: rotate(45deg) translateY(-2px); }
.readout div:nth-child(3) dt { color: var(--beat); }
.readout dd { margin: 0; color: var(--ed-ink); }
.readout::after { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 106, 19, .12)); border-bottom: 1px solid rgba(255, 106, 19, .6); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .copied.in-view .readout::after { animation: scan 3.6s cubic-bezier(.4, 0, .6, 1) infinite; }
  .modes.in-view .mode-art::after { animation: mini-play 4s linear infinite; }
}
@keyframes scan { 0% { top: -60px; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes mini-play { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(100cqw - 32px), 0, 0); } }
.never { border-radius: var(--radius-lg); background: var(--surface); border: var(--hair); padding: 8px clamp(18px, 3vw, 26px) 20px; box-shadow: var(--shadow); }
.never ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.never li { position: relative; padding: 14px 0 0 40px; border-top: var(--hair); color: var(--ink-2); }
.never li::before { content: ""; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--danger);
  background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='%23c0262d' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.never strong { color: var(--ink); }

/* how close: two mini timelines */
.modes { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mode { padding: 14px 14px 20px; border-radius: var(--radius-lg); background: var(--surface); border: var(--hair); box-shadow: var(--shadow); }
.mode h3 { margin: 18px 6px 6px; font-size: 1.3rem; font-stretch: 112%; letter-spacing: -.02em; }
.mode p { margin: 0 6px; color: var(--ink-2); }
.mode-art { position: relative; display: grid; gap: 8px; padding: 20px 16px; border-radius: 12px; background: var(--ed); border: 1px solid #23262d; overflow: hidden;
  container-type: inline-size; }
.mode-art::after { content: ""; position: absolute; top: 10px; bottom: 10px; left: 16px; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(13, 14, 17, .4); transform: translate3d(34cqw, 0, 0); }
.mt-row { display: flex; gap: 3px; height: 30px; }
.mt-row i { display: block; border-radius: 4px; background: var(--ed-3); }
.mt-row i:nth-child(1) { flex: 3; } .mt-row i:nth-child(2) { flex: 2; } .mt-row i:nth-child(3) { flex: 3; }
.mt-row i:nth-child(4) { flex: 2; } .mt-row i:nth-child(5) { flex: 4; } .mt-row i:nth-child(6) { flex: 2; }
.m-match .mt-yours i { background: var(--cut); }
.m-match .mt-yours i:nth-child(even) { background: #c9520f; }
.m-vibe .mt-yours { gap: 0; }
.m-vibe .mt-yours i { border-radius: 0; background: linear-gradient(90deg, #6d5cff, #ff6a13); }
.m-vibe .mt-yours i:nth-child(odd) { background: linear-gradient(90deg, #ff6a13, #ffc800); }
.m-vibe .mt-yours i:first-child { border-radius: 4px 0 0 4px; } .m-vibe .mt-yours i:last-child { border-radius: 0 4px 4px 0; }
.mt-cuts { position: absolute; inset: 12px 16px; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(18.75% - 1px), #fff calc(18.75% - 1px) calc(18.75% + 1px), transparent calc(18.75% + 1px) calc(31.25% - 1px),
    #fff calc(31.25% - 1px) calc(31.25% + 1px), transparent calc(31.25% + 1px) calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px),
    transparent calc(50% + 1px) calc(62.5% - 1px), #fff calc(62.5% - 1px) calc(62.5% + 1px), transparent calc(62.5% + 1px) calc(87.5% - 1px),
    #fff calc(87.5% - 1px) calc(87.5% + 1px), transparent calc(87.5% + 1px)); opacity: .85; }
.lengths-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.lengths-row .len { padding: 8px 12px; border-radius: 8px; border: var(--hair); background: var(--surface); font: 700 .9rem/1 var(--font-mono); color: var(--ink); }
.lengths-row .len.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* privacy */
.privacy-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: .85fr 1.15fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.stat { display: grid; gap: 8px; width: 150px; margin: 0; padding: 16px 16px 14px; border-radius: 14px; border: var(--hair); background: var(--surface); box-shadow: var(--shadow); }
.stat b { display: block; font: 800 3rem/.85 var(--font-display); font-stretch: 120%; letter-spacing: -.05em; color: var(--ink); }
.stat b::after { content: ""; display: inline-block; width: .2em; height: .2em; margin-left: .06em; border-radius: 2px; background: var(--cut); }
.stat span { display: block; font: 700 .68rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.assurances li { position: relative; padding: 16px 18px 15px 58px; background: var(--surface); border: var(--hair); border-radius: 16px; }
.assurances li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 7px;
  background: var(--cut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23111318' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
.assurances h3 { margin-bottom: .25em; }
.assurances p { margin: 0; color: var(--ink-2); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--cut); padding-bottom: 1px; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: var(--hair); border-radius: 14px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 58px 17px 20px; font: 700 1.05rem/1.3 var(--font-display); letter-spacing: -.01em;
  position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px;
  border: var(--hair); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23ff6a13' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s cubic-bezier(.2, .9, .2, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

.cta-band { padding: clamp(48px, 8vw, 96px) 0; text-align: center; }
.cta-band h2 { max-width: 15em; margin-inline: auto; }
.cta-band .btn { margin-top: 6px; }

.prose-section { padding-top: clamp(32px, 5vw, 56px); }
.prose h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); margin-bottom: .35em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.7em; letter-spacing: -.025em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cut); }

/* ---------- app pages ---------- */
.app-main { padding: clamp(20px, 4vw, 40px) 0 56px; }
.app-wrap { max-width: var(--narrow); }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.3rem); margin-bottom: .22em; }
.page-head p { color: var(--muted); margin: 0; }

.spinner {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-section { padding: clamp(20px, 4vw, 28px); background: var(--surface); border: var(--hair); border-radius: var(--radius-lg); margin-bottom: 16px;
  box-shadow: var(--shadow); }
.form-section > h2 { font: 800 1.36rem/1.15 var(--font-display); font-stretch: 112%; letter-spacing: -.025em; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.form-section > .hint { margin-bottom: 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; background: #111318; color: var(--cut);
  font: 700 .74rem/1 var(--font-mono); letter-spacing: .06em; }
.num::before { content: "0"; }
.brief-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; border: var(--hair); background: var(--surface-2); color: var(--ink); cursor: pointer;
  font: 600 .88rem/1 var(--font-body); padding: 9px 12px; border-radius: 8px; min-height: 38px; transition: border-color .12s ease, background-color .12s ease; }
.chip:hover { border-color: var(--cut); background: var(--cut-soft); }
.counter { font: 500 .8rem/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.examples { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.examples p { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.example-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .example-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.example { appearance: none; text-align: left; cursor: pointer; border: var(--hair); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--ink-2); font: 400 .9rem/1.4 var(--font-body); transition: border-color .12s ease, transform .12s ease; }
.example strong { display: block; color: var(--ink); margin-bottom: 3px; font: 700 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.example:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { position: relative; display: block; height: 100%; border: var(--hair); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.choice-body strong { display: block; font: 700 1.08rem/1.2 var(--font-display); letter-spacing: -.01em; }
.choice-body > span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 3px; }
.choice input:checked + .choice-body { border-color: var(--cut); background: var(--cut-soft); box-shadow: 0 0 0 1px var(--cut) inset; }
.choice input:checked + .choice-body::after { content: ""; position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--cut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23111318' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choice input:focus-visible + .choice-body { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.choice:hover .choice-body { border-color: var(--line-strong); }
.lengths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lengths .choice-body { text-align: center; padding: 12px 6px; }
.lengths .choice-body strong { font: 700 1.05rem/1.2 var(--font-mono); }
.lengths .choice input:checked + .choice-body::after { display: none; }
@media (max-width: 480px) { .lengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* reference link */
.ref-row { display: flex; gap: 8px; }
.ref-row .input { flex: 1 1 auto; min-width: 0; }
.input-ref { font: 500 .98rem/1.4 var(--font-mono); }
.btn-paste { flex: none; min-height: 52px; padding-inline: 14px; }
.ref-help { margin: 10px 0 0; font-size: .9rem; }
.ref-msg:empty { display: none; }
.ref-msg .notice { margin-bottom: 0; }
.ref-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ok); font-weight: 600; font-size: .95rem; }
.ref-ok::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ref-card { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: stretch; gap: 8px; margin-top: 12px; padding: 10px;
  border-radius: 14px; background: var(--ed); color: var(--ed-ink); }
.ref-side { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 9px; }
.ref-side b { font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.ref-side > span { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.ref-orig { border: 1px dashed #4a505c; color: var(--ed-muted); }
.ref-orig .ref-name { color: var(--ed-ink); font-family: var(--font-mono); font-weight: 500; font-size: .84rem; }
.ref-open { justify-self: start; color: var(--cut); font-size: .84rem; font-weight: 700; }
.ref-open::after { content: " ↗"; }
.ref-open:hover { color: #fff; }
.ref-yours { background: var(--cut); color: #111318; }
.ref-arrow { display: grid; place-items: center; color: var(--cut); font-weight: 800; font-size: 1.2rem; }
@media (max-width: 480px) { .ref-card { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ref-arrow { height: 20px; transform: rotate(90deg); } }
@media (prefers-reduced-motion: no-preference) { .ref-card:not([hidden]) { animation: ref-in .45s cubic-bezier(.2, .9, .2, 1) both; } }
@keyframes ref-in { from { opacity: 0; transform: translateY(8px); } }
/* the original, uploaded instead of linked (MULTISITE.md): a link-or-upload choice, a picker, then the same card */
.ref-modes { margin-bottom: 16px; }
.ref-drop { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 16px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface-2); transition: background-color .15s ease, border-color .15s ease; }
.ref-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ref-drop:hover, .ref-drop.over { background: var(--surface); border-color: var(--ink); }
.ref-drop.over { border-style: solid; }
.ref-drop:focus-within { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.ref-drop-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.ref-drop-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ref-drop-text { display: grid; gap: 2px; min-width: 0; }
.ref-drop-text strong { font: 700 1.05rem/1.25 var(--font-display); letter-spacing: -.01em; }
.ref-drop-text span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.ref-card-file { margin-top: 0; }
.ref-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ref-thumb { flex: none; width: 36px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--ed-3); }
.ref-thumb-ph { display: grid; place-items: center; color: var(--ed-muted); }
.ref-thumb-ph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ref-file-text { display: grid; gap: 3px; min-width: 0; }
.ref-file .ref-name { overflow-wrap: anywhere; }
.ref-file-meta { font: 500 .78rem/1.2 var(--font-mono); color: var(--ed-muted); font-variant-numeric: tabular-nums; }
.ref-change { appearance: none; background: none; border: 0; padding: 4px 0 0; cursor: pointer; font-family: var(--font-body);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ref-change::after { content: none; }
.ref-change:disabled { display: none; }
.ref-progress { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--ed-3); overflow: hidden; }
.ref-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ed-ink); transition: width .2s linear; }
.ref-card-file.done .ref-progress i { background: var(--ok); }
.ref-card-file.failed .ref-progress i { background: var(--danger); }

.ref-line, .film-ref { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; text-decoration: none; color: var(--ink-2); }
.ref-line { margin-top: 12px; padding: 6px 10px 6px 6px; border-radius: 9px; border: var(--hair); background: var(--surface-2); font-size: .9rem; }
.ref-line:hover, .film-ref:hover { color: var(--ink); border-color: var(--line-strong); }
.ref-tag { flex: none; padding: 4px 6px; border-radius: 5px; background: #111318; color: var(--cut); font: 700 .6rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ref-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .84rem/1.2 var(--font-mono); }
.ref-label::after { content: " ↗"; color: var(--accent-ink); }
.ready-head .ref-line { margin-inline: auto; }
.film-ref { min-width: 0; margin: -6px 18px 0; padding: 10px 12px 7px; border: var(--hair); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface-2); font-size: .85rem; }
.ref-line.is-upload, .film-ref.is-upload { cursor: default; }
.ref-line.is-upload:hover, .film-ref.is-upload:hover { color: var(--ink-2); border-color: var(--line); }
.is-upload .ref-label::after { content: none; }

.drop { position: relative; display: grid; place-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 22px 16px 24px;
  border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2); transition: background-color .15s ease, border-color .15s ease; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:hover, .drop.over { background: var(--cut-soft); border-color: var(--cut); }
.drop.over { border-style: solid; }
.drop:focus-within { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.drop-art { position: relative; display: block; width: 200px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 10px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 14px 28px -18px rgba(17, 19, 24, .6); transition: transform .3s cubic-bezier(.2, .9, .2, 1); }
.drop-art picture, .drop-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drop:hover .drop-art, .drop.over .drop-art { transform: translateY(-3px); }
.drop-icon { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--cut); color: #111318; }
.drop-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { font: 800 1.25rem/1.15 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; }
.drop .muted { font-size: .92rem; }

.tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.tile { position: relative; aspect-ratio: 9 / 14; border-radius: 10px; overflow: hidden; background: var(--bg-tint); border: var(--hair); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); font: 700 .7rem/1 var(--font-mono); text-align: center; padding: 6px; }
.tile-ph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tile-badge { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 5px; font: 700 .66rem/1.2 var(--font-mono); background: rgba(13, 14, 17, .8); color: #fff; }
.tile-remove { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(13, 14, 17, .78); color: #fff; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; font-weight: 700; }
.tile-remove:hover { background: var(--cut); color: #111318; }
.tile.bad { border-color: var(--danger); }
.tile.bad::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--danger) 22%, transparent); }
.tile-error { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 4px 6px; background: var(--danger); color: #fff; font: 700 .68rem/1.25 var(--font-body); }
.tile-progress { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 6px; border-radius: 3px; background: rgba(13, 14, 17, .6); overflow: hidden; }
.tile-progress i { display: block; height: 100%; width: 0; background: var(--cut); border-radius: inherit; transition: width .2s linear; }
.tile.done::before { content: ""; position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 6px;
  background: var(--cut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23111318' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tile.done .tile-progress { display: none; }
.tile.failed { border-color: var(--danger); }
.tile-retry { position: absolute; inset: auto 6px 6px 6px; z-index: 2; min-height: 30px; padding: 4px 8px; font-size: .78rem; border-radius: 8px; }
.files-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; font: 500 .82rem/1.3 var(--font-mono); color: var(--muted); }
.files-summary .over { color: var(--danger); font-weight: 700; }

.consents { display: grid; gap: 8px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; padding: 12px 14px; border: var(--hair);
  border-radius: var(--radius-sm); background: var(--surface-2); transition: border-color .15s ease, background-color .15s ease; }
.consent:hover { border-color: var(--line-strong); }
.consent:has(input:checked) { border-color: var(--cut); background: var(--cut-soft); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cut); cursor: pointer; }
.consent strong { display: block; font-weight: 700; }
.consent span span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.consent.indent { margin-left: 24px; }
.consent[for="c-ref"] { border-color: color-mix(in srgb, var(--cut) 50%, var(--line)); }

.submit-bar { position: sticky; bottom: 0; z-index: 10; margin: 4px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: var(--hair); display: grid; gap: 8px; }
.submit-bar .why { font-size: .9rem; color: var(--muted); margin: 0; text-align: center; font-weight: 600; }
@media (min-width: 720px) {
  .submit-bar { position: static; margin: 10px 0 0; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.upload-slot:empty { display: none; }
.upload-slot { margin-bottom: 16px; scroll-margin-top: 80px; }
.upload-slot:focus { outline: none; }
form.locked .form-section { opacity: .7; }
form.locked .submit-bar { display: none; }

.progress { height: 10px; border-radius: 5px; background: var(--bg-tint); overflow: hidden; border: var(--hair); }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s ease;
  background: repeating-linear-gradient(90deg, var(--cut) 0 18px, #e25500 18px 20px); }
.upload-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }

/* status timeline */
.status-card { text-align: left; }
.timeline { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: var(--hair); background: var(--surface);
  color: var(--muted); font: 700 .78rem/1 var(--font-mono); position: relative; z-index: 1; }
.tl-text strong { display: block; color: var(--muted); font-weight: 700; padding-top: 5px; }
.tl-text span { display: block; font-size: .92rem; color: var(--muted); }
.tl.done .tl-dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tl.done::before { background: var(--ink); }
.tl.done .tl-text strong { color: var(--ink); }
.tl.now .tl-dot { background: var(--cut); border-color: var(--cut); color: #111318; }
.tl.now .tl-dot .spinner { width: 15px; height: 15px; border-width: 2px; }
.tl.now .tl-text strong { color: var(--ink); }
.tl.now .tl-text span { color: var(--ink-2); }
.tl.stop .tl-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.tl.stop .tl-text strong { color: var(--danger); }

/* player */
.player { position: relative; width: min(100%, 420px); margin: 6px auto 18px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-frame { position: relative; width: min(100%, 400px); margin: 10px auto 24px; padding: 34px 10px 10px; border-radius: 22px; background: var(--ed);
  border: 1px solid #23262d; box-shadow: 0 40px 80px -40px rgba(17, 19, 24, .7); }
.player-frame::before { content: "YOURS · 9:16"; position: absolute; left: 14px; top: 12px; font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; color: var(--cut); }
.player-frame::after { content: ""; position: absolute; right: 14px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--cut); }
.player-frame .player { width: 100%; margin: 0; border-radius: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.actions-left { justify-content: flex-start; }
.meta-line { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; font: 700 .7rem/1.2 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; background: var(--bg-tint); color: var(--ink-2); white-space: nowrap; border: 1px solid currentColor; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.s-delivered { background: var(--ok-soft); color: var(--ok); }
.pill.s-queued, .pill.s-processing { background: var(--cut-soft); color: var(--accent-ink); }
.pill.s-failed { background: var(--danger-soft); color: var(--danger); }
.pill.s-cancelled, .pill.s-draft, .pill.s-uploading { background: var(--bg-tint); color: var(--muted); }

/* my remakes */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.film-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.film-list li { display: grid; grid-template-columns: minmax(0, 1fr); }
.film-card { position: relative; z-index: 1; display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: var(--hair); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.film-card:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.film-thumb { position: relative; width: 50px; height: 72px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; color: #fff; }
.film-thumb svg { position: relative; z-index: 1; width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.film-thumb.s-failed, .film-thumb.s-cancelled { filter: grayscale(.85) opacity(.7); }
.film-card strong { display: block; font: 700 1.05rem/1.25 var(--font-display); letter-spacing: -.01em; }
.film-card .meta { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
@media (max-width: 420px) { .film-card { grid-template-columns: 44px 1fr; } .film-card .pill { grid-column: 2; justify-self: start; } .film-thumb { width: 44px; height: 64px; } }

.empty { text-align: center; padding: clamp(28px, 6vw, 48px) clamp(16px, 4vw, 32px); }
.empty p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.empty .actions { margin-top: 20px; }
.empty h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
.empty-photo { position: relative; width: 172px; aspect-ratio: 1; margin: 0 auto 22px; border-radius: 22px; overflow: hidden; background: var(--ed);
  box-shadow: 0 0 0 1px #23262d, 0 22px 40px -24px rgba(17, 19, 24, .7); }
.empty-photo picture, .empty-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* skeleton */
.skeleton { display: grid; gap: 14px; padding: 8px 0 40px; }
.sk { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-tint); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translate3d(-100%, 0, 0); animation: shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cut) 18%, transparent), transparent); }
.sk-title { height: 46px; width: 62%; }
.sk-line { height: 16px; width: 82%; }
.sk-block { height: 160px; border-radius: var(--radius-lg); }
.sk-block.short { height: 90px; }
@keyframes shimmer { to { transform: translate3d(100%, 0, 0); } }

/* waiting: a monitor shows the take while clips drop onto the timeline and the playhead runs */
.status-card.is-live { overflow: hidden; }
.status-card.is-live .page-head { text-align: center; }
.status-card.is-live .page-head .ref-line { margin-inline: auto; }
.wait-scene { position: relative; display: grid; justify-items: center; margin: 0 0 8px; padding: 14px 12px 12px; border-radius: 16px; background: var(--ed); }
.wait-art { position: relative; width: min(190px, 52%); aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cut) 70%, transparent); }
.wait-art picture, .wait-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wait-art::before { content: "REC"; position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 6px 3px 16px; border-radius: 5px; background: rgba(13, 14, 17, .7);
  color: #fff; font: 700 .58rem/1 var(--font-mono); letter-spacing: .1em; }
.wait-art::after { content: ""; position: absolute; z-index: 3; left: 14px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; }
.wait-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(13, 14, 17, .55));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.ws-strip { position: relative; z-index: 1; width: 100%; margin-top: 14px; overflow: hidden; padding: 12px 0 8px; border-radius: 10px;
  background: var(--ed-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ws-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--ed-muted) 0 1px, transparent 1px 10px); opacity: .5; }
.ws-strip::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; z-index: 2; }
.ws-track { display: flex; gap: 3px; width: max-content; }
.ws-frame { position: relative; flex: none; width: 40px; height: 64px; border-radius: 5px; overflow: hidden; }
.ws-frame:nth-child(3n) { width: 58px; } .ws-frame:nth-child(4n + 1) { width: 30px; }
.ws-frame::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 2px; background: var(--cut); }
.ws-frame picture, .ws-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-drop { position: absolute; z-index: 2; top: 30px; width: 40px; height: 64px; border-radius: 6px; overflow: hidden; opacity: 0;
  box-shadow: 0 0 0 1.5px var(--cut), 0 10px 20px -8px rgba(0, 0, 0, .7); }
.ws-drop picture, .ws-drop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.d1 { left: calc(50% - 130px); } .d2 { left: calc(50% + 86px); } .d3 { left: calc(50% - 22px); }
@media (prefers-reduced-motion: no-preference) {
  .wait-scene.is-making .ws-track { animation: reel 22s linear infinite; }
  .wait-scene.is-queued .ws-track { animation: reel 80s linear infinite; }
  .wait-scene.is-making .ws-drop { animation: ws-drop 4s cubic-bezier(.5, 0, .3, 1) infinite; }
  .wait-scene.is-making .d2 { animation-delay: 1.33s; } .wait-scene.is-making .d3 { animation-delay: 2.66s; }
  .wait-scene.is-making .wait-art::after { animation: blink 1s steps(2, jump-none) infinite; }
  .wait-scene.is-making .wait-art img { animation: push 8s ease-in-out infinite alternate; }
}
@keyframes ws-drop {
  0% { transform: translate3d(0, -20px, 0) rotate(-8deg); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate3d(0, 168px, 0) rotate(0deg); opacity: 1; }
  62%, 100% { transform: translate3d(0, 180px, 0) scale(.7); opacity: 0; }
}
@keyframes push { to { transform: scale(1.12); } }
.elapsed { display: block; margin: 10px 0 8px; color: var(--ink-2); font: 500 .84rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; }
.elapsed-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; vertical-align: .05em; border-radius: 50%; background: #ff3b30;
  animation: blink 1s steps(2, jump-none) infinite; }
.craft { margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.craft-title { margin: 0 0 10px; font: 700 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.craft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; counter-reset: craft; }
.craft li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: .95rem; }
.craft li::before { counter-increment: craft; content: "0" counter(craft); position: absolute; left: 0; top: .15em; font: 700 .72rem/1.4 var(--font-mono); color: var(--accent-ink); }

/* delivered */
.ready-head { text-align: center; }
.ready-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px !important; padding: 6px 10px; border-radius: 7px;
  background: #111318; color: var(--cut) !important; font: 700 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.ready-kicker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.reveal { animation: rise .7s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.reveal .player::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate3d(-110%, 0, 0);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 106, 19, .28) 50%, transparent 65%); }
@media (prefers-reduced-motion: no-preference) { .reveal .player::after { animation: sweep 1.1s .5s ease-out both; } }
@keyframes sweep { to { transform: translate3d(110%, 0, 0); } }

/* tone swatches (make page choices and My remakes thumbnails): two little timelines, matched or restyled */
.swatch { display: block; width: 44px; height: 26px; margin-bottom: 10px; border-radius: 6px; background-color: #111318; }
.t-match { background: #111318 linear-gradient(90deg, var(--cut) 0 36%, transparent 36% 40%, var(--cut) 40% 62%, transparent 62% 66%, var(--cut) 66%) 5px 15px / calc(100% - 10px) 6px no-repeat; }
.t-my-vibe { background: #111318 linear-gradient(90deg, #6d5cff, var(--cut) 55%, var(--beat)) 5px 15px / calc(100% - 10px) 6px no-repeat; }
.swatch.t-match, .swatch.t-my-vibe { box-shadow: 0 0 0 1px #23262d; }
.film-thumb.t-match { background: linear-gradient(160deg, #2a2e36, #111318); }
.film-thumb.t-match::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cut) 0 36%, transparent 36% 42%, var(--cut) 42% 64%, transparent 64% 70%, var(--cut) 70%); }
.film-thumb.t-my-vibe { background: linear-gradient(160deg, #6d5cff, #ff6a13 70%, #ffc800); }

/* ---------- CSS art (copy.ts art names without a raster in art/roles.json render as <span class="art art-NAME">) ---------- */
.art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; }
/* empty: a blank timeline waiting for its first clip */
.art-empty-timeline { background: var(--ed); }
.art-empty-timeline::before { left: 14%; right: 14%; top: 34%; height: 18%; border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), var(--ed) calc(25% - 3px) 25%),
    repeating-linear-gradient(90deg, #4a505c 0 6px, transparent 6px 11px) 0 0 / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, #4a505c 0 6px, transparent 6px 11px) 0 100% / 100% 1.5px no-repeat, var(--ed-2); }
.art-empty-timeline::after { left: 14%; top: 26%; width: 3px; height: 34%; border-radius: 2px; background: var(--cut); box-shadow: 0 0 0 3px rgba(255, 106, 19, .15); }
/* lost: a link that came apart */
.art-lost-link { background: var(--ed); }
.art-lost-link::before, .art-lost-link::after { top: 40%; width: 34%; height: 20%; border-radius: 99px; border: 4px solid #8f95a0; }
.art-lost-link::before { left: 12%; transform: rotate(-24deg) translateY(-6px); }
.art-lost-link::after { right: 12%; border-color: var(--cut); transform: rotate(-24deg) translateY(10px); }
/* how it works, step 1: a link field with the paste action */
.art-step-link { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 18px; background: var(--ed); }
.sl-field { display: flex; align-items: center; gap: 8px; width: min(100%, 270px); padding: 11px 12px; border-radius: 10px; background: var(--ed-2);
  box-shadow: 0 0 0 1px var(--cut); color: var(--ed-ink); font: 500 .8rem/1 var(--font-mono); white-space: nowrap; overflow: hidden; }
.sl-field i { flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E") center / contain no-repeat; }
.sl-caret { width: 1.5px; height: 1.1em; background: var(--cut); margin-left: -4px; }
.sl-chip { padding: 7px 12px; border-radius: 8px; background: var(--cut); color: #111318; font: 700 .76rem/1 var(--font-body); }
.sl-ok { display: inline-flex; align-items: center; gap: 6px; font: 700 .64rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #72dca1; }
.sl-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* how it works, step 3: the original's frame becomes yours */
.art-step-split { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--ed); }
.ss-orig, .ss-yours { position: relative; display: block; height: 76%; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; }
.ss-orig { background: var(--ed-2) center / 100% 100% no-repeat; box-shadow: 0 0 0 1px #3b404a inset; }
.ss-yours { box-shadow: 0 0 0 1.5px var(--cut), 0 12px 24px -12px rgba(255, 106, 19, .6); }
.ss-yours picture, .ss-yours img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ss-arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--cut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ss-orig { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 160' fill='none' stroke='%235c626e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 60h90'/%3E%3Cpath d='M4 60v-8h10v8M22 60v-12h6v12M60 60v-10h14v10'/%3E%3Cpath d='M42 60 14 126M48 60l28 66'/%3E%3Cpath d='M45 70v6M45 84v8M45 100v10'/%3E%3Cpath d='M0 126q45-14 90 0'/%3E%3Cpath d='M30 146q8-12 20-8'/%3E%3C/svg%3E"); }

/* ---------- motion ---------- */
.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.loop.playing { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal]:not(.editor) { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .2, 1); }
  .motion [data-reveal].in { opacity: 1; transform: none; }
  .motion .steps[data-reveal] .step, .motion .modes[data-reveal] .mode { opacity: 0; transform: translate3d(0, 26px, 0);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .2, 1); }
  .motion .steps[data-reveal].in .step, .motion .modes[data-reveal].in .mode { opacity: 1; transform: none; }
  .motion [data-reveal].in > :nth-child(2) { transition-delay: .1s; } .motion [data-reveal].in > :nth-child(3) { transition-delay: .2s; }
  .motion [data-reveal].in > :nth-child(4) { transition-delay: .3s; }
  .eyebrow .rec { animation: blink 1s steps(2, jump-none) infinite; }
  .sl-caret { animation: blink 1s steps(2, jump-none) infinite; }
  /* how close: your clips slide in and snap to the original's cut lines */
  .motion .modes .mt-yours i { transform: translate3d(var(--off, 10px), 0, 0); opacity: .35;
    transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .4s ease; }
  .motion .modes .mt-yours i:nth-child(2) { --off: -8px; } .motion .modes .mt-yours i:nth-child(3) { --off: 14px; }
  .motion .modes .mt-yours i:nth-child(4) { --off: -12px; } .motion .modes .mt-yours i:nth-child(5) { --off: 9px; } .motion .modes .mt-yours i:nth-child(6) { --off: -6px; }
  .motion .modes.in .mt-yours i { transform: none; opacity: 1; }
  .motion .modes.in .mt-yours i:nth-child(2) { transition-delay: .08s; } .motion .modes.in .mt-yours i:nth-child(3) { transition-delay: .16s; }
  .motion .modes.in .mt-yours i:nth-child(4) { transition-delay: .24s; } .motion .modes.in .mt-yours i:nth-child(5) { transition-delay: .32s; }
  .motion .modes.in .mt-yours i:nth-child(6) { transition-delay: .4s; }
  .motion .copied .readout dl div { opacity: 0; transform: translate3d(-10px, 0, 0); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .2, 1); }
  .motion .copied.in .readout dl div { opacity: 1; transform: none; }
  .motion .copied.in .readout dl div:nth-child(2) { transition-delay: .08s; } .motion .copied.in .readout dl div:nth-child(3) { transition-delay: .16s; }
  .motion .copied.in .readout dl div:nth-child(4) { transition-delay: .24s; } .motion .copied.in .readout dl div:nth-child(5) { transition-delay: .32s; }
  .motion .copied.in .readout dl div:nth-child(6) { transition-delay: .4s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spinner { animation: none; border-top-color: color-mix(in srgb, currentColor 25%, transparent); border-right-color: currentColor; }
  .elapsed-dot, .sk::after, .reel-track, .rec { animation: none !important; }
  .reveal { animation: none; }
}
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }

/* signed-in header on narrow phones: the mark stands in for the name so three nav items fit on one line */
@media (max-width: 460px) {
  body.signed-in .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a, .nav button { padding: 8px 9px; font-size: .9rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {                  /* 360 px phones: the account chip's longest form ("1 free + 3") fits too */
  .nav a, .nav button { padding: 8px 6px; font-size: .84rem; }
  .nav .chip-balance { gap: 6px; padding-inline: 9px; }
}

/* Star in it (ext.ts, docs/REMAKE-GEN.md) */
.star-note { margin-top: 12px; padding: 12px 14px; border: var(--hair); border-radius: var(--radius); background: var(--cut-soft); }
.star-note p { margin: 0 0 6px; }
.star-note p:last-child { margin-bottom: 0; }
.tile-who { position: absolute; left: 6px; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 6px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(13, 14, 17, .84); color: #fff; font: 600 .74rem/1.2 var(--font-body); }
.tile.is-star { box-shadow: 0 0 0 2px var(--cut) inset; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; border: var(--hair);
  background: var(--cut-soft); color: var(--ink); font-size: .86rem; line-height: 1.3; }
.ai-label svg { width: 14px; height: 14px; flex: none; }

/* ---------- accounts and buying (BILLING.md): balance chip + menu, sign-in, packs, cost line, end-card note ---------- */
.nav .acct { position: relative; }
.nav .acct summary { list-style: none; }
.nav .acct summary::-webkit-details-marker { display: none; }
.chip-balance {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font: 700 .82rem/1 var(--font-mono); letter-spacing: .02em; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  white-space: nowrap; font-variant-numeric: tabular-nums; transition: border-color .15s ease, background-color .15s ease;
}
.chip-balance:hover { border-color: var(--cut); }
.chip-balance:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.acct[open] .chip-balance { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--cut); flex: none; }
.chip-invite .chip-dot { background: var(--beat); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 4px;
}
.acct-who { margin: 0; font: 700 .86rem/1.4 var(--font-mono); overflow-wrap: anywhere; }
.acct-who:empty { display: none; }
.acct-have { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.nav .acct-menu a, .nav .acct-menu button { width: 100%; justify-content: center; border-radius: 10px; }
.nav .acct-menu .acct-buy { background: var(--cut); color: #111318; border-color: var(--cut); font-weight: 700; }
.nav .acct-menu .acct-buy:hover { background: #ff7d33; color: #111318; }

.app-signin, .app-verify { max-width: 580px; }
.auth-card { position: relative; overflow: hidden; padding-top: calc(clamp(20px, 4vw, 32px) + 10px); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px;
  background: repeating-linear-gradient(-56deg, #111318 0 16px, var(--cut) 16px 32px); }
.auth .form-msg:empty { display: none; }
.auth-agree { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.auth-alt { margin-top: 14px; padding-top: 12px; border-top: var(--hair); }
.auth-alt .btn-text { padding-inline: 0; }
.auth-code { margin-top: 8px; }
.auth-code[hidden] { display: none; }
.auth-sent { outline: none; }
.auth-sent h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); }
.auth-to { font: 700 .98rem/1.5 var(--font-mono); overflow-wrap: anywhere; }
.auth-mail { position: relative; display: block; width: 60px; height: 42px; margin-bottom: 16px; border-radius: 6px; overflow: hidden;
  background: var(--ed); border: 1px solid var(--ed-line); }
.auth-mail i { position: absolute; top: 0; width: 40px; height: 2px; background: var(--cut); }
.auth-mail i:first-child { left: 0; transform: rotate(34deg); transform-origin: left; }
.auth-mail i:last-child { right: 0; transform: rotate(-34deg); transform-origin: right; }
.auth-wait { justify-content: center; }

.app-buy { max-width: var(--wrap); }
.buy-head { max-width: 660px; }
.buy-have { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); font: 700 .9rem/1.3 var(--font-mono); }
.buy-have::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cut); }
.buy-msg:empty { display: none; }
.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; } }
.pack { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 14px;
  padding: 22px clamp(18px, 3vw, 26px) 20px; background: var(--surface); border: var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pack.is-best { border-color: var(--cut); box-shadow: inset 0 3px 0 var(--cut), var(--shadow); }
.pack-tag { position: absolute; top: -11px; left: 20px; margin: 0; padding: 4px 9px; border-radius: 6px; background: var(--cut); color: #111318;
  font: 700 .7rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.pack-name { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pack-price { margin: 0; font: 700 1.7rem/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pack-meta { grid-column: 1 / -1; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.pack-meta span + span::before { content: "·"; margin: 0 8px; }
.pack .btn { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .pack { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px 24px; }
  .pack-price { margin-top: 10px; font-size: 2.3rem; }
  .pack-meta { margin: 8px 0 22px; }
  .pack-meta span { display: block; }
  .pack-meta span + span::before { content: none; }
  .pack .btn { margin-top: auto; }
}
.buy-notes { margin-top: 26px; max-width: 660px; color: var(--muted); font-size: .95rem; }
.buy-notes p { margin: 0 0 .6em; }
.buy-invite { max-width: 660px; }
.paid-card { max-width: 660px; outline: none; }
.paid-card h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.paid-wait { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.paid-wait h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.paid-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.paid-mark::before { content: ""; width: 22px; height: 11px; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateY(-3px) rotate(-45deg); }

.cost-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 0; font-size: .94rem; }
.cost-line[hidden] { display: none; }
.cost-label { font: 700 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cost-value { font: 700 .95rem/1.2 var(--font-mono); color: var(--ink); }
.cost-line.is-free .cost-value { color: var(--ok); }
.cost-line.is-short .cost-value { color: var(--danger); }
.cost-have { color: var(--muted); }
.cost-have:empty { display: none; }
.cost-have::before { content: "·"; margin-right: 10px; }
.btn-buy[hidden] { display: none; }
@media (min-width: 720px) { .submit-bar .cost-line { justify-content: flex-start; } }
.wallet-stop { margin-top: 12px; }

.upsell { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 24px auto 0; max-width: 560px; padding: 18px 20px;
  border-radius: var(--radius-lg); background: var(--ed); color: var(--ed-ink); border: 1px solid var(--ed-line); text-align: left; }
.qc-mark { flex: none; width: 44px; height: 44px; }
.qc-mark .qc-bg { fill: var(--ed-3, #262a32); }
.qc-mark .qc-clip { fill: var(--ed-ink); }
.qc-mark .qc-head { fill: var(--cut); }
.upsell-text { flex: 1 1 220px; }
.upsell-text p { margin: 0; color: var(--ed-muted); font-size: .94rem; }
.upsell .upsell-title { color: var(--ed-ink); font: 800 1.1rem/1.25 var(--font-display); font-stretch: 112%; margin-bottom: 2px; }
.upsell .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .upsell .btn { flex: 0 0 auto; } }
.share-wrap { display: contents; }
.share-wrap .notice { flex-basis: 100%; }

.draft-banner { margin: 0 0 28px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--accent-ink);
  background: color-mix(in srgb, var(--beat) 16%, transparent); color: var(--ink); font-size: .95rem; }
.draft-banner strong { margin-right: 6px; font: 700 .76rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.btn[hidden] { display: none; }
.chip-short { display: none; }
@media (max-width: 460px) {
  .chip-balance .chip-text { display: none; }
  .chip-balance .chip-short { display: inline; }
  .nav a, .nav summary { white-space: nowrap; }
}

/* ---------- growth (BILLING.md "Growth"): share link, invite link, the public watch page ---------- */
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.link-input { flex: 1 1 0; min-width: 0; padding: 10px 12px; font: 600 .84rem/1.3 var(--font-mono); text-overflow: ellipsis; }
.link-copy { flex: none; gap: 6px; }
.link-copy svg, .share-icon svg, .refer-line svg, .acct-give-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-copy.is-copied { border-color: var(--ok); color: var(--ok); }
.link-note { flex-basis: 100%; color: var(--muted); font: 600 .78rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.link-note:empty { display: none; }
.share-panel, .refer { margin: 18px auto 0; max-width: 560px; padding: 18px 20px; border-radius: var(--radius-lg); text-align: left;
  background: var(--surface); border: var(--hair); box-shadow: var(--shadow); }
.share-panel.is-shared { border-color: var(--cut); }
.share-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.share-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ed); color: var(--cut); }
.share-title { margin: 0 0 2px; font: 800 1.15rem/1.25 var(--font-display); font-stretch: 112%; }
.share-intro { margin: 0; color: var(--muted); font-size: .94rem; }
.share-create { width: 100%; }
@media (min-width: 560px) { .share-create { width: auto; } }
.share-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.share-until { margin: 0; color: var(--muted); font: 600 .74rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.share-stop { padding-inline: 0; color: var(--danger); }
.share-msg .notice { margin-bottom: 0; }
.refer[hidden] { display: none; }
.refer { background: var(--ed); color: var(--ed-ink); border-color: var(--ed-line); }
.refer-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-weight: 700; color: var(--ed-ink); }
.refer-line svg { margin-top: 2px; color: var(--cut); }
.refer .link-input { background: var(--ed-2); color: var(--ed-ink); border-color: var(--ed-line); }
.refer .link-copy { color: var(--ed-ink); border-color: var(--ed-line); }
.refer .link-note { color: var(--ed-muted); }

.acct-give { display: grid; gap: 6px; margin: 4px 0 6px; padding: 12px 0 10px; border-block: var(--hair); }
.acct-give-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 .76rem/1.3 var(--font-mono); text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-ink); }
.acct-give-text, .acct-give-earned { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.acct-give .link-input { padding: 8px 10px; font-size: .74rem; }
.nav .acct-menu .acct-give .link-copy { width: auto; justify-content: center; min-height: 38px; }

.app-watch { max-width: 620px; }
.watch-head { text-align: center; }
.watch-made { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 4px auto 0; max-width: 560px; padding: 20px 22px;
  border-radius: var(--radius-lg); background: var(--ed); color: var(--ed-ink); border: 1px solid var(--ed-line); text-align: left; }
.watch-made-text { flex: 1 1 220px; }
.watch-made-text p { margin: 0; color: var(--ed-muted); font-size: .94rem; }
.watch-made .watch-made-title { color: var(--ed-ink); font: 800 1.2rem/1.25 var(--font-display); font-stretch: 112%; margin-bottom: 2px; }
.watch-cta { flex: 1 1 100%; }
@media (min-width: 560px) { .watch-cta { flex: 0 0 auto; } }
