/* Cutline waitlist: direction C "The split" (picked 2026-10-23), in the app's Flatbed look. */
:root {
  --bg: #0B0A09; --ink: #F3EFE6; --grey: #D1CDC6; --mute: #8F897C; --amber: #F7C96B;
  --line: rgba(243, 239, 230, .5); --hair: rgba(243, 239, 230, .16); --panel: #161412;
  --ease: cubic-bezier(.2, .8, .2, 1); --drop: cubic-bezier(.3, 1.05, .4, 1);
  --din: "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --ui: "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink); font: 500 17px/1.4 var(--ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
input { -webkit-user-select: text; user-select: text; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.din { font-family: var(--din); font-weight: 700; text-transform: uppercase; font-stretch: condensed; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page { max-width: 1240px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }

/* Brand: the icon's mark + CUTLINE drawn from its tubes, one image in the icon's liquid metal (tools/logo.py).
   The image carries 3 px of glow on every side, pulled back with negative margins. */
.brand { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.brand > a { display: block; }
.brand .logo { display: block; height: 58px; width: auto; margin: -3px 0 -3px -3px; }
.brand .soon { margin-left: auto; font-size: 15px; color: var(--grey); }

/* Hero */
.hero h1 { margin-top: 30px; font-size: clamp(150px, 44vw, 240px); line-height: .8; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lead { margin-top: 16px; font-size: 17px; color: var(--grey); max-width: 30em; }

/* The split: a real clip from the app, cut by the playhead, CapCut's price on one side. */
.cut { position: relative; height: 124px; margin: 26px -16px 0; }
.half {
  position: absolute; top: 22px; height: 62px; width: calc(50% - 37.5px); border-radius: 6px;
  background: url(/assets/strip.png) no-repeat; background-size: 397px 200px;
}
.half.l { left: 12px; background-position: -70px -75px; box-shadow: 0 0 0 2px rgba(243, 239, 230, .25); }
.half.r { right: 12px; background-position: -170px -75px; box-shadow: 0 0 0 3px var(--ink), 0 0 26px rgba(255, 255, 255, .3); }
.gate { position: absolute; left: calc(50% - 1.5px); top: 0; height: 100px; width: 3px; background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .9), 0 0 30px rgba(255, 255, 255, .4); }
.gate::before { content: ""; position: absolute; top: -2px; left: -6px; width: 15px; height: 12px; border-radius: 3px; background: #fff; }
.bridge { position: absolute; top: 48px; left: calc(50% - 25.5px); width: 51px; height: 10px; border-radius: 5px;
  background: rgba(243, 239, 230, .7); filter: blur(1px); opacity: 0; }
.cap { position: absolute; top: 92px; font-size: 14px; line-height: 1.3; color: var(--grey); }
.cap b { display: inline-block; position: relative; color: var(--ink); font-weight: 600; }
.cap.cl { left: 16px; } .cap.cr { right: 16px; text-align: right; }
.cap .strike::after { content: ""; position: absolute; left: -1px; right: -1px; top: 52%; height: 2px; background: var(--ink); transform-origin: left; }

/* Signup */
.signup { margin-top: 18px; }
.swap { position: relative; transition: height .34s var(--ease); }
.panel { transition: opacity .26s var(--ease), transform .26s var(--ease); }
.panel[hidden] { display: block; position: absolute; inset: 0 0 auto 0; opacity: 0; pointer-events: none; visibility: hidden; }
.panel.leave-up { opacity: 0; transform: translateY(-18px); }
/* Returning visitor: the head script marks the page done before paint, so the form never flashes. */
html[data-instant][data-state="done"] .panel.form { display: none; }
html[data-instant][data-state="done"] .panel.done { position: static; opacity: 1; visibility: visible; pointer-events: auto; }
.panel.enter-low { opacity: 0; transform: translateY(18px); }

.seg { position: relative; display: flex; gap: 8px; }
.seg .ind { position: absolute; left: 0; top: 0; height: 44px; border-radius: 12px; background: var(--ink); pointer-events: none;
  transition: transform .26s var(--drop), width .26s var(--drop); }
.chip {
  position: relative; flex: 1; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line);
  font-size: 16px; font-weight: 600; transition: color .12s linear .1s, border-color .15s var(--ease), transform .15s var(--ease);
}
.chip[aria-checked="true"] { color: var(--bg); border-color: transparent; }
.chip:active { transform: scale(.97); }
.field {
  display: block; width: 100%; margin-top: 10px; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 500 17px var(--ui); outline: none;
  transition: border-color .15s var(--ease); -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--mute); }
.field:focus { border-color: var(--ink); }
form[data-error="true"] .field { border-color: var(--amber); }
.msg { min-height: 22px; padding-top: 4px; font-size: 14px; color: var(--amber); transition: opacity .15s var(--ease), transform .15s var(--ease); }
form[data-error="false"] .msg, form:not([data-error]) .msg { opacity: 0; transform: translateY(-4px); }
.go {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; height: 56px;
  border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 600; transition: transform .15s var(--ease);
}
.go:active { transform: scale(.98); }
/* Sending: a playhead line runs across the button. */
.go::after { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 100%; opacity: 0;
  background: linear-gradient(to right, transparent calc(100% - 3px), var(--bg) calc(100% - 3px)); }
.go span { transition: opacity .15s var(--ease); }
html[data-state="sending"] .go span { opacity: .55; }
html[data-state="sending"] .go::after { opacity: 1; animation: sweep .9s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { margin-top: 12px; text-align: center; font-size: 14px; color: var(--grey); }
.fine a { text-underline-offset: 3px; }

/* Done */
.done h2 { font-size: 46px; line-height: .95; }
.done .to { margin-top: 8px; font-size: 16px; color: var(--grey); overflow-wrap: anywhere; }
.done .to b { color: var(--ink); font-weight: 600; }
.ask { margin-top: 18px; font-size: 15px; color: var(--grey); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 16px; font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.opt[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt:active { transform: scale(.97); }
.thanks { min-height: 22px; margin-top: 8px; font-size: 14px; color: var(--grey); opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease); }
html[data-answered="true"] .thanks { opacity: 1; transform: none; }
.again { margin-top: 6px; height: 44px; font-size: 15px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }

/* Real screens */
.shots { margin-top: 44px; }
.shots h2 { font-size: 30px; line-height: 1; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.row figure { opacity: 0; transform: translateY(14px); transition: opacity .34s var(--ease), transform .34s var(--ease); }
.row figure:nth-child(2) { transition-delay: .025s; } .row figure:nth-child(3) { transition-delay: .05s; }
.row.in figure { opacity: 1; transform: none; }
.row img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hair); }
.row figcaption { margin-top: 6px; font-size: 14px; color: var(--grey); }
.foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hair); display: flex; gap: 16px; font-size: 14px; color: var(--grey); }
.foot a { text-underline-offset: 3px; }

/* Entrance and the split, played once on load. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-instant]) .hero h1 .l1 { animation: wipe .5s var(--ease) both .05s; }
  html:not([data-instant]) .hero h1 .l2 { animation: wipe .5s var(--ease) both .18s; }
  html:not([data-instant]) .lead, html:not([data-instant]) .signup { animation: rise .34s var(--ease) both .3s; }
  html:not([data-instant]) .gate { animation: drop .3s var(--ease) both .55s; }
  html:not([data-instant]) .half.l { animation: partL .52s var(--drop) both .9s; }
  html:not([data-instant]) .half.r { animation: partR .52s var(--drop) both .9s, light .26s var(--ease) both 1.35s; }
  html:not([data-instant]) .bridge { animation: bridge .62s var(--ease) both .9s; }
  html:not([data-instant]) .cap { animation: rise .26s var(--ease) both 1.3s; }
  html:not([data-instant]) .cap.cr { animation-delay: 1.33s; }
  html:not([data-instant]) .cap .strike::after { animation: strike .3s var(--ease) both 1.5s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .cut, .signup { animation: fade .2s linear both; }
  .panel, .swap, .seg .ind, .row figure { transition-duration: .01s; }
}
/* Negative top/bottom insets: DIN's glyphs rise above the .8 line box and must not be cut. */
@keyframes wipe { from { clip-path: inset(-30% 100% -30% 0); transform: translateX(-12px); } to { clip-path: inset(-30% -2% -30% 0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes partL { from { transform: translateX(25.5px); } to { transform: none; } }
@keyframes partR { from { transform: translateX(-25.5px); } to { transform: none; } }
@keyframes light { from { box-shadow: 0 0 0 2px rgba(243, 239, 230, .25); } to { box-shadow: 0 0 0 3px var(--ink), 0 0 26px rgba(255, 255, 255, .3); } }
@keyframes bridge {
  0% { opacity: 1; transform: scaleX(.05) scaleY(1); }
  60% { opacity: 1; transform: scaleX(.85) scaleY(.45); }
  72% { opacity: .9; transform: scaleX(1) scaleY(.2); }
  100% { opacity: 0; transform: scaleX(1) scaleY(0); }
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Desktop: hero on the left, signup and screens on the right. */
@media (min-width: 900px) {
  .page { padding: 28px 40px 40px; }
  .main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
  .hero h1 { margin-top: 64px; font-size: clamp(200px, 19vw, 260px); }
  .cut { margin: 34px 0 0; max-width: 520px; }
  .right { padding-top: 34px; }
  .signup { margin-top: 0; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--hair); }
  .shots { margin-top: 28px; }
}

/* Plain pages (privacy, 404, stats). */
.doc { max-width: 680px; }
.doc h1 { margin-top: 36px; font-size: 64px; line-height: .9; }
.doc h2 { margin-top: 28px; font-size: 26px; line-height: 1; }
.doc p, .doc li { margin-top: 10px; color: var(--grey); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc .row2 { display: flex; gap: 8px; margin-top: 12px; }
.doc .row2 .field { margin-top: 0; flex: 1; }
.doc .row2 .go { width: auto; padding: 0 20px; height: 54px; }
.note { min-height: 22px; margin-top: 6px; font-size: 14px; color: var(--grey); }
.note.bad { color: var(--amber); }
.big404 { margin-top: 18vh; font-size: clamp(120px, 34vw, 220px); line-height: .8; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; margin-top: 22px;
  border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
