/* The start page (home.html), modeled on usefastlane.ai's layout in Ad Studio's tokens (DESIGN.md):
   off-white paper, charcoal ink, terracotta signal, the pixel field. Standalone on purpose: landing.css
   (the full page) uses .formats, .chip, .rules and .hero for other things. Buttons, the FAQ, the
   signup, the dialog and the footer match landing.css so both pages read the same. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--signal-soft); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.mono-line { font: 500 12px/1.5 var(--mono); color: var(--muted); margin: 0; }
.kicker { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 700 clamp(46px, 7.4vw, 100px)/0.94 var(--display); letter-spacing: -0.045em; }
h2 { font: 650 clamp(34px, 5vw, 72px)/1 var(--display); letter-spacing: -0.035em; }
h3 { font: 600 18px/1.3 var(--body); }
p { margin: 0; }
.sub { font-size: 17px; color: var(--ink-2); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 48px; padding: 0 16px; }

/* Buttons: primary solid ink with a signal arrow, secondary white with a rule border, pill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 120ms ease-out, filter 120ms ease-out; }
.btn:not(:has(.arrow)) { padding: 0 16px; }
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--signal); color: var(--ink); font: 600 14px/1 var(--body); transition: transform 160ms ease-out; }
.btn:hover .arrow { transform: translateX(2px); }
.btn.ghost { background: var(--sheet); color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.large { height: 50px; padding: 0 10px 0 24px; font-size: 16px; }
.btn.large .arrow { width: 32px; height: 32px; }
.btn.xl { height: 62px; padding: 0 12px 0 30px; font-size: 18px; gap: 14px; }
.btn.xl .arrow { width: 40px; height: 40px; font-size: 18px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 320ms ease-out, transform 320ms ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .how-step .ui-cut, .how-step .ui-card, .how-step .ui-note { transition: none; } }

/* ---------- nav: clear over the hero, a floating pill once scrolled ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 30; padding: 0 16px; pointer-events: none; }
.nav-bar { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid transparent; transition: background 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out, max-width 280ms ease-out; }
.nav.scrolled .nav-bar { max-width: 920px; background: color-mix(in srgb, var(--sheet) 92%, transparent); backdrop-filter: blur(12px); border-color: var(--rule); box-shadow: 0 10px 28px rgba(10, 11, 14, 0.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.brand svg .s1, .rail-runner .s1 { fill: var(--signal); }
.brand svg .s2, .rail-runner .s2 { fill: var(--ink); }
.links { display: flex; gap: 2px; justify-content: center; }
.links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.links a:hover { background: var(--rule); color: var(--ink); }
.actions { display: flex; gap: 8px; align-items: center; }

/* ---------- hero: the pixel field fills it, the claim under it is plain paper ---------- */
.hero-field { position: absolute; inset: 0; }
.px-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero { position: relative; min-height: clamp(600px, 100vh, 1000px); min-height: clamp(600px, 100svh, 1000px); padding: 96px 16px 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-copy { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 52ch; margin: 24px 0 32px; }
/* The copy rises in behind the load's flicker. */
@media (prefers-reduced-motion: no-preference) {
  .hero.intro .hero-copy > * { animation: hero-in 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .hero.intro h1 { animation-delay: 260ms; }
  .hero.intro .lede { animation-delay: 430ms; }
  .hero.intro .btn { animation-delay: 580ms; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.round { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--sheet); display: grid; place-items: center; cursor: pointer; transition: border-color 120ms ease-out, background 120ms ease-out, transform 120ms ease-out; }
.round svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { border-color: var(--ink); }
.round.ok:hover { background: var(--ok-soft); border-color: var(--ok); }
.round.ok:hover svg { stroke: var(--ok); }
.round:active { transform: translateY(1px); }

/* ---------- claim: the line, the hub, the call ---------- */
.claim { position: relative; z-index: 1; padding: 40px 16px 150px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.claim-copy { max-width: 940px; margin: 0 auto; }
.hub { position: relative; width: min(1000px, 100%); aspect-ratio: 1000 / 440; margin: 56px auto 64px; --hub: 128px; --node: 84px; }
.hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-wire { stroke: var(--signal); stroke-linecap: round; fill: none; transition: opacity 200ms ease-out; }
.hub-dot { fill: var(--signal); transition: opacity 160ms ease-out; }
.hub-core, .hub-node { position: absolute; transform: translate(-50%, -50%); opacity: 0; scale: 0.6; transition: opacity 360ms ease-out, scale 560ms cubic-bezier(.2, 1.5, .35, 1); }
.hub-core.on, .hub-node.on { opacity: 1; scale: 1; }
.hub-disc { position: relative; display: grid; place-items: center; border-radius: 999px; }
.hub-core .hub-disc { width: var(--hub); height: var(--hub); background: var(--ink); box-shadow: 0 18px 40px rgba(10, 11, 14, 0.18); }
.hub-core .hub-disc svg { width: 46%; height: 46%; }
.hub-core .s1 { fill: var(--signal); }
.hub-core .s2 { fill: var(--paper); }
.hub-core b { position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--paper); font: 700 22px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.hub-node .hub-disc { width: var(--node); height: var(--node); background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 10px 24px rgba(10, 11, 14, 0.08); }
.hub-node .hub-disc svg { width: 42%; height: 42%; }
.hub-label { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); font: 500 13px/1 var(--body); color: var(--ink-2); white-space: nowrap; }
.hub[data-layout="narrow"] .hub-node.in .hub-label { top: auto; bottom: calc(100% + 10px); }
.hub[data-layout="narrow"] .hub-label { font-size: 12px; padding: 5px 10px; }
.hub[data-layout="narrow"] .hub-core b { font-size: 16px; }
/* A ring when a wire arrives. */
.pulse > .hub-disc::after { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid var(--signal); animation: hub-ring 760ms ease-out forwards; pointer-events: none; }
@keyframes hub-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .hub-core, .hub-node { transition: none; } .pulse > .hub-disc::after { animation: none; opacity: 0; } }

/* ---------- logo banner ---------- */
.logowall { padding: 72px 0 24px; text-align: center; }
.logowall .kicker { margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 96px; width: max-content; animation: marquee 48s linear infinite; }
.logo-item { flex: none; }
.logo-item svg { height: 38px; width: auto; display: block; fill: var(--muted); opacity: 0.85; }
.logo-item text { font: 700 27px/1 var(--display); letter-spacing: -0.03em; }
.logo-item .cut { fill: var(--paper); }
.marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- formats: two rows of ads ---------- */
.formats { padding: 120px 0 0; }
.reel { display: grid; gap: 20px; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.reel-row { overflow: hidden; }
.reel-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; animation: reel 90s linear infinite; }
.reel-row[data-dir="right"] .reel-track { animation-direction: reverse; animation-duration: 104s; }
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel-card { position: relative; flex: none; width: 236px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--sheet-2); border: 1px solid var(--rule); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-card .cap { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); width: max-content; max-width: 82%; text-align: center; font: 600 16px/1.25 var(--body); color: var(--ink); background: var(--sheet); border-radius: 8px; padding: 6px 10px; text-wrap: balance; }
.reel-card .cap.outline { background: none; color: var(--sheet); paint-order: stroke fill; -webkit-text-stroke: 3px var(--ink); font-size: 19px; letter-spacing: 0.01em; }
.reel-card .cap span { opacity: 0; transition: opacity 120ms ease-out; }
.reel-card .cap span.on { opacity: 1; }
.reel-card .who { position: absolute; left: 12px; top: 12px; font: 600 12px/1 var(--body); color: var(--ink); background: color-mix(in srgb, var(--sheet) 86%, transparent); backdrop-filter: blur(6px); padding: 6px 9px; border-radius: 999px; }
.reel-card .tag { position: absolute; left: 12px; bottom: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); background: rgba(20, 22, 27, 0.72); backdrop-filter: blur(8px); padding: 8px 11px; border-radius: 999px; }

/* ---------- how it works: steps and the progress line ---------- */
.how { max-width: 1240px; margin: 0 auto; padding: 96px 44px 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.35; transition: opacity 320ms ease-out; }
.how-step.on { opacity: 1; }
.how-step h3 { font: 650 clamp(30px, 3.2vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 14px; }
.how-step h3 .n { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.how-step > p { font-size: 17px; color: var(--ink-2); max-width: 52ch; }
/* Each step's clip of the platform at work (scripts/landing-clips.ts); the step in view plays. */
.demo.clip { max-width: 820px; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(10, 11, 14, 0.05), 0 24px 50px rgba(10, 11, 14, 0.1); background: var(--sheet-2); }
.demo.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-rail { position: sticky; top: calc(50vh - 280px); height: 560px; align-self: start; margin-top: 18vh; }
.rail { position: relative; width: 100%; height: 100%; }
.rail-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail-pill { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--sheet); font: 600 14px/1 var(--body); color: var(--muted); white-space: nowrap; cursor: pointer; transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out; z-index: 2; }
.rail-pill i { width: 8px; height: 8px; border-radius: 999px; background: var(--rule-2); }
.rail-pill[data-state="done"] { color: var(--ink-2); }
.rail-pill[data-state="done"] i { background: var(--ink); }
.rail-pill[data-state="active"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rail-pill[data-state="active"] i { background: var(--signal); }
.rail-runner { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule-2); display: grid; place-items: center; z-index: 3; pointer-events: none; }
.rail-runner svg { width: 26px; height: 26px; }

/* The cards under each step: the platform's own UI (the fixture company Acme, shot by
   scripts/landing-ui.ts) as a faded view, with the widgets the step is about cut out of it and lifted
   in front. Positions and the view's zoom come from each card's inline --x, --y, --w, --zoom, --pos. */
.demo { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; max-width: 520px; margin-top: 12px; display: grid; gap: 14px; }
.demo.ui { position: relative; display: block; padding: 0; aspect-ratio: 16 / 10; background: var(--sheet-2); overflow: hidden; container-type: inline-size; --z: 1; --ox: 0%; --oy: 0%; }
.ui-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transform-origin: var(--ox) var(--oy); transform: scale(var(--z)); opacity: 0.42; filter: saturate(0.5); -webkit-mask-image: linear-gradient(#000 50%, transparent 98%); mask-image: linear-gradient(#000 50%, transparent 98%); }
.ui-cut, .ui-card, .ui-note { position: absolute; left: var(--x); top: var(--y); width: var(--w, auto); margin: 0; border-radius: 10px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(10, 11, 14, 0.06), 0 16px 36px rgba(10, 11, 14, 0.14); transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ui-cut { height: auto; display: block; }
/* A cut-out anchored to its spot in the view: flush while its step waits, lifted while it is on. */
.ui-cut[data-cut] { left: calc(var(--ox) + var(--z) * (var(--bx) - var(--ox))); top: calc(var(--oy) + var(--z) * (var(--by) - var(--oy))); width: calc(var(--z) * var(--bw)); border-radius: 6px; border-color: transparent; box-shadow: none; transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 520ms ease-out, border-color 520ms ease-out; }
.ui-cut[data-cut]:not(.anchored) { visibility: hidden; }
.how-step.on .ui-cut[data-cut] { transform: translate(-2%, -5%) scale(1.06); border-color: var(--rule); box-shadow: 0 1px 2px rgba(10, 11, 14, 0.06), 0 18px 40px rgba(10, 11, 14, 0.16); }
.ui-card { list-style: none; padding: 6px 14px; display: grid; }
.ui-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ui-note b { font: 650 18px/1 var(--display); color: var(--ink); }
.how-step:not(.on) .ui-cut:not([data-cut]), .how-step:not(.on) .ui-card, .how-step:not(.on) .ui-note { transform: translateY(10px); }
.how-step .ui-cut:nth-of-type(3), .how-step .ui-card { transition-delay: 90ms; }
.chip { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--sheet-2); border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.demo .rules { list-style: none; margin: 0; padding: 0; display: grid; }
.demo .rules li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.demo .rules li:first-child { border-top: 0; }
.demo .ui-card.rules { padding: 0.6cqw 2.6cqw; }
/* The small widgets drawn for the cards scale with them, like the cut-outs do. */
.demo .ui-card.rules li { font-size: 2.7cqw; padding: 1.5cqw 0; gap: 2cqw; }
.demo .ui-card .pass, .ui-note .fmt i { font-size: 2.1cqw; padding: 1cqw 1.5cqw; }
.ui-note { padding: 1.5cqw 2.2cqw; }
.ui-note .fmt { gap: 1.2cqw; }
.pass { font: 500 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; align-self: center; }
.fmt { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fmt i { font: 500 11px/1 var(--mono); font-style: normal; padding: 6px 8px; border-radius: 999px; background: var(--hl-rose); color: var(--ink); }
.fmt i:nth-child(2) { background: var(--hl-gold); } .fmt i:nth-child(3) { background: var(--hl-blue); } .fmt i:nth-child(4) { background: var(--hl-teal); } .fmt i:nth-child(5) { background: var(--hl-violet); }
.px-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--sheet-2); }
.loop-row figure { margin: 0; display: grid; gap: 8px; }
.loop-row figcaption { font: 500 11.5px/1.3 var(--mono); color: var(--muted); }
.loop-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.loop-row .win .px-tile { outline: 2px solid var(--signal); outline-offset: 2px; }
.how-loop h3 { font-size: clamp(30px, 3.4vw, 48px); }

/* ---------- features: a carousel of clips, the centered one plays (after bannerflow.com) ---------- */
.features { --slide: min(960px, 62vw); --gap: clamp(20px, 3vw, 48px); margin: 140px 0 0; padding: 120px 0 104px; background: #101114; color: #F1F1EC; overflow: hidden; }
.features .kicker { color: rgba(241, 241, 236, 0.7); }
.features h2 { color: #F7F6F2; }
.fcar { position: relative; height: calc(var(--slide) * 0.625); outline: none; touch-action: pan-y; cursor: grab; }
.fcar:active { cursor: grabbing; }
.fcar:focus-visible { outline: 2px solid var(--signal); outline-offset: 8px; border-radius: 28px; }
.fcar-track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.fslide { position: absolute; top: 0; left: 50%; width: var(--slide); aspect-ratio: 16 / 10; margin-left: calc(var(--slide) / -2); border-radius: 24px; overflow: hidden; background: #1C1D22; transform: translateX(calc(var(--o, 0) * (var(--slide) + var(--gap)))) scale(var(--k, 1)); transition: transform 720ms cubic-bezier(.22, .8, .2, 1), opacity 500ms ease-out, filter 500ms ease-out; user-select: none; -webkit-user-select: none; }
.fslide.jump { transition: none; }
.fslide:not(.on) { --k: 0.94; opacity: 0.55; filter: saturate(0.7); cursor: pointer; }
.fslide video, .fslide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fcar-foot { width: var(--slide); margin: 44px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.fcar-text h3 { font: 600 clamp(24px, 2.4vw, 34px)/1.15 var(--body); letter-spacing: -0.015em; color: #F7F6F2; }
.fcar-text p { margin-top: 14px; max-width: 46ch; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; color: rgba(241, 241, 236, 0.78); }
.fcar-text { transition: opacity 260ms ease-out, transform 260ms ease-out; }
.fcar-text.swap { opacity: 0; transform: translateY(6px); }
.fcar-nav { display: flex; gap: 12px; }
.fcar-nav .round { width: 56px; height: 56px; background: #F7F6F2; border-color: #F7F6F2; }
.fcar-nav .round:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }
.fcar-nav .round svg { width: 22px; height: 22px; stroke: #14161B; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; padding: 120px 44px 96px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 18px/1.3 var(--body); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--muted); transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- final call, on the pixel field ---------- */
.final-wrap { padding: 140px 44px 0; }
.final { position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 24px; padding: 56px 64px; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 44px; align-items: end; min-height: 560px; }
.final-field { position: absolute; left: 0; top: 0; width: 58%; height: 60%; }
.final-copy { position: relative; display: grid; gap: 14px; padding-bottom: 8px; }
.final-form { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.signup { display: grid; gap: 14px; }
.signup label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.signup input { height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--sheet); outline: none; width: 100%; }
.signup input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.signup .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.signup .note { font-size: 13px; color: var(--muted); }
.signup .error { font-size: 13px; color: var(--err); }
.signup .btn { padding: 0 20px; }
.signup .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup .btn.wide { width: 100%; }
.signup .notice, .done .notice { font-size: 14px; color: var(--ok); background: var(--ok-soft); border-radius: 8px; padding: 10px 12px; }
@media (max-width: 520px) { .signup .pair { grid-template-columns: 1fr; } }

/* ---------- footer and dialog ---------- */
.foot { max-width: 1180px; margin: 0 auto; padding: 36px 44px 64px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot nav { display: flex; gap: 18px; justify-content: center; }
.foot nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.dialog { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; width: min(92vw, 520px); background: var(--sheet); color: var(--ink); box-shadow: 0 12px 32px rgba(10, 11, 14, 0.18); }
.dialog::backdrop { background: rgba(10, 11, 14, 0.45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { font-size: 24px; }
.close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.close:hover { background: var(--rule); color: var(--ink); }

/* ---------- reduced motion: nothing drifts, rows scroll by hand ---------- */
@media (prefers-reduced-motion: reduce) {
  .logo-track, .reel-track { animation: none; }
  .fslide { transition: none; }
  .reel-row, .marquee { overflow-x: auto; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .nav-bar { grid-template-columns: auto 1fr; gap: 12px; padding-left: 16px; }
  .actions { justify-content: flex-end; }
  .how { padding: 72px 16px 0; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  /* Clipped: the stages ahead sit off to the right of the band (hidden, but still laid out), and would
     widen the page so phones pan sideways. */
  .how-rail { order: -1; position: sticky; top: 64px; height: 120px; margin: 0 -16px; z-index: 2; overflow: hidden; background: linear-gradient(var(--paper) 86%, transparent); }
  .rail-pill { font-size: 12px; padding: 6px 10px 6px 8px; gap: 6px; }
  .rail-runner { width: 30px; height: 30px; }
  .rail-runner svg { width: 20px; height: 20px; }
  .how-step { min-height: 72vh; }
  .features { margin: 96px 0 0; padding: 80px 0 72px; --slide: 86vw; --gap: 14px; }
  .fcar-foot { grid-template-columns: 1fr; }
  .fcar-nav { order: -1; }
  .fcar-nav .round { width: 48px; height: 48px; }
  .final { grid-template-columns: 1fr; padding: 200px 20px 24px; min-height: 0; }
  .final-field { width: 100%; height: 220px; }
  .final-wrap, .faq-wrap { padding-left: 16px; padding-right: 16px; }
  .foot { grid-template-columns: 1fr; text-align: center; padding: 28px 16px 48px; }
  .foot nav { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .actions .ghost { display: none; }
  .hero { padding-top: 120px; }
  .hero .lede { font-size: 17px; }
  .btn.xl { height: 56px; font-size: 16px; padding-left: 22px; }
  .reel-card { width: 180px; }
  .reel-card .cap { font-size: 14px; }
  .logo-track { gap: 64px; }
  .logo-item svg { height: 30px; }
}
