/* Liner landing page. Tokens are the extension's own (src/panel/index.css,
   dark theme) so the page reads as the product's front door. */

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #F4845F;
}

:root {
  --accent: #F4845F;
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-ink: color-mix(in oklab, var(--accent) 78%, white);

  --bg: #09090b;
  --raised: #0b0b0d;
  --card: #0e0e11;
  --input: #18181b;
  --pill: #2a2a30;
  --border: #27272a;
  --border-subtle: #232328;

  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --muted: #71717a;
  --faint: #52525b;
  --ghost: #3f3f46;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 64px;

  color-scheme: dark;
  transition: --accent 700ms var(--ease-io);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
ul, ol { list-style: none; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #0b0b0d; padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.lede { color: var(--text-3); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-ink);
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.eyebrow .mono { color: var(--muted); font-size: 12px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 28px; max-width: 60em; }
.fine a { color: var(--text-2); text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, filter 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #0b0b0d; }
.btn-ghost { background: var(--input); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost:hover { background: var(--pill); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav[data-scrolled] { border-bottom-color: var(--border-subtle); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-3); text-decoration: none; font-size: 14px; transition: color 150ms ease; }
.nav-links a:hover { color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
/* The logo is a lyric list: three lines, the middle one playing. */
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; align-content: center; gap: 3px; padding-left: 7px; overflow: hidden;
}
.brand-mark i { display: block; height: 3.5px; border-radius: 2px; background: #fff; transition: transform 300ms var(--ease-out), opacity 300ms ease; }
.brand-mark i:nth-child(1) { width: 11px; opacity: .55; }
.brand-mark i:nth-child(2) { width: 14px; }
.brand-mark i:nth-child(3) { width: 9px; opacity: .55; }
@media (hover: hover) {
  .brand:hover .brand-mark i { transform: translateY(-6.5px); }
  .brand:hover .brand-mark i:nth-child(2) { opacity: .55; }
  .brand:hover .brand-mark i:nth-child(3) { opacity: 1; }
}

/* =================================================================
   HERO — a pinned stage scrubbed by scroll
   ================================================================= */
.hero { position: relative; }
.js .hero { height: 400svh; }
.hero-pin { position: relative; padding-top: var(--nav-h); }
.js .hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  height: 100%;
  padding-block: 24px 40px;
}

.hero-copy { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.copy-stack { position: relative; }
.copy { padding-block: 24px; }
.js .copy-stack { display: grid; }
.js .copy { grid-area: 1 / 1; align-self: center; padding: 0; will-change: opacity, transform; }
.js .copy:not(.copy-intro) { opacity: 0; }
.copy .lede { margin-top: 18px; }
.hero .display { font-size: clamp(36px, 3.3vw, 50px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cta-center { justify-content: center; margin-top: 0; }

/* H1 sung once on load, line by line, the way Liner lights a lyric. */
.sung {
  display: block; width: fit-content;
  padding: 0 .14em; margin-left: -.14em; border-radius: .16em;
}
.js .sung:nth-child(1) { animation: sung-1 3.2s var(--ease-out) .25s both; }
.js .sung:nth-child(2) { animation: sung-2 3.2s var(--ease-out) .25s both; }
@keyframes sung-1 {
  0% { color: var(--ghost); background: transparent; }
  10%, 42% { color: var(--text); background: var(--accent-soft); }
  52%, 84% { color: var(--faint); background: transparent; }
  100% { color: var(--text); background: transparent; }
}
@keyframes sung-2 {
  0%, 42% { color: var(--ghost); background: transparent; }
  52%, 84% { color: var(--text); background: var(--accent-soft); }
  100% { color: var(--text); background: transparent; }
}

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: 1.1s; animation-delay: .15s; }
.eq i:nth-child(3) { animation-duration: .85s; animation-delay: .3s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* chapter nav */
.chapters { display: none; gap: 6px; }
.js .chapters { display: grid; grid-template-columns: repeat(4, 1fr); }
.chapters button {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  text-align: left; padding: 6px 0; font-size: 13px; color: var(--muted);
  transition: color 200ms ease;
}
.chapters button[aria-current="step"] { color: var(--text); }
.chapters button i { display: block; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.chapters button i::after { content: ''; display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }
@media (hover: hover) { .chapters button:hover { color: var(--text-2); } }

/* the browser window */
.hero-stage { min-width: 0; height: 100%; display: flex; align-items: center; }
.window {
  width: 100%;
  height: min(680px, 100%);
  display: flex; flex-direction: column;
  border-radius: 16px;
  background: #0c0c0f;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .02) inset;
  overflow: hidden;
}
.js .window { animation: rise 900ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.985); } }

.window-bar {
  flex: none; height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle); background: var(--raised);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pill); }
.tab-title {
  font-size: 12px; color: var(--text-3); background: var(--input); border-radius: 8px;
  padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.window-ext { margin-left: auto; width: 18px; height: 18px; flex: none; }
.window-ext svg { width: 100%; height: 100%; }

.window-body { flex: 1; min-height: 0; display: flex; }

.video { flex: 1; min-width: 0; position: relative; background: #000; display: flex; flex-direction: column; }
.scene { flex: 1; min-height: 0; width: 100%; height: 100%; }
.video-bar { flex: none; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: var(--text-2); font-size: 12px; background: linear-gradient(to top, #000, #0a0a0a); }
.vb-play { width: 14px; height: 14px; }
.vb-track { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .2); overflow: hidden; }
.vb-track i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- the Liner panel (shared by hero and Try it) ---------- */
.panel {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg);
  font-size: 13px;
  overflow: hidden;
}
.hero .panel { flex: none; width: 340px; border-left: 1px solid var(--border-subtle); }
.js .hero .panel { animation: dock 900ms var(--ease-out) 180ms both; }
@keyframes dock { from { transform: translateX(48px); opacity: 0; } }

.p-head {
  display: flex; align-items: center; gap: 11px; padding: 14px 14px 10px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--accent) 9%, transparent), transparent);
}
.p-cover { width: 42px; height: 42px; border-radius: 9px; flex: none; overflow: hidden; }
.p-meta { min-width: 0; display: flex; flex-direction: column; }
.p-meta b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.p-meta span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-lang {
  margin-left: auto; font-size: 10px; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px;
  color: var(--accent-ink); background: var(--accent-soft);
}

.p-progress { padding: 4px 14px 0; }
.p-track { position: relative; height: 4px; border-radius: 4px; background: var(--pill); }
.p-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.p-loopzone {
  position: absolute; top: -3px; bottom: -3px; left: calc(49 / 192 * 100%); width: calc(9 / 192 * 100%);
  border-radius: 3px; background: color-mix(in oklab, var(--accent) 45%, transparent);
  opacity: var(--loop, 0);
}
.p-thumb { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; }
.p-times { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }

.p-controls { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 2px 0 8px; color: var(--text-3); }
.p-controls > svg { width: 13px; height: 13px; }
.p-play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #0b0b0d; display: grid; place-items: center; }
.p-play svg { width: 14px; height: 14px; }

.p-tabs { display: flex; gap: 2px; margin: 0 12px; padding: 3px; border-radius: 10px; background: var(--input); font-size: 11.5px; color: var(--muted); }
.p-tabs span { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px; }
.p-tabs .on { background: var(--pill); color: var(--text); font-weight: 500; }

.p-tools { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 8px; border-radius: 7px; color: var(--muted); background: var(--input); white-space: nowrap; }
.chip-on { color: var(--accent-ink); background: var(--accent-soft); }
.chip .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.chip-sync { margin-left: auto; opacity: calc(1 - var(--loop, 0)); }
.loop-chips { position: absolute; right: 12px; display: flex; gap: 4px; opacity: var(--loop, 0); }
.loop-chips .chip { color: var(--accent-ink); background: var(--accent-soft); }

.p-lyrics {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 36px), transparent);
}
.p-scroll { position: absolute; left: 0; right: 0; top: 0; padding: 0 10px; will-change: transform; }
.sec { padding: 14px 10px 6px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ghost); }

.ln {
  position: relative;
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.45; font-weight: 500;
  color: var(--text-3);
  transition: color 220ms ease, background-color 220ms ease;
}
.ln[data-state="past"] { color: var(--faint); }
.ln[data-state="active"] { color: var(--text); background: var(--accent-soft); }
.ln.annotated .txt { text-decoration: underline dotted color-mix(in oklab, var(--accent) 60%, transparent); text-underline-offset: 4px; }
.tr {
  display: block; overflow: hidden;
  max-height: calc(var(--tr, 0) * var(--trh, 40px));
  opacity: var(--tr, 0);
  font-size: 12px; font-weight: 400; color: var(--muted);
}
.tr > span { display: block; padding-top: 2px; }
.ln[data-state="active"] .tr { color: var(--text-3); }

/* the selected verse during Loop */
.ln.loopable::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: var(--accent); opacity: var(--loop, 0);
}
.ln.loopable[data-state="past"] { color: color-mix(in oklab, var(--text-3) calc(var(--loop, 0) * 100%), var(--faint)); }
.ln.loopable:not([data-state="active"]) { background: color-mix(in oklab, var(--accent) calc(var(--loop, 0) * 7%), transparent); }

.save {
  display: inline-block; vertical-align: -2px; margin-left: 6px; width: 13px; height: 13px;
  fill: var(--accent); stroke: var(--accent); stroke-width: 1.4;
  opacity: var(--saved, 0); transform: scale(calc(.6 + var(--saved, 0) * .4));
}

.p-meaning {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 16px; background: var(--card); border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
  transform: translateY(calc((1 - var(--meaning, 0)) * 105%));
}
.p-label { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.p-quote { color: var(--accent-ink); font-style: italic; margin-bottom: 6px; }

.p-toast {
  position: absolute; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; background: var(--pill); color: var(--text); font-size: 12px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
  opacity: var(--toast, 0); transform: translate(-50%, calc((1 - var(--toast, 0)) * 10px));
}
.p-toast svg { width: 13px; height: 13px; color: var(--accent); }

/* the saved-line card the line flies into */
.saved-card { margin-top: 22px; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 12px; }
.saved-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 6px 10px; }
.saved-title { font-weight: 600; font-size: 14px; }
.saved-count { font-size: 11px; color: var(--muted); }
.saved-search { font-size: 11.5px; color: var(--faint); background: var(--input); border-radius: 9px; padding: 7px 10px; margin-bottom: 6px; }
.saved-row { padding: 9px 8px; border-radius: 10px; }
.saved-row + .saved-row { border-top: 1px solid var(--border-subtle); border-radius: 0; }
.saved-row p { font-size: 14px; font-weight: 500; color: var(--text); }
.saved-row > span { font-size: 11.5px; color: var(--muted); }
.js [data-saved-target] { opacity: 0; }

.fly {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  padding: 7px 10px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--text); white-space: nowrap;
  background: color-mix(in oklab, var(--accent) 24%, var(--card));
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / .8);
  opacity: 0; will-change: transform, opacity;
}
html:not(.js) .fly { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px;
}
.js .scroll-cue { display: flex; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--muted), transparent); animation: cue 1.8s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.skip-demo { position: absolute; right: 24px; bottom: 20px; font-size: 12.5px; color: var(--muted); text-underline-offset: 3px; display: none; }
.js .skip-demo { display: block; }
.skip-demo:hover { color: var(--text); }

/* =================================================================
   SECTIONS
   ================================================================= */
.section { padding-block: clamp(80px, 11vw, 140px); border-top: 1px solid var(--border-subtle); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 16px; }

/* Real screenshots: the panel lifts out of the in-context shot, enlarged. */
.shot-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--input); margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.shot-tabs button { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--text-3); white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.shot-tabs button[aria-selected="true"] { background: var(--pill); color: var(--text); font-weight: 500; }
@media (hover: hover) { .shot-tabs button:hover { color: var(--text); } }

.shot { position: relative; padding-right: clamp(0px, 12vw, 160px); }
.shot-window { height: auto; animation: none !important; }
.shot-body { position: relative; aspect-ratio: 2400 / 1345; background: #000; overflow: hidden; }
.shot-full {
  position: absolute; inset: 0; width: 100%; height: auto;
  opacity: 0; transition: opacity 400ms ease;
}
.shot-full.is-on { opacity: 1; }

.lift {
  position: absolute; right: 0; top: 64px; z-index: 2;
  width: clamp(240px, 27vw, 360px);
  border-radius: 14px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .03);
  transform-origin: 0 0;
  transition: transform 1000ms var(--ease-out), border-radius 1000ms var(--ease-out), box-shadow 1000ms ease;
}
.lift[data-flat] { transition: none; border-radius: 0; box-shadow: none; }
.lift img { display: block; width: 100%; height: auto; }
.lift img:not(.is-on) { display: none; }
.shot figcaption { margin-top: 18px; padding-right: clamp(0px, 20vw, 280px); }

/* Try it */
.proof { margin-top: 18px; }
.proof img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border-subtle); }
.proof figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.try-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 600px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.covers { display: flex; flex-direction: column; gap: 10px; }
.covers button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 10px; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--raised);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.covers button:active { transform: scale(0.98); }
.covers button svg { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex: none; }
.covers button b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.covers button small { display: block; color: var(--muted); font-size: 12.5px; }
.covers button[aria-checked="true"] { border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: var(--card); }
@media (hover: hover) { .covers button:hover { background: var(--card); } }

.try-panel { border: 1px solid var(--border); border-radius: 18px; min-height: 500px; }
.try-panel .p-head { padding: 16px 18px 12px; }
.try-panel .p-cover { width: 48px; height: 48px; border-radius: 10px; }
.try-panel .p-meta b { font-size: 16px; }
.p-playbtn { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #0b0b0d; display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.p-playbtn:active { transform: scale(0.94); }
.p-playbtn svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.p-playbtn .i-play, .p-playbtn[data-paused] .i-pause { display: none; }
.p-playbtn[data-paused] .i-play { display: block; }

.try-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 4px 18px 14px; border-bottom: 1px solid var(--border-subtle); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--input); }
.seg button { padding: 5px 10px; border-radius: 7px; font-size: 12.5px; color: var(--text-3); transition: background-color 150ms ease, color 150ms ease; }
.seg button[aria-checked="true"] { background: var(--pill); color: var(--text); font-weight: 500; }
.seg button[disabled] { opacity: .4; cursor: default; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); cursor: pointer; }
.switch[hidden] { display: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 30px; height: 18px; border-radius: 99px; background: var(--pill); position: relative; transition: background-color 200ms ease; }
.switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-out); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(12px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

.try-lines { padding: 12px 10px 18px; }
.try-lines li {
  padding: 9px 12px; border-radius: 12px; color: var(--text-3);
  transition: color 240ms ease, background-color 240ms ease;
}
.try-lines li[data-state="past"] { color: var(--faint); }
.try-lines li[data-state="active"] { color: var(--text); background: var(--accent-soft); }
.try-lines .o { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; }
.try-lines .r { display: block; font-size: 13px; color: var(--accent-ink); margin-top: 1px; }
.try-lines .x { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.try-lines li[data-state="active"] .x { color: var(--text-3); }
.try-lines[data-mode="only"] .o, .try-lines[data-mode="only"] .r { display: none; }
.try-lines[data-mode="only"] .x { font-size: 17px; font-weight: 500; color: inherit; margin: 0; }
.swap { animation: swap 320ms var(--ease-out) both; }
@keyframes swap { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } }

/* Film */
.film-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 50px 100px -50px rgb(0 0 0 / .9); }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .08); }
.film-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.film-toggle {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgb(9 9 11 / .7); border: 1px solid rgb(255 255 255 / .12);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.film-toggle:active { transform: scale(0.94); }
.film-toggle svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.film-toggle .i-play, .film-toggle[data-paused] .i-pause { display: none; }
.film-toggle[data-paused] .i-play { display: block; }
.film-toggle[data-paused] { width: 72px; height: 72px; right: calc(50% - 36px); bottom: calc(50% - 36px); background: var(--accent); color: #0b0b0d; border: 0; }
.film-toggle[data-paused] svg { width: 24px; height: 24px; }

/* New — real captures, two to a row, never covered by their captions */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border-subtle); }
.tile img { display: block; width: 100%; height: auto; }
.tile-wide { grid-column: 1 / -1; }
.tile figcaption { display: flex; flex-direction: column; gap: 4px; }
.tile figcaption b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tile figcaption span { font-size: 14.5px; color: var(--text-3); line-height: 1.45; }
.tile-wide figcaption { flex-direction: row; align-items: baseline; gap: 14px; padding: 18px 22px; border-top: 1px solid var(--border-subtle); }
/* Feature cards: the capture on the left, what it does on the right */
.tile:not(.tile-wide):not(.keys) { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; }
.tile:not(.tile-wide):not(.keys) img { border-right: 1px solid var(--border-subtle); }
.tile:not(.tile-wide):not(.keys) figcaption { padding: 24px 26px; }
.keys { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px 24px; }
.keys-title { font-size: 15px; font-weight: 600; }
.keys ul { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.keys li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.kbd-group { display: inline-flex; gap: 4px; }
kbd {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text);
  min-width: 26px; padding: 4px 7px; text-align: center; border-radius: 7px;
  background: var(--input); border: 1px solid var(--border); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .45);
}
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Where — the services' real logos */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.services li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 12px 24px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border-subtle);
  text-align: center;
}
.services li::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 30%, color-mix(in oklab, var(--svc) 16%, transparent), transparent);
}
.services svg { width: 48px; height: 48px; fill: var(--svc); position: relative; }
.services b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.services span { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 99px; }

/* Privacy — the facts as numbers */
.zero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zero { display: flex; flex-direction: column; padding: 26px 26px 24px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border-subtle); }
.zero b { font-size: clamp(72px, 9vw, 120px); line-height: .9; font-weight: 500; letter-spacing: -0.06em; color: var(--accent); }
.zero span { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-top: 14px; }
.zero small { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--raised); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 22px; }
.steps .mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; margin-bottom: 18px; }
.steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.steps p { color: var(--text-3); font-size: 14.5px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { color: var(--text-3); padding: 0 36px 22px 0; }
.faq details[open] p { animation: swap 260ms var(--ease-out) both; }
.faq a { color: var(--text-2); text-underline-offset: 3px; }

/* Closing */
.closing { padding-block: clamp(100px, 14vw, 180px); border-top: 1px solid var(--border-subtle); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing .lede { margin: 16px auto 32px; }
/* The logo, playing: a lyric list advancing one line at a time. */
.big-mark {
  --row: 22px;
  position: relative; width: 112px; height: 112px; border-radius: 26px; background: var(--accent);
  display: flex; flex-direction: column; gap: calc(var(--row) - 8px); padding: 28px 0 0 29px; overflow: hidden;
  margin-bottom: 40px;
  mask-image: none;
}
.big-mark i { flex: none; height: 8px; border-radius: 4px; background: #fff; opacity: .5; }
.big-mark i:nth-child(1) { width: 46px; } .big-mark i:nth-child(2) { width: 56px; } .big-mark i:nth-child(3) { width: 38px; }
.big-mark i:nth-child(4) { width: 50px; } .big-mark i:nth-child(5) { width: 42px; }
.big-mark b { position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.big-mark i:nth-child(2) { opacity: 1; }
.big-mark.playing i { animation: advance 7.2s var(--ease-io) infinite; }
.big-mark.playing i:nth-child(2) { animation-name: advance-2; }
.big-mark.playing i:nth-child(3) { animation-name: advance-3; }
@keyframes advance { 0%, 40% { transform: translateY(0); } 50%, 90% { transform: translateY(calc(var(--row) * -1)); } 100% { transform: translateY(calc(var(--row) * -2)); opacity: .5; } }
@keyframes advance-2 { 0%, 40% { transform: translateY(0); opacity: 1; } 50%, 90% { transform: translateY(calc(var(--row) * -1)); opacity: .5; } 100% { transform: translateY(calc(var(--row) * -2)); opacity: .5; } }
@keyframes advance-3 { 0%, 40% { transform: translateY(0); opacity: .5; } 50%, 90% { transform: translateY(calc(var(--row) * -1)); opacity: 1; } 100% { transform: translateY(calc(var(--row) * -2)); opacity: .5; } }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding-block: 40px 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { color: var(--text-3); font-size: 14px; text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; max-width: 62em; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1180px) {
  .video-bar { gap: 8px; }
  .hero .panel { width: 320px; }
}

@media (max-width: 1020px) {
  .video { display: none; }
  .hero .panel { width: 100%; border-left: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .hero .display { font-size: clamp(36px, 4.6vw, 46px); }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    padding-block: 14px 16px;
  }
  .hero-copy { gap: 14px; }
  .js .copy { align-self: end; }
  .display, .hero .display { font-size: clamp(32px, 9.4vw, 42px); }
  .title { font-size: clamp(25px, 7vw, 32px); }
  .copy .lede { font-size: 14.5px; margin-top: 8px; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }
  .cta-row { margin-top: 16px; }
  .cta-row .btn { height: 42px; font-size: 14px; padding: 0 16px; }
  .copy-keep .lede, .saved-search, .saved-row:last-child { display: none; }
  .saved-card { margin-top: 10px; padding: 6px; }
  .saved-head { padding: 4px 6px 4px; }
  .saved-row { padding: 6px 8px; }
  .saved-row p { font-size: 13px; }
  .chapters button { font-size: 11.5px; gap: 6px; padding: 2px 0; }

  .hero-stage { height: auto; min-height: 0; align-items: stretch; }
  .window { height: 100%; border-radius: 14px; }
  .window-bar { height: 34px; }
  .scroll-cue, .skip-demo { display: none !important; }

  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .covers { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .covers { align-items: flex-start; }
  .covers button { flex: none; padding: 8px 12px 8px 8px; }
  .proof { flex: none; width: 220px; margin-top: 0; }
  .covers button svg { width: 44px; height: 44px; }
  .try-panel { min-height: 0; }
  .try-lines .o, .try-lines[data-mode="only"] .x { font-size: 15.5px; }

  .zero-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile-wide figcaption { flex-direction: column; gap: 2px; padding: 12px 14px; }
  .tile figcaption b { font-size: 17px; }
  .tile figcaption span { font-size: 13px; }
  .tile:not(.tile-wide):not(.keys) { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .tile:not(.tile-wide):not(.keys) figcaption { padding: 14px 16px; }
  .tile-wide figcaption { left: 10px; right: 10px; bottom: 10px; }
  .zero { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 20px; }
  .zero b { font-size: 64px; }
  .zero span { margin: 0; }
  .zero small { flex-basis: 100%; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  .shot { padding-right: 0; }
  .lift { position: relative; right: auto; top: auto; width: min(300px, 76%); margin: -56px 12px 0 auto; transform: none !important; }
  .shot figcaption { padding-right: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer nav { justify-content: flex-start; }
}

/* Short laptop screens: give the stage room. */
@media (min-width: 761px) and (max-height: 760px) {
  .display, .hero .display { font-size: clamp(34px, 3.4vw, 48px); }
  .title { font-size: clamp(28px, 3vw, 38px); }
  .hero-copy { gap: 24px; }
  .saved-search { display: none; }
  .hero-grid { padding-block: 16px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .js .sung, .js .window, .js .hero .panel, .eq i, .scroll-cue i, .swap, .faq details[open] p, .big-mark.playing i { animation: none !important; }
  .ln, .try-lines li, .lift, .shot-full { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
