/* VOD Cutters v2. Tokens and rationale: PLAN.md */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --wash: #f3f4f6;
  --ink: #17191f;
  --muted: #5f6472;
  --line: #e2e4ea;
  --marker: #ffd93b;
  --live: #e0352b;
  --wide: 116%;
  --measure: 34em;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-stretch: var(--wide); letter-spacing: -0.012em; margin: 0; }
h1 { font-weight: 800; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.02; max-width: 15.5em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; max-width: 20em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: var(--measure); }
.fine { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fine a { color: var(--ink); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 28px;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark img { width: auto; height: 1.6em; }   /* Gemini mark: a cut through a wide frame */
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top > .btn { margin-left: auto; }
.top nav + .btn { margin-left: 0; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
.top nav a:hover { color: var(--ink); }

/* ---------- buttons + forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: inherit; font-weight: 700; font-size: 17px; white-space: nowrap;
}
.btn:hover { background: #2b2e37; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.sample { margin-top: 26px; max-width: 760px; }
.sample .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.sample .actions { margin-top: 12px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 5px 2px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #c9ccd5; border-radius: 10px;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
}
.field input::placeholder { color: #6b7080; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 25, 31, .14); }
.field input[aria-invalid="true"] { border-color: var(--live); }
.sample .fine { margin-top: 12px; max-width: 46em; }
.status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.status.error { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 6vh, 80px); padding-bottom: clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-mock { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 320px; justify-self: center;
  --s: 1; --z: 1; --c: 1; --h: 1; }
.hero-mock .screen { position: absolute; inset: 0; }
.hero-mock .timeline, .hero-mock .live { display: none; }
.hero-mock:empty { display: none; }
.hero .lede { margin-top: 18px; }

/* ---------- the scroll story ---------- */
.story { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-track { position: relative; }
.story-sticky {
  max-width: var(--page); margin: 0 auto; padding: 56px var(--gutter);
  display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.story-copy h2 { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); }
.steps li::before {
  content: attr(data-n); position: absolute; left: 0; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps p { color: var(--muted); font-size: 16px; margin-top: 4px; max-width: 30em; }

.js .story-track { height: 420vh; }
.js .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.js .steps li { opacity: .38; transition: opacity .25s; }
.js .steps li.is-on { opacity: 1; }
.js .steps li.is-on::before { background: var(--marker); }

.stage { position: relative; height: min(76vh, 700px); min-height: 360px; --s: 1; --z: 1; --c: 1; --h: 1; }
.stage .screen { left: 50%; top: 0; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-50%); }   /* no-JS: the finished clip */
.js .stage .screen { transform: none; aspect-ratio: auto; }
.screen {
  position: absolute; overflow: hidden; background: #0f1116;
  border-radius: calc(8px + var(--c) * 26px);
  box-shadow: 0 0 0 calc(var(--c) * 7px) var(--ink), 0 24px 60px rgba(23, 25, 31, calc(.12 + var(--c) * .14));
}
.scene { position: absolute; left: 0; top: calc(var(--c) * 46%);
  width: calc(76% + var(--c) * 24%); height: calc(100% - var(--c) * 46%); }
.scene svg { width: 100%; height: 100%; display: block; }
.chat {
  position: absolute; right: 0; top: 0; width: 24%; height: 100%;
  background: #191b22; border-left: 1px solid #262833; padding: 10px 8px; overflow: hidden;
  transform: translateX(calc(var(--c) * 105%)); opacity: calc(1 - var(--c));
  font-size: clamp(8px, .95vw, 11.5px); line-height: 1.35; color: #c9ccd6; font-stretch: 100%;
}
.chat p { margin: 0 0 6px; overflow-wrap: anywhere; }
.chat b { font-weight: 700; }
.chat .a { color: #7fd6ff; } .chat .b { color: #ff9ad5; } .chat .c { color: #9dff8a; } .chat .d { color: #ffc46b; }
.cam {
  position: absolute; overflow: hidden; background: linear-gradient(160deg, #e9e2d8, #cfc4b6);
  left: calc((1 - var(--c)) * 2.4%); top: calc((1 - var(--c)) * 4%);
  width: calc(25% + var(--c) * 75%); height: calc(25% + var(--c) * 21%);
  border-radius: calc((1 - var(--c)) * 6px); box-shadow: 0 0 0 calc((1 - var(--c)) * 2px) rgba(255, 255, 255, .9);
}
.cam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.live {
  position: absolute; left: 3%; bottom: 5%; z-index: 3; opacity: calc(1 - var(--c));
  display: flex; align-items: center; gap: 6px;
  background: rgba(15, 17, 22, .78); color: #fff; border-radius: 4px; padding: 3px 8px;
  font-size: clamp(9px, 1vw, 12px); font-weight: 700; font-variant-numeric: tabular-nums;
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.hook, .caps {
  position: absolute; left: 50%; width: 92%; text-align: center; z-index: 4;
  transform: translate(-50%, calc((1 - var(--h)) * 10px)); opacity: var(--h);
  font-stretch: 125%; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .8);
}
.hook { top: 47.5%; font-weight: 800; font-size: clamp(13px, 1.55vw, 21px); line-height: 1.15; }
.hook span { display: block; color: var(--marker); font-weight: 700; font-size: .78em; margin-top: 4px; }
.caps { top: 66%; font-weight: 900; font-size: clamp(17px, 2.2vw, 30px); line-height: 1; letter-spacing: .01em;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .6); }
.caps em { font-style: normal; color: var(--marker); }

.timeline {
  position: absolute; height: 54px; opacity: calc(1 - var(--c) * 4);
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.bar { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 5px; background: #d7dae1; overflow: visible; }
.bar .done { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--s) * 100%); border-radius: 5px; background: #aeb3bf; }
.head { position: absolute; top: -7px; width: 3px; height: 24px; left: calc(var(--s) * 100%); background: var(--live); border-radius: 2px; }
.mark { position: absolute; top: -3px; height: 16px; width: 10px; margin-left: -5px; border-radius: 3px;
  background: var(--paper); box-shadow: inset 0 0 0 2px #aeb3bf; transition: background .2s, box-shadow .2s; }
.mark.found { background: var(--marker); box-shadow: inset 0 0 0 2px var(--ink); }
.mark.pick { transform: scaleX(calc(1 + var(--z) * 2.2)); }
.t0 { position: absolute; left: 0; top: 36px; }
.t1 { position: absolute; right: 0; top: 36px; }
.cut-label { position: absolute; top: -30px; transform: translateX(-50%); white-space: nowrap; opacity: var(--z);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; padding: 3px 8px; border-radius: 5px; }

/* ---------- sections ---------- */
.block { padding-top: clamp(64px, 10vh, 112px); padding-bottom: clamp(64px, 10vh, 112px); }
.intro { color: var(--muted); max-width: var(--measure); margin-top: 16px; font-size: 19px; }
.block.tint { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* YouTube facades: nothing loads from YouTube except the thumbnail until someone presses play */
.yt {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: #0f1116; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.yt::after {   /* play button */
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2317191f'/%3E%3C/svg%3E") 55% 50%/30px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.yt:hover::after { transform: scale(1.06); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.r169 { aspect-ratio: 16 / 9; }
.r916 { aspect-ratio: 9 / 16; }

.compare-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: end; margin-top: 40px; }
.compare-grid figure { margin: 0; }
.compare-grid figcaption { margin-top: 12px; font-size: 16px; color: var(--muted); }
.compare-grid figcaption b { color: var(--ink); display: block; font-size: 17px; }

.stat { font-stretch: var(--wide); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; max-width: 26em; margin-top: 20px; }
.shorts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shorts p { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.shorts p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.results-fine { margin-top: 24px; max-width: 52em; }

.gets { list-style: none; margin: 36px 0 0; padding: 0; columns: 2; column-gap: 56px; max-width: 900px; }
.gets li { break-inside: avoid; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); position: relative; }
.gets li::before {   /* a tick in the clip shape */
  content: ""; position: absolute; left: 4px; top: 17px; width: 11px; height: 18px; border-radius: 3px;
  background: var(--marker); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.gets-note { margin-top: 28px; font-size: 17px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; max-width: 920px; }
.plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.lead { border-color: var(--ink); }
.plan h3 { font-size: 22px; }
.plan .tagline { color: var(--muted); margin-top: 6px; font-size: 16px; }
.price { margin-top: 18px; font-stretch: var(--wide); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.price small { font-stretch: 100%; font-weight: 500; font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; margin: 22px 0 24px; padding: 0; flex: 1; }
.plan li { padding: 9px 0 9px 30px; border-top: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 18px; border-radius: 3px;
  background: var(--marker); box-shadow: inset 0 0 0 1.5px var(--ink); }
.plan .btn { width: 100%; }
.plan .alt { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.plans-note { margin-top: 22px; max-width: 52em; }

.faq { max-width: 820px; margin-top: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 40em; }

.final { padding-bottom: clamp(72px, 12vh, 128px); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 56px; display: grid;
  grid-template-columns: 1fr 1.6fr; gap: 24px 48px; font-size: 15px; }
.foot .wordmark { font-size: 18px; }
.foot address { font-style: normal; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .fine { margin-top: 14px; }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc p, .doc li { color: #2f333d; margin-top: 12px; }
.doc ul { padding-left: 22px; }

/* ---------- welcome / onboarding ---------- */
.welcome .next { padding-left: 22px; }
.welcome .next li { margin-top: 10px; }
.onboard { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.onboard .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 18px; }
.onboard > .field, .onboard fieldset { margin-top: 18px; }
.onboard fieldset { border: 0; padding: 0; }
.onboard legend { font-size: 14px; font-weight: 600; margin: 0 0 6px 2px; padding: 0; }
.field .choice { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 400;
  padding: 6px 2px; cursor: pointer; }
.field .choice input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0;
  border: 0; box-shadow: none; accent-color: var(--ink); }
.onboard textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #c9ccd5; border-radius: 10px;
  font: inherit; font-size: 17px; color: var(--ink); resize: vertical; }
.onboard textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 25, 31, .14); }
.onboard .actions { margin-top: 22px; }
.onboard .fine { margin-top: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mock { display: none; }
  .top nav { display: none; }
  .top .wordmark { font-size: 18px; }
  .top .btn { margin-left: auto; }
  .sample .row { grid-template-columns: 1fr; }
  .onboard .row { grid-template-columns: 1fr; }
  .onboard .btn { width: 100%; }
  .sample .btn { width: 100%; }
  .sample .row { grid-template-columns: 1fr; }
  .onboard .row { grid-template-columns: 1fr; }
  .onboard .btn { width: 100%; }
  .story-sticky { grid-template-columns: 1fr; align-content: start; gap: 18px; padding-top: 28px; padding-bottom: 20px; }
  .js .story-copy h2 { font-size: 24px; margin-bottom: 8px; }
  .js .steps li { display: none; border: 0; padding-top: 6px; }
  .js .steps li.is-on { display: block; }
  .js .steps li::before { top: 6px; }
  .stage { height: 58vh; height: 58svh; min-height: 300px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid .cut { max-width: 300px; }
  .shorts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shorts li { scroll-snap-align: start; }
  .gets { columns: 1; }
  .plans { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* short laptop screens (768-820px tall): the whole form, button included, fits on the first screen */
@media (min-width: 901px) and (max-height: 840px) {
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(36px, 4.6vw, 60px); }
  .hero .lede { font-size: 19px; margin-top: 14px; }
  .sample { margin-top: 20px; }
  .sample .row { gap: 8px 10px; }
  .field input { min-height: 46px; }
  .sample .actions { margin-top: 10px; }
  .sample .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .story-track { height: auto; }
  .js .story-sticky { position: static; height: auto; }
  .js .steps li { opacity: 1; display: block; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
