/* The app's look: white, soft grey cards, near-black as the one accent. */
:root {
  --bg: #fff;
  --card: #f4f4f4;
  --raised: #e9e9e9;
  --text: #0f0f0f;
  --muted: #6b6b6b;
  --accent: #0f0f0f;
  --on-accent: #fff;
  --line: #e4e4e4;
  --danger: #d92d20;
  --ok: #12a150;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --card: #1a1a1a; --raised: #262626; --text: #f2f2f2; --muted: #9a9a9a;
    --accent: #f2f2f2; --on-accent: #0b0b0b; --line: #2a2a2a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); }
nav a.on { color: var(--text); background: var(--card); }
nav .credits { color: var(--text); background: var(--card); }

main { max-width: 980px; margin: 0 auto; padding: 24px 20px 120px; }
.narrow { max-width: 560px; margin: 0 auto; }
h1 { font-size: 34px; line-height: 1.1; margin: 8px 0 18px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 28px 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: 14px; font-weight: 650; text-decoration: none; background: var(--raised); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 11px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); font-weight: 550; }

.seg { display: flex; padding: 3px; background: var(--card); border-radius: 999px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; font-weight: 650;
  color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--on-accent); }

.field { display: block; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); outline: none; }
.field:focus { border-color: var(--text); }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 240px;
  border-radius: var(--radius); background: var(--card); border: 2px dashed transparent; cursor: pointer; text-align: center; padding: 20px; }
.drop.over { border-color: var(--text); }
.drop .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 30px; font-weight: 300; }
.picked { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; }
.picked video, .picked img { width: 92px; height: 120px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 0;
  background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip select { border: 0; background: transparent; font-weight: 600; outline: none; cursor: pointer; }

.tiles { display: flex; gap: 8px; }
.tile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px;
  border: 2px solid transparent; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 650; }
.tile.on { border-color: var(--text); }
.tile i { display: block; border: 2px solid currentColor; border-radius: 4px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bar > div { max-width: 560px; margin: 0 auto; }

.progress { height: 8px; background: var(--raised); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.steps { display: flex; gap: 16px; justify-content: center; font-size: 14px; color: var(--muted); }
.steps .on { color: var(--text); font-weight: 650; }
.steps .done { color: var(--text); }

.player { width: 100%; max-height: 72vh; background: #000; border-radius: var(--radius); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.clip video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; border-radius: 12px; }
.clip .meta { padding: 8px 2px 0; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.project { text-decoration: none; display: block; }
.project .thumb { aspect-ratio: 9/14; background: var(--card); border-radius: 14px; overflow: hidden; display: grid; place-items: center; position: relative; }
.project .thumb video { width: 100%; height: 100%; object-fit: cover; }
.project .badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px;
  font-weight: 650; padding: 4px 9px; border-radius: 99px; }
.project .name { font-weight: 600; font-size: 14px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cut { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cut:last-child { border-bottom: 0; }
.cut img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.cut .alts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cut .alts button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.cut .alts button.on { border-color: var(--text); }
.cut .alts img { width: 46px; height: 60px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

.plans { display: grid; gap: 12px; }
.plan { text-align: left; border: 2px solid transparent; background: var(--card); border-radius: var(--radius); padding: 16px; cursor: pointer; }
.plan.on { border-color: var(--text); }
.plan .price { font-size: 22px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li { padding: 5px 0 5px 28px; position: relative; font-weight: 520; }
.checks li::before { content: "✓"; position: absolute; left: 4px; font-weight: 800; }

.error { color: var(--danger); font-weight: 550; }
.notice { background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: grid; place-items: end center; }
.sheet > div { background: var(--bg); width: min(560px, 100%); max-height: 88vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px 20px 30px; }
@media (min-width: 700px) { .sheet { place-items: center; } .sheet > div { border-radius: 22px; } }
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.styles button { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 8px; cursor: pointer; font-weight: 650; }
.styles button.on { border-color: var(--text); }
.styles img { width: 100%; border-radius: 9px; margin-bottom: 6px; background: #222; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 40; background: var(--accent);
  color: var(--on-accent); padding: 11px 18px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); }
.spinner { width: 28px; height: 28px; margin: 60px auto; border: 3px solid var(--raised); border-top-color: var(--text);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .top { padding: 10px 14px; }
  .brand span { display: none; }
  nav a { padding: 6px 9px; font-size: 14px; }
  main { padding: 18px 16px 120px; }
  h1 { font-size: 28px; }
}

/* -- the dark theme: the landing page and signing in, black and white only -------------------------- */
:root[data-theme="dark"] {
  --bg: #000; --card: #111; --raised: #1c1c1c; --text: #fff; --muted: #8f8f8f;
  --accent: #fff; --on-accent: #000; --line: #222; color-scheme: dark;
}
:root[data-theme="dark"] .top { background: rgba(0, 0, 0, .72); border-bottom-color: transparent; }
main.wide { max-width: none; padding: 0; }

/* -- landing ------------------------------------------------------------------------------------------- */
.lp { overflow-x: clip; }
.lp-section { max-width: 1160px; margin: 0 auto; padding: 120px 20px 0; }
.lp-narrow { max-width: 780px; }
.lp-h2 { text-align: center; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 auto 14px; max-width: 820px; font-weight: 750; }
.lp-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 auto 44px; max-width: 620px; }
.lp-small { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.lp-small.center { text-align: center; margin-top: 24px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid #fff;
  background: #fff; color: #000; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s, background .15s; }
.lp-btn:hover { opacity: .88; }
.lp-btn.small { padding: 8px 16px; font-size: 14px; }
.lp-btn.outline { background: transparent; color: #fff; border-color: #3a3a3a; }
.lp-btn.outline:hover { background: #151515; opacity: 1; }
.lp-btn.dark { background: #000; color: #fff; border-color: #000; }
.lp-btn.upload { padding: 17px 30px; font-size: 18px; font-weight: 700; }
.lp-btn.quiet { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.lp-navlink { background: none; border: 0; cursor: pointer; color: #b5b5b5; font-weight: 500; font-size: 15px; padding: 7px 10px; text-decoration: none; }
.lp-navlink:hover { color: #fff; }

/* hero */
.lp-hero { max-width: 1160px; margin: 0 auto; padding: 84px 20px 0; text-align: center; }
.lp-kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: #cfcfcf; }
.lp-title { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 auto 20px; font-weight: 750; max-width: 980px; }
.lp-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.lp-cta { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lp-or { color: var(--muted); font-size: 14px; }
.lp-linkbox { display: flex; align-items: center; gap: 10px; width: min(400px, 100%); padding: 6px 6px 6px 18px; border-radius: 999px;
  background: #141414; border: 1px solid #2c2c2c; color: #8f8f8f; }
.lp-linkbox:focus-within { border-color: #6a6a6a; }
.lp-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 16px; padding: 9px 0; }
.lp-input::placeholder { color: #7a7a7a; }

/* the demo panel */
.lp-demo-wrap { margin-top: 56px; width: 100vw; margin-left: calc(50% - 50vw); }
.lp-carousel { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lp-track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.lp-slide { flex: none; position: relative; width: min(1120px, calc(100vw - 140px)); height: 600px; border-radius: 28px; overflow: hidden;
  border: 1px solid #1f1f1f; background: radial-gradient(70% 70% at 50% 30%, #222 0%, #0d0d0d 70%); opacity: .4; cursor: pointer; transition: opacity .5s; }
.lp-slide.on { opacity: 1; cursor: default; }
.lp-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(38, 38, 38, .9); border: 1px solid #333; color: #fff; cursor: pointer; transition: background .15s; }
.lp-arrow:hover { background: #333; }
.lp-arrow.prev { left: max(12px, calc(50% - 560px - 64px)); }
.lp-arrow.next { right: max(12px, calc(50% - 560px - 64px)); }
.lp-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.lp-tab { position: relative; overflow: hidden; background: #111; border: 1px solid #222; color: #9a9a9a; border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: 14px; cursor: pointer; }
.lp-tab.on { color: #fff; border-color: #444; }
.lp-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; }
.lp-vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

.sc { position: absolute; inset: 0; }
.sc > * { position: absolute; left: 50%; top: 50%; }

/* edit: raw pieces fly into the phone */
.sc-raw { width: 150px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -10px #000;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); transition: transform .7s cubic-bezier(.3, 1.25, .5, 1), opacity .5s; }
.sc-phone { width: 270px; aspect-ratio: 9/16; border-radius: 34px; overflow: hidden; border: 5px solid #fff; background: #000;
  transform: translate(-50%, -50%) scale(.86); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.25, .5, 1), opacity .4s; }
.sc-caps .sc-phone { transform: translate(-50%, -50%); opacity: 1; }
.sc-co { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.6); opacity: 0; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(.5);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; z-index: 2; }
@keyframes lp-beat { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* clips: a long video, a click, the clips fan out */
.sc-card { width: 400px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; transform: translate(-50%, -50%) translateY(-170px); box-shadow: 0 18px 40px -10px #000; }
.sc-len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.sc-ask { display: flex; align-items: center; gap: 8px; width: 380px; padding: 5px 5px 5px 16px; border-radius: 999px; background: #161616; border: 1px solid #2c2c2c;
  color: #8f8f8f; font-size: 14px; transform: translate(-50%, -50%) translateY(-28px); text-align: left; }
.sc-ask span { flex: 1; }
.sc-go { position: relative; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: transform .1s; }
.sc-clips.s2:not(.s3) .sc-go { transform: scale(.9); }
.sc-cursor { position: absolute; left: 70%; top: 60%; opacity: 0; transform: translate(80px, 110px); transition: transform .55s ease-in-out, opacity .3s; pointer-events: none; }
.sc-clips.s1 .sc-cursor { opacity: 1; transform: translate(0, 0); }
.sc-clips.s3 .sc-cursor { opacity: 0; }
.sc-fan { width: 0; height: 0; transform: translateY(150px); }
.sc-tile { position: absolute; left: 0; top: 0; width: 120px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -8px #000;
  z-index: calc(10 - var(--a) * 2); transform: translate(-50%, -50%) translateY(-60px) scale(.4); opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; transition-delay: calc(var(--i) * 60ms); }
.sc-clips.s3 .sc-tile { opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--k) * 84px), calc(var(--a) * 10px)) rotate(calc(var(--k) * 5deg)); }
.sc-score { position: absolute; left: 6px; bottom: 6px; display: flex; flex-direction: column; align-items: center; line-height: 1; background: rgba(0,0,0,.75);
  color: #bfff33; font-weight: 800; font-size: 18px; padding: 4px 7px 5px; border-radius: 9px; }
.sc-score small { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.75); margin-bottom: 2px; }

/* shorten: frames marked, then cut out, the length drops */
.sc-time { transform: translate(-50%, -50%) translateY(-170px); font-size: 64px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sc-time span { display: inline-block; transition: opacity .4s, transform .4s; }
.sc-time .b { position: absolute; left: 0; opacity: 0; transform: translateY(14px); }
.sc-short.s2 .sc-time .a { opacity: 0; transform: translateY(-14px); }
.sc-short.s2 .sc-time .b { opacity: 1; transform: none; }
.sc-strip { display: flex; transform: translate(-50%, -50%) translateY(-40px); border-radius: 10px; overflow: visible; }
.sc-frame { position: relative; width: 60px; height: 107px; background: url(/app/media/strip.jpg) no-repeat; background-size: 480px 107px;
  background-position: calc(var(--i) * -60px) 0; transition: width .8s cubic-bezier(.4, 0, .2, 1); }
.sc-frame:first-child { border-radius: 10px 0 0 10px; } .sc-frame:last-child { border-radius: 0 10px 10px 0; }
.sc-frame.cut::after { content: ""; position: absolute; inset: 0; background: rgba(255, 59, 48, .5); opacity: 0; transition: opacity .3s; }
.sc-short.s1:not(.s2) .sc-frame.cut::after { opacity: 1; }
.sc-short.s2 .sc-frame.cut { width: 0; }
.sc-why { position: absolute; left: 0; bottom: calc(100% + 8px); white-space: nowrap; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 99px; opacity: 0; transform: scale(.6); transform-origin: bottom left; transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.sc-short.s1:not(.s2) .sc-why { opacity: 1; transform: none; }
.sc-rows { display: grid; gap: 8px; width: 420px; transform: translate(-50%, -50%) translateY(140px); opacity: 0; transition: opacity .5s, transform .5s; }
.sc-short.s2 .sc-rows { opacity: 1; transform: translate(-50%, -50%) translateY(120px); }
.sc-row { display: flex; align-items: center; gap: 10px; background: #161616; border: 1px solid #262626; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.sc-row b { font-variant-numeric: tabular-nums; }
.sc-row em { margin-left: auto; font-style: normal; color: var(--muted); }

/* captions: word by word beside the feature list */
.sc-caps .sc-phone { --w: 250px; width: var(--w); transform: translate(-50%, -50%) translateX(-130px); }
.sc-words { position: absolute; left: 0; right: 0; bottom: 18%; display: flex; gap: 6px; justify-content: center; }
.sc-words span { font-weight: 900; font-size: 19px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.9); padding: 1px 5px; border-radius: 6px; transition: transform .15s; }
.sc-words span.now { color: #ffd60a; transform: scale(1.15); }
.sc-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; transform: translate(-50%, -50%) translateX(120px); text-align: left; }
.sc-feats li { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.sc-feats li span { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }

/* automatic edit: raw footage on a timeline, picked, cut and put together in a phone */
.ed-label { display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%, -50%) translate(var(--x), var(--y)); }
.ed-label b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ed-label span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ed-label.raw { --x: -220px; --y: -250px; }
.ed-label.edit { --x: 300px; --y: -250px; opacity: 0; transition: opacity .4s .5s; }
.sc-ed.s3 .ed-label.edit { opacity: 1; }
.ed-raw { width: 116px; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; transform: translate(-50%, -50%) translate(var(--x), -95px);
  box-shadow: 0 14px 30px -10px #000; transition: opacity .5s; }
.sc-ed.s2 .ed-raw { opacity: .35; }
.ed-track { display: flex; width: 480px; height: 56px; border-radius: 10px; overflow: hidden; transform: translate(-50%, -50%) translate(-220px, 70px);
  transition: opacity .5s; gap: 2px; background: #000; }
.ed-piece { flex: 1; background-size: 32px 56px; background-repeat: repeat-x; }
.sc-ed.s2 .ed-track { opacity: .3; }
.ed-ruler { display: flex; justify-content: space-between; width: 480px; font-size: 11px; color: #777; transform: translate(-50%, -50%) translate(-220px, 112px); font-variant-numeric: tabular-nums; }
.ed-head { width: 2px; height: 76px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; transform: translate(-50%, -50%) translate(-460px, 70px);
  opacity: 0; transition: transform 1.6s linear, opacity .2s; }
.sc-ed.s1 .ed-head { opacity: 1; transform: translate(-50%, -50%) translate(20px, 70px); }
.sc-ed.s2 .ed-head { opacity: 0; }
.ed-pick { width: var(--w); height: 56px; border-radius: 8px; border: 2px solid #fff; background-size: 32px 56px; background-repeat: repeat-x;
  transform: translate(0, -50%) translate(var(--l), 70px); opacity: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.12);
  transition: opacity .25s calc(var(--i) * 300ms + 200ms), transform .7s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * 70ms), width .7s calc(var(--i) * 70ms), height .7s; }
.sc-ed.s1 .ed-pick { opacity: 1; }
.sc-ed.s3 .ed-pick { width: var(--tw); height: 40px; transform: translate(0, -50%) translate(var(--tl), 196px); transition-delay: calc(var(--i) * 70ms); }
.sc-ed.s4 .ed-pick:nth-of-type(1) { box-shadow: 0 0 0 4px #fff, 0 0 24px #fff; }
.sc-ed.s5 .ed-pick { animation: ed-step 1.6s steps(1) infinite; animation-delay: calc(var(--i) * 400ms); }
@keyframes ed-step { 0%, 24% { box-shadow: 0 0 0 4px #fff, 0 0 20px #fff; } 25%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,.12); } }
.ed-len { position: absolute; right: 7px; bottom: 7px; z-index: 2; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.ed-len.big { right: 10px; bottom: 10px; font-size: 16px; padding: 5px 11px; background: #fff; color: #000; }
.ed-arrow { font-size: 40px; font-weight: 300; color: #555; transform: translate(-50%, -50%) translate(80px, -40px); opacity: 0; transition: opacity .4s; }
.sc-ed.s3 .ed-arrow { opacity: 1; }
.ed-phone { width: 200px; aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; border: 5px solid #fff; background: #000;
  transform: translate(-50%, -50%) translate(300px, -30px) scale(.9); opacity: .12; transition: opacity .5s .4s, transform .6s .4s cubic-bezier(.3, 1.3, .5, 1); }
.sc-ed.s3 .ed-phone { opacity: 1; transform: translate(-50%, -50%) translate(300px, -30px); }
.ed-zoom { width: 100%; height: 100%; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.sc-ed.s5:not(.s6) .ed-zoom { transform: scale(1.45); }
.ed-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-ed.s4:not(.s5) .ed-flash { animation: ed-flash .5s ease-out; }
@keyframes ed-flash { from { opacity: .7; } to { opacity: 0; } }
.ed-co.hook { --x: 165px; --y: -170px; } .ed-co.zoom { --x: 440px; --y: -80px; } .ed-co.beat { --x: 100px; --y: 196px; }
.sc-ed.s4 .ed-co.hook, .sc-ed.s5 .ed-co.zoom, .sc-ed.s6 .ed-co.beat { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)); }
.ed-beat { display: flex; align-items: flex-end; gap: 3px; height: 26px; transform: translate(-50%, -50%) translate(300px, 244px); opacity: 0; transition: opacity .3s; }
.sc-ed.s5 .ed-beat { opacity: 1; }
.ed-beat i { width: 4px; height: 26px; border-radius: 2px; background: #fff; animation: lp-beat .8s ease-in-out infinite alternate; transform-origin: bottom; }

/* a stage drawn at 1000×560, scaled to the panel */
.ov-stage { position: absolute; left: 50%; top: 50%; width: 1000px; height: 560px; transform: translate(-50%, -50%) scale(var(--fit, 1)); }
.ov-stage > * { position: absolute; left: 50%; top: 50%; }

/* footage drifting by */
.lp-reel { margin-top: 90px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-reel-row { display: flex; gap: 14px; width: max-content; animation: lp-drift 60s linear infinite; }
.lp-reel-row img { width: 150px; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; }
@keyframes lp-drift { to { transform: translateX(-50%); } }

/* cards */
.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lp-big { background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 28px; padding: 18px 18px 28px; }
.lp-big h3 { font-size: 24px; margin: 22px 8px 8px; letter-spacing: -0.02em; }
.lp-big p { color: var(--muted); margin: 0 8px; font-size: 16px; }
.lp-big-media { height: 340px; border-radius: 20px; background: radial-gradient(70% 70% at 50% 20%, #242424, #111); display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.lp-big-media.col { flex-direction: column; gap: 10px; }
.lp-phone-mini { width: 170px; aspect-ratio: 9/16; border-radius: 24px; overflow: hidden; border: 4px solid #fff; }
.lp-tile { width: 28%; max-width: 140px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; }
.lp-tile:nth-child(2) { transform: translateY(-14px); }
.lp-wide { width: 72%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; }
.lp-cutline { display: flex; align-items: center; gap: 10px; width: 72%; background: #161616; border: 1px solid #262626; border-radius: 12px; padding: 9px 14px; font-size: 14px; }
.lp-cutline em { margin-left: auto; font-style: normal; color: var(--muted); }

.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #1f1f1f; border: 1px solid #1f1f1f; border-radius: 24px; overflow: hidden; margin-top: 40px; }
.lp-feat { background: #000; padding: 30px; }
.lp-feat h3 { margin: 16px 0 6px; font-size: 18px; }
.lp-feat p { margin: 0; color: var(--muted); }
.lp-ficon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #000; }
.lp-capbox { margin-top: 18px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 24px; padding: 28px; }
.lp-capbox h3 { margin: 0 0 8px; font-size: 22px; }
.lp-capbox p { margin: 0; color: var(--muted); }
.lp-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.lp-styles figure { margin: 0; }
.lp-styles img { width: 100%; border-radius: 12px; background: #000; }
.lp-styles figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }

.lp-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-steps li { background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 24px; padding: 28px; }
.lp-steps h3 { margin: 18px 0 6px; font-size: 19px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: #000; }

.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-plan { position: relative; display: flex; flex-direction: column; background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 24px; padding: 30px; }
.lp-plan.hot { border-color: #fff; }
.lp-plan h3 { margin: 0 0 12px; font-size: 18px; }
.lp-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.lp-price span { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.lp-plan ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.lp-plan li { padding: 6px 0 6px 26px; position: relative; color: #d0d0d0; }
.lp-plan li::before { content: "✓"; position: absolute; left: 2px; font-weight: 800; color: #fff; }
.lp-badge { position: absolute; top: -12px; right: 22px; background: #fff; color: #000; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; }

.lp-q { border-bottom: 1px solid #222; padding: 4px 0; }
.lp-q summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 18px; padding: 20px 36px 20px 0; position: relative; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--muted); transition: transform .2s; }
.lp-q[open] summary::after { transform: rotate(45deg); }
.lp-q p { margin: 0 0 20px; color: var(--muted); }

.lp-end { max-width: 1160px; margin: 120px auto 0; padding: 72px 20px; text-align: center; border-radius: 32px; background: #fff; color: #000; }
.lp-end h2 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 28px; font-weight: 750; }
.lp-foot { max-width: 1160px; margin: 0 auto; padding: 56px 20px 120px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.lp-foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; }
.lp-foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); text-decoration: none; }
.lp-foot a:hover { color: #fff; }
.lp-foot p { width: 100%; margin: 0; }

.lp-dock { position: fixed; left: 50%; bottom: 18px; z-index: 20; display: flex; gap: 10px; align-items: center; width: min(640px, calc(100% - 32px));
  transform: translate(-50%, 160%); transition: transform .35s ease; }
.lp-dock.on { transform: translate(-50%, 0); }
.lp-dock .lp-btn.upload { padding: 14px 22px; font-size: 16px; box-shadow: 0 16px 40px -10px #000; }
.lp-dock .lp-linkbox { flex: 1; width: auto; background: rgba(20,20,20,.92); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -10px #000; }

@media (max-width: 900px) {
  .lp-cards, .lp-feats, .lp-steps, .lp-plans, .lp-capbox { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding-top: 90px; }
}
@media (max-width: 640px) {
  .lp-navlink:not(a) { display: none; }
  .lp-hero { padding-top: 48px; }
  .lp-cta .lp-linkbox { width: 100%; }
  .lp-cta .lp-btn.upload { width: 100%; }
  .lp-dock .lp-linkbox { display: none; }
  .lp-dock .lp-btn.upload { width: 100%; }
  .lp-slide { width: calc(100vw - 40px); height: 520px; border-radius: 22px; }
  .lp-track { gap: 12px; }
  .lp-arrow { width: 40px; height: 40px; margin-top: -20px; top: auto; bottom: 14px; }
  .lp-arrow.prev { left: 32px; } .lp-arrow.next { right: 32px; }
  /* the scenes, smaller */
  .sc-raw { transform: translate(-50%, -50%) translate(calc(var(--x) * .62), calc(var(--y) * .9)) rotate(var(--r)); }
  .sc-phone { width: 210px; border-width: 4px; }
  .sc-card { width: 290px; transform: translate(-50%, -50%) translateY(-160px); }
  .sc-ask { width: 300px; font-size: 13px; }
  .sc-tile { width: 82px; }
  .sc-clips.s3 .sc-tile { transform: translate(-50%, -50%) translate(calc(var(--k) * 56px), calc(var(--a) * 8px)) rotate(calc(var(--k) * 5deg)); }
  .sc-fan { transform: translateY(120px); }
  .sc-time { font-size: 50px; }
  .sc-frame { width: 38px; height: 68px; background-size: 304px 68px; background-position: calc(var(--i) * -38px) 0; }
  .sc-rows { width: 300px; }
  .sc-caps .sc-phone { width: 170px; transform: translate(-50%, -50%) translateX(-82px); }
  .sc-words span { font-size: 14px; }
  /* the all-at-once stage is scaled as a whole: its pieces keep their full size */
  .ov-stage .sc-raw { width: 120px; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); }
  .ov-stage .sc-phone { width: 230px; border-width: 5px; }
  .ov-stage .sc-tile { width: 108px; }
  .sc-feats { gap: 10px; font-size: 14px; transform: translate(-50%, -50%) translateX(90px); }
  .lp-big-media { height: 280px; }
  .lp-reel-row img { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-reel-row, .ed-beat i, .ed-pick { animation: none; }
}

/* the scissors of the cut lists: red, as in the app */
.sc-row svg, .lp-cutline svg { color: #ff3b30; flex: none; }

/* -- the app, signed in: a side menu, black and white ---------------------------------------------- */
.page-title { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 750; }
body.app .brand span { display: inline; }
.side-link, .side-new, .side-credits { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 12px; font-weight: 600; }
nav a.side-link { padding: 11px 12px; color: var(--muted); font-size: 15px; border-radius: 12px; }
nav a.side-link:hover { color: var(--text); background: #111; }
nav a.side-link.on { color: var(--text); background: #1a1a1a; }
nav a.side-new { background: #fff; color: #000; padding: 12px; justify-content: center; font-weight: 700; margin-bottom: 10px; border-radius: 12px; }
nav a.side-credits { color: var(--text); background: #111; border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; border-radius: 12px; }
@media (min-width: 900px) {
  body.app .top { position: fixed; inset: 0 auto 0 0; width: 236px; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 26px; padding: 22px 16px; border-right: 1px solid var(--line); border-bottom: 0; background: #050505; backdrop-filter: none; }
  body.app nav { flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; }
  body.app nav a.side-credits { margin-top: auto; }
  body.app main { margin: 0 0 0 236px; max-width: none; padding: 36px max(44px, calc((100vw - 236px - 1200px) / 2)) 80px; }
}
@media (max-width: 899px) {
  /* a blur on the header would hold the fixed tab bar inside it */
  body.app .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: #000; }
  body.app nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; justify-content: space-around; flex-wrap: nowrap; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  body.app nav a.side-link { flex-direction: column; gap: 3px; padding: 6px 8px; font-size: 11px; }
  body.app nav a.side-new { margin: 0; padding: 10px 14px; align-self: center; }
  body.app nav a.side-new span, body.app nav a.side-credits { display: none; }
  body.app main { padding-bottom: 150px; }
  body.app .bar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 14px; }
}

/* home: one big place to drop a video */
.home-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 24px; border-radius: 28px; cursor: pointer;
  border: 1.5px dashed #333; background: radial-gradient(70% 90% at 50% 0%, #171717, #070707); transition: border-color .15s; }
.home-drop:hover, .home-drop.over { border-color: #fff; }
.home-drop h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.home-drop p { margin: 0 0 12px; }
.home-drop-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; }
.home-link { margin-top: 10px; width: min(460px, 100%); cursor: auto; }

/* the new edit: the footage on the left, the choices beside it */
.create { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 28px; align-items: start; }
.create-side { background: #0b0b0b; border: 1px solid var(--line); border-radius: 24px; padding: 4px 22px 22px; position: sticky; top: 24px; }
.create .drop { min-height: 440px; border: 1.5px dashed #333; background: radial-gradient(70% 90% at 50% 0%, #171717, #070707); border-radius: 24px; }
.create .drop:hover, .create .drop.over { border-color: #fff; }
.picked { flex-direction: column; align-items: stretch; padding: 0; background: none; gap: 12px; }
.picked-media { position: relative; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.picked .picked-media video, .picked .picked-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 0; display: block; }
.picked-info { padding: 0 4px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cap-grid button { border: 2px solid transparent; background: #161616; border-radius: 12px; padding: 6px; cursor: pointer; font-size: 12px; font-weight: 650; color: var(--text); }
.cap-grid button.on { border-color: #fff; }
.cap-grid img { width: 100%; border-radius: 8px; display: block; margin-bottom: 5px; background: #000; }
.cap-grid button.none { display: grid; place-items: center; min-height: 64px; }
.create-side .chips select { color: var(--text); }
@media (min-width: 900px) {
  .create-side .bar { position: static; padding: 0; margin-top: 22px; background: none; border: 0; backdrop-filter: none; }
  .create-side .bar > div { max-width: none; }
}
@media (max-width: 899px) { .create { grid-template-columns: minmax(0, 1fr); } .create-side { position: static; } .create .drop { min-height: 260px; } }

/* waiting: one card, the percentage large */
.wait-card { max-width: 640px; margin: 40px auto; text-align: center; background: #0b0b0b; border: 1px solid var(--line); border-radius: 28px; padding: 40px 32px; }
.wait-title { font-size: 30px; margin: 6px 0 4px; letter-spacing: -0.02em; }
.wait-pct { font-size: 72px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.progress.big { height: 10px; }
.wait-steps { list-style: none; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 0; margin: 26px 0 14px; }
.wait-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.wait-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #1c1c1c; }
.wait-steps li.on { color: var(--text); } .wait-steps li.on span { background: #fff; color: #000; }
.wait-steps li.done span { background: #2a2a2a; color: #fff; }

/* the result: the video on the left, the clips, cuts and changes beside it */
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.result.solo { grid-template-columns: minmax(0, 1fr); }
.player-wrap { position: relative; }
.player-wrap .player { max-height: 78vh; border: 1px solid var(--line); }
.player-wrap .ed-len.big { top: 12px; bottom: auto; right: 12px; }
.result-side .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.result-side .card, .cut { border-color: var(--line); }
@media (max-width: 899px) { .result { grid-template-columns: minmax(0, 1fr); } }

/* the shop */
.pack-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px;
  background: #0b0b0b; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.lp-price.small { font-size: 24px; margin-right: 6px; }
.checks.two { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .checks.two { columns: 1; } }

/* signing in: the form on the left, an edit playing on the right */
.auth { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1120px; margin: 24px auto; min-height: calc(100vh - 170px); }
.auth-title { font-size: 40px; letter-spacing: -0.035em; margin: 0 0 8px; font-weight: 750; }
.auth-visual { position: relative; height: 580px; border-radius: 32px; overflow: hidden; border: 1px solid #1f1f1f; background: radial-gradient(70% 70% at 50% 30%, #222, #0b0b0b); }
.auth-phone { position: absolute; left: 50%; top: 50%; width: 250px; aspect-ratio: 9/16; transform: translate(-50%, -50%); border: 5px solid #fff; border-radius: 34px; overflow: hidden; background: #000; }
.auth-raw { position: absolute; width: 140px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -10px #000; opacity: .85; }
.auth-phone video, .auth-raw video { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-raw.a { left: 8%; top: 12%; transform: rotate(-8deg); } .auth-raw.b { right: 8%; bottom: 12%; transform: rotate(7deg); }
.sc-co.auth-co { position: absolute; left: calc(50% - 175px); top: 20%; opacity: 1; transform: none; }
@media (max-width: 899px) { .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; } .auth-visual { display: none; } }
.picked-media .ed-len { top: 10px; bottom: auto; right: 10px; }
.info-card { background: #0b0b0b; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.info-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #161616; }
.info-row span { color: var(--muted); }
