@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Same palette as the app window, so the site and the app read as one object.
   Spacing, radius and type steps follow the Tailwind scale. */
:root {
  --page-bg: #f4f4f6;
  --case: #dee0e6;
  --case-deep: #cdd0d8;
  --case-line: #c3c6cf;
  --cap: #f8f8fa;
  --cap-side: #b4b7c3;
  --ink: #24222c;
  --ink-soft: #46444f;
  --ink-mute: rgba(36, 34, 44, .3);
  --cobalt: #2f45c8;
  --cobalt-hover: #3a51d6;
  --cobalt-side: #1d2c8a;
  --cobalt-ink: #e3e7ff;
  --cobalt-soft: #8e9cff;
  --cobalt-tint: #d3d9fb;
  --dark: #24222c;
  --dark-side: #0e0d12;
  --shade: 30, 32, 52;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 65ch;
  --page: 1200px;
  --gutter: 24px;
  --z-header: 20;
  --z-skip: 30;

  color-scheme: light;
  font-family: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; font-size: 1rem; line-height: 1.5rem; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 300ms var(--ease), text-decoration-color 300ms var(--ease); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 600; }
/* Heading 2 */
h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.025em; }
@media (min-width: 768px) { h2 { font-size: 3rem; line-height: 3rem; letter-spacing: -0.03em; } }
/* Heading 6 */
h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -64px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: var(--z-skip); }
.skip:focus { top: 12px; }

.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.ic-lg { width: 32px; height: 32px; flex: none; }

/* Header: a compact bar floating off the top edge */
.masthead { position: sticky; top: 0; z-index: var(--z-header); padding-top: 12px; }
.masthead > .wrap { display: flex; justify-content: center; }
.bar {
  display: flex; align-items: center; gap: 24px;
  width: 100%;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 24px -12px rgba(var(--shade), .35);
}
@media (min-width: 820px) { .bar { width: auto; } }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.nav-link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.nav-link:hover { background: rgba(var(--shade), .07); }
.nav-link[aria-current="page"] { background: rgba(var(--shade), .09); box-shadow: inset 0 0 0 1px rgba(var(--shade), .12); }

/* Index menu: the same list is a popover panel when narrow and an inline row when wide */
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 300ms var(--ease);
  order: 2;
}
.menu-button:hover { background: rgba(var(--shade), .07); }
.menu-lines { position: relative; width: 18px; height: 10px; }
.menu-lines span { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease); }
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 8px; }
.nav:has(.site-menu:popover-open) .menu-lines span:first-child { transform: translateY(4px) rotate(45deg); }
.nav:has(.site-menu:popover-open) .menu-lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

.site-menu {
  margin: 0; list-style: none;
  position: fixed;
  inset: 80px 0 0 0;
  width: 100dvw; height: auto; max-width: none; max-height: none;
  padding: 32px var(--gutter) 48px;
  border: 0;
  color: var(--ink);
  background: rgba(222, 224, 230, .94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow: auto;
  flex-direction: column; gap: 4px;
}
.site-menu:is(:popover-open, .\:popover-open) { display: flex; }
.site-menu .nav-link { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; }
.site-menu .nav-link:hover { background: transparent; color: var(--cobalt); }
@media (prefers-reduced-motion: no-preference) {
  .site-menu li { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .site-menu:popover-open li { opacity: 1; transform: none; }
  @starting-style {
    .site-menu:popover-open li { opacity: 0; transform: translateY(24px); }
  }
  .site-menu li:nth-child(2) { transition-delay: 60ms; }
  .site-menu li:nth-child(3) { transition-delay: 120ms; }
  .site-menu li:nth-child(4) { transition-delay: 180ms; }
  .site-menu li:nth-child(5) { transition-delay: 240ms; }
}

@media (min-width: 820px) {
  .menu-button { display: none; }
  .site-menu,
  .site-menu:is(:popover-open, .\:popover-open) {
    display: flex; position: static; inset: auto; width: auto; flex-direction: row; gap: 4px;
    padding: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible;
  }
  .site-menu .nav-link { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0; padding: 8px 12px; }
  .site-menu .nav-link:hover { background: rgba(var(--shade), .07); color: var(--ink); }
  }

/* Keycap: the one physical object on the page; buttons and the sound board share it. */
.cap {
  --top: var(--cap);
  --side: var(--cap-side);
  --legend: var(--ink);
  position: relative;
  display: inline-flex;
  appearance: none;
  border: 0;
  margin: 0 0 4px;
  font: inherit;
  color: var(--legend);
  text-decoration: none;
  cursor: pointer;
  background: var(--top);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 4px 0 var(--side),
    0 8px 16px -4px rgba(var(--shade), .3);
  transform: translateY(0);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 300ms var(--ease);
}
.cap:hover { --top: #fff; }
.cap:active, .cap.is-down {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 0 0 var(--side),
    0 2px 4px rgba(var(--shade), .25);
}
.cap-blue { --top: var(--cobalt); --side: var(--cobalt-side); --legend: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 0 var(--side), 0 8px 16px -4px rgba(var(--shade), .35); }
.cap-blue:hover { --top: var(--cobalt-hover); }
.cap-dark { --top: var(--dark); --side: var(--dark-side); --legend: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 0 var(--side), 0 8px 16px -4px rgba(var(--shade), .35); }
.cap-dark:hover { --top: #36333f; }

/* Button-md by default, Button-sm in the header, Button-lg for page actions */
.btn { align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; font-weight: 600; font-size: 1rem; line-height: 1.5rem; white-space: nowrap; }
.btn-sm { padding: 8px 12px; font-size: 0.875rem; line-height: 1.25rem; border-radius: 8px; order: 1; }
.btn-lg { padding: 12px 24px; font-size: 1.125rem; line-height: 1.75rem; }
.price-chip { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding: 64px 0 0; }
@media (min-width: 768px) { .hero { padding-top: 96px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 64px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; }
  .hero-grid > .listen { grid-column: 1 / -1; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-soft); }
.hero-title {
  margin-top: 16px;
  max-width: 680px;
  font-size: 3rem; line-height: 3rem; letter-spacing: -0.035em; font-weight: 600;
  color: #16151b;
}
.hero-title .hl { color: #16151b; background: var(--cobalt-tint); border-radius: 8px; padding: 0 8px; margin: 0 -4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; line-height: 4.5rem; letter-spacing: -0.04em; } }
.lede { margin-top: 24px; max-width: 560px; font-size: 1.125rem; line-height: 1.75rem; color: var(--ink); }
@media (min-width: 768px) { .lede { font-size: 1.25rem; line-height: 1.75rem; } }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 559px) { .hero-actions .btn-lg { flex: 1 1 100%; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 1rem; line-height: 1.5rem; color: var(--ink-soft); }
@media (min-width: 640px) and (max-width: 1023px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.facts .ic { width: 24px; height: 24px; color: var(--cobalt); }
.facts strong { color: var(--ink); font-weight: 600; }

/* Sound board: a dark desk with real keycaps on it */
.listen { margin-top: 64px; }
.stage {
  padding: 24px 16px;
  border-radius: 24px;
  background: #181818;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 80px -40px rgba(var(--shade), .7);
}
@media (min-width: 768px) { .stage { padding: 32px; } }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 24px; }
.stage-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.stage-title .ic { color: var(--cobalt-soft); }
.stage-hint { font-size: 0.875rem; line-height: 1.25rem; color: #9b9b9b; }
.plate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 12px;
  border-radius: 16px;
  background: #272727;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
@media (min-width: 640px) { .plate { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plate { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 16px; } }
.plate .cap {
  --rim: #c9ccd5;
  --face: #f8f8fa;
  display: flex;
  min-width: 0;
  margin: 0 0 8px;
  padding: 4px 8px 12px;
  border-radius: 12px;
  background: var(--rim);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 8px 0 #0e0d12, 0 16px 24px -8px rgba(0, 0, 0, .7);
}
.cap-face {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 112px;
  padding: 12px;
  border-radius: 8px;
  background: var(--face);
  box-shadow: inset 0 -2px 4px rgba(var(--shade), .08), 0 1px 2px rgba(var(--shade), .2);
  text-align: left;
  transition: background-color 300ms var(--ease);
}
@media (min-width: 1024px) { .cap-face { min-height: 144px; } }
@media (max-width: 639px) { .plate .cap:last-child { grid-column: span 2; } .plate .cap:last-child .cap-face { min-height: 80px; } }
.plate .cap:hover { --face: #fff; }
.plate .cap:active, .plate .cap.is-down {
  transform: translateY(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 0 #0e0d12, 0 4px 8px -2px rgba(0, 0, 0, .6);
}
/* Title 2, Body 6, Caption 3 */
.cap-name { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.cap-desc { margin-top: 4px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-soft); }
.cap-tier { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--ink-soft); }
.cap-tier::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-soft); }
.cap-tier.free::before { background: var(--cobalt); }
.plate .cap[aria-pressed="true"] { --rim: #2539a8; --face: var(--cobalt); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 8px 0 #0b1340, 0 16px 24px -8px rgba(47, 69, 200, .55); }
.plate .cap[aria-pressed="true"]:hover { --face: var(--cobalt-hover); }
.plate .cap[aria-pressed="true"].is-down { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 2px 0 #0b1340, 0 4px 12px -2px rgba(47, 69, 200, .6); }
.plate .cap[aria-pressed="true"] .cap-desc,
.plate .cap[aria-pressed="true"] .cap-tier { color: var(--cobalt-ink); }
.plate .cap[aria-pressed="true"] .cap-tier::before { background: #fff; }

.player { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 40px; }
.player audio { display: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 4px; width: 32px; height: 24px; }
.eq span { flex: 1; height: 100%; border-radius: 2px; background: var(--cobalt-soft); transform: scaleY(.2); transform-origin: bottom; transition: transform 300ms var(--ease); }
.stage.is-playing .eq span { animation: eq 900ms var(--ease) infinite alternate; }
.stage.is-playing .eq span:nth-child(2) { animation-delay: -300ms; }
.stage.is-playing .eq span:nth-child(3) { animation-delay: -600ms; }
.stage.is-playing .eq span:nth-child(4) { animation-delay: -150ms; }
.stage.is-playing .eq span:nth-child(5) { animation-delay: -450ms; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.now { font-size: 1rem; line-height: 1.5rem; color: #d4d4d8; }
.now strong { font-weight: 600; color: #fff; }
.stop { appearance: none; border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: 4px 12px; border-radius: 8px; cursor: pointer; transition: background-color 300ms var(--ease); }
.stop:hover { background: rgba(255, 255, 255, .1); }
.stop:active { transform: translateY(1px); }
.player-error { margin-top: 12px; font-size: 0.875rem; line-height: 1.25rem; color: #fff; }
.player-error a { color: var(--cobalt-soft); }

/* Tagline reveal */
.tagline { padding: 96px 0 0; }
@media (min-width: 768px) { .tagline { padding-top: 160px; } }
.tagline-text { max-width: 760px; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 768px) { .tagline-text { max-width: 960px; font-size: 3rem; line-height: 3rem; letter-spacing: -0.03em; } }
.tagline-text .w { color: var(--ink-mute); transition: color 600ms var(--ease); }
.tagline-text .w.on { color: var(--ink); }

/* Sections */
.section { padding: 96px 0 0; }
@media (min-width: 768px) { .section { padding-top: 160px; } }
.section-head h2 { max-width: 680px; }
.section-intro { margin-top: 16px; max-width: 560px; font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-soft); }
.group-title { margin-top: 64px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }

.feature-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; } }
.feature-grid li { padding-top: 24px; border-top: 1px solid var(--case-line); }
.feature-grid h4 { margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature-grid p { margin-top: 8px; font-size: 1rem; line-height: 1.5rem; color: var(--ink-soft); max-width: 40ch; }
.feature-grid kbd { font-size: 0.75rem; }
.pro-note { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.02em; }

.split { margin-top: 96px; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }
.split .group-title { margin-top: 0; }
.shot { margin: 0; max-width: 440px; }
.shot img { border-radius: 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 48px -16px rgba(var(--shade), .45), 0 2px 8px rgba(var(--shade), .12); }
.shot figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.25rem; color: var(--ink-soft); max-width: 44ch; }
.split-text .use-list { margin-top: 32px; }
.split-lede { margin-top: 12px; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.025em; max-width: 18ch; }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.use-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; font-size: 1.125rem; line-height: 1.75rem; max-width: var(--measure); }
.use-list .ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--cap); color: var(--cobalt); box-shadow: 0 2px 0 var(--cap-side); }

kbd {
  display: inline-block;
  font: inherit;
  font-size: .8125em;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 6px;
  background: var(--cap);
  box-shadow: 0 2px 0 var(--cap-side), 0 4px 4px -2px rgba(var(--shade), .25);
  vertical-align: 1px;
}


/* Free vs Pro */
.compare-wrap { margin-top: 48px; max-width: 880px; overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--case-line); font-size: 1rem; line-height: 1.5rem; }
.compare thead th { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 400; }
.compare td { width: 22%; text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare .pro-col { background: #e9ecfb; }
.compare thead .pro-col { color: var(--cobalt); border-radius: 16px 16px 0 0; border-bottom-color: var(--cobalt); }
.compare tfoot .pro-col { border-radius: 0 0 16px 16px; }
.compare tfoot td, .compare tfoot th { border-bottom: 0; padding-top: 24px; padding-bottom: 24px; }
.compare tfoot th { font-weight: 400; color: var(--ink-soft); }
.compare .price { font-weight: 600; font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; display: block; }
.compare .price-note { display: block; font-size: .75rem; line-height: 1rem; color: var(--ink-soft); margin-top: 2px; }
.yes, .no { display: inline-block; vertical-align: middle; }
.yes { width: 24px; height: 24px; color: var(--cobalt); }
.no { width: 12px; height: 2px; background: #9a9ca8; border-radius: 2px; }
.buy-under { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; max-width: 1040px; }
@media (min-width: 860px) { .buy-under { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.buy-copy p { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; line-height: 1.5rem; max-width: 46ch; }
.pro-shot { margin: 0; }
.pro-shot img { border-radius: 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 48px -16px rgba(var(--shade), .45), 0 2px 8px rgba(var(--shade), .12); }
.pro-shot figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.25rem; color: var(--ink-soft); }

@media (max-width: 559px) {
  .compare th, .compare td { padding: 12px 8px; font-size: .875rem; line-height: 1.25rem; }
  .compare td { width: 24%; }
  .compare thead th { font-size: 1rem; line-height: 1.5rem; }
  .compare .price { font-size: 1.125rem; line-height: 1.75rem; }
}

/* Download */
.download-card {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 24px;
  border-radius: 24px;
  background: var(--case-deep);
  box-shadow: inset 0 2px 8px rgba(var(--shade), .14);
}
@media (min-width: 860px) { .download-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 48px; } }
.download-main p { margin-top: 16px; max-width: 46ch; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.75rem; }
.download-main .cap { margin-top: 32px; }
.store-note { color: var(--ink-soft); font-size: .875rem; line-height: 1.25rem; max-width: 60ch; align-self: end; }
.store-note p + p { margin-top: 12px; }
.store-note strong { color: var(--ink); font-weight: 600; }
.store-note .sha code { font-size: .75rem; word-break: break-all; }

/* FAQ: every answer visible, two columns when there is room */
.faq { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 0 64px; }
@media (min-width: 860px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa { padding: 24px 0 32px; border-top: 1px solid var(--case-line); }
.qa h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.qa .answer { margin-top: 8px; color: var(--ink-soft); max-width: var(--measure); }
.qa .answer p + p { margin-top: 8px; }

/* Final call to action */
.final h2 { max-width: 680px; }

/* Long form pages */
.doc { padding: 48px 0 0; }
@media (min-width: 768px) { .doc { padding-top: 80px; } }
.doc h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; font-weight: 600; max-width: 680px; }
@media (min-width: 768px) { .doc h1 { font-size: 3.75rem; line-height: 3.75rem; letter-spacing: -0.035em; } }
.doc .meta { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.75rem; max-width: var(--measure); }
.doc-body { max-width: var(--measure); margin-top: 40px; }
.doc-body h2 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; margin: 48px 0 16px; }
@media (min-width: 768px) { .doc-body h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.doc-body h3 { margin: 32px 0 8px; font-size: 1.125rem; line-height: 1.75rem; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body dl { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { padding-left: 1.25em; }
.doc-body li + li { margin-top: 8px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875em; background: var(--case-deep); padding: 2px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.doc-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.doc-body dt { font-weight: 600; }
.doc-body dd { margin: 0; }
@media (max-width: 559px) { .doc-body dl { grid-template-columns: 1fr; gap: 2px; } .doc-body dd { margin-bottom: 12px; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; max-width: 760px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 0 24px; padding: 0 0 32px; }
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 8;
  align-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-weight: 600; font-size: 1.25rem;
  border-radius: 12px;
  background: var(--cap);
  box-shadow: 0 4px 0 var(--cap-side), 0 8px 12px -4px rgba(var(--shade), .25);
}
.steps li > * { grid-column: 2; min-width: 0; }
.steps h2 { font-size: 1.25rem; line-height: 1.75rem; margin: 8px 0 8px; }
.steps p + p { margin-top: 12px; }
.steps figure { margin: 16px 0 0; }
.steps figure img { border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(var(--shade), .45), 0 2px 4px rgba(var(--shade), .12); }
.steps figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.25rem; color: var(--ink-soft); }
@media (max-width: 559px) {
  .steps li { grid-template-columns: 40px 1fr; gap: 0 16px; }
  .steps li::before { width: 40px; height: 40px; font-size: 1rem; border-radius: 8px; }
  .steps h2 { margin-top: 4px; }
}

.notfound { padding: 96px 0 48px; }
.notfound .cap { margin-top: 32px; }
.notfound p { margin-top: 24px; max-width: 44ch; font-size: 1.125rem; line-height: 1.75rem; }
.notfound h1 { font-size: 3rem; line-height: 3rem; letter-spacing: -0.035em; font-weight: 600; max-width: 680px; }

.table-scroll { overflow-x: auto; margin: 16px 0 8px; }
.doc-body table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .875rem; line-height: 1.25rem; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid rgba(var(--shade), .12); }
.doc-body thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid rgba(var(--shade), .2); }
.doc-body tbody th { font-weight: 600; white-space: nowrap; }

/* Footer */
.footer { margin-top: 96px; padding: 48px 0 0; background: var(--case-deep); font-size: .875rem; line-height: 1.25rem; color: var(--ink-soft); overflow: hidden; }
@media (min-width: 768px) { .footer { margin-top: 160px; } }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer address { font-style: normal; line-height: 1.5rem; max-width: 56ch; }
.footer address strong { color: var(--ink); font-weight: 600; }
.footer nav { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer a { color: var(--ink); }
.footer .fine { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .footer .wrap { grid-template-columns: 1fr; }
  .footer nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Scroll reveals: only when script is running, so nothing stays hidden without it */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 300ms var(--ease); }
  .cap, .cap:active, .cap.is-down { transform: none; }
  .menu-lines span { transition: none; }
  .tagline-text .w { color: var(--ink); transition: none; }
  .stage.is-playing .eq span { animation: none; transform: scaleY(.7); }
}

@media (forced-colors: active) {
  .cap { border: 2px solid ButtonText; }
  .plate .cap[aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
  .hero-title { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; }
  .tagline-text .w { color: CanvasText; }
}

.crumbs { font-size: .875rem; line-height: 1.25rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); }
.doc-body .doc-cta { margin: 24px 0 32px; }
.doc-body .doc-cta .cap { white-space: normal; text-align: center; }

/* Keep the highlight block behind the line above it, so descenders stay visible */
.hero-title { position: relative; z-index: 0; }
.hero-title .hl { position: relative; z-index: -1; }
@media (max-width: 639px) { .cap-name { font-size: 1rem; line-height: 1.5rem; } .cap-face { padding: 12px 8px; } }

/* Round 3: bigger hero type, facts under the actions, saturated highlight, thicker keycaps,
   table actions, white cards and a dark footer */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.hero-title { max-width: 920px; }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; line-height: 6rem; letter-spacing: -0.045em; } }
.hero-title .hl { color: #fff; background: var(--cobalt); }
.facts { margin-top: 40px; }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; max-width: 1120px; } }
@media (max-width: 1023px) and (min-width: 640px) { .facts { margin-top: 40px; } }

.plate { padding: 16px 12px 20px; }
@media (min-width: 1024px) { .plate { padding: 24px 24px 28px; gap: 20px; } }
.plate .cap { padding: 6px 10px 18px; border-radius: 14px; margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 10px 0 #0e0d12, 0 20px 28px -8px rgba(0, 0, 0, .75); }
.cap-face { border-radius: 8px; box-shadow: inset 0 -6px 12px rgba(var(--shade), .1), inset 0 1px 0 #fff, 0 2px 3px rgba(var(--shade), .28); }
.plate .cap:active, .plate .cap.is-down { transform: translateY(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 2px 0 #0e0d12, 0 4px 8px -2px rgba(0, 0, 0, .6); }
.plate .cap[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .22), 0 10px 0 #0b1340, 0 20px 28px -8px rgba(47, 69, 200, .55); }
.plate .cap[aria-pressed="true"] .cap-face { box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 3px rgba(0, 0, 0, .3); }

/* Header actions */
.head-download { order: 1; }
.head-buy { order: 1; }
@media (max-width: 559px) { .head-buy { display: none; } }
.site-menu .menu-buy { margin-top: 24px; }
@media (min-width: 820px) { .site-menu .menu-buy { display: none; } }

/* Pricing actions in the table */
.compare .row-actions td, .compare .row-actions th { border-bottom: 0; padding-top: 0; padding-bottom: 24px; }
.compare .row-actions .cap { margin: 0 0 4px; }
.compare tfoot tr:first-child td, .compare tfoot tr:first-child th { padding-bottom: 16px; }
.compare tfoot .pro-col { border-radius: 0; }
.compare .row-actions .pro-col { border-radius: 0 0 16px 16px; }
.buy-copy h3 { font-size: 1.25rem; line-height: 1.75rem; }
.buy-copy p { margin-top: 8px; }
.pro-shot { max-width: 520px; }

/* White cards instead of grey on grey */
.download-card { background: #fff; box-shadow: 0 0 0 1px rgba(var(--shade), .1), 0 24px 48px -32px rgba(var(--shade), .4); }

/* Dark footer */
.footer { background: #181818; color: #b5b5b9; }
.footer address strong { color: #fff; }
.footer a { color: #fff; }
.footer .wrap { padding-bottom: 48px; }
.hero-title .hl { display: inline-block; margin: 8px 0 0 -8px; padding: 0 12px; border-radius: 12px; }
@media (min-width: 1024px) { .hero-title .hl { margin-top: 16px; border-radius: 16px; } }
@media (max-width: 559px) { .compare tbody th, .compare tfoot th { width: 52%; } .compare td { width: 24%; } }
.store-note .sha code { font-size: .875rem; }

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* Boardtone home: cinematic layer on top of site.css (2026-11-27).
   The film, the feature track and the final band are night scenes; listening,
   pricing and FAQ stay on the light keyboard-case palette. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* Metric-matched fallbacks (size-adjust / ascent-override measured from the real fonts with
   fontTools), so the swap to the web font moves nothing. */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Georgia");
  size-adjust: 76.96%; ascent-override: 128.6%; descent-override: 40.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 105.13%; ascent-override: 95.6%; descent-override: 28.06%; line-gap-override: 0%;
}

/* Palette in OKLCH; mixes with color-mix() */
:root {
  --night: oklch(14.5% 0.012 270);
  --night-2: oklch(19% 0.03 270);
  --scene: oklch(15.5% 0.035 262);
  --moon: oklch(95.5% 0.008 270);
  --moon-soft: color-mix(in oklch, var(--moon) 72%, transparent);
  --glow: oklch(60% 0.2 272);
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Iowan Old Style", Georgia, serif;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Geist", "Geist Fallback", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  interpolate-size: allow-keywords;
}
html.lenis, html.lenis body { height: auto; }
:root { scroll-behavior: auto; }
body { background: var(--page-bg); }

/* ---------- Header: dark glass pill that reads over both night and day ---------- */
.masthead { position: fixed; inset: 0 0 auto 0; }
.bar {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(10, 11, 18, .55);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
}
.brand { color: var(--moon); }
.nav-link { color: var(--moon-soft); }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu-button { color: var(--moon); }
.menu-button:hover { background: rgba(255, 255, 255, .08); }
.site-menu { background: rgba(8, 9, 14, .94); color: var(--moon); }
.site-menu .nav-link { color: var(--moon); }
@media (min-width: 820px) {
  .site-menu .nav-link { color: var(--moon-soft); }
  .site-menu .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}
.head-buy.cap-dark { --top: #1c1d27; --side: #000; }

/* ---------- Shared type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; line-height: 1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moon-soft); font-weight: 500; }
.kicker span { font-variant-numeric: tabular-nums; color: var(--cobalt-soft); }
.kicker.dark { color: var(--ink-soft); }
.kicker.dark span { color: var(--cobalt); }
.display { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; color: var(--ink); }
.display em { font-style: italic; color: var(--cobalt); }
.display.light { color: var(--moon); }
.display.light em { color: var(--cobalt-soft); }
.display.small { font-size: clamp(2.5rem, 4.5vw, 3.75rem); margin-top: 0; }
.display.huge { font-size: clamp(3.25rem, 9vw, 8.5rem); max-width: 13ch; }
.sec-head .section-intro { margin-top: 20px; }

/* ---------- Film (hero scrub) ---------- */
.film { position: relative; background: #050a16; color: var(--moon); }
.film-sticky { position: relative; min-height: 100svh; overflow: hidden; }
.film-poster, .film-poster img, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-poster img { object-fit: cover; object-position: 62% 50%; }
.film-canvas { opacity: 0; transition: opacity 400ms linear; }
.film.has-frames .film-canvas { opacity: 1; }
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, .94) 0%, rgba(5, 10, 22, .8) 30%, rgba(5, 10, 22, .35) 46%, rgba(5, 10, 22, 0) 60%),
    linear-gradient(0deg, rgba(7, 8, 13, .7) 0%, rgba(7, 8, 13, 0) 30%);
}
.film-layer { position: relative; z-index: 2; }
.layer-1 { padding: 132px var(--gutter) 64px; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.layer-1 .eyebrow { color: var(--moon-soft); }
.film-title { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(3.25rem, 5.6vw, 5.75rem); line-height: .98; letter-spacing: -0.025em; max-width: 6.6em; color: #fff; text-wrap: balance; }
.film-title em { font-style: italic; color: var(--cobalt-soft); }
.film-foot { margin-top: 28px; max-width: 480px; }
.film .lede { margin-top: 0; color: var(--moon-soft); font-size: 1.125rem; line-height: 1.75rem; }
.film .hero-actions { margin-top: 28px; }
.film-h { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 5.6vw, 5.5rem); line-height: 1; letter-spacing: -0.02em; max-width: 11ch; color: #fff; }
.film-h em { font-style: italic; color: var(--cobalt-soft); }
.film-p { margin-top: 20px; max-width: 42ch; font-size: 1.125rem; line-height: 1.75rem; color: oklch(92% 0.01 270); }
.layer-4 .cap { margin-top: 28px; align-self: flex-start; }
.film-layer h1, .film-layer h2, .film-layer p { text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.layer-2, .layer-3, .layer-4 { padding: 96px var(--gutter); max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; }
.film-progress, .scroll-hint { display: none; }

/* Motion on: the stage pins and the layers become timed overlays */
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film { height: 400svh; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film-sticky { position: sticky; top: 0; height: 100svh; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film-layer { position: absolute; inset: 0; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 64px; max-width: calc(var(--page) + 2 * var(--gutter)); will-change: opacity, transform; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .layer-2, :root:not(.no-motion) .layer-3, :root:not(.no-motion) .layer-4 { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film-progress { display: block; position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: rgba(255, 255, 255, .14); max-width: 220px; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film-progress span { display: block; height: 100%; width: 100%; background: var(--cobalt-soft); transform-origin: left; transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .scroll-hint { display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--moon-soft); } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .scroll-hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--moon-soft), transparent); animation: hint 1.8s var(--expo) infinite; transform-origin: top; } }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 767px) {
  .film-poster img { object-fit: contain; object-position: 50% 56%; }
  .film-shade { background: linear-gradient(180deg, rgba(5, 10, 22, .85) 0%, rgba(5, 10, 22, 0) 34%, rgba(5, 10, 22, 0) 62%, rgba(5, 10, 22, .9) 80%); }
  .layer-1 { justify-content: space-between; padding-top: 104px; padding-bottom: 40px; }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film-layer { padding: 104px var(--gutter) 56px; } }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .layer-1 { justify-content: flex-start; } }
  .layer-1 { justify-content: flex-start; }
  .film-foot { margin-top: auto; }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .layer-2, :root:not(.no-motion) .layer-3, :root:not(.no-motion) .layer-4 { justify-content: flex-start; padding-top: 112px; } }
  .film-title { font-size: 3.05rem; max-width: none; }
  .compare tbody th, .compare tfoot th { width: 50%; }
  .compare td { width: 25%; }
  .film .hero-actions .btn-lg { flex: 1 1 auto; padding: 12px 16px; font-size: 1rem; }
  .film .lede { font-size: .9375rem; line-height: 1.4rem; }
  .film-h { font-size: 2.5rem; }
  .film .lede, .film-p { font-size: 1rem; line-height: 1.5rem; }
  .film .hero-actions { margin-top: 20px; }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .film { height: 400svh; } }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .scroll-hint { display: none; } }
}

/* ---------- Listen ---------- */
.listen-sec { position: relative; padding: 128px 0 0; background: var(--page-bg); }
.listen-sec .stage { margin-top: 48px; }
.plate .cap { transition: transform 220ms var(--expo), box-shadow 220ms var(--expo), filter 300ms var(--expo); }
@media (hover: hover) {
  .plate .cap:hover { transform: translateY(3px); filter: drop-shadow(0 0 18px rgba(91, 108, 255, .55)); }
  .plate .cap:hover .cap-face { box-shadow: inset 0 0 0 1px rgba(91, 108, 255, .45), inset 0 -12px 24px -12px rgba(91, 108, 255, .35); }
}
.trykeys { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 12px; }
@media (min-width: 860px) { .trykeys { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; } .try-note { grid-column: 1 / -1; } }
.sound-toggle { appearance: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background-color 300ms var(--expo), border-color 300ms var(--expo); }
.sound-toggle:hover { background: rgba(255, 255, 255, .1); }
.sound-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6d7a; transition: background-color 300ms, box-shadow 300ms; }
.sound-toggle[aria-pressed="true"] { border-color: var(--cobalt-soft); }
.sound-toggle[aria-pressed="true"] .dot { background: #7dffb2; box-shadow: 0 0 10px #7dffb2; }
.try-input { width: 100%; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .25); color: #fff; font: inherit; font-size: 1rem; }
.try-input::placeholder { color: rgba(255, 255, 255, .45); }
.try-input:focus-visible { outline: 2px solid var(--cobalt-soft); outline-offset: 2px; }
.try-note { font-size: .875rem; line-height: 1.35rem; color: #b4b5c2; }
.ripple { position: absolute; pointer-events: none; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--cobalt-soft); opacity: .9; z-index: 5; }

/* ---------- Feature track (pinned horizontal) ---------- */
.track-sec { position: relative; margin-top: 128px; background: radial-gradient(120% 90% at 80% 10%, #141a3d 0%, var(--night) 60%); color: var(--moon); overflow: hidden; }
.track-pin { padding: 112px 0 96px; }
.track-intro { padding-inline: var(--gutter); max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; }
.track-sub { margin-top: 20px; max-width: 46ch; color: var(--moon-soft); font-size: 1.125rem; line-height: 1.75rem; }
.track { list-style: none; margin: 56px 0 0; padding: 0 var(--gutter); display: grid; gap: 16px; }
@media (min-width: 640px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcard { position: relative; padding: 28px 24px 32px; border-radius: 20px; background: linear-gradient(160deg, oklch(24% 0.03 270), oklch(18% 0.025 270)); border: 1px solid oklch(34% 0.03 270); overflow: hidden; transform-style: preserve-3d; transition: transform .3s var(--ease-ui), border-color .3s var(--ease-ui); }
.tcard .ic-lg { color: var(--cobalt-soft); }
.tcard h3 { margin-top: 48px; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tcard p { margin-top: 12px; color: oklch(88% 0.01 270); font-size: 1rem; line-height: 1.55rem; }
.tcard kbd { color: var(--ink); }
.tcard code { background: rgba(255, 255, 255, .12); color: #fff; }
.tnum { position: absolute; top: 20px; right: 22px; font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: rgba(255, 255, 255, .1); }
.tcard.pro { background: linear-gradient(160deg, rgba(91, 108, 255, .28), rgba(47, 69, 200, .08)); border-color: rgba(142, 156, 255, .35); }
.tcard .pro-note { background: var(--cobalt); font-family: "Geist", system-ui, sans-serif; }
.tcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(142, 156, 255, .22), transparent 60%); }

/* Wide screens with motion: the cards ride one horizontal rail while the section is pinned */
@media (min-width: 1024px) {
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .track-pin { height: 100svh; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; overflow: hidden; } }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .track-intro { width: 100%; } }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .track { display: flex; gap: 20px; margin-top: 56px; padding-left: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); padding-right: 12vw; width: max-content; justify-self: start; will-change: transform; } }
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .tcard { width: 340px; min-height: 360px; flex: none; } }
}

/* ---------- Tagline (scrubbed word fill) ---------- */
.tagline { padding: 160px 0 0; }
.tagline-text { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5.2vw, 4.75rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 18ch; }
.tagline-text .w { transition: none; }

/* ---------- Numbers ---------- */
.numbers { padding: 112px 0 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; border-top: 1px solid var(--case-line); padding-top: 40px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-n { display: block; font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Everyday split ---------- */
.everyday .split { margin-top: 0; }
.everyday .display { font-size: clamp(2.5rem, 4.6vw, 4rem); max-width: 16ch; }
.everyday .use-list { margin-top: 40px; }
.shot { perspective: 1200px; }

/* ---------- Final band ---------- */
.final { position: relative; margin-top: 160px; padding: 160px 0 140px; background: var(--night); color: var(--moon); overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: -6% 0 auto auto; width: min(1100px, 92vw); height: auto; opacity: .55; z-index: -1; -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 40%, transparent 85%); mask-image: radial-gradient(70% 70% at 60% 50%, #000 40%, transparent 85%); }
.final-sub { margin-top: 24px; max-width: 44ch; font-size: 1.25rem; line-height: 1.75rem; color: var(--moon-soft); }
.final .hero-actions { margin-top: 40px; }
.footer { margin-top: 0; background: #05060a; color: rgba(238, 240, 246, .6); padding-bottom: 32px; }
.footer address strong, .footer a { color: var(--moon); }

/* ---------- Cursor glow (night scenes, fine pointers only) ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 15; background: radial-gradient(circle, rgba(91, 108, 255, .22) 0%, rgba(91, 108, 255, .08) 35%, transparent 70%); mix-blend-mode: screen; opacity: 0; transition: opacity 500ms var(--expo); }
.cursor-glow.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Pre-animation states (only while motion runs) ---------- */
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .reveal-clip img { clip-path: inset(18% 12% 18% 12% round 24px); transform: rotateX(14deg) scale(.92); transform-origin: 50% 80%; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) [data-rise] { opacity: 0; transform: translateY(80px) scale(.97); } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) [data-fade] { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) [data-stagger] > * { opacity: 0; transform: translateY(28px); } }
/* ==========================================================================
   Inner page templates: compare, legal, thanks, 404. Each opens on a full-bleed
   scene from the same keyboard world; the body below is the light document.
   ========================================================================== */
.page-cine { padding: 0; }
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: clip; background: #050a16; color: var(--moon); isolation: isolate; }
.page-hero.hero-full { min-height: 100svh; align-items: center; }
.ph-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ph-media picture, .ph-media img { display: block; width: 100%; height: 100%; }
.ph-media img { object-fit: cover; object-position: 62% 50%; transform-origin: 60% 50%; }
.ph-media video, .ph-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity 500ms linear; }
.ph-media.has-film video, .ph-media.has-film canvas { opacity: 1; }
.ph-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 10, 22, .88) 0%, rgba(5, 10, 22, .5) 38%, rgba(5, 10, 22, 0) 64%), linear-gradient(0deg, rgba(5, 10, 22, .85) 0%, rgba(5, 10, 22, 0) 45%); }
.ph-inner { position: relative; padding-top: 140px; padding-bottom: 72px; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.02em; max-width: 13ch; color: #fff; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .5); }
.page-hero .meta { margin-top: 24px; max-width: 56ch; color: var(--moon-soft); font-size: 1.125rem; line-height: 1.75rem; }
.page-hero .crumbs { color: var(--moon-soft); margin-bottom: 24px; letter-spacing: .02em; }
.page-hero .crumbs a { color: var(--moon); }
.page-hero.hero-full p { margin-top: 24px; max-width: 44ch; font-size: 1.125rem; line-height: 1.75rem; color: var(--moon-soft); }
.page-hero.hero-full .cap { margin-top: 32px; }
.page-cine > .wrap { padding-top: 72px; }
.page-cine .doc-body { margin-top: 0; }
.page-cine .doc-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.01em; margin-top: 72px; }
.page-cine .doc-body h2:first-child { margin-top: 0; }
.page-cine .steps { margin-top: 0; }
.page-cine .steps h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.page-cine .table-scroll { border-radius: 16px; }
@media (max-width: 767px) {
  .ph-media img { object-position: 50% 50%; }
  .page-hero { min-height: 86svh; }
  .ph-shade { background: linear-gradient(0deg, rgba(5, 10, 22, .95) 0%, rgba(5, 10, 22, .6) 45%, rgba(5, 10, 22, .1) 75%); }
  .ph-inner { padding-top: 120px; padding-bottom: 48px; }
  .page-hero h1 { font-size: 2.6rem; }
  .page-hero .meta { font-size: 1rem; line-height: 1.5rem; }
}

/* Compare template: the hero pins and the key-row clip scrubs under the title */
.hero-scrub { display: block; min-height: 0; }
.ph-sticky { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .hero-scrub { height: 150svh; } }
@media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .hero-scrub .ph-sticky { position: sticky; top: 0; height: 100svh; } }
@media (max-width: 767px) {
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .hero-scrub { height: 170svh; } }
  .ph-sticky { min-height: 86svh; }
}

/* Hero titles rise on load by CSS: painted in the first frame, so LCP is not delayed */
@media (prefers-reduced-motion: no-preference) {
  .film-title, .page-hero h1 { animation: title-rise .9s var(--expo) both; }
  @keyframes title-rise { from { transform: translateY(.45em); letter-spacing: .01em; } to { transform: none; } }
}

/* Load-in: slow dolly on the scene, title rises (CSS only, no JS needed) */
@media (prefers-reduced-motion: no-preference) {
  .ph-media picture { animation: ph-dolly 1.4s var(--expo) both; }
  @keyframes ph-dolly { from { transform: scale(1.08); clip-path: inset(5% 4% 5% 4% round 28px); } to { transform: scale(1); clip-path: inset(0 0 0 0 round 0); } }
  .page-hero .crumbs, .page-hero .meta, .page-hero .ph-answer, .page-hero .ph-actions, .page-hero.hero-full p, .page-hero.hero-full .cap { animation: ph-up .7s var(--expo) .08s both; }
  .layer-1 .eyebrow, .layer-1 .film-foot { animation: ph-up .7s var(--expo) both; }
  .layer-1 .film-foot, .page-hero .ph-actions { animation-delay: .16s; }
  @keyframes ph-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Scroll-driven (CSS, compositor): scene drifts and deepens as the page scrolls past it,
   document blocks rise in as they enter. Browsers without view timelines get the
   IntersectionObserver fallback in motion.js (.sd-in). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ph-media img { animation: ph-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes ph-drift { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(8%); } }
    .ph-inner { animation: ph-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
    .hero-scrub .ph-media img, .hero-scrub .ph-inner { animation: none; }
    @keyframes ph-lift { to { opacity: 0; transform: translateY(-60px); } }
    .sd { animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .sd-clip { animation: sd-clip linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .sd-row { animation: sd-row linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
  @supports not (animation-timeline: view()) {
    .js-sd .sd, .js-sd .sd-row { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--expo), transform .9s var(--expo); }
    .js-sd .sd-clip { clip-path: inset(14% 10% 14% 10% round 20px); transition: clip-path 1.2s var(--expo); }
    .js-sd .sd.sd-in, .js-sd .sd-row.sd-in { opacity: 1; transform: none; }
    .js-sd .sd-clip.sd-in { clip-path: inset(0 0 0 0 round 12px); }
  }
}
@keyframes sd-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes sd-row { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes sd-clip { from { clip-path: inset(14% 10% 14% 10% round 20px); transform: scale(.96); } to { clip-path: inset(0 0 0 0 round 12px); transform: none; } }

/* Cross-document page transition: header stays put, the page lifts out and the next fades up */
/* Directional types ("deeper" into an inner page, "back" to the home page) are set in
   motion.js on pagereveal from navigation.activation. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  .film-title, .page-hero h1 { view-transition-name: page-title; view-transition-class: title; }
  ::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--expo) both; }
  ::view-transition-group(.title) { animation-duration: .6s; animation-timing-function: var(--expo); }
  :active-view-transition-type(deeper) {
    &::view-transition-old(root) { animation-name: vt-out-left; }
    &::view-transition-new(root) { animation-name: vt-in-right; }
  }
  :active-view-transition-type(back) {
    &::view-transition-old(root) { animation-name: vt-out-right; }
    &::view-transition-new(root) { animation-name: vt-in-left; }
  }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-24px) scale(.985); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }
  @keyframes vt-out-left { to { opacity: 0; transform: translateX(-6%); } }
  @keyframes vt-in-right { from { opacity: 0; transform: translateX(8%); } }
  @keyframes vt-out-right { to { opacity: 0; transform: translateX(6%); } }
  @keyframes vt-in-left { from { opacity: 0; transform: translateX(-8%); } }
}

/* Below-the-fold blocks skip layout/paint until they come near (auto keeps the real size once seen) */
.footer { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.footer { contain-intrinsic-size: auto 320px; }

/* The try-it row fades in when script reveals it */
.trykeys { transition: opacity .6s var(--expo), translate .6s var(--expo); }
@starting-style { .trykeys { opacity: 0; translate: 0 12px; } }

/* Feature cards size their titles to their own width */
.tcard { container-type: inline-size; }
@container (max-width: 300px) { .tcard h3 { font-size: 1.75rem; } }

@media (prefers-reduced-motion: reduce) {
  .cursor-glow, .scroll-hint, .film-progress { display: none !important; }
  .plate .cap:hover { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* ==========================================================================
   18:00 motion checklist layer (feel, text, scroll, chrome). Only transform /
   opacity / clip-path / filter animate; everything degrades under reduced motion.
   ========================================================================== */
:root { --ease-ui: cubic-bezier(.2, .8, .2, 1); --t-ui: .3s; }
a, .nav-link, .cap, .sound-toggle, .copy, .to-top, summary { transition-timing-function: var(--ease-ui); }

/* Mobile hero: keyboard band sits below the title, copy below the band */
@media (max-width: 767px) {
  .film-poster img { object-position: 50% 60%; }
  .film-shade { background: linear-gradient(180deg, rgba(5, 10, 22, .92) 0%, rgba(5, 10, 22, .55) 30%, rgba(5, 10, 22, 0) 40%, rgba(5, 10, 22, 0) 74%, rgba(5, 10, 22, .95) 84%); }
}

/* Header: stronger glass, hides on the way down, turns light over light sections */
.bar { background: rgba(10, 11, 18, .74); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); transition: background-color .4s var(--ease-ui), border-color .4s var(--ease-ui); }
.masthead { transition: translate .45s var(--ease-ui); }
.masthead.is-hidden { translate: 0 -160%; }
.masthead.is-hidden .bar { box-shadow: none; }
.masthead.on-light .bar { background: rgba(250, 250, 252, .86); border-color: rgba(36, 34, 44, .1); }
.masthead.on-light .brand, .masthead.on-light .nav-link, .masthead.on-light .menu-button { color: var(--ink); }
.masthead.on-light .nav-link:hover { background: rgba(36, 34, 44, .06); }
.site-menu { position: relative; }
.nav-ind { position: absolute; left: 0; top: 0; height: 36px; width: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); pointer-events: none; opacity: 0; }
.masthead.on-light .nav-ind { background: rgba(36, 34, 44, .08); }
@media (max-width: 819px) { .nav-ind { display: none; } }
.nav-link[aria-current="true"] { color: #fff; }
.masthead.on-light .nav-link[aria-current="true"] { color: var(--ink); }

/* Text morph: Geist is variable, so links shift weight smoothly on hover */
.nav-link, .footer nav a { font-variation-settings: "wght" 500; transition: font-variation-settings var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }
.nav-link:hover, .footer nav a:hover { font-variation-settings: "wght" 700; }

/* Scroll progress line (CSS scroll timeline; JS fallback sets --p) */
.scroll-progress { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--cobalt), var(--glow)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: sp-grow linear both; animation-timeline: scroll(root); }
  @keyframes sp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Sheen across the primary buttons (hover, plus one pass on the hero CTA after load) */
.cap-blue { position: relative; overflow: hidden; isolation: isolate; }
.cap-blue::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); transition: transform .9s var(--ease-ui); }
.cap-blue:hover::after { transform: translateX(130%); }
@media (prefers-reduced-motion: no-preference) {
  .film .hero-actions .cap-blue::after, .ph-actions .cap-blue::after { animation: sheen 5s var(--ease-ui) 1.6s infinite; }
  @keyframes sheen { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
}

/* Link underline draws in from the left and retracts to the right */
.doc-body a, .qa a, .footer a, .aside-link, .download-main p a, .split-text a {
  text-decoration-color: color-mix(in oklch, currentColor 28%, transparent);
  background: linear-gradient(currentColor, currentColor) no-repeat right 100% / 0 1.5px;
  transition: background-size var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui);
}
.doc-body a:hover, .qa a:hover, .footer a:hover, .aside-link:hover, .download-main p a:hover, .split-text a:hover { background-position: left 100%; background-size: 100% 1.5px; text-decoration-color: transparent; }

/* Animated, clear focus ring */
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; transition: outline-offset .3s var(--ease-ui); }
@media (prefers-reduced-motion: no-preference) {
  :focus-visible { animation: focus-in .35s var(--ease-ui); }
  @keyframes focus-in { from { outline-offset: 10px; outline-color: transparent; } }
}

/* Custom cursor (fine pointers only; JS turns it on) */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .3s var(--ease-ui), height .3s var(--ease-ui), margin .3s var(--ease-ui), opacity .3s var(--ease-ui), background-color .3s var(--ease-ui); }
.has-cursor.cursor-live .cursor { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 255, 255, .9); }
.cursor.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; mix-blend-mode: normal; background: var(--cobalt); }
.cursor-label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Back to top */
.to-top { position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 11, 18, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .3s var(--ease-ui), translate .3s var(--ease-ui); }
.to-top[hidden] { display: grid !important; opacity: 0; translate: 0 16px; pointer-events: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Footer: curtain reveal under the page, with a giant wordmark */
main { position: relative; z-index: 1; background: var(--page-bg); }
.footer { position: relative; z-index: 0; padding-top: 64px; }
.footer-mark { margin: 0 0 32px; padding: .08em var(--gutter) .12em; font-family: var(--serif); font-size: clamp(4rem, 15vw, 14rem); line-height: 1; letter-spacing: -0.03em; color: var(--moon); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .footer-mark { animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes mark-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  }
}

/* Marquee of the five sounds: speed and direction follow the scroll (JS) */
.marquee { margin-top: 120px; padding-block: 28px; overflow: hidden; border-block: 1px solid var(--case-line); background: var(--page-bg); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-run { display: flex; align-items: center; gap: 40px; padding-right: 40px; flex: none; }
.marquee-run span { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; white-space: nowrap; color: var(--ink); }
.marquee-run span:nth-of-type(even) { font-style: italic; color: var(--cobalt); }
.marquee-run i { font-style: normal; color: var(--cobalt); font-size: 1.5rem; }

/* Waveform drawn by scroll in the listen header */
.wave { display: block; width: 100%; max-width: 760px; height: 64px; margin-top: 28px; overflow: visible; }
.wave path { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .wave path { animation: wave-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    @keyframes wave-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }
}

/* On-screen keyboard that types with the preview and with your own keys */
.typer { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.typer-line { min-height: 2.4rem; font-family: var(--serif); font-size: 1.75rem; line-height: 2.4rem; color: #fff; letter-spacing: .02em; }
.typer-caret { display: inline-block; width: 2px; height: 1.6rem; margin-left: 3px; vertical-align: -0.2rem; background: var(--cobalt-soft); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.vkb { margin-top: 14px; display: grid; gap: 6px; max-width: 720px; }
.vkb-row { display: flex; gap: 6px; justify-content: center; }
.vk { flex: 1 1 0; min-width: 0; max-width: 52px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #2a2933; color: #b9b9c6; font-size: .75rem; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 0 #111016; transition: transform .12s var(--ease-ui), box-shadow .12s var(--ease-ui), background-color .2s var(--ease-ui), color .2s var(--ease-ui); }
.vk-wide { max-width: 80px; flex-grow: 1.6; }
.vk-space { max-width: 320px; flex-grow: 6; }
.vk.is-down { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 #111016, 0 0 18px rgba(91, 108, 255, .65); background: var(--cobalt); color: #fff; }
@media (max-width: 639px) { .vk { height: 32px; font-size: .625rem; border-radius: 6px; } .vkb, .vkb-row { gap: 4px; } .typer-line { font-size: 1.35rem; } }

/* Feature rail: snap carousel on narrow screens; mesh gradient drifting behind; grain */
@media (max-width: 1023px) {
  .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; padding-bottom: 12px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}
@property --mx1 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --my1 { syntax: "<percentage>"; inherits: false; initial-value: 10%; }
.track-sec { background: radial-gradient(70% 60% at var(--mx1) var(--my1), oklch(30% 0.12 272) 0%, transparent 60%), radial-gradient(60% 50% at 10% 90%, oklch(22% 0.08 250) 0%, transparent 60%), var(--night); }
@media (prefers-reduced-motion: no-preference) {
  .track-sec { animation: mesh 18s ease-in-out infinite alternate; }
  @keyframes mesh { to { --mx1: 30%; --my1: 40%; } }
}
.film-sticky::after, .track-sec::after, .final::after, .page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("/assets/img/noise.webp"); opacity: .06; mix-blend-mode: overlay; z-index: 1; }
.ph-inner { z-index: 2; }
.track-sec, .final { position: relative; }

/* Light→night theme change eased at the border of the feature section */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .track-sec::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--page-bg); animation: theme-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes theme-in { to { opacity: 0; } }
    .track-pin { position: relative; z-index: 1; }
  }
}

/* Final band: the scene zooms from a framed card to full bleed (JS scrub), three depth layers */
.final { overflow: clip; }
.final-zoom { position: absolute; inset: 0; z-index: -1; }
.final-zoom picture, .final-zoom img.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: .62; -webkit-mask-image: none; mask-image: none; }
.final-orb { position: absolute; z-index: -1; right: 8%; top: 20%; width: 46vmax; height: 46vmax; border-radius: 50%; background: radial-gradient(circle, oklch(55% 0.2 272 / .35), transparent 65%); filter: blur(20px); pointer-events: none; }
.final-inner { position: relative; z-index: 3; }

/* Pricing scene from the same world */
.price-scene { margin: 40px 0 0; max-width: 880px; border-radius: 24px; overflow: hidden; background: #050a16; }
.price-scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 70% 50%; }

/* FAQ accordion: height animates with interpolate-size */
details.qa { padding: 0; }
details.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary h3 { margin: 0; }
details.qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--case-line); font-size: 1.25rem; transition: rotate .3s var(--ease-ui), background-color .3s var(--ease-ui); }
details.qa[open] summary::after { rotate: 45deg; background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
details.qa .answer { margin: 0 0 24px; }
details.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-ui), content-visibility .45s allow-discrete; }
details.qa[open]::details-content { block-size: auto; }

/* SHA copy + toast */
.copy { margin-left: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--case-line); background: var(--cap); color: var(--ink); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.copy.is-done { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.copy[hidden] { display: none; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; translate: -50% 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: opacity .3s var(--ease-ui), translate .3s var(--ease-ui); }
@starting-style { .toast { opacity: 0; translate: -50% 16px; } }

/* Lazy images: blurred placeholder clears once decoded */
.js-lqip img[loading="lazy"] { filter: blur(14px); transition: filter .7s var(--ease-ui); }
.js-lqip img[loading="lazy"].is-loaded { filter: none; }

/* Compare template: answer + actions in the hero, sticky product card, phone table cards */
.ph-answer { margin-top: 22px; max-width: 54ch; font-size: 1.25rem; line-height: 1.8rem; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.ph-actions { margin-top: 26px; }
.page-hero .meta-small { margin-top: 18px; font-size: .875rem; line-height: 1.25rem; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } }
.doc-aside { display: none; }
@media (min-width: 1024px) { .doc-aside { display: block; } .aside-card { position: sticky; top: 104px; padding: 20px; border-radius: 22px; background: #0d1020; color: var(--moon); box-shadow: 0 30px 60px -30px rgba(10, 12, 30, .6); } }
.aside-card img { border-radius: 14px; width: 100%; height: 300px; object-fit: cover; object-position: 50% 0; }
.aside-name { margin-top: 16px; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.aside-meta { margin-top: 6px; color: var(--moon-soft); font-size: .875rem; }
.aside-card .cap { margin-top: 16px; width: 100%; }
.aside-link { display: inline-block; margin-top: 12px; color: var(--cobalt-soft); font-size: .875rem; text-decoration: none; }
@media (max-width: 767px) {
  .page-cine .doc-body table { min-width: 0; }
  .page-cine .doc-body thead { display: none; }
  .page-cine .doc-body tbody tr { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px; margin-bottom: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -18px rgba(30, 32, 52, .45); }
  .page-cine .doc-body tbody th, .page-cine .doc-body tbody td { border: 0; padding: 0; white-space: normal; }
  .page-cine .doc-body tbody th { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
  .page-cine .doc-body tbody td::before { content: attr(data-label); display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
  .page-cine .table-scroll { overflow: visible; }
  /* home pricing table: feature on its own line, Free / Pro side by side */
  .compare thead { display: none; }
  .compare tbody tr, .compare tfoot tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare tbody th, .compare tfoot th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding-bottom: 4px; font-weight: 600; }
  .compare td { width: auto; text-align: left; }
  .compare tbody td::before { content: "Free "; font-size: .75rem; color: var(--ink-soft); margin-right: 8px; }
  .compare tbody td.pro-col::before { content: "Pro "; color: var(--cobalt); }
}

/* 404: the key you press is shown on the page */
.nf-pressed { margin-top: 18px; font-size: 1rem; color: var(--moon-soft); min-height: 1.5rem; }
.nf-pressed kbd { font-size: 1rem; padding: 4px 10px; }
.tpl-notfound .ph-media img { transition: translate .12s var(--ease-ui); }
.tpl-notfound .ph-media.is-pressed img { translate: 0 1.2%; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .to-top { transition: none; }
  .marquee-track { transform: none !important; }
  .cap-blue::after { display: none; }
  details.qa::details-content { transition: none; }
}


/* ---- Gate round 2 ---- */
/* Progress line lives on the header pill's bottom edge instead of across the page */
.scroll-progress { display: none; }
.bar { position: relative; }
.bar::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cobalt), var(--glow)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .bar::after { animation: sp-grow linear both; animation-timeline: scroll(root); }
}
/* Back to top: small, only while scrolling up, clear of the text column */
.to-top { width: 40px; height: 40px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 11, 18, .55); }
@media (max-width: 767px) { .to-top { opacity: .85; } }
/* Bigger small print */
.shot figcaption, .pro-shot figcaption { font-size: .9375rem; line-height: 1.4rem; }
.store-note { font-size: .9375rem; line-height: 1.45rem; }
.compare .price-note { font-size: .8125rem; }
.stage-hint { font-size: .875rem; color: #b4b5c2; }
/* The accent word glows */
.film-title em { color: oklch(82% 0.11 272); text-shadow: 0 0 32px oklch(60% 0.2 272 / .55); }
/* Mini listen bar in the hero: five sounds one tap away */
.hero-listen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.hl-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moon-soft); margin-right: 4px; }
.hl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 12, 24, .45); color: #fff; font-size: .8125rem; font-weight: 600; text-decoration: none; transition: background-color .3s var(--ease-ui), border-color .3s var(--ease-ui), transform .3s var(--ease-ui); }
.hl-chip .ic { width: 12px; height: 12px; color: var(--cobalt-soft); }
.hl-chip:hover { background: rgba(47, 69, 200, .55); border-color: var(--cobalt-soft); }
.hl-chip.is-playing { background: var(--cobalt); border-color: var(--cobalt); }
@media (max-width: 767px) { .hero-listen { gap: 6px; margin-bottom: 14px; } .hl-label { width: 100%; } .hl-chip { padding: 5px 10px 5px 8px; font-size: .75rem; } }
/* Phones: the closing band text sits on a dark plate, no parallax drift */
@media (max-width: 767px) {
  .final-inner { transform: none !important; }
  .final-zoom img.final-bg { opacity: .35; }
  .final { padding: 120px 0 110px; }
}
@media (max-width: 767px) {
  .layer-1 .film-foot { display: contents; }
  .layer-1 .lede { margin-top: 14px; max-width: 34ch; }
  .layer-1 .hero-listen { margin-top: auto; }
  .film-shade { background: linear-gradient(180deg, rgba(5, 10, 22, .92) 0%, rgba(5, 10, 22, .6) 36%, rgba(5, 10, 22, 0) 44%, rgba(5, 10, 22, 0) 76%, rgba(5, 10, 22, .95) 84%); }
}


/* ---- Gate round 3 ---- */
/* Marquee runs on a CSS animation (JS only changes its playbackRate), so it can never double-draw */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: mq 46s linear infinite; }
  @keyframes mq { to { transform: translateX(-50%); } }
}
/* Chapter copy sits on a soft dark plate so it never fights the parts behind it */
.layer-2::before, .layer-3::before, .layer-4::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(48% 60% at 18% 50%, rgba(5, 10, 22, .78), rgba(5, 10, 22, 0) 72%); }
.film-h { max-width: 10ch; }
.film-p { max-width: 36ch; }
@media (max-width: 767px) {
  .layer-2::before, .layer-3::before, .layer-4::before { background: linear-gradient(180deg, rgba(5, 10, 22, .9) 0%, rgba(5, 10, 22, .55) 40%, rgba(5, 10, 22, 0) 55%); }
  /* phone hero: one row of actions, one swipeable row of sound chips, keyboard band in between */
  .film .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 12px; }
  .film .hero-actions .btn-lg { flex: 1 1 auto; padding: 12px 10px; font-size: .9375rem; }
  .layer-1 .hl-label { display: none; }
  .layer-1 .hero-listen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 0; padding-bottom: 2px; }
  .layer-1 .hero-listen::-webkit-scrollbar { display: none; }
  .hl-chip { flex: none; }
  .film-poster img { object-position: 50% 61.5%; }
}
.tagline-text .w { color: rgba(36, 34, 44, .5); }

/* Inner templates, round 3: readable body, TOC rail, product card on phones */
.page-cine .doc-body { font-size: 1.0625rem; line-height: 1.8rem; color: #1d1c24; font-weight: 400; }
.page-cine .doc-body p, .page-cine .doc-body li, .page-cine .doc-body dd, .page-cine .doc-body td { color: #1d1c24; }
.page-cine .doc-body li + li { margin-top: 10px; }
.page-hero .meta-small { color: oklch(85% 0.01 270); }
.toc-card { background: #fff; color: var(--ink); box-shadow: 0 20px 50px -30px rgba(30, 32, 52, .5); border: 1px solid var(--case-line); }
.toc-title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: .9375rem; background: none; transition: background-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui); }
.toc a:hover { color: var(--ink); background: rgba(36, 34, 44, .05); }
.toc a[aria-current="true"] { color: #fff; background: var(--cobalt); }
@media (max-width: 1023px) {
  .doc-aside:not(.toc) { display: block; }
  .doc-aside:not(.toc) .aside-card { position: static; margin-top: 8px; padding: 18px; border-radius: 20px; background: #0d1020; color: var(--moon); }
}
.aside-card img { height: 220px; object-position: 50% 6%; transform: scale(1.35); transform-origin: 50% 0; }
.aside-card picture, .aside-card { overflow: hidden; }
@media (max-width: 767px) { .page-cine .doc-body tbody tr.sd-row { animation: none !important; opacity: 1 !important; transform: none !important; } }


/* ---- Gate round 4 ---- */
/* Footer reveal without sticky: the band unmasks from the top as it scrolls in */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .footer { animation: footer-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes footer-reveal { from { clip-path: inset(12% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  }
}
/* Italic accents only on the hero and the price */
.display em { font-style: normal; color: inherit; }
.display.light em { color: inherit; }
#h-pro em { font-style: italic; color: var(--cobalt); }
.film-h em { font-style: normal; color: inherit; }
/* Shorter feature rail: one screen of travel */
@media (min-width: 1024px) {
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .tcard, :root:not(.no-motion) .tcard { width: 284px; min-height: 300px; } }
  .track { gap: 14px; }
}
/* Lower half keeps the night world: the download card is a dark scene card */
.download-card { background: radial-gradient(70% 90% at 85% 40%, oklch(30% 0.12 272) 0%, transparent 60%), #0b0e1c; color: var(--moon); box-shadow: 0 40px 80px -40px rgba(10, 12, 30, .7); }
.download-card h2, .download-card .download-main p, .download-card .store-note, .download-card .store-note strong { color: var(--moon); }
.download-card .store-note p { color: oklch(85% 0.01 270); }
.download-card a { color: var(--cobalt-soft); }
.download-card code { background: rgba(255, 255, 255, .1); color: #fff; }
/* Compare hero: product window */
.ph-product { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--page)) / 2)); bottom: 8svh; width: min(300px, 22vw); margin: 0; opacity: 0; transform: translateY(40px) rotate(2deg); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12); }
.ph-product img { display: block; width: 100%; height: auto; }
@media (max-width: 1023px) { .ph-product { display: none; } }
.aside-card img { transform: none; height: 240px; object-position: 50% 0; }
.doc-aside .aside-card { position: static; }
@media (min-width: 1024px) { .toc .aside-card { position: sticky; } }
/* No row fade on comparison tables */
.page-cine .doc-body tr.sd-row { animation: none !important; opacity: 1 !important; transform: none !important; }
.page-cine .doc-body h2.sd::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 3px; background: var(--cobalt); vertical-align: .18em; }
/* Phone film: band rides up for chapters 2-4, copy sits under it */
@media (max-width: 767px) {
  @media (prefers-reduced-motion: no-preference) { :root:not(.no-motion) .layer-2, :root:not(.no-motion) .layer-3, :root:not(.no-motion) .layer-4, :root:not(.no-motion) .layer-2, :root:not(.no-motion) .layer-3, :root:not(.no-motion) .layer-4 { justify-content: flex-end; padding-top: 0; padding-bottom: 72px; } }
  .layer-2::before, .layer-3::before, .layer-4::before { background: linear-gradient(0deg, rgba(5, 10, 22, .95) 0%, rgba(5, 10, 22, .6) 38%, rgba(5, 10, 22, 0) 52%); }
}
@media (max-width: 560px) {
  body[class*="tpl-"] .nav .nav-link, .head-buy-inner { display: none; }
}
/* the footer unmasks over the night colour, never over the light page */
body { background: #05060a; }


/* ---- Gate round 5 ---- */
/* Legal heroes: the promise is the headline, the page name a label */
.page-hero h1.ph-label { font-family: "Geist", "Geist Fallback", sans-serif; font-size: .875rem; line-height: 1.25rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--cobalt-soft); text-shadow: none; max-width: none; animation: none; }
.ph-promise { margin-top: 14px; font-family: var(--serif); font-size: clamp(2.75rem, 6vw, 5.75rem); line-height: 1; letter-spacing: -0.02em; color: #fff; max-width: 14ch; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: no-preference) { .ph-promise { animation: title-rise .9s var(--expo) both; } }
.page-hero .ph-promise + .ph-answer { font-size: 1.125rem; line-height: 1.7rem; color: oklch(90% 0.01 270); }
/* Document pages: one centred column; the product card / contents sit inline, nothing sticky */
.doc-grid, .doc-grid:has(.doc-aside) { display: flex; flex-direction: column; gap: 40px; max-width: 760px; margin-inline: auto; }
.page-cine .doc-body { max-width: none; }
.doc-aside, .doc-aside.toc { display: block; order: -1; }
.doc-aside:not(.toc) { order: 2; }
.doc-aside .aside-card, .toc .aside-card, .toc-card { position: static !important; }
.doc-aside:not(.toc) .aside-card { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 24px; align-items: start; padding: 22px; border-radius: 22px; background: #0d1020; color: var(--moon); }
.doc-aside:not(.toc) .aside-card img { grid-row: 1 / span 4; width: 200px; height: 220px; object-position: 50% 0; border-radius: 12px; }
.doc-aside:not(.toc) .aside-name { margin-top: 4px; }
.doc-aside:not(.toc) .aside-card .cap { width: auto; justify-self: start; }
@media (max-width: 559px) { .doc-aside:not(.toc) .aside-card { grid-template-columns: 1fr; } .doc-aside:not(.toc) .aside-card img { grid-row: auto; width: 100%; height: 200px; } }
.toc-card ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.page-cine > .wrap { padding-top: 64px; }
/* Feature rail: shorter pin, no index numbers */
.tnum { display: none; }
@media (min-width: 1024px) { :root:not(.no-motion) .tcard { width: 248px; min-height: 290px; } .tcard h3 { margin-top: 36px; } }
/* Phones: the compare hero is a still scene, no pinned scrub */
@media (max-width: 767px) {
  :root:not(.no-motion) .hero-scrub { height: auto; }
  :root:not(.no-motion) .hero-scrub .ph-sticky { position: relative; height: auto; min-height: 86svh; }
}


/* ---- Gate round 6 ---- */
/* Home: film, listening stage and feature rail are one night world */
.listen-sec { background: var(--night); color: var(--moon); --ink: var(--moon); --ink-soft: var(--moon-soft); --case-line: rgba(255, 255, 255, .12); padding-bottom: 128px; }
.listen-sec .cap, .listen-sec .copy { --ink: #24222c; --ink-soft: #46444f; }
.listen-sec .stage { background: #10121c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .9); }
.track-sec { margin-top: 0; }
.track-sec::before { display: none !important; }
/* Night to day and back as soft bands, never a hard edge */
.tone-fade { height: 30vh; min-height: 200px; pointer-events: none; }
.tone-down { background: linear-gradient(180deg, var(--night) 0%, color-mix(in oklch, var(--night) 55%, var(--page-bg)) 45%, var(--page-bg) 100%); margin-bottom: -96px; }
.tone-up { margin-top: 72px; background: linear-gradient(0deg, var(--night) 0%, color-mix(in oklch, var(--night) 55%, var(--page-bg)) 55%, var(--page-bg) 100%); }
.tone-up + .final { margin-top: 0; }
/* Hero copy reads cleanly over the keys */
.layer-1 .lede { color: #d6d9e6; text-shadow: 0 1px 18px rgba(0, 0, 0, .6); }
.hl-chip { font-size: .875rem; }
@media (min-width: 1024px) { .layer-1::before { content: ""; position: absolute; top: 0; bottom: 0; left: -50vw; width: calc(50vw + 60%); z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 10, 22, .8) 0, rgba(5, 10, 22, .8) 50vw, rgba(5, 10, 22, .5) calc(50vw + 34%), rgba(5, 10, 22, 0) 100%); } .layer-1 { isolation: isolate; } }
/* Idle light sweep across the hero while it waits for a scroll */
@media (prefers-reduced-motion: no-preference) {
  .film-sticky::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 20%, rgba(142, 156, 255, .10) 46%, rgba(255, 255, 255, .07) 50%, transparent 80%); transform: translateX(-100%); will-change: transform; animation: sweep 5.5s 0.4s ease-in-out infinite; }
  @keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(200%); } }
  .film-poster img { animation: poster-breathe 4.4s ease-in-out infinite alternate; transform-origin: 62% 50%; }
  @keyframes poster-breathe { to { transform: scale(1.035); } }
}
/* Numbers say what they count */
.stat-l { font-size: 1.125rem; line-height: 1.5rem; color: var(--ink); }
/* Download card: the primary button is the solid blue key, never a faded link */
.download-card a.cap { color: inherit; }
.download-card a.cap-blue { color: #fff; font-weight: 700; }
/* Compare: our row reads as the highlighted one, not a disabled one */
.page-cine .doc-body tbody tr:first-child { background: color-mix(in oklch, var(--cobalt) 7%, transparent); box-shadow: inset 3px 0 0 var(--cobalt); }
.page-cine .doc-body tbody tr:first-child th, .page-cine .doc-body tbody tr:first-child td { color: var(--ink); opacity: 1; }
.ph-listen { margin-top: 18px; }
/* Compare hero: the app window arrives with the page */
.ph-product { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .ph-product { animation: prod-in 1s .5s var(--expo) both; } @keyframes prod-in { from { opacity: 0; transform: translateY(40px) rotate(2deg); } } }
/* Inner heroes leave as a card: they shrink and round off while the page slides over them */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .page-hero { view-timeline-name: --ph; }
    .page-hero:not(.hero-scrub):not(.hero-full) { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; transform-origin: 50% 0; }
    .hero-scrub .ph-sticky { animation: hero-out linear both; animation-timeline: --ph; animation-range: exit 0% exit 90%; transform-origin: 50% 100%; }
    @keyframes hero-out { to { transform: scale(.93); border-radius: 40px; filter: brightness(.6); } }
  }
}
/* Legal: promise accent, scene above the copy on phones, summary as cards */
.ph-promise em { font-style: italic; color: var(--cobalt-soft); }
@media (max-width: 767px) {
  .page-hero:not(.hero-scrub):not(.hero-full) { min-height: 0; padding-top: 36svh; }
  .page-hero:not(.hero-scrub):not(.hero-full) .ph-media { inset: 0 0 auto 0; height: 46svh; -webkit-mask-image: linear-gradient(#000 50%, transparent 100%); mask-image: linear-gradient(#000 50%, transparent 100%); }
  .page-hero:not(.hero-scrub):not(.hero-full) .ph-media img { object-position: 70% 40%; }
  .page-hero:not(.hero-scrub):not(.hero-full) .ph-inner { padding-top: 0; }
}
.page-cine .doc-body h2#summary + ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.page-cine .doc-body h2#summary + ul li { margin: 0; padding: 20px 20px 22px; border-radius: 18px; background: radial-gradient(90% 80% at 100% 0%, oklch(30% 0.12 272) 0%, transparent 60%), #0d1020; color: var(--moon); line-height: 1.5rem; }
.page-cine .doc-body h2#summary + ul li::before { content: ""; display: block; width: 26px; height: 26px; margin-bottom: 14px; border-radius: 7px; background: var(--cobalt); box-shadow: 0 3px 0 var(--cobalt-side), 0 0 18px oklch(55% 0.2 272 / .6); }
.toc-card { padding: 20px 22px; }
.toc-card .toc-title { margin: 0 0 10px; }


/* ---- Protocol 0.7 round 1: one night world, site-wide ---- */
:root {
  color-scheme: dark;
  --page-bg: #07080f;
  --ink: #e9ebf3;
  --ink-soft: #b4b9cb;
  --ink-mute: rgba(233, 235, 243, .28);
  --case-line: rgba(255, 255, 255, .12);
  --case-deep: #141726;
  --shade: 0, 0, 0;
}
/* keycaps stay light objects with dark legends */
.cap, .plate, .copy, kbd { --ink: #24222c; --ink-soft: #46444f; --ink-mute: rgba(36, 34, 44, .3); }
kbd { color: #24222c; }
.steps li::before { color: #24222c; }
.price-chip { background: #24222c; color: #fff; }
a { color: #9aa7ff; }
.doc-body a, .qa a, .footer a, .aside-link, .download-main p a, .split-text a { color: #aab5ff; }
.tagline-text .w { color: rgba(233, 235, 243, .22); }
.tagline-text .w.on { color: var(--ink); }
.compare .pro-col { background: color-mix(in oklch, var(--cobalt) 18%, #07080f); }
.toc-card { background: #0d1020; color: var(--ink); border-color: rgba(255, 255, 255, .08); }
@media (max-width: 767px) { .page-cine .doc-body tbody tr { background: #0d1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); } }
.page-cine .doc-body h2#summary + ul li { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.download-card { background: radial-gradient(70% 90% at 85% 40%, oklch(30% 0.12 272) 0%, transparent 60%), #0d1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.tone-fade { display: none; }
.listen-sec, .numbers, .tagline, .everyday, #pro, #download, #faq, .marquee { background: transparent; }
main { background: radial-gradient(80% 40% at 85% 55%, oklch(22% 0.07 272 / .55) 0%, transparent 70%), var(--page-bg); }
/* the light-section header style is never needed */
.masthead.on-light .bar { background: rgba(10, 12, 24, .72); border-color: rgba(255, 255, 255, .1); }
.masthead.on-light .brand, .masthead.on-light .nav-link, .masthead.on-light .menu-button, .masthead.on-light .nav-link[aria-current="true"] { color: #fff; }
/* feature cards: brighter, larger copy */
.tcard p { color: #c9cfdd; font-size: 1rem; line-height: 1.55rem; }
.tcard h3 { color: #fff; }
/* final band: the title sits clear of the floating header */
.final { padding-top: 220px; }
/* compare hero: a smaller app window in the corner, off the hero keycap */
@media (min-width: 1024px) { .ph-product { width: min(236px, 17vw); bottom: 6svh; } }
/* document pages: light copy on the night page */
.page-cine .doc-body, .page-cine .doc-body p, .page-cine .doc-body li, .page-cine .doc-body dd, .page-cine .doc-body td { color: #cfd3e1; }
.page-cine .doc-body strong, .page-cine .doc-body b, .page-cine .doc-body th, .page-cine .doc-body dt { color: #fff; }
.page-cine .doc-body h2, .page-cine .doc-body h3 { color: #fff; }
code { background: rgba(255, 255, 255, .1); color: #e9ebf3; }
.page-cine .doc-body tbody tr:first-child th, .page-cine .doc-body tbody tr:first-child td { color: #fff; }
.page-cine .doc-body thead th { border-bottom-color: rgba(255, 255, 255, .2); }


/* ---- Protocol 0.7 round 2 ---- */
.masthead.is-hidden { translate: none; }
/* hard facts on the home fold */
.hero-facts { display: none; }
@media (min-width: 768px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 28px; list-style: none; margin: 22px 0 0; padding: 0; font-size: .875rem; line-height: 1.3rem; color: #c3c8d8; }
  .hero-facts li { position: relative; padding-left: 16px; }
  .hero-facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: var(--cobalt-soft); }
  .layer-1 { padding-top: 112px; padding-bottom: 40px; }
}
/* the real app window in the film's last chapter */
.film-app { display: none; }
@media (min-width: 1024px) {
  .film-app { display: block; position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: 300px; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
  .film-app img { display: block; width: 100%; height: auto; }
}
/* fewer template marks: no index numbers on kickers */
.kicker > span:first-child { display: none; }
/* readable price accent on the night page */
#h-pro em { color: var(--cobalt-soft); }
/* compare pages: scene breaks and a bigger app card */
.doc-scene { margin: 48px 0 8px; border-radius: 22px; overflow: hidden; background: #050a16; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.doc-scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
@media (min-width: 560px) {
  .doc-aside:not(.toc) .aside-card { grid-template-columns: 300px 1fr; }
  .doc-aside:not(.toc) .aside-card img { width: 300px; height: 330px; }
}
/* CTA scene fades out at its edges instead of a hard crop */
.final-zoom img.final-bg { -webkit-mask-image: radial-gradient(75% 85% at 62% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(75% 85% at 62% 50%, #000 55%, transparent 100%); }


/* ---- Protocol 0.7 round 3 ---- */
/* once you scroll, the header is a solid full-width bar: nothing reads through it */
.masthead { transition: padding .35s var(--ease-ui); }
.masthead.is-scrolled { padding-top: 0; }
.masthead.is-scrolled > .wrap { max-width: none; padding-inline: 0; }
.masthead.is-scrolled .bar { width: 100%; max-width: none; border-radius: 0; border-width: 0 0 1px; border-color: rgba(255, 255, 255, .08); background: #07080f; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); justify-content: space-between; padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2)); }
h2[id], section[id], .doc-body h2 { scroll-margin-top: 96px; }
/* calmer fold: one line of facts */
p.hero-facts { display: none; }
@media (min-width: 768px) {
  p.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; font-size: .9375rem; line-height: 1.4rem; color: #c8cce0; }
  p.hero-facts > * { position: relative; padding-left: 14px; font-weight: 500; }
  p.hero-facts > *::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--cobalt-soft); }
  p.hero-facts b { color: #fff; font-weight: 600; }
  .layer-1 .hl-label { display: none; }
}
/* app window in the film: larger, framed */
@media (min-width: 1024px) { .film-app { width: 380px; box-shadow: 0 0 0 10px rgba(13, 16, 32, .9), 0 0 0 11px rgba(255, 255, 255, .12), 0 50px 100px -30px rgba(0, 0, 0, .95); } }
/* privacy line reads at rest */
.tagline-text .w { color: rgba(233, 235, 243, .42); }
/* phones: chips row hints that it scrolls; placeholder fits */
@media (max-width: 767px) { .layer-1 .hero-listen { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
/* final band: copy sits on its own dark plate, the scene stays to the right */
.final-inner::before { content: ""; position: absolute; z-index: -1; inset: -60px -40px -60px calc(-1 * var(--gutter) - 50vw); background: linear-gradient(90deg, rgba(5, 6, 10, .92) 0%, rgba(5, 6, 10, .92) 55%, rgba(5, 6, 10, 0) 100%); pointer-events: none; }
@media (max-width: 767px) { .final-inner::before { inset: -40px calc(-1 * var(--gutter)); background: rgba(5, 6, 10, .7); } }
/* compare pages */
.meta-note { margin: 12px 0 0; font-size: .8125rem; line-height: 1.25rem; color: #9298ad; }
.page-cine .doc-body thead th { background: rgba(255, 255, 255, .05); color: #fff; }
.page-cine .doc-body table { font-size: 1rem; line-height: 1.5rem; }
@media (min-width: 1024px) { .ph-product { width: min(340px, 24vw); } }
.aside-sounds { grid-column: 2; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.aside-sounds .aside-meta { flex-basis: 100%; margin: 0 0 2px; }
.doc-aside:not(.toc) .aside-card img { height: auto; object-fit: contain; }
@media (max-width: 559px) { .aside-sounds { grid-column: auto; } }
.hl-chip svg.ic path { fill: currentColor; }


/* ---- Protocol 0.7 round 4 ---- */
/* compare heroes: a longer pinned scroll so the keyboard opens and closes */
@media (min-width: 768px) { :root:not(.no-motion) .tpl-compare .hero-scrub { height: 280svh; } }
.tpl-compare .ph-media canvas, .tpl-compare .ph-media img { object-position: 70% 50%; }
/* home macro band: the key row, pinned */
.macro-band { margin-top: 120px; }
@media (min-width: 768px) { :root:not(.no-motion) .macro-band { height: 230svh; } }
.ph-macro { margin-top: 12px; font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; color: #fff; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.macro-band .ph-answer { max-width: 46ch; }
.macro-band .ph-inner { padding-bottom: 12svh; }
/* readable at rest */
.tagline-text .w { color: rgba(233, 235, 243, .56); }
.tcard p { font-size: 1.0625rem; line-height: 1.6rem; }

/* promise headlines: white, no italic face (no late font swap), brighter accent */
.ph-promise { color: #fff; letter-spacing: -0.01em; }
.ph-promise em { font-style: normal; color: #b3bdff; }
@media (max-width: 767px) { .ph-promise { font-size: 2.875rem; } }
.tpl-compare .page-hero h1.ph-label { margin-top: 8px; }
/* compare pages: a wider column for the table and scenes, text keeps its measure */
@media (min-width: 1024px) {
  .tpl-compare .doc-grid, .tpl-compare .doc-grid:has(.doc-aside) { max-width: 1100px; }
  .tpl-compare .doc-body > :not(.table-scroll):not(.doc-scene) { max-width: 760px; }
  .doc-aside:not(.toc) .aside-card { grid-template-columns: 360px 1fr; }
  .doc-aside:not(.toc) .aside-card img { width: 360px; }
}
/* code paths: no mid-word breaks; long ones scroll on their own line */
.page-cine .doc-body code { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
.page-cine .doc-body code { display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; scrollbar-width: none; }
/* Lenis: native smooth scrolling must be off while Lenis drives the scroll (site.css sets it on :root) */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* constant animations only run where they can be seen */
.track-sec, .marquee-track { animation-play-state: paused; }
.track-sec.in-view, .marquee.in-view .marquee-track { animation-play-state: running; }
html:not(.at-top) .film-sticky::before, html:not(.at-top) .film-poster img { animation-play-state: paused; }

/* 3D keyboard hero (desktop) */
.kb3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .9s var(--ease-ui); pointer-events: none; }
.film.has-3d .kb3d { opacity: 1; }
.film.has-3d .film-poster, .film.has-3d .film-canvas { opacity: 0; transition: opacity .9s var(--ease-ui); }
.film.has-3d .film-sticky::before { display: none; }
.film-sticky > .film-layer, .film-sticky > .film-shade { z-index: 2; }
.film-sticky > .film-shade { z-index: 1; }

.ph-media.has-3d img, .ph-media.has-3d > picture, .ph-media.has-3d canvas:not(.kb3d) { opacity: 0; transition: opacity .9s var(--ease-ui); }
.ph-media.has-3d .kb3d { opacity: 1; }
/* inner-page header on phones: only the primary action fits */
@media (max-width: 559px) {
  body[class*="tpl-"] .nav .nav-link, body[class*="tpl-"] .nav .head-buy-inner { display: none; }
}
/* definition lists never grow wider than the column (long paths scroll inside their code box) */
.page-cine .doc-body dl, .page-cine .doc-body dt, .page-cine .doc-body dd { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .page-cine .doc-body dl { display: block; } .page-cine .doc-body dd { margin: 4px 0 14px; } }

/* ---- v3 round 2: information never fades ---- */
.tagline-text .w { color: #e9ebf3; opacity: 1; }
.tagline-text .w.on { color: #fff; text-shadow: 0 0 22px oklch(70% 0.15 272 / .55); }
@media (max-width: 767px) {
  .layer-1 .hero-listen { display: none; }
  p.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: auto 0 0; padding-top: 12px; font-size: .8125rem; line-height: 1.15rem; color: #c8cce0; order: 1; }
  p.hero-facts > * { position: relative; padding-left: 12px; }
  p.hero-facts > *::before { content: ""; position: absolute; left: 0; top: .45em; width: 5px; height: 5px; border-radius: 2px; background: var(--cobalt-soft); }
  p.hero-facts b { color: #fff; font-weight: 600; }
  .layer-1 .hero-actions { order: 2; margin-top: 12px; }
}
.page-cine .doc-body code { display: inline; white-space: normal; overflow-wrap: anywhere; word-break: normal; max-width: none; overflow: visible; }
/* compare heroes: a shorter pin */
@media (min-width: 768px) { :root:not(.no-motion) .tpl-compare .hero-scrub { height: 200svh; } }

/* posters are renders of the live 3D scene: same framing, so the canvas cross-fades in without a jump */
@media (min-width: 1024px) {
  .film-poster img { object-position: 50% 50%; animation: none !important; }
  .tpl-compare .ph-media img { object-position: 50% 50%; }
  .film-sticky::before { display: none; }
}
.doc-scene img { object-position: 50% 62%; }
.final-zoom img.final-bg { object-position: 50% 50%; }

/* phones: the compare hero puts the 3D render above the copy, like the legal heroes */
@media (max-width: 767px) {
  .hero-scrub .ph-sticky { padding-top: 34svh; }
  .hero-scrub .ph-media { inset: 0 0 auto 0; height: 44svh; -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%); }
  .hero-scrub .ph-media img { object-position: 50% 45%; }
}

/* v3 round 3: hero copy keeps clear of the 3D board; quieter section headings */
@media (min-width: 1024px) { .page-hero .ph-inner > * { max-width: 560px; } .layer-1 .lede { max-width: 30ch; } }
.page-cine .doc-body h2.sd::before { display: none; }


/* ---- Round 5 (11-28): real-footage film, a camera event on every screen, steady header ---- */
.film-poster img { object-position: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  /* the fold is a moving shot from first paint: slow pull-back, then a warm light pass */
  .film-poster img, .film-canvas { animation: r5-open 3.6s cubic-bezier(.2, .65, .2, 1) both; }
  .film-shade::after { content: ""; position: absolute; inset: -10% -50%; pointer-events: none; background: linear-gradient(104deg, transparent 42%, rgba(255, 206, 160, .14) 50%, transparent 58%); mix-blend-mode: screen; translate: -55% 0; animation: r5-sweep 2.6s .35s cubic-bezier(.45, 0, .2, 1) both; }
}
@keyframes r5-open { from { scale: 1.14; } to { scale: 1; } }
@keyframes r5-sweep { 0% { translate: -55% 0; opacity: 0; } 15% { opacity: 1; } 100% { translate: 55% 0; opacity: 0; } }

.cine-band, .cine-bg { position: relative; isolation: isolate; overflow: clip; color: #fff; }
.cine-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #050a16; }
.cine-media > video, .cine-media > picture, .cine-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(110% 90% at 28% 55%, rgba(5, 10, 22, .42) 0%, rgba(5, 10, 22, .86) 100%), linear-gradient(0deg, rgba(5, 10, 22, .75) 0%, rgba(5, 10, 22, 0) 42%); }
.cine-band { min-height: 100svh; display: flex; align-items: center; padding: 120px 0; margin: 0; }
.cine-band > .wrap { width: 100%; }
.tagline.cine-band { padding: 120px 0; }
.cine-band .tagline-text, .cine-line { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.cine-line { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; }
.cine-line em, .cine-band .tagline-text em { font-style: italic; color: var(--cobalt-soft); }
.cine-c .wrap { display: flex; justify-content: flex-end; }
.cine-c .cine-line { text-align: right; }
.numbers.cine-bg { padding: 150px 0; margin-top: 0; }
.numbers.cine-bg .stat-l { color: #d6d9e6; }
.final .cine-media { z-index: -1; }
.final .cine-shade { z-index: 0; background: linear-gradient(90deg, rgba(5, 10, 22, .9) 0%, rgba(5, 10, 22, .55) 45%, rgba(5, 10, 22, .25) 100%), linear-gradient(0deg, rgba(5, 10, 22, .8) 0%, rgba(5, 10, 22, 0) 45%); }
@media (max-width: 767px) {
  .cine-band { min-height: 86svh; padding: 96px 0; }
  .numbers.cine-bg { padding: 96px 0; }
  .cine-c .wrap { justify-content: flex-start; }
  .cine-c .cine-line { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .everyday .shot { perspective: 1200px; }
    .everyday .shot img { transform-origin: 50% 85%; animation: r5-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes r5-tilt { from { transform: rotateX(30deg) rotateY(-14deg) scale(.82) translateY(70px); } to { transform: none; } }

/* header: one geometry from the top of the page down, only the fill changes (no layout jump) */
:root { interpolate-size: allow-keywords; }
.masthead, .masthead.is-scrolled { padding-top: 0; }
.masthead > .wrap, .masthead.is-scrolled > .wrap { max-width: none; padding-inline: 0; }
.masthead .bar { width: 100%; max-width: none; border-radius: 0; border-width: 0 0 1px; justify-content: space-between; padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2)); background-color: rgba(7, 8, 15, 0); background-image: linear-gradient(180deg, rgba(5, 8, 18, .72), rgba(5, 8, 18, 0)); border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .5s var(--ease-ui), border-color .5s var(--ease-ui), box-shadow .5s var(--ease-ui); }
.masthead.is-scrolled .bar, .masthead.is-scrolled.on-light .bar { background-color: #07080f; background-image: none; border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); }
/* compare pages: Boardtone's own row stands out; the table reads at body size */
.tpl-compare .doc-body tbody tr:first-child > * { background: color-mix(in oklch, oklch(62% 0.17 272) 20%, transparent); }
.tpl-compare .doc-body tbody tr:first-child th a { color: #fff; }
.tpl-compare .doc-body tbody tr:first-child th { box-shadow: inset 3px 0 0 oklch(70% 0.15 272); }
@media (min-width: 1024px) { .tpl-compare .doc-body table { font-size: 1.0625rem; line-height: 1.6rem; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .doc-scene picture { display: block; }
  }
}
@keyframes r5-push { from { scale: 1.3; translate: 0 -4%; } to { scale: 1.02; translate: 0 4%; } }

/* ---- Round 5b: a moving fold that never depends on JS timing, brighter footage, one warm accent ---- */
:root { --amber: oklch(83% 0.13 70); }
@media (prefers-reduced-motion: no-preference) {
  /* the poster itself pulls back from first paint; the canvas joins on the same clock (JS sets a negative delay) */
  .film .film-poster img { animation: r5-open 5.2s cubic-bezier(.22, .6, .2, 1) both !important; transform-origin: 60% 55%; }
  .film .film-canvas { animation: r5-open 5.2s cubic-bezier(.22, .6, .2, 1) both; transform-origin: 60% 55%; }
  /* a warm light pass keeps crossing the fold while it waits for a scroll */
  .film-shade::after { animation: r5-sweep 3.4s .2s cubic-bezier(.45, 0, .2, 1) infinite both; }
  html:not(.at-top) .film-shade::after { animation-play-state: paused; opacity: 0; }
}
@keyframes r5-open { from { scale: 1.24; } to { scale: 1; } }
/* lighter grading of the fold: only the copy column is shaded */
@media (min-width: 1024px) {
  .layer-1::before { background: linear-gradient(90deg, rgba(5, 10, 22, .72) 0, rgba(5, 10, 22, .6) 50vw, rgba(5, 10, 22, .25) calc(50vw + 30%), rgba(5, 10, 22, 0) calc(50vw + 46%)); }
  .film-shade { background: linear-gradient(0deg, rgba(7, 8, 13, .55) 0%, rgba(7, 8, 13, 0) 26%), radial-gradient(120% 100% at 70% 45%, transparent 55%, rgba(5, 8, 18, .55) 100%); }
  .layer-1 .hero-listen { display: none; }
  .layer-1 .hero-facts { font-size: .875rem; }
}
/* one warm accent from the footage (the fingers, the desk lamp) against the indigo keys */
.film-title em, .cine-line em, .cine-band .tagline-text em, .film-h em { color: var(--amber); }
.kicker span { color: var(--amber); }
.compare thead .pro-col, .compare th.pro-col { color: var(--amber); }
.final .cine-shade { background: linear-gradient(90deg, rgba(5, 10, 22, .82) 0%, rgba(5, 10, 22, .4) 45%, rgba(5, 10, 22, .08) 100%), linear-gradient(0deg, rgba(5, 10, 22, .7) 0%, rgba(5, 10, 22, 0) 40%); }
.cine-shade { background: radial-gradient(110% 90% at 28% 55%, rgba(5, 10, 22, .3) 0%, rgba(5, 10, 22, .78) 100%), linear-gradient(0deg, rgba(5, 10, 22, .65) 0%, rgba(5, 10, 22, 0) 40%); }

/* ---- Round 5b: compare/legal template ---- */
@media (min-width: 768px) { :root:not(.no-motion) .tpl-compare .hero-scrub { height: 150svh; } }
.doc-scene.bleed { border-radius: 0; box-shadow: none; margin-top: 72px; margin-bottom: 40px; }
.doc-scene.bleed img { aspect-ratio: 21 / 8; }
.tpl-compare .doc-body p, .tpl-compare .doc-body li, .tpl-compare .doc-body td, .tpl-legal .doc-body p, .tpl-legal .doc-body li { color: #cfd2dd; }
main, .page-cine { overflow-x: clip; }

/* ---- Round 5c: a slower, unmistakable opening shot (8 s pull-back, brighter light pass) ---- */
@media (prefers-reduced-motion: no-preference) {
  .film .film-poster img { animation: r5-open2 8s cubic-bezier(.3, .15, .3, 1) both !important; }
  .film .film-canvas { animation: r5-open2 8s cubic-bezier(.3, .15, .3, 1) both; }
  .film-shade::after { background: linear-gradient(104deg, transparent 38%, rgba(255, 196, 140, .32) 50%, transparent 62%); animation: r5-sweep 4.2s .4s cubic-bezier(.45, 0, .2, 1) infinite both; }
}
@keyframes r5-open2 { from { scale: 1.32; } to { scale: 1; } }

/* listen stage sits on a real macro shot that pushes in behind the UI */
.cine-listen { color: inherit; padding-bottom: 96px; }
.cine-listen .cine-media { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.cine-listen .cine-shade { background: linear-gradient(180deg, rgba(7, 8, 15, .55) 0%, rgba(7, 8, 15, .78) 45%, rgba(7, 8, 15, 1) 100%); }

/* ---- Round 5d ---- */
/* the fold's pull-back and light pass run from first paint: before the motion bundle sets .at-top they used to be paused */
html:not(.at-top) .film-poster img { animation-play-state: running; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.at-top) .film-shade::after { animation-play-state: running; opacity: 1; }
  html:has(.masthead.is-scrolled) .film-shade::after { animation-play-state: paused; opacity: 0; }
}
.film-progress, .scroll-hint { display: none !important; }
/* macro band: copy sits on its own dark ground */
.macro-band .ph-shade { background: linear-gradient(90deg, rgba(5, 10, 22, .78) 0%, rgba(5, 10, 22, .45) 42%, rgba(5, 10, 22, 0) 70%), linear-gradient(0deg, rgba(5, 10, 22, .85) 0%, rgba(5, 10, 22, 0) 50%); }
.macro-band .ph-inner .kicker, .macro-band .ph-answer { color: #e6e8f0; }
/* phones: features read as a plain vertical list */
@media (max-width: 767px) {
  .track { display: grid !important; overflow: visible !important; scroll-snap-type: none !important; width: auto !important; transform: none !important; padding: 0 var(--gutter) !important; }
  .track .tcard { width: auto !important; min-height: 0 !important; }
}
/* compare: the product card follows the reader down the right column */
@media (min-width: 1024px) {
  .tpl-compare .doc-aside { align-self: stretch; }
  .tpl-compare .doc-aside .aside-card { position: sticky; top: 96px; }
  .tpl-compare .doc-scene.bleed { position: relative; z-index: 2; }
}

/* ---- Round 5e: the fold is a slow dolly-in on a sharp macro shot (keeps moving for ~20 s) ---- */
@media (prefers-reduced-motion: no-preference) {
  .film .film-poster img { animation: r5-dolly 20s cubic-bezier(.25, .1, .4, 1) both !important; transform-origin: 62% 58%; }
  .film .film-canvas { animation: r5-dolly 20s cubic-bezier(.25, .1, .4, 1) both; transform-origin: 62% 58%; }
}
@keyframes r5-dolly { from { scale: 1; } to { scale: 1.1; } }
@media (min-width: 1024px) {
  .layer-1::before { background: linear-gradient(90deg, rgba(5, 10, 22, .84) 0, rgba(5, 10, 22, .74) 50vw, rgba(5, 10, 22, .35) calc(50vw + 32%), rgba(5, 10, 22, 0) calc(50vw + 50%)); }
}
.tpl-legal .ph-shade, .tpl-thanks .ph-shade { background: linear-gradient(90deg, rgba(5, 10, 22, .85) 0%, rgba(5, 10, 22, .45) 40%, rgba(5, 10, 22, 0) 65%), linear-gradient(0deg, #07080f 0%, rgba(7, 8, 15, 0) 28%); }

@media (max-width: 767px) { .track .tcard { transform: none !important; translate: none !important; opacity: 1 !important; } .track-sec { scroll-margin-top: 80px; } }

/* ---- Round 5f: inner heroes open on the same slow dolly-in ---- */
@media (prefers-reduced-motion: no-preference) {
  .page-hero .ph-media img, .page-hero:not(.macro-band) .ph-media canvas { animation: r5-dolly 20s cubic-bezier(.25, .1, .4, 1) both; transform-origin: 62% 58%; }
}
.page-hero .ph-media { transform-origin: 60% 55%; }

/* full-bleed scene breaks: a paint-only pan (object-position), no composited layers */
.doc-scene .scene-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 30%; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .doc-scene .scene-img { animation: r5-pan linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes r5-pan { from { object-position: 50% 15%; } to { object-position: 50% 85%; } }
.doc-scene.bleed .scene-img { aspect-ratio: 21 / 9; }

/* ===== Round 6 (2026-11-29): five interactions + fixes =====
   B arc record carousel, A pull-back, C glass tilt, D folder fan, E key swarm.
   Plain selectors only; reduced motion gets flat, always visible layouts. */

/* ---------- Phone header: Buy Pro stays visible next to Download free ---------- */
@media (max-width: 559px) {
  .head-buy, body[class*="tpl-"] .nav .head-buy-inner { display: inline-flex !important; }
  .bar .brand { font-size: 0; gap: 0; }
  .bar .brand img { width: 30px; height: 30px; }
  .nav { gap: 6px; }
  .nav .btn-sm { padding: 7px 10px; font-size: .8125rem; line-height: 1.1rem; white-space: nowrap; }
}

/* ---------- B: sound records on an arc ---------- */
.packs { position: relative; padding: 96px 0 72px; }
.packs-head { text-align: center; }
.packs-head .display { max-width: 18ch; margin: 14px auto 0; }
.packs-head .section-intro { margin: 16px auto 0; max-width: 46ch; }
.packs .rec-ring { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 20px; justify-items: center; }
.packs .rec-item { width: 100%; max-width: 220px; }
.rec { --d: 100%; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.rec:focus-visible { outline: 3px solid var(--cobalt-soft); outline-offset: 6px; }
.rec-disc { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, #0a0a0f 0 2px, #17181f 2px 3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 50px -18px rgba(0, 0, 0, .85), inset 0 0 0 6px #0c0c11; }
.rec-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 10deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .2) 9%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .16) 59%, rgba(255, 255, 255, 0) 74%); }
.rec-label { position: absolute; inset: 27%; border-radius: 50%; display: grid; grid-template-rows: 1fr 1fr; align-items: end; padding: 9% 8%; text-align: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2)); box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 14px rgba(0, 0, 0, .35); }
.rec-label b { font-family: var(--serif); font-weight: 400; font-size: clamp(.8rem, 1.9vw, 1.5rem); line-height: 1; letter-spacing: -.005em; }
.rec-label i { font-style: normal; font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.rec-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11%; aspect-ratio: 1; margin: -5.5% 0 0 -5.5%; border-radius: 50%; background: #05060a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.rec-label i { align-self: start; padding-top: 14%; }
.rec-label b { padding-bottom: 14%; }
.rec-item[data-light] .rec-label { color: #221d14; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
.rec.is-playing .rec-disc::after { animation: rec-spin 2.2s linear infinite; }

.packs-cap { display: none; }
.packs-3d { height: calc(100svh + 4 * 64svh); padding: 0; }
.packs-3d .packs-stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2.5vh, 28px); padding-top: 72px; overflow: clip; }
.packs-3d .packs-head .section-intro { margin-top: 10px; }
.packs-3d .rec-ring { --D: min(25vw, 36svh, 360px); display: block; position: relative; margin: 0; height: calc(var(--D) * 1.12); perspective: 1500px; perspective-origin: 50% 40%; transform-style: preserve-3d; touch-action: pan-y; cursor: grab; user-select: none; }
.packs-3d .rec-ring.is-drag { cursor: grabbing; }
.packs-3d .rec-item { position: absolute; left: 50%; top: 46%; width: var(--D); max-width: none; height: var(--D); margin: calc(var(--D) / -2) 0 0 calc(var(--D) / -2); will-change: transform, opacity; }
@media (max-width: 767px) { .packs-3d .rec-ring { --D: clamp(170px, 52vw, 260px); } .packs-3d .packs-stick { padding-top: 64px; } }
.packs-3d .packs-cap { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 128px; padding-inline: var(--gutter); }
.pc-name { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1; margin: 0; }
.pc-desc { margin: 0; color: var(--moon-soft); font-size: 1.0625rem; }
.pc-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pc-tier { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); color: var(--moon-soft); }
.pc-tier.free { border-color: var(--cobalt-soft); color: #fff; background: color-mix(in oklch, var(--cobalt) 55%, transparent); }
.pc-btn { appearance: none; cursor: pointer; font: inherit; font-size: .9375rem; color: #07080f; background: var(--moon); border: 0; border-radius: 99px; padding: 9px 18px 9px 14px; display: inline-flex; gap: 8px; align-items: center; transition: transform .3s var(--expo); }
.pc-btn:hover { transform: translateY(-2px); }
.pc-btn:active { transform: scale(.96); }
.pc-btn .ic { width: 16px; height: 16px; }
.pc-nav { appearance: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; transition: background-color .3s var(--expo); }
.pc-nav:hover { background: rgba(255, 255, 255, .16); }
.pc-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-hint { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moon-soft); opacity: .7; margin-top: 4px; }

/* ---------- A + C: the app window pulls back, then tilts like glass ---------- */
.everyday .shot { position: relative; max-width: 460px; padding: 14px; border-radius: 30px; background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .22); transform-style: preserve-3d; }
.everyday .shot img { border-radius: 18px; animation: none !important; clip-path: none; transform: none; }
.everyday .shot .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--expo);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.everyday .shot.is-hot .glare { opacity: 1; }
.everyday .pull-stage { will-change: transform; }

/* shared glass tilt (compare cards + picks) */
[data-tilt] { position: relative; transform-style: preserve-3d; }
[data-tilt] > .glare, [data-tilt]::after { pointer-events: none; }
.page-cine [data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s var(--expo);
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 0%), rgba(170, 181, 255, .2), rgba(170, 181, 255, 0) 55%); }
.page-cine [data-tilt].is-hot::after { opacity: 1; }

/* ---------- D: sound-pack folder fan ---------- */
.foldfan { margin-top: 96px; display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .foldfan { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.foldfan-copy .display { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 14ch; margin-top: 12px; }
.foldfan-copy p { margin-top: 16px; max-width: 46ch; }
.foldfan-copy .ff-hint { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 22px; }
.fan { position: relative; height: clamp(300px, 40vw, 400px); max-width: 560px; width: 100%; margin-inline: auto; cursor: pointer; outline-offset: 10px; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.fan-back, .fan-front { position: absolute; left: 50%; width: 62%; margin-left: -31%; }
.fan-back { bottom: 14px; height: 52%; border-radius: 16px 16px 10px 10px; background: linear-gradient(180deg, #4d63e6, #2f45c8); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7); }
.fan-back::before { content: ""; position: absolute; left: 0; top: -12px; width: 36%; height: 16px; border-radius: 10px 10px 0 0; background: #4d63e6; }
.fan-front { bottom: 14px; height: 38%; border-radius: 10px 10px 16px 16px; z-index: 30; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #6b7dff, #3d54de); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 30px -14px rgba(0, 0, 0, .7); font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: .01em; }
.fan-front small { display: block; font-family: "Geist", system-ui, sans-serif; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; text-align: center; margin-top: 2px; }
.fan-cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 20; }
.fan-cards li { --n: calc(var(--i) - 3); position: absolute; left: 50%; bottom: 26%; width: clamp(104px, 17vw, 132px); height: clamp(138px, 22vw, 172px); margin-left: calc(clamp(104px, 17vw, 132px) / -2); padding: 12px 12px 10px; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #fbfbfd, #dfe2ee); color: #14141c; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .6); transform-origin: 50% 130%;
  transform: translateY(26px) rotate(calc(var(--n) * .6deg)) scale(.94); transition: transform .65s var(--expo) calc(var(--i) * 36ms), box-shadow .3s; }
.fan-cards li b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.05; }
.fan-cards li small { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #596074; }
.fan-cards li svg { width: 100%; height: 22px; fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; }
.fan:hover .fan-cards li, .fan:focus-visible .fan-cards li, .fan.is-open .fan-cards li { transform: translateX(calc(var(--n) * var(--sp))) translateY(calc(var(--n) * var(--n) * 4px - 78px)) rotate(calc(var(--n) * 10deg)) scale(1); }
.fan:hover .fan-cards li:hover, .fan.is-open .fan-cards li:hover, .fan .fan-cards li:focus-within { transform: translateX(calc(var(--n) * var(--sp))) translateY(calc(var(--n) * var(--n) * 4px - 118px)) rotate(calc(var(--n) * 7deg)) scale(1.08); z-index: 40; box-shadow: 0 26px 36px -12px rgba(0, 0, 0, .7); transition-delay: 0s; }
.fan-cards li:hover { z-index: 40; }
@media (prefers-reduced-motion: reduce) { .fan-cards li { transition-duration: .01s; } }

/* ---------- E: keycaps scatter under the cursor ---------- */
.keyswarm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Compare pages: cards and a statement instead of a long document ---------- */
.page-cine .doc-body .doc-lead { font-size: 1.0625rem; }
.page-cine .doc-body .doc-lead strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.012em; color: #fff; margin-bottom: 22px; }
.page-cine .doc-body .picks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); counter-reset: pick; perspective: 1100px; }
.page-cine .doc-body .picks li { counter-increment: pick; margin: 0; padding: 26px 26px 28px; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(90% 90% at 100% 0%, oklch(30% 0.13 272) 0%, transparent 62%), rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 50px -34px rgba(0, 0, 0, .8); }
.page-cine .doc-body .picks li::before { content: "0" counter(pick); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--cobalt-soft); margin-bottom: 14px; background: none; box-shadow: none; width: auto; height: auto; }
.page-cine .doc-body .picks li strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.page-cine .doc-body .picks li + li { margin-top: 0; }
@media (min-width: 900px) {
  .page-cine .doc-body .picks, .page-cine .doc-body .table-scroll { --W: min(1120px, calc(100vw - 2 * var(--gutter))); margin-inline: calc((100% - var(--W)) / 2); }
  .page-cine .doc-body .picks.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-cine .doc-body .picks.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the table becomes a row of app cards */
  .page-cine .doc-body .table-scroll { overflow: visible; margin-top: 28px; perspective: 1100px; }
  .page-cine .doc-body .table-scroll table, .page-cine .doc-body .table-scroll tbody { display: block; min-width: 0; width: 100%; }
  .page-cine .doc-body .table-scroll thead { display: none; }
  .page-cine .doc-body .table-scroll tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .page-cine .doc-body .table-scroll tbody tr { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; padding: 26px; margin: 0; border-radius: 22px; position: relative; overflow: hidden;
    background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 50px -34px rgba(0, 0, 0, .8); }
  .page-cine .doc-body .table-scroll tbody tr:first-child { grid-column: 1 / -1; background: radial-gradient(70% 120% at 100% 0%, oklch(32% 0.15 272) 0%, transparent 60%), rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px color-mix(in oklch, var(--cobalt-soft) 60%, transparent), 0 30px 50px -34px rgba(0, 0, 0, .8); }
  .page-cine .doc-body .table-scroll tbody th, .page-cine .doc-body .table-scroll tbody td { display: block; border: 0; padding: 0; white-space: normal; background: none; box-shadow: none; }
  .page-cine .doc-body .table-scroll tbody th { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
  .page-cine .doc-body .table-scroll tbody td::before { content: attr(data-label); display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moon-soft); opacity: .7; margin-bottom: 2px; }
  .page-cine .doc-body .table-scroll tbody td:nth-child(2) { color: #fff; font-size: 1.0625rem; }
  .page-cine .doc-body .table-scroll tbody tr:first-child { grid-template-columns: 1.1fr 1fr 1.4fr; column-gap: 28px; }
  .page-cine .doc-body .table-scroll tbody tr:first-child th { grid-column: 1 / -1; font-size: 2.6rem; }
}
.page-cine .doc-body .doc-scene { margin-block: 56px; }

@media (prefers-reduced-motion: reduce) {
  .rec.is-playing .rec-disc::after { animation: none; }
}

.rec-item:nth-child(1) { --c1: #5b70f0; --c2: #16226e; }
.rec-item:nth-child(2) { --c1: #c08650; --c2: #4a2d14; }
.rec-item:nth-child(3) { --c1: #3fb0f5; --c2: #0c3f73; }
.rec-item:nth-child(4) { --c1: #f1ead5; --c2: #9a9078; }
.rec-item:nth-child(5) { --c1: #cdb6e6; --c2: #54426f; }
.fan-cards li:nth-child(1) { --i: 0; } .fan-cards li:nth-child(2) { --i: 1; } .fan-cards li:nth-child(3) { --i: 2; } .fan-cards li:nth-child(4) { --i: 3; }
.fan-cards li:nth-child(5) { --i: 4; } .fan-cards li:nth-child(6) { --i: 5; } .fan-cards li:nth-child(7) { --i: 6; }

.packs-3d .packs-stick { background: radial-gradient(60% 55% at 50% 52%, color-mix(in oklch, var(--cobalt) 34%, transparent), transparent 72%); }
.rec-disc { background: repeating-radial-gradient(circle at 50% 50%, #1c1d27 0 2px, #2a2c3a 2px 3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 50px -18px rgba(0, 0, 0, .85), inset 0 0 0 6px #14151d; }
.rec-disc::after { background: conic-gradient(from 10deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .34) 9%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .26) 59%, rgba(255, 255, 255, 0) 74%); }
.packs-3d .packs-head .display { font-size: clamp(2.2rem, 4.6vw, 4rem); }

/* round 6b: fit the arc stage in one screen, label text scales with the disc */
.rec-disc { container-type: size; }
.rec-label b { font-size: 6.2cqw; white-space: nowrap; }
.rec-label i { font-size: 2.8cqw; }
.packs-3d .rec-ring { --D: min(22vw, 31svh, 330px); margin-top: 22px; }
@media (max-width: 767px) { .packs-3d .rec-ring { --D: clamp(150px, 48vw, 230px); margin-top: 8px; } }
.packs-3d .packs-head .section-intro { max-width: 52ch; }
.packs-3d .packs-cap { min-height: 120px; }

/* round 6c: pick cards break out of the text column like the app cards do */
@media (min-width: 900px) {
  .page-cine .doc-body ul.picks { --W: min(1120px, calc(100vw - 2 * var(--gutter))); margin-inline: calc((100% - var(--W)) / 2); max-width: none; width: auto; }
  .page-cine .doc-body ul.picks.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-cine .doc-body ul.picks.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-cine .doc-body ul.picks li { padding: 28px 28px 30px; font-size: 1.0625rem; line-height: 1.7rem; }

@media (min-width: 1100px) {
  .page-cine .doc-body .table-scroll tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fan { --sp: clamp(30px, 6.8vw, 50px); --cw: clamp(104px, 17vw, 132px); }
.fan-cards li { width: var(--cw); margin-left: calc(var(--cw) / -2); }
@media (max-width: 520px) {
  .fan { --sp: 22px; --cw: 92px; }
  .fan-cards li { height: 128px; }
  .fan:hover .fan-cards li, .fan:focus-visible .fan-cards li, .fan.is-open .fan-cards li { transform: translateX(calc(var(--n) * var(--sp))) translateY(calc(var(--n) * var(--n) * 3px - 60px)) rotate(calc(var(--n) * 8deg)) scale(1); }
}

/* round 6d: centre the pick cards on the page column whatever the parent's margins do */
@media (min-width: 900px) {
  .page-cine .doc-body ul.picks { position: relative; left: 50%; translate: -50% 0; width: var(--W); margin-inline: 0; }
}
/* phone header: brand word back, buttons a little tighter */
@media (max-width: 559px) {
  .bar .brand { font-size: .9375rem; gap: 7px; }
  .bar .brand img { width: 28px; height: 28px; }
  .nav { gap: 5px; }
  .nav .btn-sm { padding: 6px 8px; font-size: .75rem; }
  .menu-button { padding-inline: 6px; }
}

/* round 6e: the compare template caps direct children at 760px; the pick cards use the full 1100px column like the app cards */
.tpl-compare .doc-body > ul.picks:not(.table-scroll):not(.doc-scene) { max-width: none; width: 100%; left: 0; translate: none; margin-inline: 0; }
@media (max-width: 380px) { .bar .brand { font-size: 0; gap: 0; } }

/* 11-29 journey: pricing used only the left half of the screen at 1100px+; two columns now. */
@media (min-width: 1100px) {
  #pro > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 5vw, 96px); align-items: start; }
  #pro .sec-head { grid-column: 1; grid-row: 1; }
  #pro .buy-under { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; max-width: none; }
  #pro .compare-wrap { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin-top: 0; align-self: center; }
  #pro .foldfan { grid-column: 1 / -1; grid-row: 3; }
}

/* 11-29 journey: touch targets of at least 40px on phones (header buttons were 30px, footer links 20px). */
@media (max-width: 767px) {
  .head-buy, .head-download, .btn-sm { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer nav { gap: 0 20px; }
  .film .hero-actions .btn, .final .btn { min-height: 44px; }
}
