/* The page. It borrows the app's surface rules: one ground, zones split by a hairline,
   one filled button per screen, and the track colours as the only accents. */

:root {
	--ground: #09090b;
	--stage: #050506;
	--hair: rgba(255, 255, 255, .07);
	--hair-strong: rgba(255, 255, 255, .16);
	--ink: #fafafa;
	--ink-2: #a1a1aa;
	--ink-3: #71717a;
	--primary: #4a60e6;   /* the filled button and the playhead */
	--line: #4e81ee;      /* active underlines */
	--ai: #8b5cf6;        /* clips the assistant touched */
	--motion: #ec4899;    /* the motion track */
	--sound: #34d399;     /* waveforms */
	--amber: #f59e0b;
	--display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
	--body: 'Nunito', ui-sans-serif, system-ui, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
	--gutter: 32px;
	--top: 56px;   /* header height */
	--bar: 52px;   /* page timeline height */
	--tone: var(--line);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 400 17px/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--bar);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(74, 96, 230, .4); }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 12px; background: var(--primary); color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--ground); border-bottom: 1px solid var(--hair); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 18px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 20px; height: 22px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; background: var(--primary); color: #fff; font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap; }
.btn:hover { background: #3f53d3; }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 7px; height: 44px; color: var(--ink-2); font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 5px; }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
.link .ic { width: 17px; height: 17px; }

/* ---- hero ---- */
.hero { padding-top: clamp(40px, 8vh, 96px); }
.hero h1 { font-size: clamp(46px, 8.6vw, 132px); line-height: .94; letter-spacing: -.04em; max-width: 11ch; }
.caret { display: inline-block; width: .07em; height: .78em; margin-left: .06em; vertical-align: -.04em; background: var(--primary); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 48px; align-items: end; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 22px; }
.fine { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.hero .stage { margin-top: clamp(36px, 6vh, 64px); }

/* ---- a use case: a tall runway with a pinned frame ---- */
.chapter { position: relative; height: 330vh; border-top: 1px solid var(--hair); margin-top: clamp(64px, 10vh, 120px); }
.chapter + .chapter { margin-top: 0; }
.pin {
	position: sticky;
	top: var(--top);
	height: calc(100vh - var(--top) - var(--bar));
	height: calc(100svh - var(--top) - var(--bar));
	display: grid;
	grid-template-columns: minmax(280px, 30fr) 70fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	max-width: 1560px;
	margin-inline: auto;
	padding: 24px var(--gutter);
}
.tell h2 { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.02; letter-spacing: -.03em; }
.tell .for { margin-top: 12px; font-size: 15px; color: var(--tone); font-weight: 600; }
.beats { list-style: none; margin: 28px 0 0; padding: 0; }
.beats li { position: relative; padding: 2px 0 18px 18px; border-left: 1px solid var(--hair-strong); opacity: .4; transition: opacity .25s; }
.beats li:last-child { padding-bottom: 2px; }
.beats li::before { content: ''; position: absolute; left: -1.5px; top: 0; width: 2px; height: calc(var(--bp, 0) * 100%); background: var(--tone); }
.beats li.on, .beats li.done { opacity: 1; }
.beats li.done { --bp: 1; }
.beats li.done p { color: var(--ink-3); }
.beats h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.beats p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.beats q { quotes: none; font-style: italic; color: var(--ink); }
.show { display: grid; place-items: center; min-width: 0; }
.show .stage { width: min(100%, calc((100svh - var(--top) - var(--bar) - 48px) * var(--w) / var(--h))); }

/* ---- plain sections ---- */
.band { border-top: 1px solid var(--hair); padding-block: clamp(64px, 11vh, 128px); }
.band > .wrap > h2, .band-head h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.03em; max-width: 18ch; }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 48px; align-items: end; }
.band-head p { color: var(--ink-2); }
.what p { font-size: clamp(20px, 2.3vw, 32px); line-height: 1.32; letter-spacing: -.01em; font-family: var(--display); font-weight: 400; color: var(--ink-2); max-width: 34ch; }
.what p strong { color: var(--ink); font-weight: 500; }
.what .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.band.what > .wrap > h2 { max-width: none; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.32; letter-spacing: -.01em; font-weight: 400; color: var(--ink-3); }

.agent .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.agent p { margin-top: 16px; color: var(--ink-2); max-width: 44ch; }
.term { border: 1px solid var(--hair-strong); border-radius: 10px; background: var(--stage); overflow: hidden; font: 13px/1.7 var(--mono); }
.term .row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-family: var(--body); font-size: 14px; }
.term .row b { font-weight: 600; }
.term .row span { color: var(--ink-3); font-size: 13px; }
.switch { margin-left: auto; width: 34px; height: 20px; border-radius: 10px; background: var(--primary); position: relative; flex: none; }
.switch::after { content: ''; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.term pre { margin: 0; padding: 16px; color: #d4d4d8; overflow-x: auto; }
.term pre i { font-style: normal; color: var(--ink-3); }
.term pre b { font-weight: 400; color: #a38cf3; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-strong); counter-reset: step; }
.steps li { padding: 22px 28px 0 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--hair); }
.steps li::before { content: counter(step); display: block; font: 600 15px var(--mono); color: var(--line); margin-bottom: 18px; }
.steps h3 { font-size: 22px; letter-spacing: -.02em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---- whatever you film: four clips, each with the sentence that edited it ---- */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 44px; }
.reel { margin: 0; }
.reel .pic { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; container-type: inline-size; box-shadow: 0 0 0 1px var(--hair-strong); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; margin-top: 14px; }
.reel .ask { grid-column: 1 / -1; justify-self: start; max-width: 100%; padding: 8px 13px; border-radius: 14px 14px 14px 4px; background: var(--primary); color: #fff; font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.reel h3 { font-size: 18px; letter-spacing: -.01em; }
.reel figcaption p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.reel .chip { position: absolute; right: 3cqw; top: 3cqw; display: inline-flex; align-items: center; gap: .8cqw; padding: .9cqw 1.8cqw; border-radius: 1.4cqw; background: rgba(9, 9, 11, .72); color: #fff; font: 600 2.4cqw/1 var(--mono); backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.reel .chip .ic { width: 2.6cqw; height: 2.6cqw; }
.reel .on .chip, .reel.on .chip { background: var(--primary); }
/* vertical: the frame closes to a 9:16 window */
.reel .shade { position: absolute; top: 0; bottom: 0; width: 0; background: rgba(5, 5, 6, .78); transition: width .7s cubic-bezier(.3, .7, .2, 1); }
.reel .shade.l { left: 0; }
.reel .shade.r { right: 0; }
.reel .window { position: absolute; top: 0; bottom: 0; left: 26.2%; width: 31.6%; box-shadow: inset 0 0 0 2px var(--line); opacity: 0; transition: opacity .4s .3s; }
.reel.on .shade.l { width: 26.2%; }
.reel.on .shade.r { width: 42.2%; }
.reel.on .window { opacity: 1; }
.reel[data-reel="vertical"] .chip { opacity: 0; transition: opacity .3s .4s, background .3s; }
.reel[data-reel="vertical"].on .chip { opacity: 1; }
/* speed */
.reel .chip.big { font-size: 4.4cqw; padding: 1.2cqw 2.2cqw; }
/* a title card on the table, clear of his face */
.reel .card { position: absolute; right: 4cqw; bottom: 5cqw; padding: 1.6cqw 2.4cqw 1.6cqw 2.2cqw; border-left: .7cqw solid var(--amber); background: rgba(9, 9, 11, .82); color: #fff; transform: translateX(14cqw); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.reel .card b { display: block; font: 600 3.6cqw/1.1 var(--display); letter-spacing: -.01em; }
.reel .card span { display: block; margin-top: .6cqw; font-size: 2.2cqw; color: #d4d4d8; }
.reel.on .card { transform: none; opacity: 1; }
.reel .chip.sfx { top: auto; right: auto; left: 3cqw; bottom: 5cqw; opacity: 0; transition: opacity .3s .35s; }
.reel.on .chip.sfx { opacity: 1; }
/* the vocal's waveform, before and after the noise is taken out */
.reel .meter { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to top, rgba(5, 5, 6, .85), rgba(5, 5, 6, 0)); }
.reel .meter svg { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.4cqw; width: calc(100% - 6cqw); height: 70%; transition: opacity .5s; }
.reel .meter .clean { opacity: 0; }
.reel.on .meter .clean { opacity: 1; }
.reel.on .meter .noisy { opacity: 0; }

/* A small piece of the app under each step. */
.piece { margin-top: 22px; padding: 12px 14px; border: 1px solid var(--hair-strong); border-radius: 10px; background: var(--stage); font-size: 13px; line-height: 1.4; display: grid; gap: 8px; align-content: start; min-height: 172px; }
.piece-row { display: flex; align-items: center; gap: 10px; color: #e4e4e7; }
.piece-row img { width: 54px; height: 30px; border-radius: 4px; object-fit: cover; }
.piece-row small { margin-left: auto; font: 11px var(--mono); color: var(--ink-3); }
.piece-field { margin-top: 4px; padding: 8px 0; border-top: 1px solid var(--hair); color: var(--ink-3); }
.piece-engine::after { content: 'Opus 5.5'; float: right; color: #a38cf3; font-weight: 600; }
.piece-say { justify-self: end; max-width: 88%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--primary); color: #fff; }
.piece-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.piece-pills span { padding: 4px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.piece-pills .on { background: var(--primary); box-shadow: none; color: #fff; }
.piece-shapes { display: flex; align-items: flex-end; gap: 8px; height: 34px; }
.piece-shapes i { height: 100%; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.piece-shapes i:first-child { height: 62%; }
.piece-shapes i:nth-child(3) { height: 80%; }
.piece-shapes .on { box-shadow: inset 0 0 0 2px var(--line); }
.piece-shapes small { margin-left: auto; font: 11px var(--mono); color: var(--ink-3); }
.piece-bar { height: 4px; border-radius: 2px; background: #27272a; }
.piece-bar b { display: block; width: 64%; height: 100%; border-radius: 2px; background: var(--line); }

.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; margin-top: 48px; }
.features h3 { font-size: 22px; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--hair-strong); }
.features h3 small { font: 400 15px var(--body); color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.features dl { margin: 0; }
.features dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.5; }
.features dt { font-weight: 700; }
.features dt sup { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair-strong); font: 600 10px/1.4 var(--body); color: var(--ink-2); vertical-align: 3px; white-space: nowrap; }
.features dd { margin: 0; color: var(--ink-2); }

.faq { margin-top: 40px; border-top: 1px solid var(--hair-strong); max-width: 62rem; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq details p a { color: var(--ink); }

.band.get > .wrap > h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: .96; letter-spacing: -.04em; max-width: 12ch; }
.get .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 48px; align-items: end; }
.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-strong); }
.platforms li { border-bottom: 1px solid var(--hair); }
.platforms a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; text-decoration: none; }
.platforms a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.platforms .ic { width: 22px; height: 22px; }
.platforms b { font-weight: 700; display: block; color: var(--ink); }
.platforms span { color: var(--ink-3); font-size: 14px; }
.platforms em { font: normal 13px var(--mono); color: var(--ink-2); }
.needs { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.needs a { color: var(--ink); }

.site-foot { border-top: 1px solid var(--hair); padding-block: 36px 44px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
.site-foot p { max-width: 70ch; }
.site-foot p + p { margin-top: 8px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.site-foot a { color: var(--ink-2); }
.cookie-settings { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* ---- the analytics question: both answers look the same on purpose ---- */
.cookie-note { position: fixed; left: 16px; bottom: calc(var(--bar) + 16px); z-index: 45; width: min(400px, calc(100vw - 32px)); padding: 16px; background: #18181b; border: 1px solid var(--hair-strong); border-radius: 8px; font-size: 15px; line-height: 1.5; }
.cookie-note p { margin: 0; color: var(--ink); }
.cookie-note:focus { outline: none; }
.cookie-note div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cookie-note button { height: 44px; border: 1px solid var(--ink-3); border-radius: 6px; background: transparent; color: var(--ink); font: 700 15px/1 var(--body); cursor: pointer; }
.cookie-note button:hover { background: rgba(255, 255, 255, .08); }
.doc .cookie-note { bottom: 16px; }

/* ---- the page timeline: every section is a clip, scrolling moves the playhead ---- */
.scrub { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--bar); display: flex; background: var(--ground); border-top: 1px solid var(--hair-strong); }
.scrub .now { width: 208px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 var(--gutter); border-right: 1px solid var(--hair); font: 600 13px/1 var(--display); white-space: nowrap; overflow: hidden; }
.scrub .now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); flex: none; }
.scrub .lane { position: relative; flex: 1; min-width: 0; margin-right: var(--gutter); background-image: repeating-linear-gradient(to right, var(--hair-strong) 0 1px, transparent 1px 2.5%); background-size: auto 7px; background-repeat: repeat-x; }
.scrub .lane a { position: absolute; top: 15px; bottom: 9px; display: flex; align-items: center; padding: 0 8px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--tone) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 45%, transparent); color: var(--ink-2); font: 600 11.5px/1 var(--body); white-space: nowrap; text-decoration: none; }
.scrub .lane a.on { color: #fff; background: color-mix(in srgb, var(--tone) 34%, transparent); box-shadow: inset 0 0 0 1px var(--tone); }
.scrub .lane a.quiet { --tone: #71717a; }
.scrub .lane a.tight { padding: 0; font-size: 0; }
.scrub .head { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--primary); transform: translateX(var(--x, 0px)); pointer-events: none; }
.scrub .head::before { content: ''; position: absolute; left: -5px; top: 0; width: 11px; height: 12px; border-radius: 0 0 3px 3px; background: var(--primary); }

/* ---- narrow screens: the frame stacks, one beat shows at a time ---- */
@media (max-width: 900px) {
	:root { --gutter: 16px; --top: 50px; --bar: 34px; }
	body { font-size: 16px; }
	.site-nav a:not(.btn) { display: none; }
	.hero-copy, .band-head, .what .wrap, .agent .wrap, .get .wrap, .features, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.chapter { height: 300vh; }
	.pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px; padding-block: 14px; }
	.show { order: -1; }
	.show .stage { width: min(100%, calc((100svh - var(--top) - var(--bar)) * .42 * var(--w) / var(--h))); }
	.tell .for { margin-top: 6px; font-size: 14px; }
	.beats { margin-top: 14px; display: grid; }
	.beats li { grid-area: 1 / 1; opacity: 0; padding-bottom: 2px; transition: opacity .2s; }
	.beats li.done { opacity: 0; }
	.beats li.on { opacity: 1; }
	.cta .btn { flex: 1 0 100%; }
	.reels { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
	.reel .ask { font-size: 14px; }
	.steps { grid-template-columns: minmax(0, 1fr); }
	.steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
	.features { gap: 40px 0; }
	.features dl > div { grid-template-columns: 7rem minmax(0, 1fr); }
	.scrub .now { display: none; }
	.scrub .lane { margin-inline: var(--gutter); }
	.scrub .lane a { top: 12px; bottom: 7px; padding: 0; font-size: 0; }
}

/* ---- reduced motion: nothing is pinned, every beat is readable, scenes show their end state ---- */
@media (prefers-reduced-motion: reduce) {
	.caret, .ff-dots i { animation: none; }
	.reel .shade, .reel .window, .reel .card, .reel .chip, .reel .meter svg { transition: none; }
	.chapter { height: auto; }
	.pin { position: static; height: auto; padding-block: 64px; }
	.beats li, .beats li.done { opacity: 1; }
	.beats { display: block; }
	.beats li { padding-bottom: 18px; }
}
