/* JustCode website. Zero-dependency, dark-first, with a light theme (system preference or the toggle). */

/* ---------------------------------------------------------------- Fonts (self-hosted Geist, OFL) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  color-scheme: dark;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Brand, from the app icon: indigo #3b2fb8 -> #5b4cf0 -> cyan #18b6d6 */
  --brand-deep: #3b2fb8;
  --brand: #5b4cf0;
  --brand-cyan: #18b6d6;

  --bg: #07080c;
  --bg-2: #0b0c12;
  --card: #0e0f16;
  --card-2: #12131c;
  --raise: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f4f9;
  --text-2: #a9adc1;
  --text-3: #80849b;
  --accent: #8f84ff;
  --accent-2: #4fd4ef;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --grad-text: linear-gradient(100deg, #b4a9ff 0%, #8693ff 45%, #55d6f0 100%);
  --wave-a: #b4a9ff;
  --wave-b: #8693ff;
  --wave-c: #55d6f0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-hi: rgba(255, 255, 255, 0.16);
  --glow-strength: 0.5;
  --btn-bg: linear-gradient(180deg, #6b5cff 0%, #5444ea 100%);
  --btn-shadow: 0 0 0 1px rgba(124, 108, 255, 0.6), 0 8px 24px -6px rgba(91, 76, 240, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  --frame-ring: rgba(255, 255, 255, 0.09);
  --frame-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(7, 8, 12, 0.72);
  --code-bg: #090a10;

  --working: #5aa2ff;
  --approval: #ff9f43;
  --done: #33d17a;
  --waiting: #c58bff;
  --error: #ff6b7a;

  --sun: block;
  --moon: none;
}

/* Light theme: system preference (unless the visitor picked dark) or an explicit pick. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #fbfbfd;
    --bg-2: #f4f5f9;
    --card: #ffffff;
    --card-2: #f7f7fb;
    --raise: rgba(16, 18, 48, 0.03);
    --line: rgba(16, 18, 48, 0.085);
    --line-2: rgba(16, 18, 48, 0.15);
    --text: #0b0c14;
    --text-2: #474b61;
    --text-3: #62667c;
    --accent: #4b3bdc;
    --accent-2: #0a7591;
    --accent-soft: rgba(91, 76, 240, 0.09);
    --grad-text: linear-gradient(100deg, #4a37d8 0%, #5b4cf0 45%, #0f9cc0 100%);
    --wave-a: #4a37d8;
    --wave-b: #5b4cf0;
    --wave-c: #0f9cc0;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-hi: rgba(255, 255, 255, 0.9);
    --glow-strength: 0.38;
    --btn-bg: linear-gradient(180deg, #6656f7 0%, #4f3fe6 100%);
    --btn-shadow: 0 0 0 1px rgba(79, 63, 230, 0.9), 0 8px 20px -8px rgba(79, 63, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
    --frame-ring: rgba(16, 18, 48, 0.1);
    --frame-shadow: 0 40px 90px -30px rgba(30, 30, 80, 0.28), 0 18px 36px -20px rgba(30, 30, 80, 0.18);
    --nav-bg: rgba(251, 251, 253, 0.76);
    --code-bg: #f3f4f8;
    --working: #2f7de1;
    --approval: #d9770b;
    --done: #18a058;
    --waiting: #9b55e0;
    --error: #d1344b;
    --sun: none;
    --moon: block;
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-2: #f4f5f9;
  --card: #ffffff;
  --card-2: #f7f7fb;
  --raise: rgba(16, 18, 48, 0.03);
  --line: rgba(16, 18, 48, 0.085);
  --line-2: rgba(16, 18, 48, 0.15);
  --text: #0b0c14;
  --text-2: #474b61;
  --text-3: #62667c;
  --accent: #4b3bdc;
  --accent-2: #0a7591;
  --accent-soft: rgba(91, 76, 240, 0.09);
  --grad-text: linear-gradient(100deg, #4a37d8 0%, #5b4cf0 45%, #0f9cc0 100%);
  --wave-a: #4a37d8;
  --wave-b: #5b4cf0;
  --wave-c: #0f9cc0;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glow-strength: 0.38;
  --btn-bg: linear-gradient(180deg, #6656f7 0%, #4f3fe6 100%);
  --btn-shadow: 0 0 0 1px rgba(79, 63, 230, 0.9), 0 8px 20px -8px rgba(79, 63, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --frame-ring: rgba(16, 18, 48, 0.1);
  --frame-shadow: 0 40px 90px -30px rgba(30, 30, 80, 0.28), 0 18px 36px -20px rgba(30, 30, 80, 0.18);
  --nav-bg: rgba(251, 251, 253, 0.76);
  --code-bg: #f3f4f8;
  --working: #2f7de1;
  --approval: #d9770b;
  --done: #18a058;
  --waiting: #9b55e0;
  --error: #d1344b;
  --sun: none;
  --moon: block;
}

/* ---------------------------------------------------------------- Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
  /* Decorative glows and bleeding screenshots must never make the page scroll sideways. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 640;
  text-wrap: balance;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgba(124, 108, 255, 0.35);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code,
kbd,
.mono {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  font-weight: 560;
}
.skip-link:focus {
  top: 12px;
}
.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;
}

.container {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn-primary {
  color: #fff;
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px -4px rgba(91, 76, 240, 0.7);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--raise);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--raise);
}
.theme-toggle .i-sun {
  display: var(--sun);
}
.theme-toggle .i-moon {
  display: var(--moon);
}
/* Seven links fit from 1021 px; below that they move into the Menu (.mobile-nav). */
@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 400px) {
  .nav .btn-sm .label-long {
    display: none;
  }
}

/* ---------------------------------------------------------------- Shared section typography */
.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 152px);
}
.section-head {
  max-width: 760px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.lede {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.section-head.center .lede {
  margin-inline: auto;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A very slow wave of colour through the hero title, with the "23 agents" pill riding the same wave: same gradient
   shape, same keyframes, same duration and the same start, so they move together. The gradient is mirrored
   (a b c b a) and twice as wide as the text, so sliding it from one end to the other and back flows the colours
   across without a seam. The pill uses deeper stops of the same hues so its white text stays above 4.5:1. */
.hero h1 .grad {
  background-image: linear-gradient(100deg, var(--wave-a) 0%, var(--wave-b) 22.5%, var(--wave-c) 50%, var(--wave-b) 77.5%, var(--wave-a) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .grad,
  .hero .pill-tag {
    animation: grad-wave 16s ease-in-out infinite;
  }
  .hero.is-off h1 .grad,
  .hero.is-off .pill-tag {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
@keyframes grad-wave {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.muted {
  color: var(--text-3);
}

kbd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
kbd > span {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  border-radius: 6px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2);
  color: var(--text);
}

/* ---------------------------------------------------------------- Screenshot frames */
.frame {
  position: relative;
  margin: 0;
  padding: 6px;
  border-radius: 18px;
  background: var(--frame-bg);
  box-shadow: 0 0 0 1px var(--frame-ring), var(--frame-shadow);
}
.frame picture,
.frame img {
  width: 100%;
  border-radius: 12px;
}
.frame img {
  box-shadow: 0 0 0 1px var(--frame-ring);
  background: var(--bg-2);
}
.frame--fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
}

/* Wide screenshots bleed off the right edge on small screens so the UI stays legible. */
.wide-shot {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  overflow-x: clip;
  overflow-clip-margin: 24px;
}
@media (max-width: 700px) {
  .wide-shot .frame {
    width: 165%;
  }
  .wide-shot .frame--fade {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, #000 52%, transparent 62%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, #000 52%, transparent 62%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

/* ---------------------------------------------------------------- Hero */
/* The copy (pill to the installer note under the buttons) always fits the first screen under the sticky navbar. This
   is the ONE place that does it: the space above, the title size and the gaps shrink with the viewport HEIGHT as well
   as its width, in --vh (svh where supported, so mobile toolbars count). check-site.mjs measures it at 1920×1080,
   1366×768, 1280×650 and 390×844. Wide screens put the title on the left and the rest beside it. */
.hero {
  position: relative;
  --vh: 1vh;
  --hero-top: clamp(16px, min(5vw, 9 * var(--vh) - 20px), 72px);
  --hero-gap: clamp(12px, 2.6 * var(--vh), 24px);
  --hero-h1: clamp(40px, min(5.2vw, 8.5 * var(--vh)), 72px);
  padding-top: var(--hero-top);
  padding-bottom: 48px;
  isolation: isolate;
}
@supports (height: 1svh) {
  .hero {
    --vh: 1svh;
  }
}
.hero-copy {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--hero-gap) 64px;
  text-align: left;
}
.pill {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.pill:hover {
  color: var(--text);
}
.pill > span:not(.pill-tag) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.pill-tag {
  flex: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  /* Same wave as the title (see .hero h1 .grad), in deeper stops that keep the white text readable. */
  --pill-c: color-mix(in srgb, var(--brand-cyan) 50%, var(--brand-deep));
  background-image: linear-gradient(100deg, var(--brand-deep) 0%, var(--brand) 22.5%, var(--pill-c) 50%, var(--brand) 77.5%, var(--brand-deep) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
}
.hero h1 {
  grid-column: 1;
  grid-row: 2 / 5;
  margin: 0;
  font-size: var(--hero-h1);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 660;
}
.hero-sub {
  grid-column: 2;
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-ctas {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-ctas .btn {
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
}
.hero-note {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}
.hero-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.hero-note a:hover {
  color: var(--text);
}
.hero-shot {
  position: relative;
  margin-top: 40px;
}
.hero-shot .frame {
  padding: 4px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 12px;
}
.hero-shot img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.product-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.product-caption span:first-child {
  color: var(--text-2);
}
@media (max-width: 1000px) {
  .hero-copy {
    gap: var(--hero-gap) 28px;
  }
  .hero-ctas .btn {
    padding: 0 14px;
  }
}
@media (max-width: 860px) {
  .hero {
    --hero-h1: clamp(42px, min(7vw, 7 * var(--vh)), 64px);
  }
  .hero-copy {
    display: block;
  }
  .pill {
    display: flex;
    margin-bottom: var(--hero-gap);
  }
  .hero h1 {
    max-width: 700px;
  }
  .hero-sub {
    margin: var(--hero-gap) 0;
    max-width: 630px;
    font-size: 17px;
  }
  .hero-note {
    margin-top: 16px;
  }
  .hero-shot {
    margin-top: 30px;
  }
  .product-caption {
    font-size: 11px;
  }
  .product-caption span:last-child {
    max-width: 50%;
    text-align: right;
  }
}
@media (max-width: 560px) {
  .hero {
    --hero-top: clamp(16px, 4 * var(--vh), 32px);
    --hero-h1: clamp(34px, 6.4 * var(--vh), 44px);
  }
  .hero h1 {
    max-width: 340px;
  }
  .pill {
    gap: 8px;
    font-size: 11px;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    width: fit-content;
  }
  .product-caption,
  .product-caption span {
    display: block;
  }
  .product-caption span:last-child {
    max-width: none;
    text-align: left;
    margin-top: 4px;
  }
}
@media (max-width: 350px) {
  .hero {
    --hero-h1: clamp(34px, 6 * var(--vh), 39px);
  }
}

/* Status chips under the hero shot (they mirror the three sessions in the screenshot). */
.hero-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-block: 1px solid var(--line);
}
.chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.chip + .chip {
  border-left: 1px solid var(--line);
}
.chip b {
  font-weight: 600;
}
.chip .muted {
  display: block;
  width: 100%;
  margin-left: 28px;
  font-size: 12px;
  color: var(--text-3);
}
.chip:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.chip:active {
  transform: scale(0.97);
}
@media (max-width: 560px) {
  .hero-chips {
    grid-template-columns: 1fr;
  }
  .chip {
    padding: 12px 4px;
  }
  .chip + .chip {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .chip .muted {
    width: auto;
    margin-left: auto;
    max-width: 60%;
    font-size: 11px;
  }
}
.status-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: none;
}
.status-dot svg {
  width: 12px;
  height: 12px;
}
.s-working {
  color: var(--working);
  background: color-mix(in srgb, var(--working) 16%, transparent);
}
.s-approval {
  color: var(--approval);
  background: color-mix(in srgb, var(--approval) 16%, transparent);
}
.s-done {
  color: var(--done);
  background: color-mix(in srgb, var(--done) 16%, transparent);
}
.s-waiting {
  color: var(--waiting);
  background: color-mix(in srgb, var(--waiting) 16%, transparent);
}
.spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .spin {
    animation: spin 0.9s linear infinite;
  }
  .pulse::after {
    animation: pulse 1.8s ease-out infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

/* ---------------------------------------------------------------- Works with */
.works {
  padding: 30px 0 48px;
  border-bottom: 1px solid var(--line);
}
.works-title {
  text-align: center;
  font-size: 15px;
  color: var(--text-3);
}
.works-title b {
  color: var(--text-2);
  font-weight: 560;
}
/* The four most used agents, always in view: frosted-glass ("morphoglass") bubbles that float gently over a soft
   glow in each agent's own colour (colours from the app's agent catalog). Both loops run only while the section is
   on screen (.works.is-off pauses them) and not at all under reduced motion. */
.big4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin: 20px auto 0;
  padding-block: 6px;
}
.b4 {
  position: relative;
}
.b4-glow {
  position: absolute;
  inset: 16% 10%;
  border-radius: 999px;
  background: var(--c);
  opacity: var(--glow-strength);
  filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.b4-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-hi), transparent 60%), var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, var(--line-2)), inset 0 1px 0 var(--glass-hi), 0 12px 30px -14px color-mix(in srgb, var(--c) 70%, transparent);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.b4-card:hover {
  transform: translateY(-2px);
}
.b4-card:active {
  transform: scale(0.97);
}
.b4-card:focus-visible {
  border-radius: 999px;
}
.b4-card[aria-pressed='true'] {
  box-shadow: inset 0 0 0 1.5px var(--c), inset 0 1px 0 var(--glass-hi), 0 14px 34px -12px color-mix(in srgb, var(--c) 85%, transparent);
}
.b4:has(> [aria-pressed='true']) .b4-glow {
  opacity: calc(var(--glow-strength) + 0.3);
}
.b4-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent);
}
.b4-mark svg {
  width: 18px;
  height: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .b4 {
    animation: b4-bob 6.4s ease-in-out infinite;
  }
  .b4:nth-child(2) {
    animation-duration: 7.3s;
    animation-delay: -2.1s;
  }
  .b4:nth-child(3) {
    animation-duration: 5.9s;
    animation-delay: -4.2s;
  }
  .b4:nth-child(4) {
    animation-duration: 6.9s;
    animation-delay: -1.3s;
  }
  .b4-glow {
    animation: b4-drift 9s ease-in-out infinite;
  }
  .b4:nth-child(2) .b4-glow {
    animation-duration: 10.4s;
    animation-delay: -3.5s;
  }
  .b4:nth-child(3) .b4-glow {
    animation-duration: 8.2s;
    animation-delay: -6s;
  }
  .b4:nth-child(4) .b4-glow {
    animation-duration: 11s;
    animation-delay: -1.7s;
  }
  .works.is-off .b4,
  .works.is-off .b4-glow {
    animation-play-state: paused;
  }
}
@keyframes b4-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(2px, -5px, 0);
  }
  66% {
    transform: translate3d(-2px, -2px, 0);
  }
}
@keyframes b4-drift {
  0%,
  100% {
    transform: translate3d(-10%, 6%, 0) scale(1);
  }
  50% {
    transform: translate3d(10%, -8%, 0) scale(1.15);
  }
}
.big4-detail {
  min-height: 52px;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.big4-who {
  color: var(--text-3);
}
.big4-who b {
  color: var(--text);
  font-weight: 600;
}
.big4-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 4px;
  color: var(--text-2);
}
.big4-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.big4-facts .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
  color: var(--c);
}
@media (max-width: 560px) {
  .big4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .b4-card {
    width: 100%;
    height: 44px;
    padding: 0 10px 0 6px;
    font-size: 13px;
  }
  .b4-mark {
    width: 30px;
    height: 30px;
  }
}

.marquee {
  position: relative;
  margin-top: 24px;
  opacity: 0.75;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee ul {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee li {
  display: flex;
  align-items: center;
  padding-inline: 22px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee li::after {
  content: '';
  width: 4px;
  height: 4px;
  margin-left: 44px;
  border-radius: 50%;
  background: var(--line-2);
}
.marquee li {
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.marquee li:hover {
  color: var(--text);
}
.marquee li.is-picked {
  color: var(--accent);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}
.marquee li.custom {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0;
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 70s linear infinite;
  }
  .marquee:focus-visible .marquee-track,
  .marquee.is-paused .marquee-track {
    animation-play-state: paused;
  }
  @media (hover: hover) {
    .marquee:hover .marquee-track {
      animation-play-state: paused;
    }
  }
  .marquee.is-running .marquee-track {
    animation-play-state: running;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    width: auto;
  }
  .marquee ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .marquee ul[aria-hidden='true'] {
    display: none;
  }
}

/* ---------------------------------------------------------------- Feature blocks */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.split .lede {
  margin-top: 0;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.points.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.points li {
  padding: 22px 24px 4px 0;
  margin-right: 24px;
}
.points h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.points h3 .icon {
  color: var(--accent);
}
.points p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
@media (max-width: 1000px) {
  .points,
  .points.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .points,
  .points.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .points li {
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
  .points li:last-child {
    border-bottom: 0;
  }
}

.states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 14px;
  font-weight: 540;
  line-height: inherit;
  color: var(--text);
  cursor: pointer;
  --sc: var(--accent);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.state[data-state='working'] {
  --sc: var(--working);
}
.state[data-state='waiting'] {
  --sc: var(--waiting);
}
.state[data-state='approval'] {
  --sc: var(--approval);
}
.state[data-state='done'] {
  --sc: var(--done);
}
.state:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 50%, transparent);
}
.state:active {
  transform: scale(0.97);
}
.state[aria-pressed='true'] {
  background: color-mix(in srgb, var(--sc) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 60%, transparent);
}
.state-caption {
  margin-top: 14px;
  min-height: 1.6em;
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 62ch;
}
.state-caption b {
  color: var(--text);
  font-weight: 600;
}
.state-caption.is-set {
  color: var(--text-2);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot.is-pop {
    animation: dot-pop 0.4s cubic-bezier(0.2, 0.7, 0.3, 1.4);
  }
}
@keyframes dot-pop {
  from {
    transform: scale(0.4) rotate(-20deg);
    opacity: 0.2;
  }
}

/* ---------------------------------------------------------------- Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 0% 0%, var(--accent-soft), transparent 70%);
  opacity: 0.8;
}
.card-body {
  padding: clamp(22px, 2.6vw, 32px);
  padding-bottom: 0;
}
.card-body:last-child {
  padding-bottom: clamp(22px, 2.6vw, 32px);
}
.card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 620;
}
.card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  text-wrap: pretty;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
/* Screenshot that bleeds out of the bottom-right corner of a card. */
.card-media {
  margin-top: auto;
  padding: 28px 0 0 clamp(22px, 2.6vw, 32px);
}
.card-media img {
  width: 100%;
  border-radius: 12px 0 0 0;
  box-shadow: 0 0 0 1px var(--frame-ring), 0 -10px 40px -20px rgba(0, 0, 0, 0.5);
}
/* Centered screenshot (dialogs), bleeding out of the bottom edge only. */
.card-media.center {
  padding: 28px clamp(22px, 3vw, 40px) 0;
}
.card-media.center img {
  border-radius: 12px 12px 0 0;
}
.card-media.fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.span-12 {
  grid-column: span 12;
}
.span-7 {
  grid-column: span 7;
}
.span-6 {
  grid-column: span 6;
}
.span-5 {
  grid-column: span 5;
}
.span-4 {
  grid-column: span 4;
}
.span-8 {
  grid-column: span 8;
}
@media (max-width: 960px) {
  .span-7,
  .span-6,
  .span-5,
  .span-8 {
    grid-column: span 12;
  }
  .span-4 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .span-4 {
    grid-column: span 12;
  }
}

/* Horizontal card: text left, screenshot right. */
.card.row {
  flex-direction: row;
  align-items: stretch;
}
.card.row .card-body {
  flex: 0 0 38%;
  padding-bottom: clamp(22px, 2.6vw, 32px);
  align-self: center;
}
.card.row .card-media {
  flex: 1;
  margin-top: 0;
  padding-top: clamp(28px, 3vw, 40px);
  align-self: flex-end;
}
@media (max-width: 860px) {
  .card.row {
    flex-direction: column;
  }
  .card.row .card-body {
    flex: none;
    padding-bottom: 0;
    align-self: stretch;
  }
}

/* Workflow chain diagram */
.chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.chain .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.chain:hover .step:not(.is-running):not(.is-done) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.step-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
  color: var(--text-3);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.step-dot .spin {
  width: 10px;
  height: 10px;
  border-width: 1.75px;
}
.step-dot svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}
.step.is-running {
  color: var(--text);
  background: color-mix(in srgb, var(--working) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--working) 55%, transparent);
}
.step.is-running .step-dot {
  color: var(--working);
  box-shadow: none;
}
.step.is-done {
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done) 45%, transparent);
}
.step.is-done .step-dot {
  color: var(--done);
  background: color-mix(in srgb, var(--done) 18%, transparent);
  box-shadow: none;
}
.chain i::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  opacity: 0;
}
.chain i.is-flowing::before {
  animation: chain-flow 0.4s ease-in forwards;
}
@keyframes chain-flow {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(14px);
  }
}
.chain-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.chain i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  position: relative;
}
.chain i::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 3.5px solid transparent;
  border-left: 5px solid var(--brand-cyan);
  border-right: 0;
}

/* Code block */
.code {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-2);
}
.code .p {
  color: var(--text-3);
  user-select: none;
}
.code .c {
  color: var(--accent);
}
.code .s {
  color: var(--accent-2);
}

/* Tags (sounds, themes...) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Shared look for chips that do something when clicked (sounds, sync targets, themes...). */
button.tag {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  line-height: inherit;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
button.tag:hover {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
button.tag:active {
  transform: scale(0.97);
}
button.tag:focus-visible {
  border-radius: 999px;
}

/* Alert sounds: every chip plays the app's real sound file. */
.sound-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex: none;
}
.sound-ico .icon {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.eq i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 50% 100%;
  transform: scaleY(0.35);
}
.sound.is-playing {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.sound.is-playing .sound-ico .icon {
  opacity: 0;
  transform: scale(0.6);
}
.sound.is-playing .eq {
  opacity: 1;
}
.sound.is-playing .eq i:nth-child(1) {
  transform: scaleY(0.55);
}
.sound.is-playing .eq i:nth-child(2) {
  transform: scaleY(1);
}
.sound.is-playing .eq i:nth-child(3) {
  transform: scaleY(0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .sound.is-playing .eq i {
    animation: eq 0.9s ease-in-out infinite;
  }
  .sound.is-playing .eq i:nth-child(2) {
    animation-duration: 0.7s;
    animation-delay: -0.3s;
  }
  .sound.is-playing .eq i:nth-child(3) {
    animation-duration: 1.1s;
    animation-delay: -0.5s;
  }
  .sound.is-nudged {
    animation: nudge 0.4s ease;
  }
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes nudge {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.sound-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}
.mute-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.mute-toggle:hover {
  color: var(--text);
  background: var(--raise);
}
.mute-toggle:focus-visible {
  border-radius: 999px;
}
.mute-toggle .icon {
  width: 15px;
  height: 15px;
}
.mute-toggle .i-vol-off,
.mute-toggle[aria-pressed='true'] .i-vol {
  display: none;
}
.mute-toggle[aria-pressed='true'] .i-vol-off {
  display: block;
}
.mute-toggle[aria-pressed='true'] {
  color: var(--approval);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--approval) 45%, transparent);
}
.sound-hint {
  font-size: 13px;
  color: var(--text-3);
}

/* Feature checklist */
.checks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}
.checks li strong {
  color: var(--text);
  font-weight: 580;
}
.checks .tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
}
.checks .tick svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

/* Two-column feature with media */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.duo.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.duo.flip > .duo-media {
  order: -1;
}
@media (max-width: 960px) {
  .duo,
  .duo.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo.flip > .duo-media {
    order: 0;
  }
}
.duo-media {
  position: relative;
}

/* Sync diagram */
.sync-flow {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.sync-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sync-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.sync-arrow::before,
.sync-arrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.sync-arrow .icon {
  width: 14px;
  height: 14px;
  color: var(--done);
}

/* Sync: pick a destination, click an item to send it through the lock. */
.sync-row > li {
  display: flex;
}
.sync-lock {
  display: inline-grid;
  place-items: center;
}
.sync-dest .i-ok {
  display: none;
}
.sync-dest[aria-pressed='true'] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sync-dest.is-synced {
  color: var(--text);
  background: color-mix(in srgb, var(--done) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done) 55%, transparent);
}
.sync-dest.is-synced .icon {
  display: none;
}
.sync-dest.is-synced .i-ok {
  display: block;
  color: var(--done);
}
.sync-item.is-syncing {
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done) 55%, transparent);
}
.sync-status {
  font-size: 13px;
  color: var(--text-3);
}
@media (prefers-reduced-motion: no-preference) {
  .sync-item.is-syncing {
    animation: sync-send 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .sync-arrow.is-flowing .sync-lock {
    animation: lock-pop 0.6s cubic-bezier(0.2, 0.7, 0.3, 1.4) 0.15s;
  }
  .sync-dest.is-synced {
    animation: sync-land 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.4);
  }
}
@keyframes sync-send {
  40% {
    transform: translateY(5px) scale(0.96);
  }
}
@keyframes lock-pop {
  50% {
    transform: scale(1.45);
  }
}
@keyframes sync-land {
  from {
    transform: translateY(-5px) scale(0.96);
  }
}

/* Shortcut chips: hover, focus or click shows the Windows and macOS keys. */
.kbd-btn {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  color: inherit;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}
.kbd-btn:focus-visible {
  border-radius: 8px;
}
.kbd-btn kbd > span {
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.kbd-btn:hover kbd > span,
.kbd-btn.is-open kbd > span {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 1px 0 var(--line-2);
}
.kbd-btn kbd > span.is-down {
  transform: translateY(1px);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.kbd-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  display: grid;
  gap: 7px;
  min-width: 188px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.kbd-tip.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.kbd-tip .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kbd-tip .you {
  margin-left: 6px;
  font-size: 11px;
  color: var(--accent);
}

/* Theme names: each one previews its terminal colors. */
.theme-name {
  display: inline;
  padding: 0 1px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline dotted;
  text-decoration-color: var(--text-3);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.theme-name::before {
  content: '';
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  margin-right: 0.32em;
  border-radius: 3px;
  vertical-align: -0.02em;
  background: linear-gradient(135deg, var(--sw-bg) 52%, var(--sw-ac) 52%);
  box-shadow: 0 0 0 1px var(--line-2);
}
.theme-name:hover,
.theme-name[aria-pressed='true'] {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.theme-name[aria-pressed='true'] {
  text-decoration-style: solid;
}
.theme-name[data-term-theme='tokyo-night'] {
  --sw-bg: #1a1b26;
  --sw-ac: #7aa2f7;
}
.theme-name[data-term-theme='catppuccin-mocha'] {
  --sw-bg: #1e1e2e;
  --sw-ac: #f5c2e7;
}
.theme-name[data-term-theme='nord'] {
  --sw-bg: #2e3440;
  --sw-ac: #88c0d0;
}
.theme-name[data-term-theme='dracula'] {
  --sw-bg: #282a36;
  --sw-ac: #ff79c6;
}
.theme-name[data-term-theme='github-dark'] {
  --sw-bg: #0d1117;
  --sw-ac: #58a6ff;
}
.term-preview {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--t-bg, #111216);
  color: var(--t-fg, #dcdce4);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.term-preview[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .term-preview:not([hidden]) {
    animation: compat-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--t-fg, #dcdce4) 6%, var(--t-bg, #111216));
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--t-mute, #c9c9d4);
}
.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--t-fg, #dcdce4) 20%, transparent);
}
.term-name {
  margin-left: auto;
}
.term-body {
  margin: 0;
  padding: 12px 14px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}
.term-body span {
  transition: color 0.3s ease;
}
.t-dim {
  color: var(--t-dim);
}
.t-blue {
  color: var(--t-blue);
}
.t-magenta {
  color: var(--t-magenta);
}
.t-cyan {
  color: var(--t-cyan);
}
.t-green {
  color: var(--t-green);
}
.t-yellow {
  color: var(--t-yellow);
}
.t-red {
  color: var(--t-red);
}

/* ---------------------------------------------------------------- Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (max-width: 1000px) {
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- Keyboard */
.shortcuts {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.shortcuts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- Download */
.download {
  position: relative;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 18px;
  box-shadow: 0 18px 44px -12px rgba(91, 76, 240, 0.75);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}
@media (max-width: 720px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}
.platform {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-align: left;
}
/* Linux spans both columns: three package formats for each of two CPUs. */
.platform-wide {
  grid-column: 1 / -1;
}
.platform-btns-linux {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .platform-btns-linux {
    grid-template-columns: minmax(0, 1fr);
  }
}
.platform.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 4px var(--accent-soft);
}
.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.platform h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 620;
}
.badge {
  display: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  color: var(--accent);
  background: var(--accent-soft);
}
.platform.is-current .badge {
  display: inline-block;
}
.platform p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
}
.platform-btns {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.platform-btns .btn {
  justify-content: space-between;
  height: 50px;
  padding: 0 16px 0 18px;
}
.platform-btns .btn small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.platform-btns .btn span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Very narrow screens: the architecture label moves under the button text so nothing overflows. */
@media (max-width: 380px) {
  .platform {
    padding: 20px 16px;
  }
  .platform-btns .btn {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    height: auto;
    min-height: 50px;
    padding: 8px 16px;
  }
  .platform-btns .btn small {
    padding-left: 27px;
  }
}
/* Compatibility estimate */
/* Left-aligned with the platform cards above it (check-site measures it at 1440 and 1366). */
.compat {
  margin-top: 24px;
}
.compat-toggle[aria-expanded='true'] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.compat-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.compat-panel {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 18px;
  text-align: left;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.compat-panel[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .compat-panel:not([hidden]) {
    animation: compat-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
@keyframes compat-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.compat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compat-head h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 620;
}
.compat-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--approval);
  background: color-mix(in srgb, var(--approval) 13%, transparent);
}
.compat-loading {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  --v: var(--done);
  background: color-mix(in srgb, var(--v) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v) 35%, transparent);
}
.verdict.v-maybe {
  --v: var(--approval);
}
.verdict.v-no {
  --v: var(--error);
}
.verdict-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: var(--v);
  background: color-mix(in srgb, var(--v) 16%, transparent);
}
.verdict-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.verdict-title {
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.verdict-sub {
  font-size: 14px;
  color: var(--text-2);
}
.compat-reasons,
.compat-notes {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
}
.compat-reasons li,
.compat-notes li {
  position: relative;
  padding-left: 16px;
}
.compat-reasons li::before,
.compat-notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.compat-notes {
  font-size: 13.5px;
  color: var(--text-3);
}
.compat-rec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}
.compat-rec-label {
  font-size: 13.5px;
  color: var(--text-3);
}
.compat-rec .btn {
  gap: 14px;
  height: 44px;
  padding: 0 16px;
}
.compat-rec .btn span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.compat-rec .btn small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}
.compat-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  margin: 18px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 560px) {
  .compat-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.compat-facts > div {
  padding: 10px 14px;
  background: var(--card);
  min-width: 0;
}
.compat-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compat-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.compat-req,
.compat-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.compat-req strong {
  color: var(--text-2);
  font-weight: 560;
}
.compat-fine {
  margin-top: 6px;
}
.download-notes {
  max-width: 860px;
  margin: 22px auto 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
}
.download-notes code {
  overflow-wrap: anywhere;
}
.download-notes {
  text-align: left;
  gap: 12px;
}
.download-notes strong {
  color: var(--text-2);
}

/* ---------------------------------------------------------------- What's new (index) and Patch notes (changelog.html)
   Both are written from releases.json by scripts/sync-release.mjs. */
.release-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.release-highlights li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.release-highlights .tick,
.release-entry .tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
}
.release-highlights .tick svg,
.release-entry .tick svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.release-more {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .release-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}

.changelog {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}
.changelog-head {
  max-width: 760px;
}
.changelog-head h1 {
  margin: 0;
}
.release-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.release-index a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.release-index a:hover {
  color: var(--text);
  background: var(--raise);
}
.release-entry {
  margin-top: 40px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  scroll-margin-top: 16px; /* plus the 84px scroll-padding-top of html */
}
.release-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}
.release-entry-version {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.release-entry-version a:hover {
  color: var(--accent);
}
.release-entry-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
}
.release-entry-meta .badge {
  display: inline-block;
}
.release-entry-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.release-entry-summary {
  margin-top: 6px;
  max-width: 70ch;
  color: var(--text-2);
  line-height: 1.7;
}
.release-entry-label {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.release-entry .checks {
  margin-top: 14px;
}
.release-entry-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
  max-width: 80ch;
  color: var(--text-2);
  line-height: 1.65;
}
.release-entry-notes li::marker {
  color: var(--text-3);
}
.release-entry-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 8px;
  margin-top: 14px;
}
.release-entry-files a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 14px;
  color: var(--text);
}
.release-entry-files a:hover {
  background: var(--accent-soft);
}
.release-entry-files .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.release-entry-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.release-entry-fine a,
.changelog-head .lede a,
.download .lede a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  max-width: 820px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  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: 17px;
  font-weight: 580;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary .plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-3);
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq summary .plus::after {
  transform: rotate(90deg);
}
.faq details[open] summary .plus::after {
  transform: rotate(0deg);
}
.faq .answer {
  padding: 0 4px 24px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 70ch;
}
.faq .answer p + p {
  margin-top: 10px;
}
.faq .answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Footer */
.footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 34ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  /* The hero paints immediately (it is the largest contentful paint): only a gentle, transform-only rise. */
  .hero-in {
    animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0s);
  }
}
@keyframes hero-rise {
  from {
    transform: translateY(14px);
  }
}

/* ---------------------------------------------------------------- 404 */
.notfound {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 16px;
}
.notfound .code404 {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.notfound h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.notfound p {
  margin: 18px auto 0;
  max-width: 46ch;
  color: var(--text-2);
}
.notfound .hero-ctas {
  margin-top: 30px;
}

/* ---------------------------------------------------------------- Product presentation
   Quiet surfaces and a measured type scale let the real application carry the page.
   Semantic agent status indicators retain their colours and interactions. */
:root {
  --btn-bg: #5948e8;
  --btn-shadow: 0 1px 2px rgb(0 0 0 / 16%);
  --frame-shadow: 0 16px 40px -24px rgb(0 0 0 / 45%);
}
.nav {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.nav-inner {
  position: relative;
  height: 72px;
}
.brand img {
  box-shadow: none;
}
.btn {
  border-radius: 8px;
}
.btn-primary {
  background: #5948e8;
  box-shadow: 0 1px 2px rgb(0 0 0 / 16%);
}
.btn-primary:hover {
  background: #4b3bd2;
  box-shadow: none;
}
.mobile-nav {
  display: none;
}
.mobile-nav summary {
  padding: 9px 10px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13px;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav[open] summary {
  background: var(--raise);
}
.mobile-nav nav {
  position: absolute;
  right: 16px;
  top: 60px;
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 20%);
}
.mobile-nav nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 5px;
  font-size: 14px;
}
.mobile-nav nav a:hover {
  background: var(--raise);
}
.nav-links a[aria-current='page'],
.mobile-nav nav a[aria-current='page'],
.footer-links a[aria-current='page'] {
  color: var(--text);
}
.section {
  padding-block: clamp(56px, 7vw, 96px);
}
.section-head.center {
  text-align: left;
  max-width: none;
}
.section-head.center .lede {
  margin-left: 0;
}
.h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.lede {
  font-size: 17px;
  line-height: 1.7;
}
.card {
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card::before {
  content: none;
}
.card-body {
  padding: 28px;
}
.card-icon {
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--accent);
}
.card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.card p {
  line-height: 1.75;
}
.frame {
  border-radius: 12px;
  box-shadow: var(--frame-shadow);
}
#features,
#orchestration,
#privacy,
#release {
  background: var(--bg-2);
}
.download {
  border-radius: 16px;
  background: var(--card);
  padding: clamp(24px, 4vw, 48px);
}
.download .section-head {
  position: relative;
  padding-right: 80px;
}
.download-logo {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}
.download-platform-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.download-platform-nav a {
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.download-platform-nav a:hover {
  background: var(--raise);
}
.platforms {
  max-width: none;
  gap: 20px;
  margin-top: 24px;
}
.platform {
  padding: 24px;
  border-radius: 10px;
  background: var(--bg);
  scroll-margin-top: 100px;
}
.platform.is-current {
  box-shadow:
    inset 3px 0 var(--accent),
    inset 0 0 0 1px var(--line-2);
}
.platform h3 {
  font-size: 21px;
}
.platform p {
  color: var(--text-2);
  line-height: 1.7;
}
.platform .platform-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.platform-btns .btn {
  min-width: 0;
}
.download-notes {
  max-width: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 14px;
  font-size: 13px;
  line-height: 1.8;
}
.faq {
  max-width: none;
}
.footer {
  border-top: 1px solid var(--line);
}
@media (max-width: 1020px) {
  .mobile-nav {
    display: block;
  }
}
@media (max-width: 860px) {
  .nav-inner {
    height: 64px;
    gap: 10px;
  }
  .nav-actions {
    gap: 6px;
  }
}
@media (max-width: 560px) {
  .download .section-head {
    padding-right: 0;
  }
  .download-logo {
    position: static;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
  }
  .download-platform-nav {
    gap: 6px;
  }
  .download-platform-nav a {
    padding: 8px 12px;
  }
  .platform {
    padding: 20px 16px;
  }
  .platform-btns-linux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-btns-linux .btn {
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    font-size: 12px;
  }
  .platform-btns-linux .btn .icon {
    display: none;
  }
  .platform-btns-linux .btn small {
    padding-left: 0;
  }
  .brand {
    gap: 6px;
    font-size: 15px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .nav .btn-sm {
    padding-inline: 10px;
    font-size: 12px;
  }
  .theme-toggle {
    width: 30px;
  }
}
@media (max-width: 350px) {
  .nav-download-text {
    display: none;
  }
}
