/* ============================================================
   Baton — baton.tonebox.io
   Warm editorial "concert programme" aesthetic.
   Self-contained: system font stacks only, no network requests.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #E98345;
  --accent-deep: #cc672b;
  --accent-soft: rgba(233, 131, 69, 0.12);
  --accent-softer: rgba(233, 131, 69, 0.07);

  /* Dynamic "music" color — the artwork-mood accent. Brand-locked chrome (logo,
     nav, CTAs, links) always uses --accent; only the hero's ambient elements
     (waves, notes, glow) follow --music, which JS cycles / syncs to the demo. */
  --music: #E98345;

  --bg: #faf6f0;
  --bg-raised: #fffdf9;
  --bg-sunken: #f3ece2;
  --ink: #2b2119;
  --ink-dim: #6f6156;
  --ink-faint: #a2937f;
  --line: #e5dbcd;
  --line-strong: #d5c7b4;
  --shadow: 0 1px 2px rgba(43, 33, 25, 0.05), 0 12px 32px -12px rgba(43, 33, 25, 0.14);

  --ok: #4c8f5f;
  --part: #b98a2e;
  --no-mk: #b0a290;

  --serif: "New York", "Iowan Old Style", "Palatino", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.85rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 4.4rem);

  --wrap: 72rem;
  --pad: clamp(1.1rem, 4vw, 2.5rem);

  color-scheme: light;
}

/* Typed so --music reliably resolves as a color (for color-mix + inheritance).
   The crossfade is done per-element (stroke / color / background-color), NOT by
   transitioning the custom property itself — transitioning a registered, inherited
   custom property on :root doesn't propagate to descendants in Safari/Chrome. */
@property --music {
  syntax: "<color>";
  inherits: true;
  initial-value: #E98345;
}

[data-theme="dark"] {
  --bg: #171310;
  --bg-raised: #201b16;
  --bg-sunken: #120f0c;
  --ink: #efe6da;
  --ink-dim: #b0a191;
  --ink-faint: #7c6f60;
  --line: #322a22;
  --line-strong: #453a2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px -12px rgba(0, 0, 0, 0.55);
  --accent-soft: rgba(233, 131, 69, 0.16);
  --accent-softer: rgba(233, 131, 69, 0.08);
  --ok: #6cb381;
  --part: #d3a648;
  --no-mk: #5c5245;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171310;
    --bg-raised: #201b16;
    --bg-sunken: #120f0c;
    --ink: #efe6da;
    --ink-dim: #b0a191;
    --ink-faint: #7c6f60;
    --line: #322a22;
    --line-strong: #453a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px -12px rgba(0, 0, 0, 0.55);
    --accent-soft: rgba(233, 131, 69, 0.16);
    --accent-softer: rgba(233, 131, 69, 0.08);
    --ok: #6cb381;
    --part: #d3a648;
    --no-mk: #5c5245;
    color-scheme: dark;
  }
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Warm paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(233, 131, 69, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 60%);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where([data-theme="dark"]) a { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) a { color: var(--accent); }
}
a:hover { color: var(--accent); }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-softer);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.38em;
  white-space: nowrap;
}
strong { font-weight: 650; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { align-self: center; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-by {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 520;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 620;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #f19456, var(--accent) 55%, var(--accent-deep));
  color: #fff;
  box-shadow: 0 2px 6px -1px rgba(196, 96, 47, 0.5), 0 10px 26px -8px rgba(196, 96, 47, 0.55);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px -2px rgba(196, 96, 47, 0.5), 0 16px 34px -8px rgba(196, 96, 47, 0.6);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-softer); }
.btn-small { padding: 0.45rem 1.05rem; font-size: 0.88rem; background: var(--accent); color: #fff; }
.btn-small:hover { color: #fff; background: var(--accent-deep); }

/* ---------- Layout primitives ---------- */
.section {
  position: relative;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad) 0;
}
.section-head { max-width: 46rem; }
.section-head h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0.4rem 0 0.8rem;
  text-wrap: balance;
}
.section-sub { color: var(--ink-dim); margin: 0; }
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--accent); }
}
.movement {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-right: 0.6rem;
}
.movement::after {
  content: "·";
  margin-left: 0.6rem;
  color: var(--line-strong);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(2.6rem, 7vh, 5rem) var(--pad) 0;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 46rem; margin: 0 auto; }
.hero .eyebrow { color: var(--ink-faint); letter-spacing: 0.16em; }
.hero-title {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 1rem 0 1.2rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-fineprint {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Hero stage — drifting waves + notes riding across + a reactive equalizer */
.hero-stage {
  position: relative;
  height: clamp(140px, 19vw, 190px);
  margin-top: clamp(1.3rem, 4vw, 2.6rem);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 9%, black 91%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 9%, black 91%, transparent);
}
/* Soft artwork-mood glow behind the waves — the "background adapts" cue. A solid
   tinted layer shaped by a radial mask, so background-color crossfades cleanly
   (gradient stops don't transition; a mask + background-color does). */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--music) 20%, transparent);
  -webkit-mask: radial-gradient(58% 78% at 50% 62%, #000, transparent 70%);
  mask: radial-gradient(58% 78% at 50% 62%, #000, transparent 70%);
}
.wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wave use {
  stroke: var(--music);
  stroke-width: 17;
  stroke-linecap: round;
  fill: none;
}
.wave { will-change: transform; }
.wave-1 { opacity: 0.9; animation: wave-drift 11s linear infinite; }
.wave-2 { opacity: 0.6; animation: wave-drift 17s linear infinite reverse; }
.wave-3 { opacity: 0.42; animation: wave-drift 23s linear infinite; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-240px); } /* one full wave period ×2, seamless */
}

/* Notes riding across the waves. .note carries the horizontal ride; the inner <i>
   bobs vertically so the two transforms never fight. */
.note-stream { position: absolute; inset: 0; z-index: 1; }
.note {
  position: absolute;
  top: var(--y, 20%);
  left: -12%;
  width: var(--sz, 32px);
  color: var(--music);
  will-change: left, opacity;
  animation: note-ride var(--dur, 16s) linear var(--delay, 0s) infinite;
}
.note i { display: block; will-change: transform; animation: note-bob var(--bob, 5s) ease-in-out var(--delay, 0s) infinite; }
.note svg { display: block; width: 100%; height: auto; }
@keyframes note-ride {
  0%   { left: -12%; opacity: 0; }
  9%   { opacity: var(--op, 0.9); }
  91%  { opacity: var(--op, 0.9); }
  100% { left: 112%; opacity: 0; }
}
@keyframes note-bob {
  0%, 100% { transform: translateY(-11px) rotate(-6deg); }
  50%      { transform: translateY(11px) rotate(6deg); }
}
.hero-stage.is-playing .note { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--music) 55%, transparent)); }

/* Mini transport (play a live-synthesized taste) + equalizer */
.hero-transport {
  position: absolute;
  left: clamp(14px, 4vw, 42px);
  bottom: clamp(10px, 3vw, 20px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hp-btn:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 4px 16px rgba(233, 131, 69, 0.22); }
.hp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp-btn .ic-pause { display: none; }
.hero-stage.is-playing .hp-btn .ic-play { display: none; }
.hero-stage.is-playing .hp-btn .ic-pause { display: inline; }
.hp-label { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.02em; }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.eq span {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.82;
  transform: scaleY(0.3);
  transform-origin: bottom center;
  animation: eq-idle 1.2s ease-in-out infinite;
  transition: transform 0.07s linear;
}
.eq span:nth-child(1) { animation-duration: 1.05s; animation-delay: -0.1s; }
.eq span:nth-child(2) { animation-duration: 0.8s;  animation-delay: -0.5s; }
.eq span:nth-child(3) { animation-duration: 1.3s;  animation-delay: -0.2s; }
.eq span:nth-child(4) { animation-duration: 0.7s;  animation-delay: -0.7s; }
.eq span:nth-child(5) { animation-duration: 1.15s; animation-delay: -0.35s; }
.eq span:nth-child(6) { animation-duration: 0.9s;  animation-delay: -0.6s; }
.eq span:nth-child(7) { animation-duration: 1.25s; animation-delay: -0.15s; }
@keyframes eq-idle { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(0.62); } }
.hero-stage.is-playing .eq span { animation: none; } /* JS drives scaleY from the analyser */

/* ---------- Agents ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: start;
  margin-top: 2.2rem;
}
.split-copy p { margin: 0 0 1.1rem; text-wrap: pretty; }
.split-copy .aside {
  font-size: 0.88rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
  margin-top: 1.4rem;
}
.tool-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.3rem 0 0;
}
.tool-chips li { display: inline-flex; }
.tool-chips code { padding: 0.28em 0.65em; border-radius: 999px; }
.chip-more {
  font-size: 0.8rem;
  color: var(--ink-faint);
  align-items: center;
  padding: 0.28em 0.3em;
}

/* Agent demo card */
.agent-demo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.agent-demo-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}
.agent-demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.d1 { background: #e5655e; } .dot.d2 { background: #e0a83b; } .dot.d3 { background: #57b661; }
.agent-demo-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.agent-demo-body { padding: 1.15rem 1.2rem 1.3rem; display: grid; gap: 0.55rem; }
.msg { margin: 0; max-width: 92%; font-size: 0.92rem; line-height: 1.45; }
.msg.user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: 16px 16px 4px 16px;
  font-weight: 520;
  box-shadow: 0 3px 10px -3px rgba(196, 96, 47, 0.5);
}
.msg.tool {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 0.1rem 0.2rem;
}
.msg.tool code { background: none; border: none; padding: 0; font-size: inherit; color: var(--accent-deep); }
[data-theme="dark"] .msg.tool code { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .msg.tool code { color: var(--accent); }
}
.msg.app {
  justify-self: start;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  border-radius: 16px 16px 16px 4px;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.np-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 0.5em;
  animation: np-pulse 1.6s ease-in-out infinite;
}
@keyframes np-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.55; }
}

/* ---------- Features ---------- */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 2.2rem;
}
.feature-group {
  border-top: 2px solid var(--line-strong);
  padding-top: 1.2rem;
}
.feature-group-title {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 700;
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--accent-deep);
}
[data-theme="dark"] .feature-group-title { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-group-title { color: var(--accent); }
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 2.15rem 1fr;
  gap: 0.8rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.feature-list li strong { color: var(--ink); }
.fi {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0.42rem;
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
  flex: none;
}

/* ---------- Library band ---------- */
.library-band {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 4.5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.library-band::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 75%;
  background:
    radial-gradient(closest-side, rgba(233, 131, 69, 0.16), transparent 70%);
  pointer-events: none;
}
.library-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin-top: 2.2rem;
  position: relative;
  z-index: 1;
}
.library-col p { margin: 0 0 1.05rem; text-wrap: pretty; }
.library-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.library-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.library-points li strong { color: var(--ink); display: inline; }
.library-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Compare ---------- */
.table-scroll {
  margin-top: 2.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 640;
  background: var(--bg-sunken);
}
.row-label {
  text-align: left !important;
  font-weight: 560;
  color: var(--ink);
  white-space: normal !important;
  min-width: 13rem;
}
.col-baton {
  background: var(--accent-soft);
  border-inline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 700;
}
thead .col-baton { color: var(--accent-deep); }
[data-theme="dark"] thead .col-baton { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) thead .col-baton { color: var(--accent); }
}
.compare-table small {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-weight: 400;
  margin-top: 0.15rem;
  white-space: normal;
}
.mk { font-weight: 700; font-size: 1.02em; }
.mk.yes { color: var(--ok); }
.mk.part { color: var(--part); }
.mk.no { color: var(--no-mk); }
.compare-note {
  margin-top: 1rem;
  font-size: 0.83rem;
  color: var(--ink-faint);
  max-width: 46rem;
  text-wrap: pretty;
}

/* ---------- Get / final CTA ---------- */
.section-get { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.get-band {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.6rem, 6vw, 4.5rem) 1rem;
  position: relative;
}
.get-mark { margin-bottom: 0.6rem; }
.get-band h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 740;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.get-band > p { color: var(--ink-dim); max-width: 42rem; margin: 0 auto 1.7rem; text-wrap: pretty; }
.get-specs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.83rem;
  line-height: 2;
  color: var(--ink-faint);
}
.get-specs li { display: inline; }
.get-specs li:not(:first-child)::before {
  content: "·";
  margin: 0 0.7rem;
  color: var(--line-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 1.9rem var(--pad) 2.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-brand { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }
.footer-brand strong { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.footer-sep { margin: 0 0.35rem; color: var(--ink-faint); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-nav a:hover { color: var(--accent); }
.footer-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Scroll reveal (only when JS is available) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.9, 0.3, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
/* Staggered hero entrance */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.14s; }
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero .reveal:nth-child(4) { transition-delay: 0.34s; }
.hero .reveal:nth-child(5) { transition-delay: 0.44s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-1, .wave-2, .wave-3, .np-dot { animation: none; }
  /* Notes settle into a calm static arrangement (at their --x anchor) instead of riding. */
  .note { animation: none; left: var(--x, 40%); opacity: var(--op, 0.85); }
  .note i { animation: none; transform: rotate(-4deg); }
  .eq span { animation: none; transform: scaleY(0.5); }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .theme-toggle { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .library-cols { grid-template-columns: 1fr; }
  .agent-demo { max-width: 34rem; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .brand-by { display: none; }
  .header-actions { margin-left: auto; }
  .feature-groups { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .site-header { gap: 0.9rem; }
  /* Tighter table cells + label so more fits before it needs to scroll */
  .compare-table th, .compare-table td { padding: 0.7rem 0.7rem; }
  .row-label { min-width: 11rem; }
}
@media (max-width: 560px) {
  /* Stack the CTAs so neither button gets cramped side-by-side */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* Ease big display paddings / radii on small screens */
  .hero { padding-top: clamp(2.2rem, 8vw, 3.5rem); }
  .eyebrow { letter-spacing: 0.1em; }
  .library-band { border-radius: 16px; }
  .table-scroll { border-radius: 12px; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1.2rem; }
  .btn-small { padding: 0.42rem 0.85rem; }
}
