/* Resonance — website styles.
   Dark only, like the app icon. The three voice colours come from the
   icon's layers (Resonance/AppIcon.icon). */

:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f4f8;
  --muted: #a4a9bc;
  --dim: #6f758a;
  --v1: #3fd0e8;
  --v2: #9b6bff;
  --v3: #ff9a3c;
  --accent: #0a84ff;
  --grad: linear-gradient(100deg, var(--v1) 0%, var(--v2) 52%, var(--v3) 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --l1: 0;
  --l2: 0;
  --l3: 0;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(155, 107, 255, 0.12), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  isolation: isolate;
}

/* Film grain over everything, very faint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(155, 107, 255, 0.45); color: #fff; }

a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.12em 0.4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
em { font-style: normal; color: var(--text); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-wide { width: min(1320px, 100% - 48px); }
.container-narrow { width: min(820px, 100% - 48px); }

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 12s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

.dim { color: var(--muted); }
.mono { font-family: var(--mono); }

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: linear-gradient(180deg, #2a2d39, #1a1c25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 600 0.8em/1 var(--font);
  vertical-align: 0.1em;
  transition: transform 0.12s, box-shadow 0.2s, border-color 0.2s;
}
kbd.wide { min-width: 5.5em; }
kbd + kbd { margin-left: 0.25em; }

/* Aurora: three blurred orbs in the voice colours. They breathe with the
   demo (--l1…--l3 are its voice levels). */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  transition: scale 0.25s ease-out, opacity 0.4s;
}
.orb-1 { background: var(--v1); left: -18vmax; top: -22vmax; scale: calc(1 + var(--l1) * 0.3); animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { background: var(--v2); right: -20vmax; top: 10vh; scale: calc(1 + var(--l2) * 0.3); animation: drift2 32s ease-in-out infinite alternate; }
.orb-3 { background: var(--v3); left: 25vw; bottom: -36vmax; scale: calc(1 + var(--l3) * 0.3); opacity: 0.09; animation: drift3 38s ease-in-out infinite alternate; }
html.playing .orb { opacity: 0.2; }
html.playing .orb-3 { opacity: 0.14; }
@keyframes drift1 { to { translate: 12vw 10vh; } }
@keyframes drift2 { to { translate: -10vw 18vh; } }
@keyframes drift3 { to { translate: -14vw -8vh; } }

/* Navigation */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(980px, 100%);
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  background: rgba(14, 16, 25, 0.55);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--v1);
  box-shadow: 0 0 8px var(--v1);
}
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn .i { font-size: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #fff;
  color: #0a0b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 40px -8px rgba(155, 107, 255, 0.65), 0 4px 18px -6px rgba(63, 208, 232, 0.6);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 16px 50px -8px rgba(155, 107, 255, 0.8), 0 6px 24px -6px rgba(63, 208, 232, 0.75); }
.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.11); }

/* Hero */
.hero { padding: 168px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--v2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.6; } }
.hero-title {
  margin: 0;
  font: 700 clamp(2.9rem, 8.2vw, 6.6rem)/0.98 var(--display);
  letter-spacing: -0.048em;
}
.lede {
  max-width: 700px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin: 18px 0 0; color: var(--dim); font-size: 14px; }

.hero-stage { position: relative; margin-top: 72px; }
.stage-glow {
  position: absolute;
  inset: 4% 6% 8%;
  border-radius: 40px;
  background:
    radial-gradient(40% 50% at 20% 60%, rgba(63, 208, 232, calc(0.28 + var(--l1) * 0.35)), transparent 70%),
    radial-gradient(40% 50% at 55% 30%, rgba(155, 107, 255, calc(0.3 + var(--l2) * 0.35)), transparent 70%),
    radial-gradient(40% 50% at 85% 70%, rgba(255, 154, 60, calc(0.22 + var(--l3) * 0.35)), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
/* ---------- Sections ---------- */

.section { padding: clamp(96px, 13vw, 160px) 0 0; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 {
  margin: 0;
  font: 700 clamp(2.2rem, 5.2vw, 4rem)/1.03 var(--display);
  letter-spacing: -0.042em;
}
h3 { margin: 0; letter-spacing: -0.02em; }
.section-lede { margin: 22px auto 0; max-width: 700px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.section-lede a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.section-lede kbd { font-size: 0.85em; }

.glass-panel {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(24, 26, 38, 0.72), rgba(14, 15, 23, 0.72));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

/* The chip */
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.voice-card {
  --lv: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--c) calc(18% + var(--lv) * 40%), transparent);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 65%),
    var(--surface);
  box-shadow: 0 0 calc(var(--lv) * 70px) color-mix(in srgb, var(--c) 30%, transparent);
  transition: opacity 0.3s;
}
.voice-card header { display: flex; align-items: center; justify-content: space-between; }
.voice-num { color: var(--c); font: 600 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.voice-card h3 { font-size: 26px; font-weight: 700; }
.voice-card p { margin: 0; color: var(--muted); font-size: 15px; }
.scope {
  display: block;
  width: 100%;
  height: 130px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}
.readout { display: flex; justify-content: space-between; font: 600 14px/1 var(--mono); }
.readout span:first-child { color: var(--c); }
.readout span:last-child { color: var(--dim); }

.chip-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.chip-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}
.chip-foot p { display: flex; align-items: center; gap: 12px; margin: 0; }
.waves { display: flex; flex-wrap: wrap; gap: 10px; }
.waves span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.06em;
}
.waves svg { width: 36px; height: 14px; fill: none; stroke: var(--v1); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.waves span:nth-child(2) svg { stroke: var(--v2); }
.waves span:nth-child(3) svg { stroke: var(--v3); }
.waves span:nth-child(4) svg { stroke: var(--muted); }

/* Features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tile:hover { border-color: var(--line-2); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 20px; font-weight: 650; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile p kbd { font-size: 0.78em; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--c, #fff) 25%, transparent);
  background: color-mix(in srgb, var(--c, #fff) 13%, transparent);
  color: var(--c, #fff);
}
.tile-icon .i { font-size: 21px; }
.tile-wide { grid-column: span 3; }
/* A plain link in running copy: accent text, underlined on hover. */
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* A tile's picture of the app, in the look of .media. */
.tile-stage {
  display: grid;
  place-items: center;
  height: 280px;
  margin-bottom: 6px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--v1) 18%, transparent), transparent 60%),
    radial-gradient(110% 90% at 90% 90%, color-mix(in srgb, var(--v2) 20%, transparent), transparent 60%),
    linear-gradient(180deg, #11131d, #0a0b12);
}
.stage-player { width: auto; height: 256px; }
.stage-card { width: min(72%, 400px); height: auto; border-radius: 12px; }
.tile h3 kbd { margin-left: 4px; font-size: 0.72em; }

/* Scrubbing, on a seven-second loop: playing at 1:30, the pointer comes
   in and clicks at 2:05 (a dip in scale), grey marks the target, the engine
   winds up to it over two seconds, the sound is back, play goes on. */
.seek-art { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sa-time { min-width: 32px; }
@property --sa-pos { syntax: '<integer>'; inherits: false; initial-value: 90; }
.sa-time.left {
  text-align: right;
  --sa-min: round(down, var(--sa-pos) / 60);
  --sa-sec: calc(var(--sa-pos) - var(--sa-min) * 60);
  counter-reset: sam var(--sa-min) sas var(--sa-sec);
  animation: sa-time 7s linear infinite;
}
.sa-time.left::after { content: counter(sam) ":" counter(sas, decimal-leading-zero); }
.sa-lane { position: relative; flex: 1; display: flex; align-items: center; }
.sa-track { position: relative; flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.sa-target, .sa-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.sa-target { background: rgba(255, 255, 255, 0.32); animation: sa-target 7s linear infinite; }
.sa-fill { background: #fff; animation: sa-fill 7s linear infinite; }
/* The pointer's tip sits on the bar at the target; it scales about the tip. */
.sa-cursor {
  position: absolute;
  left: 49.6%;
  top: 50%;
  margin: -3px 0 0 -1px;
  transform-origin: 1.5px 1.5px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: sa-cursor 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sa-target { 0%, 15.4% { width: 0; } 15.5%, 44% { width: 49.6%; } 44.1%, 100% { width: 0; } }
@keyframes sa-fill { 0%, 15.4% { width: 35.7%; } 15.5% { width: 0; } 44% { width: 49.6%; } 100% { width: 52.5%; } }
@keyframes sa-time { 0%, 15.4% { --sa-pos: 90; opacity: 1; } 15.5% { --sa-pos: 0; opacity: 0.6; } 44% { --sa-pos: 125; opacity: 0.6; } 44.1% { --sa-pos: 125; opacity: 1; } 100% { --sa-pos: 132; opacity: 1; } }
@keyframes sa-cursor {
  0% { opacity: 0; transform: translate(70px, 44px) scale(1); }
  4% { opacity: 1; }
  13% { transform: translate(0, 0) scale(1); }
  15.5% { transform: translate(0, 0) scale(0.78); }
  18% { transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(0, 0) scale(1); }
  62% { opacity: 0; transform: translate(56px, 36px) scale(1); }
  100% { opacity: 0; transform: translate(56px, 36px) scale(1); }
}

/* Library */
.library { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.library-copy .section-lede { margin-left: 0; }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15.5px; }
.checks .i {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--v1) 18%, transparent);
  color: var(--v1);
  stroke-width: 2.6;
}

/* Shortcuts */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.key-row > span:last-child { color: var(--muted); text-align: right; font-size: 15px; }
.key-row small { display: block; color: var(--dim); font-size: 12px; }
.caps { display: flex; font-size: 17px; }
.key-row.is-pressed { border-color: var(--v1); background: color-mix(in srgb, var(--v1) 10%, transparent); box-shadow: 0 0 40px -10px var(--v1); }
.key-row.is-pressed kbd { transform: translateY(2px); border-bottom-width: 1px; border-color: var(--v1); box-shadow: 0 0 16px -2px var(--v1); }
.key-row.is-pressed > span:last-child { color: var(--text); }

/* Under the hood */
.hood { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.stack { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.stack::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(var(--v1), var(--v2), var(--v3), #8e93a8);
  opacity: 0.5;
}
.stack li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 22px 20px 56px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stack li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 25px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--c);
}
.layer-name { font: 650 16px/1.3 var(--mono); }
.layer-desc { color: var(--text); font-size: 14.5px; }
.layer-note { color: var(--dim); font-size: 13.5px; }
.compare { padding: 28px; }
.compare h3 { font-size: 22px; }
.compare > p { margin: 8px 0 18px; font-size: 15px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th { padding: 8px; color: var(--muted); font-weight: 600; text-align: left; font-size: 13px; }
.compare td { padding: 10px 8px; border-top: 1px solid var(--line); }
.compare td:first-child { color: var(--muted); }
.compare td.yes { color: var(--v1); font-weight: 700; }
.compare td.no { color: var(--dim); }

/* Other players: folded away until asked for */
.others { margin-top: 28px; }
.others summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.others summary:hover { color: var(--text); }
.others summary::-webkit-details-marker { display: none; }
.others summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: rotate 0.3s var(--ease);
}
.others[open] summary::after { rotate: 135deg; }
.others .compare { margin-top: 14px; }
.others .compare > p a { color: var(--text); text-underline-offset: 3px; }
.others-scroll { overflow-x: auto; }
.others table { min-width: 860px; }
.others td { vertical-align: top; }

/* Download */
.download { padding: clamp(26px, 5vw, 48px); }
.dl-main { display: flex; align-items: center; gap: clamp(24px, 5vw, 48px); }
.dl-icon { width: clamp(96px, 16vw, 160px); height: auto; flex: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.dl-main .kicker { margin-bottom: 10px; }
.dl-status { margin: 12px 0 0; color: var(--muted); }
.dl-status a { color: var(--text); text-underline-offset: 3px; }
.dl-status strong { color: var(--text); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.reqs li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font: 500 12px/1.3 var(--mono); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 40px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps h3 { font-size: 18px; }
.steps h3 kbd { font-size: 0.75em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps a { color: var(--text); text-underline-offset: 3px; }
.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  font: 700 14px/1 var(--mono);
}
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; align-items: center; margin-top: 44px; }
.build h3 { font-size: 22px; }
.build p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.code { position: relative; }
.code pre {
  margin: 0;
  padding: 22px 22px 20px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0a0b11;
  font: 400 13px/1.7 var(--mono);
  color: #d9dcea;
}
.code pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.code .c { color: var(--dim); }
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(30, 32, 44, 0.9);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.copy:hover { color: var(--text); }
.copy.done { color: var(--v1); border-color: var(--v1); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 12px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 2px 12px no-repeat;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 135deg; }
.faq p { margin: -6px 4px 24px; color: var(--muted); max-width: 680px; }
.faq a { color: var(--text); text-underline-offset: 3px; }

/* Footer */
.footer { margin-top: clamp(96px, 13vw, 160px); padding: 44px 0 64px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: grid; line-height: 1.25; }
.footer-brand span { color: var(--dim); font-size: 13px; }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 13px; }

/* Scroll reveal (only once JS is running, so nothing hides without it). */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* The tour: a film of the app in chapters, in the hero. */
.tour { margin-top: 64px; }
.media-tour { aspect-ratio: 16 / 10; border-radius: 26px; }
/* The caption names the chapter; the placeholder needn't. */
.media-tour .media-soon span { display: none; }
.tour-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  max-width: min(480px, 70%);
  padding: 12px 16px;
  border-radius: 16px;
  text-align: left;
  background: rgba(10, 11, 18, 0.55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.tour-caption strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.tour-caption span { color: var(--muted); font-size: 14px; }
.tour-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tour-tab {
  --fill: 0;
  display: grid;
  gap: 8px;
  min-width: 150px;
  padding: 10px 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tour-tab:hover { color: var(--text); border-color: var(--line-2); }
.tour-tab[aria-selected="true"] { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.tour-bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tour-bar b { display: block; height: 100%; width: calc(var(--fill) * 100%); background: var(--grad); }

/* Showcases: copy beside a video of the app */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.showcase-flip .showcase-copy { order: 2; }
.showcase-copy .section-lede { margin-left: 0; }

.media {
  position: relative;
  margin: 0;
  /* Recordings are of a 1440 × 900 window: 16:10, so nothing is cropped. */
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--v1) 22%, transparent), transparent 60%),
    radial-gradient(110% 90% at 90% 90%, color-mix(in srgb, var(--v2) 24%, transparent), transparent 60%),
    linear-gradient(180deg, #11131d, #0a0b12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.media-wide { margin: 48px 0 28px; }
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
/* Shown once a frame has loaded; until then (or with no file yet) the placeholder. */
.media.is-ready video { opacity: 1; }
.media-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}
.media-soon .i { width: 38px; height: 38px; color: var(--v1); }
.media-soon span { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.media-soon small { font-size: 13px; color: var(--dim); }
.media.is-ready .media-soon { visibility: hidden; }

/* Sound on and off, once a video has loaded. */
.media-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 11, 18, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.media-sound .i { width: 17px; height: 17px; }
.media-sound:hover { border-color: color-mix(in srgb, var(--v1) 60%, transparent); }
.media-sound[aria-pressed="true"] { color: var(--v1); }
.media.is-ready .media-sound { display: inline-flex; }

.vis-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vis-card {
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-top: 2px solid var(--c);
}
.vis-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--c); }
.vis-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Voice themes, under the visualizers they colour. */
.theme-strip { margin-top: 28px; text-align: center; }
.theme-strip p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.swatches li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
}
.dots { display: inline-flex; gap: 3px; }
.dots i { display: block; width: 11px; height: 11px; border-radius: 50%; }

/* The sound, above the architecture in Under the hood. */
.sound-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }

@media (max-width: 1080px) {
  .nav-links a:nth-child(5) { display: none; }
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile,
  .tile-wide { grid-column: span 1; }
  /* Five tiles in two columns: the last takes the whole row. */
  .tile:last-child { grid-column: 1 / -1; }
  .library,
  .showcase,
  .hood,
  .build { grid-template-columns: minmax(0, 1fr); }
  .library,
  .showcase { gap: 36px; }
  .showcase-flip .showcase-copy { order: 0; }
  .vis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
  .scope { height: 110px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 620px) {
  .container,
  .container-wide,
  .container-narrow { width: calc(100% - 32px); }
  .hero { padding-top: 124px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile,
  .tile-wide { grid-column: span 1; }
  .sound-grid { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .vis-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-tab { min-width: 0; flex: 1 1 40%; }
  /* Too small to cover: the chapter buttons below name the chapter. */
  .tour-caption { display: none; }
  .dl-main { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .chip-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html.js [data-reveal] { transform: none; transition: opacity 0.4s; }
  .orb { transition: none; scale: 1 !important; }
}
