/* Rollcut: loud, fast, legible. Paper-white or ink-black, lime/pink/cobalt stickers, chunky borders and hard shadows.
   Every app class from the shared TypeScript is styled here; art without rasters is drawn in CSS (.art-*).
   Contrast (AA): --ink/--bg 17.6:1, --muted/--bg 6.1:1, ink on lime 16.9:1, ink on pink 6.4:1, white on cobalt 5.1:1,
   --accent-ink/--bg 6.2:1 (light) and lime on ink 16.9:1 (dark). */

:root {
  --bg: #f4f1ea;
  --bg-tint: #ebe6dc;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #0e0c15;
  --ink-2: #2b2833;
  --muted: #5c5866;
  --line: #d9d3c7;
  --line-strong: #0e0c15;
  --lime: #c6ff3d;
  --lime-soft: #efffc9;
  --pink: #ff3d8b;
  --pink-soft: #ffe0ec;
  --cobalt: #3d5bff;
  --cobalt-soft: #e2e7ff;
  --sun: #ffb800;
  --lilac: #c9b6ff;
  --accent: var(--lime);
  --accent-soft: var(--lime-soft);
  --accent-ink: #2b44e0;
  --on-accent: #0e0c15;
  --hard: #0e0c15;
  --pop: #0e0c15;
  --danger: #c01c3a;
  --danger-soft: #ffe1e6;
  --ok: #12804a;
  --ok-soft: #dcf8e6;
  --focus: #3d5bff;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --border: 2px solid var(--line-strong);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --beat: .5s;                                             /* 120 BPM: motion lands on the beat */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c15;
    --bg-tint: #17141f;
    --surface: #1b1824;
    --surface-2: #221e2c;
    --ink: #f6f3ee;
    --ink-2: #dcd7e3;
    --muted: #a7a1b3;
    --line: #2f2a3a;
    --line-strong: #4f4860;
    --lime-soft: #26301a;
    --pink-soft: #3a1626;
    --cobalt-soft: #1c2050;
    --accent-ink: #c6ff3d;
    --hard: #000000;
    --pop: #ff3d8b;
    --danger: #ff8fa3;
    --danger-soft: #3a1520;
    --ok: #7ee2a8;
    --ok-soft: #12301f;
    --focus: #8ea0ff;
    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.05; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem); line-height: .94; }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h3 { font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong { 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: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: #0e0c15; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px;
  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(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none;
  font: 800 1.55rem/1 var(--font-display); letter-spacing: -.05em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.m-bg { fill: var(--lime); stroke: #0e0c15; stroke-width: 2; }
.m-line { fill: #0e0c15; }
.m-dot { fill: var(--pink); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  appearance: none; border: 2px solid transparent; background: none; cursor: pointer; font: 600 .95rem/1 var(--font-body);
  color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: 999px; 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(--ink); color: var(--ink); }
.nav .nav-cta { background: var(--lime); color: #0e0c15; border-color: #0e0c15; box-shadow: 0 3px 0 var(--pop); }
.nav .nav-cta:hover { background: var(--lime); color: #0e0c15; transform: translateY(-1px); box-shadow: 0 4px 0 var(--pop); }

.site-footer { position: relative; overflow: hidden; background: #0e0c15; color: #f6f3ee; border-top: var(--border);
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer .muted { color: #b9b3c4; }
.foot-grid { display: grid; gap: 18px; grid-template-columns: 1fr; position: relative; z-index: 1; }
.foot-brand { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.05em; margin-bottom: .4em; color: var(--lime); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: start; }
.foot-links a { color: #f6f3ee; text-decoration: none; padding: 6px 0; font-weight: 600; }
.foot-links a:hover { color: var(--lime); text-decoration: underline; }
.foot-word { margin: 26px 0 -0.18em; font: 800 clamp(4.5rem, 2rem + 16vw, 15rem)/.8 var(--font-display); letter-spacing: -.07em;
  color: #1f1b2b; user-select: none; white-space: nowrap; }
@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: 8px; position: relative;
  min-height: 50px; padding: 12px 22px; border-radius: 14px; border: 2px 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);
  box-shadow: 0 4px 0 var(--pop);
  transition: background-color .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--pop); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pop); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 1.08rem; border-radius: 16px; }
.btn-primary { background: var(--lime); color: #0e0c15; border-color: #0e0c15; }
.btn-primary:hover { background: var(--lime); color: #0e0c15; }
.btn-quiet { background: transparent; }
.btn-quiet:hover { background: var(--surface); }
.btn-soft { background: var(--pink-soft); border-color: var(--pink); box-shadow: 0 3px 0 var(--pink); }
.btn-soft:hover { box-shadow: 0 5px 0 var(--pink); }
.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: 2px; 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: .55; cursor: not-allowed; transform: none; box-shadow: 0 2px 0 var(--pop); }
.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: var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 54px;
  transition: box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 35%, transparent); }
.textarea { min-height: 150px; resize: vertical; }
.input-code { font: 700 1.15rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px);
  box-shadow: 6px 6px 0 var(--hard); }
.panel-raised { box-shadow: 8px 8px 0 var(--hard); }
.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: 2px solid currentColor; font-weight: 600; }
.notice::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; margin-top: .5em; background: currentColor; transform: rotate(45deg); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-info { background: var(--cobalt-soft); color: var(--accent-ink); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice p { margin: 0; color: var(--ink); }
.form-msg:empty { display: none; }

/* ---------- landing: hero ---------- */
.hero { position: relative; padding: clamp(26px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1.2px, transparent 1.6px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 13px; border-radius: 999px;
  background: var(--pink); color: #0e0c15; font-weight: 800; font-size: .86rem; letter-spacing: .01em; border: 2px solid #0e0c15;
  transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--hard);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #0e0c15; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl { position: relative; display: inline-block; padding: 0 .1em; margin: 0 .08em 0 0; color: #0e0c15; z-index: 0; }
.hero h1 .hl::before { content: ""; position: absolute; inset: .1em -.02em .02em; z-index: -1; background: var(--lime); border: 2px solid #0e0c15;
  border-radius: .14em; transform: rotate(-2.5deg); box-shadow: 4px 4px 0 var(--pop); }
.hero h1 .squig { background: linear-gradient(var(--pink), var(--pink)) 0 92% / 100% .12em no-repeat; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 32em; }
.lead-sm { font-size: 1.12rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 26px; }
.hero-actions .btn-primary svg { width: 22px; height: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 2px solid var(--line-strong);
  background: var(--surface); font-size: .92rem; color: var(--ink-2); }
.facts li:nth-child(2) { transform: rotate(1.5deg); }
.facts li:nth-child(3) { transform: rotate(-1deg); }
.facts strong { color: var(--ink); }

/* hero visual: a camera-roll card, the phone with the edit, stickers */
.hero-visual { position: relative; margin: 0 auto; width: min(100%, 470px); aspect-ratio: 47 / 54; }
.roll { position: absolute; left: 0; top: 7%; width: 60%; padding: 12px; border-radius: 22px; background: var(--surface); border: var(--border);
  box-shadow: 7px 7px 0 var(--hard); transform: rotate(-5deg); translate: 0 calc(var(--py, 0) * 20px); }
.roll-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 9px; font: 800 .82rem/1 var(--font-display);
  letter-spacing: -.01em; color: var(--ink); }
.roll-head i { font-style: normal; font-weight: 700; color: var(--muted); font-family: var(--font-body); font-size: .72rem; }
.roll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.roll-grid > span { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.roll-grid .pick::after { content: ""; position: absolute; right: 4px; top: 4px; width: 20%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid #fff; background: var(--cobalt) 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 / 70% no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.phone {
  position: absolute; right: 0; bottom: 0; width: 49%; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 7px;
  background: #0e0c15; border: 2px solid #0e0c15; box-shadow: 9px 9px 0 var(--pink), 0 30px 50px -24px rgba(14, 12, 21, .6);
  transform: rotate(4deg); translate: 0 calc(var(--py, 0) * -30px); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.phone-screen { position: relative; height: 100%; border-radius: 27px; overflow: hidden; background: #1b1824; }
.phone-screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 8px; width: 30%; height: 14px; margin-left: -15%; border-radius: 99px; background: #0e0c15; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample-chip { position: absolute; left: 8px; right: 8px; bottom: 12px; z-index: 2; text-align: center; padding: 6px 4px; border-radius: 999px;
  font: 700 clamp(.6rem, .5rem + .3vw, .68rem)/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f6f3ee; background: rgba(14, 12, 21, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sample-cap { text-align: center; }
@media (hover: hover) { .hero-visual:hover .phone { transform: rotate(2deg) translate3d(0, -6px, 0); } }

.sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  border: 2px solid #0e0c15; font: 800 clamp(.78rem, .7rem + .3vw, .92rem)/1 var(--font-display); letter-spacing: -.01em; color: #0e0c15;
  box-shadow: 3px 3px 0 #0e0c15; white-space: nowrap; }
.st-beat { left: 30%; top: 0; background: var(--lime); transform: rotate(-6deg); }
.st-cap { left: -2%; bottom: 20%; background: var(--sun); transform: rotate(5deg); }
.st-len { right: -3%; top: 24%; background: var(--cobalt); color: #fff; transform: rotate(9deg); }
.st-beat .bars { display: inline-flex; align-items: end; gap: 2px; height: 12px; }
.st-beat .bars i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; }
@media (max-width: 939px) { .hero-visual { width: min(100%, 420px); } }

/* ---------- ticker tape ---------- */
.tapes { position: relative; height: clamp(130px, 15vw, 170px); margin: 0 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.reel { position: absolute; left: -5%; right: -5%; padding: 12px 0; overflow: hidden; border-block: 2px solid #0e0c15; }
.reel-track { display: flex; width: max-content; animation: tape 32s linear infinite; animation-play-state: paused; }
.reel.in-view .reel-track { animation-play-state: running; }
.reel span { flex: none; padding-right: .6em; font: 800 clamp(1.4rem, 1rem + 1.8vw, 2.3rem)/1 var(--font-display); letter-spacing: -.03em;
  white-space: nowrap; color: #0e0c15; }
.reel span::after { content: "✦"; margin-left: .6em; font-size: .7em; vertical-align: .12em; }
.tape-a { top: 14%; background: var(--lime); transform: rotate(-2.2deg); z-index: 1; }
.tape-b { top: 50%; background: var(--pink); transform: rotate(1.8deg); }
.tape-b .reel-track { animation-direction: reverse; animation-duration: 40s; }
@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(--border); }
.signin-section { padding-top: 8px; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 5px 11px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font: 800 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; transform: rotate(-1.5deg); }
.section-title { max-width: 16em; margin-bottom: 32px; }

/* invite: a backstage pass */
.pass { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 28px; background: var(--surface); border: var(--border);
  box-shadow: 10px 10px 0 var(--cobalt); overflow: hidden; }
.pass-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(20px, 4vw, 32px);
  background: var(--lime); color: #0e0c15; border-bottom: 2px solid #0e0c15; font: 800 .82rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.pass-stub b { font: 800 1.6rem/1 var(--font-display); letter-spacing: -.04em; text-transform: none; }
.pass-hole { width: 44px; height: 12px; border-radius: 99px; background: var(--bg); border: 2px solid #0e0c15; flex: none; }
.pass-body { padding: clamp(24px, 4vw, 36px); }
.pass-body h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); margin-bottom: .3em; }
.signin-row { display: flex; gap: 12px; 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%; } }
@media (min-width: 760px) {
  .pass { grid-template-columns: 180px 1fr; }
  .pass-stub { flex-direction: column; justify-content: space-between; text-align: center; border-bottom: 0; border-right: 2px dashed #0e0c15; padding: 22px 16px; }
  .pass-stub span { writing-mode: vertical-rl; transform: rotate(180deg); }
}
.welcome h3 { font: 800 1.8rem/1.1 var(--font-display); letter-spacing: -.03em; margin-bottom: .3em; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }

/* how it works: clips snap onto the beat grid while the playhead runs */
.assemble { position: relative; container-type: inline-size; aspect-ratio: 16 / 6; max-width: 960px; margin: 0 auto 40px; border-radius: 26px;
  background: #0e0c15; border: 2px solid #0e0c15; box-shadow: 8px 8px 0 var(--lime); overflow: hidden; }
@media (max-width: 599px) { .assemble { aspect-ratio: 16 / 9; } }
.bl-cap { position: absolute; left: 5cqw; top: 4.5cqw; margin: 0; font: 800 max(15px, 3.6cqw)/1 var(--font-display); letter-spacing: -.035em; color: #f6f3ee; }
.bl-cap em { font-style: normal; color: var(--lime); }
.bl-bpm { position: absolute; right: 5cqw; top: 4.8cqw; padding: .8cqw 1.6cqw; border-radius: 99px; border: 2px solid var(--pink); color: var(--pink);
  font: 800 max(11px, 1.6cqw)/1 var(--font-body); letter-spacing: .08em; }
.bl-wave { position: absolute; left: 5cqw; right: 5cqw; bottom: 3.5cqw; height: 7cqw; opacity: .9;
  background: repeating-linear-gradient(90deg, #4f4860 0 .5cqw, transparent .5cqw 1.1cqw);
  clip-path: polygon(0 60%, 6% 35%, 12% 70%, 18% 20%, 24% 55%, 30% 30%, 36% 65%, 42% 15%, 48% 50%, 54% 25%, 60% 60%, 66% 10%, 72% 45%, 78% 30%, 84% 65%, 90% 25%, 96% 50%, 100% 40%, 100% 100%, 0 100%); }
.bl-grid { position: absolute; left: 5cqw; right: 5cqw; top: 11cqw; height: 16cqw;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--lime) 55%, transparent) 0 2px, transparent 2px 11.25cqw); }
.bl-track { position: absolute; left: 5cqw; right: 5cqw; top: 12.5cqw; height: 13cqw; display: flex; }
.bl-clip { flex: none; width: 11.25cqw; height: 100%; border-radius: 1.2cqw; border: 2px solid #0e0c15; overflow: hidden; }
.bl-head { position: absolute; top: 10cqw; bottom: 2.5cqw; left: 5cqw; width: 3px; margin-left: -1px; background: var(--pink); border-radius: 2px; opacity: 0; }
.bl-head::before { content: ""; position: absolute; left: 50%; top: -1px; width: 2.4cqw; height: 2.4cqw; margin-left: -1.2cqw; background: var(--pink); border-radius: 0 0 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .assemble.in-view .bl-clip { animation: snap 8s cubic-bezier(.3, 1.5, .5, 1) infinite both; }
  .assemble.in-view .bl-clip:nth-child(2) { animation-delay: .25s; } .assemble.in-view .bl-clip:nth-child(3) { animation-delay: .5s; }
  .assemble.in-view .bl-clip:nth-child(4) { animation-delay: .75s; } .assemble.in-view .bl-clip:nth-child(5) { animation-delay: 1s; }
  .assemble.in-view .bl-clip:nth-child(6) { animation-delay: 1.25s; } .assemble.in-view .bl-clip:nth-child(7) { animation-delay: 1.5s; }
  .assemble.in-view .bl-clip:nth-child(8) { animation-delay: 1.75s; }
  .assemble.in-view .bl-head { animation: playhead 8s linear infinite; }
  .assemble.in-view .bl-wave { animation: wave var(--beat) ease-in-out infinite alternate; }
  .assemble.in-view .bl-bpm { animation: thump var(--beat) ease-out infinite; }
}
@keyframes snap {
  0% { transform: translate3d(0, -26cqw, 0) rotate(-12deg); opacity: 0; }
  8% { transform: none; opacity: 1; }
  88% { transform: none; opacity: 1; }
  96%, 100% { transform: translate3d(0, 4cqw, 0); opacity: 0; }
}
@keyframes playhead { 0%, 32% { opacity: 0; transform: none; } 36% { opacity: 1; } 86% { opacity: 1; transform: translate3d(90cqw, 0, 0); }
  92%, 100% { opacity: 0; transform: translate3d(90cqw, 0, 0); } }
@keyframes wave { to { transform: scaleY(.6); } }
@keyframes thump { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--surface); border: var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 6px 6px 0 var(--hard); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease; }
.step:nth-child(2) { box-shadow: 6px 6px 0 var(--pink); }
.step:nth-child(3) { box-shadow: 6px 6px 0 var(--cobalt); }
@media (hover: hover) { .step:hover { transform: translate(-2px, -4px) rotate(-.6deg); } }
.step-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--border); }
.step-art::after { content: counter(step); counter-increment: step; position: absolute; left: 14px; top: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 2px solid #0e0c15;
  color: var(--ink); font: 800 1.2rem/1 var(--font-display); box-shadow: 3px 3px 0 #0e0c15; }
.step-body { padding: 20px 22px 24px; }
.step p { color: var(--ink-2); margin: 0; }

/* vibes */
.vibes { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
@media (min-width: 900px) { .vibes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vibe { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(190px, 26vw, 280px); padding: 16px;
  border-radius: 22px; border: 2px solid #0e0c15; overflow: hidden; color: #0e0c15; box-shadow: 5px 5px 0 var(--hard); isolation: isolate; }
.vibe h3 { position: relative; z-index: 1; margin: 0; font: 800 clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem)/1 var(--font-display); letter-spacing: -.045em; color: inherit; }
.vibe p { position: relative; z-index: 1; margin: 4px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.vibe .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.v-hype { background: var(--lime); }
.v-hype .fx { bottom: auto; height: 50%; display: flex; align-items: flex-end; gap: 6%; padding: 16px 16px 0; }
.v-hype .fx i { flex: 1; height: 100%; background: #0e0c15; border-radius: 4px; transform-origin: bottom; transform: scaleY(.5); }
.v-hype .fx i:nth-child(2) { transform: scaleY(.8); } .v-hype .fx i:nth-child(3) { transform: scaleY(.35); }
.v-hype .fx i:nth-child(4) { transform: scaleY(.95); } .v-hype .fx i:nth-child(5) { transform: scaleY(.6); }
.v-chill { background: linear-gradient(180deg, #ffd1a8 0%, #ffb38a 45%, #8fd3ff 100%); }
.v-chill .fx::before { content: ""; position: absolute; left: 50%; top: 18%; width: 38%; aspect-ratio: 1; margin-left: -19%; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0, #ffcf4d 70%); box-shadow: 0 0 40px 10px rgba(255, 214, 120, .6); }
.v-chill .fx::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 26%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 14px); }
.v-chaotic { background: var(--pink); }
.v-chaotic .fx i { position: absolute; display: block; border: 2px solid #0e0c15; }
.v-chaotic .fx i:nth-child(1) { left: 10%; top: 12%; width: 26%; aspect-ratio: 1; background: var(--lime); transform: rotate(14deg); }
.v-chaotic .fx i:nth-child(2) { right: 12%; top: 8%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); }
.v-chaotic .fx i:nth-child(3) { left: 44%; top: 30%; width: 30%; height: 10%; background: var(--sun); transform: rotate(-20deg); border-radius: 99px; }
.v-chaotic .fx i:nth-child(4) { left: 40%; top: 6%; width: 0; height: 0; border: 0; border-left: 22px solid transparent; border-right: 22px solid transparent;
  border-bottom: 38px solid #0e0c15; transform: rotate(18deg); }
.v-aesthetic { background: #efe6ff; }
.v-aesthetic .fx::before, .v-aesthetic .fx::after { content: ""; position: absolute; border-radius: 50%; filter: blur(18px); opacity: .9; }
.v-aesthetic .fx::before { left: -10%; top: -6%; width: 80%; aspect-ratio: 1; background: var(--lilac); }
.v-aesthetic .fx::after { right: -14%; top: 22%; width: 70%; aspect-ratio: 1; background: #ffd6e5; }
@media (prefers-reduced-motion: no-preference) {
  .vibes.in-view .v-hype .fx i { animation: eq var(--beat) ease-in-out infinite alternate; }
  .vibes.in-view .v-hype .fx i:nth-child(2) { animation-duration: calc(var(--beat) / 2); }
  .vibes.in-view .v-hype .fx i:nth-child(3) { animation-delay: calc(var(--beat) / -2); }
  .vibes.in-view .v-hype .fx i:nth-child(4) { animation-duration: calc(var(--beat) / 2); animation-delay: -.1s; }
  .vibes.in-view .v-chill .fx::before { animation: bob 6s ease-in-out infinite alternate; }
  .vibes.in-view .v-chill .fx::after { animation: drift 9s linear infinite; }
  .vibes.in-view .v-chaotic .fx i { animation: jolt calc(var(--beat) * 2) steps(1, end) infinite; }
  .vibes.in-view .v-chaotic .fx i:nth-child(2) { animation-delay: -.5s; } .vibes.in-view .v-chaotic .fx i:nth-child(3) { animation-delay: -.25s; }
  .vibes.in-view .v-aesthetic .fx::before { animation: blob 10s ease-in-out infinite alternate; }
  .vibes.in-view .v-aesthetic .fx::after { animation: blob 12s ease-in-out infinite alternate-reverse; }
}
@keyframes eq { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
@keyframes bob { to { transform: translate3d(0, 14%, 0); } }
@keyframes drift { to { transform: translate3d(0, 14px, 0); } }
@keyframes jolt { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: 6px -4px; rotate: 9deg; } 50% { translate: -5px 3px; rotate: -7deg; }
  75% { translate: 3px 6px; rotate: 4deg; } }
@keyframes blob { to { transform: translate3d(12%, 10%, 0) scale(1.12); } }
.lengths-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.lengths-row .len { padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--surface); font: 800 1.1rem/1 var(--font-display);
  color: var(--ink); }
.lengths-row .len.on { background: var(--ink); color: var(--bg); }

/* what you get */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { position: relative; padding: 22px 20px 20px; border-radius: 22px; background: var(--surface); border: var(--border); box-shadow: 5px 5px 0 var(--hard); }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; border: 2px solid #0e0c15; color: #0e0c15; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(1) .f-icon { background: var(--lime); transform: rotate(-6deg); }
.feature:nth-child(2) .f-icon { background: var(--sun); transform: rotate(5deg); }
.feature:nth-child(3) .f-icon { background: var(--pink); transform: rotate(-3deg); }
.feature:nth-child(4) .f-icon { background: var(--cobalt); color: #fff; transform: rotate(7deg); }

/* privacy */
.privacy-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: .85fr 1.15fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 10px; }
.stat { display: grid; place-content: center; justify-items: center; gap: 4px; width: 148px; aspect-ratio: 1; margin: 0; border-radius: 50%;
  border: 2px solid #0e0c15; color: #0e0c15; text-align: center; box-shadow: 4px 4px 0 var(--hard); }
.stat b { display: block; font: 800 3.2rem/.85 var(--font-display); letter-spacing: -.05em; }
.stat span { display: block; font-size: .76rem; font-weight: 700; line-height: 1.2; max-width: 8.5em; }
.stat:nth-child(1) { background: var(--lime); transform: rotate(-5deg); }
.stat:nth-child(2) { background: var(--pink); transform: rotate(4deg); }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.assurances li { position: relative; padding: 18px 20px 16px 62px; background: var(--surface); border: var(--border); border-radius: 20px; box-shadow: 4px 4px 0 var(--hard); }
.assurances li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #0e0c15;
  background: var(--lime) 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='%230e0c15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.assurances h3 { margin-bottom: .25em; }
.assurances p { margin: 0; color: var(--ink-2); }
.link-arrow { font-weight: 800; text-decoration: none; color: var(--ink); background: linear-gradient(var(--lime), var(--lime)) 0 88% / 100% .45em no-repeat; }
.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: 12px; }
.faq details { background: var(--surface); border: var(--border); border-radius: 18px; transition: box-shadow .2s ease, transform .2s ease; }
.faq details[open] { box-shadow: 5px 5px 0 var(--pop); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 60px 18px 20px; font: 700 1.08rem/1.3 var(--font-display); letter-spacing: -.01em;
  position: relative; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px;
  display: grid; place-items: center; background: var(--lime); border: 2px solid #0e0c15; color: #0e0c15; font: 800 1.2rem/1 var(--font-body);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--pink); }
.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: 14em; margin-inline: auto; }
.cta-band .btn { margin-top: 6px; }

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

/* ---------- 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.3rem, 1.5rem + 3vw, 3.4rem); margin-bottom: .2em; }
.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(--border); border-radius: var(--radius-lg); margin-bottom: 18px;
  box-shadow: 5px 5px 0 var(--hard); }
.form-section > h2 { font: 800 1.45rem/1.15 var(--font-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.form-section > .hint { margin-bottom: 16px; }
.num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: #0e0c15;
  border: 2px solid #0e0c15; font: 800 1rem/1 var(--font-display); transform: rotate(-4deg); }
.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: 8px; }
.chip { appearance: none; border: 2px solid var(--line-strong); background: var(--surface-2); color: var(--ink); cursor: pointer;
  font: 600 .9rem/1 var(--font-body); padding: 9px 13px; border-radius: 999px; min-height: 40px; transition: transform .12s ease, background-color .12s ease; }
.chip:hover { background: var(--lime); color: #0e0c15; border-color: #0e0c15; transform: rotate(-2deg); }
.counter { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.examples { margin-top: 16px; border-top: 2px dashed var(--line); padding-top: 14px; }
.examples p { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.example-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .example-list { grid-template-columns: repeat(3, 1fr); } }
.example { appearance: none; text-align: left; cursor: pointer; border: 2px solid var(--line-strong); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--ink-2); font: 400 .92rem/1.4 var(--font-body); transition: box-shadow .12s ease, transform .12s ease; }
.example strong { display: block; color: var(--ink); margin-bottom: 2px; font-family: var(--font-display); font-weight: 800; }
.example:hover { transform: translate(-1px, -2px); box-shadow: 3px 3px 0 var(--pop); }

.choice-grid { display: grid; gap: 12px; 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 { display: block; height: 100%; border: var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.choice-body strong { display: block; font: 800 1.2rem/1.1 var(--font-display); letter-spacing: -.02em; }
.choice-body span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 3px; }
.choice input:checked + .choice-body { background: var(--lime); color: #0e0c15; border-color: #0e0c15; box-shadow: 4px 4px 0 var(--pop); transform: translate(-2px, -2px); }
.choice input:checked + .choice-body span { color: #2b2833; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice:hover .choice-body { box-shadow: 3px 3px 0 var(--pop); }
.choice:active .choice-body { transform: scale(.97); }
.lengths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lengths .choice-body { text-align: center; padding: 12px 6px; }
.lengths .choice-body strong { font-size: 1.35rem; }
@media (max-width: 420px) { .lengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.drop { position: relative; display: grid; place-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 22px 16px 26px;
  border: 3px dashed var(--line-strong); border-radius: 22px; background: var(--lime-soft); transition: background-color .15s ease, transform .15s ease; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--lime) 55%, var(--surface)); }
.drop.over { transform: scale(1.01); border-style: solid; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.drop-art { position: relative; display: block; width: 190px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 10px;
  border: 2px solid #0e0c15; box-shadow: 5px 5px 0 var(--pop); transform: rotate(-3deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.drop:hover .drop-art, .drop.over .drop-art { transform: rotate(2deg) translateY(-4px); }
.drop-icon { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lime); color: #0e0c15; border: 2px solid #0e0c15; }
.drop-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.03em; }
.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(92px, 1fr)); }
.tile { position: relative; aspect-ratio: 9 / 12; border-radius: 12px; overflow: hidden; background: var(--bg-tint); border: 2px solid var(--line-strong); }
.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-size: .72rem; font-weight: 700; 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 7px; border-radius: 999px; font: 700 .7rem/1.2 var(--font-body); background: rgba(14, 12, 21, .78); color: #fff; }
.tile-remove { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #0e0c15; cursor: pointer;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 1.15rem; line-height: 1; font-weight: 700; }
.tile-remove:hover { background: var(--pink); color: #0e0c15; }
.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 .7rem/1.25 var(--font-body); }
.tile-progress { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 8px; border-radius: 999px; background: rgba(14, 12, 21, .6); overflow: hidden; }
.tile-progress i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .2s linear; }
.tile.done::before { content: "✓"; position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #0e0c15;
  display: grid; place-items: center; background: var(--lime); color: #0e0c15; font: 800 .8rem/1 var(--font-body); }
.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: 999px; box-shadow: none; }
.files-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.files-summary .over { color: var(--danger); font-weight: 800; }

.consents { display: grid; gap: 10px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); transition: border-color .15s ease; }
.consent:hover { border-color: var(--line-strong); }
.consent:has(input:checked) { border-color: var(--line-strong); background: var(--lime-soft); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cobalt); 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; }

.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) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: var(--border); 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; }
}
@media (max-width: 719px) { .submit-bar .btn-lg { min-height: 54px; } }
.upload-slot:empty { display: none; }
.upload-slot { margin-bottom: 18px; scroll-margin-top: 80px; }
.upload-slot:focus { outline: none; }
form.locked .form-section { opacity: .7; }
form.locked .submit-bar { display: none; }

.progress { height: 14px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; border: 2px solid var(--line-strong); }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s ease;
  background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, #a8e021 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.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: 34px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font: 800 .85rem/1 var(--font-display); 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(--lime); border-color: #0e0c15; color: #0e0c15; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--pop); }
.tl.now .tl-dot .spinner { width: 16px; height: 16px; 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: 22px; overflow: hidden; background: #0e0c15; aspect-ratio: 9 / 16; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #0e0c15; }
.player-frame { position: relative; width: min(100%, 400px); margin: 10px auto 24px; padding: 10px; border-radius: 34px; background: #0e0c15;
  border: 2px solid #0e0c15; box-shadow: 10px 10px 0 var(--lime); }
.player-frame .player { width: 100%; margin: 0; border-radius: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; 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 11px; border-radius: 999px; font: 700 .8rem/1.2 var(--font-body);
  background: var(--bg-tint); color: var(--ink-2); white-space: nowrap; border: 2px solid currentColor; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.pill.s-delivered { background: var(--ok-soft); color: var(--ok); }
.pill.s-queued, .pill.s-processing { background: var(--cobalt-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 edits */
.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: 14px; }
.film-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px;
  background: var(--surface); border: var(--border); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--hard);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s ease; }
.film-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pop); }
.film-thumb { position: relative; width: 52px; height: 72px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: var(--lime); color: #fff; border: 2px solid #0e0c15; }
.film-thumb svg { position: relative; z-index: 1; width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.film-thumb.s-failed, .film-thumb.s-cancelled { filter: grayscale(.85) opacity(.7); }
.film-card strong { display: block; font: 800 1.1rem/1.2 var(--font-display); letter-spacing: -.02em; }
.film-card .meta { display: block; color: var(--muted); font-size: .88rem; 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: 62px; } }

.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(2rem, 1.4rem + 2.4vw, 2.8rem); }
.empty-photo { position: relative; width: 168px; aspect-ratio: 1; margin: 0 auto 22px; border-radius: 34px; overflow: hidden; border: 2px solid #0e0c15;
  box-shadow: 6px 6px 0 var(--pop); transform: rotate(-4deg); }

/* skeleton */
.skeleton { display: grid; gap: 14px; padding: 8px 0 40px; }
.sk { position: relative; display: block; overflow: hidden; border-radius: 14px; 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(--lime) 35%, transparent), transparent); }
.sk-title { height: 48px; 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 record spins on the beat while clips drop onto the timeline */
.status-card.is-live { overflow: hidden; }
.status-card.is-live .page-head { text-align: center; }
.wait-scene { position: relative; display: grid; justify-items: center; margin: 0 0 8px; }
.wait-art { position: relative; width: min(210px, 52%); aspect-ratio: 1; margin: 2px auto 0; border-radius: 50%; overflow: hidden;
  border: 2px solid #0e0c15; box-shadow: 6px 6px 0 var(--pop); }
.wait-glow { position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(255, 255, 255, .5) 88%, transparent 96%); opacity: .5; }
.ws-strip { position: relative; z-index: 1; width: 100%; margin-top: -22px; overflow: hidden; padding: 14px 0 12px; border-radius: 14px;
  background: #0e0c15; border: 2px solid #0e0c15;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ws-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px 32px); opacity: .8; }
.ws-track { display: flex; gap: 6px; width: max-content; }
.ws-frame { flex: none; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid #2b2833; }
.ws-drop { position: absolute; z-index: 2; top: 40px; width: 48px; height: 60px; border-radius: 9px; overflow: hidden; border: 2px solid #0e0c15;
  box-shadow: 3px 3px 0 #0e0c15; opacity: 0; }
.d1 { left: calc(50% - 120px); } .d2 { left: calc(50% + 72px); } .d3 { left: calc(50% - 24px); }
@media (prefers-reduced-motion: no-preference) {
  .wait-scene.is-making .art-making-roll { animation: spin 2s linear infinite; }
  .wait-scene.is-queued .art-making-roll { animation: spin 8s linear infinite; }
  .wait-scene.is-making .wait-glow { animation: thump var(--beat) ease-out infinite; }
  .wait-scene.is-making .ws-track { animation: reel 18s linear infinite; }
  .wait-scene.is-queued .ws-track { animation: reel 70s 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; }
}
@keyframes ws-drop {
  0% { transform: translate3d(0, -30px, 0) rotate(-14deg); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate3d(0, 128px, 0) rotate(0deg); opacity: 1; }
  62%, 100% { transform: translate3d(0, 150px, 0) scale(.6); opacity: 0; }
}
.elapsed { display: block; margin: -6px 0 8px; color: var(--ink-2); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.elapsed-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; vertical-align: .05em; border-radius: 3px; background: var(--pink);
  transform: rotate(45deg); 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: 2px dashed var(--line-strong); }
.craft-title { margin: 0 0 8px; font: 800 .8rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.craft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.craft li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: .95rem; }
.craft li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px; border: 2px solid #0e0c15; background: var(--lime); transform: rotate(45deg); }

/* delivered */
.ready-head { text-align: center; }
.ready-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px !important; padding: 7px 13px; border-radius: 999px; border: 2px solid #0e0c15;
  background: var(--lime); color: #0e0c15 !important; font-weight: 800; font-size: .86rem; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--pop); }
.ready-kicker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.reveal { animation: pop-in .8s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.9) rotate(-3deg); } }
.reveal .player::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate3d(-110%, 0, 0);
  background: linear-gradient(105deg, transparent 30%, rgba(198, 255, 61, .35) 50%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .reveal .player::after { animation: sweep 1.2s .5s ease-out both; } }
@keyframes sweep { to { transform: translate3d(110%, 0, 0); } }

/* tone swatches (make page choices and My edits thumbnails) */
.swatch { display: block; width: 30px; height: 30px; border-radius: 10px; margin-bottom: 10px; border: 2px solid #0e0c15; transform: rotate(-6deg); }
.t-hype { background: linear-gradient(135deg, var(--lime) 0 50%, var(--pink) 50%); }
.t-chill { background: linear-gradient(180deg, #ffc48f, #8fd3ff); }
.t-chaotic { background: conic-gradient(var(--pink) 0 25%, var(--sun) 0 50%, var(--cobalt) 0 75%, var(--lime) 0); }
.t-aesthetic { background: radial-gradient(circle at 30% 30%, #fff1f6, var(--lilac) 75%); }
.film-thumb.t-hype, .film-thumb.t-chaotic { color: #0e0c15; }
.film-thumb.t-hype svg, .film-thumb.t-chaotic svg { filter: none; }
.choice input:checked + .choice-body .swatch { box-shadow: 2px 2px 0 #0e0c15; }

/* ---------- photos (art/roles.json, derive.py): every <picture> fills the frame that owns and clips it ---------- */
picture { display: block; width: 100%; height: 100%; }
picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the closing band: a golden-hour print taped next to the last call to action */
.cta-grid { display: grid; gap: 34px; justify-items: center; }
@media (min-width: 760px) { .cta-grid { grid-template-columns: auto auto; justify-content: center; align-items: center; justify-items: start; text-align: left; gap: 64px; }
  .cta-grid h2 { max-width: 8em; margin-inline: 0; } }
.snap { position: relative; width: min(64vw, 280px); padding: 10px 10px 40px; background: #f6f3ee; border: 2px solid #0e0c15;
  box-shadow: 8px 8px 0 var(--pink); transform: rotate(-4deg); }
.snap picture { height: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.snap::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -14px; width: 92px; height: 28px; margin-left: -46px;
  background: color-mix(in srgb, var(--lime) 82%, transparent); border: 2px solid #0e0c15; transform: rotate(3deg); }
.st-snap { right: -18px; bottom: 16px; background: var(--sun); transform: rotate(6deg); }

/* ---------- CSS art (art names with no raster in art/roles.json fall back to <span class="art art-NAME">) ---------- */
.art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; }
/* empty roll: a blank camera-roll grid with a "+" sticker */
.art-empty-roll { background: var(--lime-soft); }
.art-empty-roll::before { --cell: color-mix(in srgb, var(--ink) 14%, transparent); left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 8px;
  background: var(--cell); box-shadow: 46px 0 var(--cell), 92px 0 var(--cell), 0 46px var(--cell), 46px 46px var(--cell), 92px 46px var(--cell),
    0 92px var(--cell), 46px 92px var(--cell), 92px 92px var(--cell); }
.art-empty-roll::after { right: 10%; bottom: 10%; width: 34%; aspect-ratio: 1; border-radius: 12px; border: 2px solid #0e0c15; background: var(--pink)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%230e0c15' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  transform: rotate(8deg); }
/* lost clip: a tilted clip with a question mark */
.art-lost-clip { background: var(--cobalt); }
.art-lost-clip::before { left: 24%; top: 16%; width: 52%; height: 68%; border-radius: 12px; background: var(--surface); border: 2px solid #0e0c15;
  transform: rotate(-10deg); box-shadow: 5px 5px 0 #0e0c15; }
.art-lost-clip::after { content: "?"; inset: 0; display: grid; place-items: center; font: 800 4.2rem/1 var(--font-display); color: var(--pink);
  transform: rotate(-10deg); -webkit-text-stroke: 2px #0e0c15; }
/* making: a record spinning on the beat */
.art-making-roll { border-radius: 50%; background:
  radial-gradient(circle, var(--lime) 0 15%, #0e0c15 15.5% 17%, transparent 17.5%),
  repeating-radial-gradient(circle, #1b1824 0 3px, #2b2833 3px 5px),
  #0e0c15; }
.art-making-roll::before { inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 12%, rgba(255, 61, 139, .55) 12% 20%, transparent 20% 62%, rgba(61, 91, 255, .5) 62% 70%, transparent 70%); }
.art-making-roll::after { left: 50%; top: 50%; width: 5%; aspect-ratio: 1; margin: -2.5% 0 0 -2.5%; border-radius: 50%; background: #0e0c15; }
/* landing steps: photos with native stickers on top */
.vibe-chips { position: absolute; inset: 0; z-index: 1; }
.vibe-chips i { position: absolute; padding: 8px 14px; border-radius: 999px; border: 2px solid #0e0c15; font: 800 1.05rem/1 var(--font-display); font-style: normal;
  color: #0e0c15; box-shadow: 3px 3px 0 #0e0c15; letter-spacing: -.02em; }
.vibe-chips i:nth-child(1) { left: 12%; top: 20%; background: var(--lime); transform: rotate(-8deg); }
.vibe-chips i:nth-child(2) { right: 12%; top: 28%; background: #8fd3ff; transform: rotate(6deg); }
.vibe-chips i:nth-child(3) { left: 18%; bottom: 18%; background: var(--pink); transform: rotate(4deg); }
.vibe-chips i:nth-child(4) { right: 14%; bottom: 24%; background: #efe6ff; transform: rotate(-5deg); }
.st-step { right: 14px; bottom: 14px; background: var(--lime); transform: rotate(-4deg); }
.st-onbeat { background: var(--pink); transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .step .vibe-chips i { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .step:hover .vibe-chips i:nth-child(odd) { transform: rotate(4deg) scale(1.06); }
  .step:hover .vibe-chips i:nth-child(even) { transform: rotate(-4deg) scale(1.06); }
}

/* ---------- motion ---------- */
.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.loop.playing { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0) rotate(-1deg); transition: opacity .6s ease, transform .7s cubic-bezier(.3, 1.4, .5, 1); }
  .motion [data-reveal].in { opacity: 1; transform: none; }
  .motion .steps[data-reveal] .step, .motion .features[data-reveal] .feature { opacity: 0; transform: translate3d(0, 30px, 0);
    transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1); }
  .motion .steps[data-reveal].in .step, .motion .features[data-reveal].in .feature { 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; }
  .st-beat { animation: bounce calc(var(--beat) * 2) cubic-bezier(.3, 1.6, .5, 1) infinite; }
  .st-cap { animation: sway 3s ease-in-out infinite alternate; }
  .st-len { animation: sway 3.6s ease-in-out infinite alternate-reverse; }
  .st-beat .bars i { animation: eq calc(var(--beat) / 2) ease-in-out infinite alternate; }
  .st-beat .bars i:nth-child(2) { animation-delay: -.12s; } .st-beat .bars i:nth-child(3) { animation-delay: -.2s; }
  .roll-grid .pick::after { animation: pick 4s cubic-bezier(.3, 1.6, .5, 1) infinite both; }
  .roll-grid .pick:nth-child(4)::after { animation-delay: .5s; } .roll-grid .pick:nth-child(6)::after { animation-delay: 1s; }
  .roll-grid .pick:nth-child(8)::after { animation-delay: 1.5s; } .roll-grid .pick:nth-child(9)::after { animation-delay: 2s; }
  .hero h1 .hl::before { animation: wobble calc(var(--beat) * 4) ease-in-out infinite; }
}
@keyframes bounce { 0%, 100% { translate: 0 0; } 25% { translate: 0 -6px; } 50% { translate: 0 0; } }
@keyframes sway { to { translate: 0 -8px; rotate: 3deg; } }
@keyframes pick { 0%, 6% { transform: scale(0); } 14%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(-1deg) scale(1.02); } }

@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; }
  .eyebrow .dot, .elapsed-dot, .sk::after, .progress i, .reel-track { 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: 340px) { .nav a, .nav button { padding: 8px 6px; font-size: .84rem; } }
