@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  /* Preloaded in the page head. "optional" never swaps fonts after the first paint, so the page
     cannot jump when they arrive; on a slow first visit it keeps the system font for that view. */
  font-display: optional;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  /* Preloaded in the page head. "optional" never swaps fonts after the first paint, so the page
     cannot jump when they arrive; on a slow first visit it keeps the system font for that view. */
  font-display: optional;
}

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --soft: #f3f3f1;
  --chip: #f0f0ee;
  --line: #e5e5e2;
  --line-soft: #ecece9;
  --ink: #111113;
  --ink-2: #3f4046;
  --muted: #686a71;
  --violet: #5b47e0;
  --violet-ink: #4a3bc2;
  --violet-bg: #f1f0fb;
  --orange: #c2410c;
  --orange-ink: #9a3412;
  --orange-bg: #fdf0e8;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

p code,
li code,
figcaption code {
  font-size: 0.9em;
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav-toggle {
  display: none;
}

.site-nav a {
  padding: 12px 12px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  font-weight: 500;
}

.site-nav .nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  padding: 24px 24px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-brand img {
  border-radius: 6px;
}

/* Shared pieces */

.lead {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding-top: 64px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-lead {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 16px;
  color: var(--ink-2);
}

.section-lead.narrow {
  max-width: 560px;
  font-size: 14px;
  color: var(--muted);
}

.count-muted {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow-integrated {
  color: var(--violet-ink);
}

.eyebrow-pipeline {
  color: var(--orange-ink);
}

.badge {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-small {
  font-size: 11px;
  padding: 2px 8px;
}

.tag,
.tag-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: #f2f2f0;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-outline {
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tag-warn {
  color: var(--orange-ink);
  background: var(--orange-bg);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.button:hover {
  border-color: var(--ink);
}

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  min-width: 0;
}

.command code {
  flex: 1;
  min-width: 0;
  /* Command boxes can sit inside list items; keep inline-code styling out of them. */
  background: none;
  border-radius: 0;
  color: inherit;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 16px;
  padding: 10px 0;
}

.prompt {
  color: #8e8e96;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3a3a40;
  border-radius: 10px;
  background: #1c1c20;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.copy:hover {
  background: #2a2a30;
}

/* "Copy" and "Copied" share one grid cell, so the button never changes width. */
.copy-swap {
  display: inline-grid;
}

.copy-swap > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-done,
.copy.is-copied .copy-idle {
  visibility: hidden;
}

.copy.is-copied .copy-done {
  visibility: visible;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1.5px solid var(--chip);
  background: var(--chip);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.chip-mono,
.chip-voice {
  font-family: var(--mono);
  font-weight: 400;
}

.chip small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.chip-used {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip-used small {
  color: #c9c9ce;
}

.chip-more {
  background: transparent;
  border-style: dashed;
  border-color: #d4d4d0;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #e7e7e4;
}

.swatch-used {
  background: var(--ink);
}

.marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.marker-integrated {
  background: var(--violet);
}

.marker-pipeline {
  display: inline-flex;
  color: var(--orange);
}

.radio-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid #c4c4c0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[aria-pressed='true'] .radio-dot {
  border-color: var(--ink);
}

[aria-pressed='true'] .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}

/* Home */

.hero {
  padding-top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero .lead {
  margin-top: 28px;
  max-width: 620px;
  font-size: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f2c21b;
  box-shadow: 0 0 0 1px #15181b;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.hero-actions .command {
  max-width: 100%;
  text-align: left;
}

.hero-actions .button {
  min-height: 60px;
}

/* The home page demo: a terminal where the one command is typed, Boubou's menu opens and a pointer
   runs a voice from it. site.js plays it on a loop; visitors can take over and click through it. */

.demo-section {
  margin-top: 72px;
}

.demo {
  --d-bg: #111113;
  --d-line: rgba(255, 255, 255, 0.08);
  --d-text: #e4e4e8;
  --d-dim: #8e8e96;
  --d-soft: rgba(255, 255, 255, 0.05);
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--d-bg);
  color: var(--d-text);
  box-shadow:
    0 0 0 1px rgba(17, 17, 19, 0.9),
    0 40px 80px -40px rgba(17, 17, 19, 0.55);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
}

.demo-light {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #3a3a40;
}

.demo-bar p {
  flex: 1;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--d-dim);
}

.demo-local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--d-dim);
  transition: color 0.4s ease;
}

.demo-local::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4a4a52;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.demo-local.is-live {
  color: var(--d-text);
}

.demo-local.is-live::before {
  background: #f2c21b;
  box-shadow: 0 0 0 4px rgba(242, 194, 27, 0.15);
}

.demo-body {
  position: relative;
  height: 640px;
}

.demo-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 32px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-view[hidden] {
  display: flex;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  visibility: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Twenty cells by six rows, each cell twice as tall as it is wide. */
.demo-toucan {
  flex: none;
  width: 150px;
  color: var(--d-text);
}

.demo-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.demo-device {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--d-dim);
}

.demo-list {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--d-dim);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.demo-row:hover,
.demo-row.is-hover {
  background: var(--d-soft);
}

.demo-row[aria-pressed='true'] {
  border-color: var(--d-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--d-text);
}

.demo-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #4a4a52;
  border-radius: 999px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.demo-row[aria-pressed='true'] .demo-mark {
  border-color: #fff;
  box-shadow: inset 0 0 0 3.5px var(--d-bg), inset 0 0 0 8px #fff;
}

/* The last row is an action, set apart from the voices: it leads to the model library. */
.demo-more {
  margin-top: 8px;
}

.demo-more .demo-mark {
  border: 0;
  box-shadow: none !important;
  font-size: 18px;
  line-height: 14px;
  text-align: center;
}

.demo-more .demo-mark::before {
  content: '›';
}

.demo-more .demo-name {
  grid-column: 2 / -1;
}

/* What the chosen row means, the keys under the run box, and labels that depend on the row. */
.demo-about,
.demo-keys {
  margin: 14px 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--d-dim);
}

.demo-keys {
  white-space: pre-wrap;
}

.demo-view[data-on='voice'] [data-if='more'],
.demo-view[data-on='more'] [data-if='voice'] {
  display: none;
}

/* The menu arrives in the order Boubou works: what its check of the Mac found, then each voice
   that fits. site.js numbers these parts and counts --shown up. */
.demo-in {
  opacity: clamp(0, calc(var(--shown, 99) - var(--i, 0)), 1);
}

.demo-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.2em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--d-text);
}

.demo-name {
  color: var(--d-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-detail,
.demo-size {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-size {
  font-family: var(--mono);
  font-size: 14px;
}

.demo-run {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.demo-run code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.demo-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease;
}

.demo-go:hover,
.demo-go.is-hover {
  background: #e9e9ec;
}

.demo-go:active,
.demo-go.is-down {
  transform: scale(0.97);
}

.demo-paste {
  margin-top: 28px;
  min-height: 62px;
}

/* The model library as the menu's last row opens it: a browser card where the pointer copies a
   command. */
.demo-site {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  padding-bottom: 22px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 70px -20px #000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 20px));
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}

.demo-site.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  transition-delay: 0s;
}

.demo-site-bar {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.demo-site-name {
  margin: 20px 22px 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.demo-site .command {
  margin: 0 22px;
}

/* Run view */

.demo-command {
  margin: 0;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--d-dim);
}

.demo-command b {
  font-weight: 400;
  color: var(--d-text);
}

.demo-steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 14px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.demo-step.is-active,
.demo-step.is-done {
  opacity: 1;
}

.demo-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #4a4a52;
  border-radius: 999px;
}

.demo-step.is-active .demo-icon {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  animation: demo-spin 0.8s linear infinite;
}

.demo-step.is-done .demo-icon {
  border-color: #fff;
  background: #fff;
}

.demo-step.is-done .demo-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #111113;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--d-text);
}

.demo-step-note {
  grid-column: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--d-dim);
}

.demo-progress {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.demo-track {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.demo-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: #fff;
}

.demo-progress span {
  flex: none;
  min-width: 112px;
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--d-dim);
}

.demo-parts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.demo-parts span {
  padding: 3px 9px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--d-dim);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.demo-parts span.is-done {
  color: var(--d-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.demo-talk {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-talk.is-on {
  opacity: 1;
  transform: none;
}

.demo-voice {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--d-dim);
}

.demo-voice b {
  font-weight: 500;
  color: var(--d-text);
}

.demo-meter {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.demo-meter i {
  flex: 1;
  max-width: 4px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleY(0.08);
  transition: transform 0.1s linear;
}

.demo-voice.is-boubou .demo-meter i {
  background: #f2c21b;
}

.demo-voice small {
  font-family: var(--mono);
  font-size: 12px;
}

.demo-back {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--d-dim);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.demo-back:hover {
  color: var(--d-text);
}

/* The pointer and its click ripple, driven by site.js. */

.demo-pointer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s ease;
}

.demo.is-auto .demo-pointer {
  opacity: 1;
}

/* Hovering pauses the autoplay; the pointer fades back so the visitor's own takes over. */
.demo-ripple {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.demo-ripple.is-on {
  animation: demo-ripple 0.5s ease-out;
}

@keyframes demo-ripple {
  from {
    opacity: 1;
    scale: 0.3;
  }
  to {
    opacity: 0;
    scale: 1.3;
  }
}

/* The model wall: every ready-to-run version, drifting past in three rows. Each row holds two
   identical groups and slides by half its width, so the loop has no seam. */

.wall-section {
  padding: 112px 0 48px;
}

.wall-title {
  padding: 0 24px;
  text-align: center;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.wall {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  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);
}

.wall-row {
  display: flex;
  width: max-content;
  animation: wall-drift 90s linear infinite;
}

.wall-row:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 110s;
}

.wall-row:nth-child(3) {
  animation-duration: 100s;
}

.wall:hover .wall-row {
  animation-play-state: paused;
}

.wall-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.wall-chip {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wall-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

@keyframes wall-drift {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall {
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 24px;
  }

  .wall-row {
    width: auto;
    animation: none;
  }

  .wall-group {
    flex-wrap: wrap;
  }

  .wall-group[aria-hidden] {
    display: none;
  }
}

/* The close: logo, one line, one way in. */

.cta {
  padding: 80px 32px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta img {
  border-radius: 16px;
  background: #fff;
}

.cta h2 {
  margin-top: 28px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #e9e9ec;
}

.cta-button svg {
  transition: transform 0.2s ease;
}

.cta-button:hover svg {
  transform: translateX(3px);
}

/* Get started: the toucan, a platform switch and one command, centred. */

.get-head,
.get-run {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.get-head {
  padding-top: 64px;
}

.get-head img {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.get-head h1 {
  margin-top: 24px;
  font-size: 52px;
  font-weight: 600;
  /* A title that wraps on a phone keeps its lines close; one line stays as tall as before. */
  line-height: 1.1;
  padding: 0.2em 0;
  letter-spacing: -0.04em;
}

.get-run {
  margin-top: 36px;
}

.get-run .command {
  max-width: 100%;
  min-width: min(100%, 420px);
  text-align: left;
}

.get-run .command code {
  font-size: 18px;
}

.get-note code {
  white-space: nowrap;
}

.get-run > p:not([class]) {
  max-width: 520px;
  margin: 22px 0 6px;
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: balance;
}

.get-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 44px 0 0;
  font-size: 15px;
}

.get-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
}

.get-next a:hover {
  color: var(--ink);
}

.get-platforms {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.get-platforms a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.get-platforms a:hover {
  color: var(--ink);
}

.get-platforms a[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}

.get-platforms small {
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  opacity: 0.6;
}

.get-soon {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 56px 40px;
  border: 1px dashed #d4d4d0;
  border-radius: 24px;
  text-align: center;
}

.get-soon-badge {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 13px;
  color: var(--ink-2);
}

.get-soon h2 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.get-soon > p:not(.get-soon-badge) {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.get-soon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.get-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 15px;
}

.get-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Phones and robots: four steps, each a picture above its words. */

.connect-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.connect-step {
  overflow: hidden;
}

.connect-step > svg {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.connect-step .mono {
  font-family: var(--mono);
}

.connect-step .get-num {
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: var(--ink);
}

.connect-step > div {
  padding: 24px 28px 30px;
}

.connect-step h3 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.connect-step .button {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .connect-steps {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
  }
}

/* Robots: the requirements, numbered and side by side. */

.connect-needs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: need;
}

.connect-needs li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
  color: var(--ink-2);
  counter-increment: need;
}

.connect-needs li::before {
  content: counter(need);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.connect-needs strong {
  font-weight: 600;
  color: var(--ink);
}

.section-lead + .section-lead {
  margin-top: 14px;
}

/* Library */

.page-head {
  padding-top: 64px;
}

.page-head h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.library {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-top: 40px;
}

.library-main {
  flex: 999 1 560px;
  min-width: 0;
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search,
.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

.search {
  flex: 1 1 320px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}

.sort {
  font-size: 14px;
}

.sort select {
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 20px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.tab[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--chip);
  padding: 2px 7px;
  border-radius: 999px;
}

.result {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.group {
  margin-top: 36px;
  scroll-margin-top: 24px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.group-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.group-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.model-row {
  display: block;
  padding: 24px 28px;
  text-decoration: none;
}

.model-row:not([hidden]) ~ .model-row:not([hidden]) {
  border-top: 1px solid var(--line-soft);
}

.model-row:hover {
  background: #f8f8f6;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.model-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-summary {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--ink-2);
}

.row-meta {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty {
  margin-top: 36px;
  padding: 56px 24px;
  border: 1px dashed #d4d4d0;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.filters {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.filters h2 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.filter-note {
  margin: -6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.radio span:nth-child(2) {
  flex: 1;
}

.radio[aria-pressed='true'] {
  background: var(--chip);
  font-weight: 600;
}

.radio-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chip-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.chip-pill {
  padding: 0 16px;
  border-radius: 999px;
}

.chip-button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hint {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #c9c9ce;
}

.hint h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
  color: #fff;
}

.hint p {
  margin: 8px 0 16px;
  font-size: 14px;
}

.hint code {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #232327;
  color: #fff;
  font-size: 14px;
}

/* Model page */

.model-head {
  padding-top: 32px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a {
  padding: 10px 0;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span:last-child {
  color: var(--ink);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.title-row h1 {
  margin-right: 6px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}

.kind-pipeline {
  color: var(--orange-ink);
  background: var(--orange-bg);
}

.kind-pipeline svg {
  color: var(--orange);
}

.kind-integrated {
  color: var(--violet-ink);
  background: #efecfd;
}

.run-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  align-items: flex-start;
}

.run {
  flex: 999 1 560px;
  min-width: 0;
  overflow: hidden;
}

.run-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}

/* Without the script the system switch stays hidden, which can leave the bar empty. */
.run-bar:not(:has(> :not([hidden]))) {
  display: none;
}

.systems {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.systems button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.systems button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

/* A model page shows one system at a time. Elements name their views in data-in. */
[data-view='mac'] [data-in]:not([data-in~='mac']),
[data-view='linux'] [data-in]:not([data-in~='linux']),
[data-view='mac-only'] [data-in]:not([data-in~='mac-only']) {
  display: none;
}

.device > [data-in] {
  display: contents;
}

.version-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.version-select select {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.run .command {
  border-radius: 0;
  padding: 14px 16px 14px 24px;
}

.run-note {
  margin: 0;
  padding: 14px 24px 18px;
  font-size: 14px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.stats div {
  padding: 14px 24px 16px;
  background: var(--surface);
}

.stats dt {
  font-size: 12px;
  color: var(--muted);
}

.stats dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.device {
  flex: 1 1 320px;
  min-width: 0;
  padding: 24px;
  border: 0;
  background: var(--violet-bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.device-name {
  margin: -6px 0 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.device ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: #2a2b30;
}

.device li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.device li svg {
  flex: none;
  margin-top: 1px;
  color: var(--violet-ink);
}

.device-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #dad6f5;
  font-size: 13px;
  color: #4e4f57;
}

.vl {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.vl-card {
  flex: 1 1 340px;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vl-voices {
  flex: 2 1 560px;
}

.vl-card h3 {
  margin-top: -6px;
  font-size: 24px;
  font-weight: 600;
}

.voice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.vl-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-2);
}

.source {
  margin: -8px 0 0;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.more summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-height: 32px;
}

.more .chips {
  margin-top: 8px;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.versions {
  min-width: 860px;
}

.files {
  min-width: 680px;
}

th {
  padding: 14px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

td {
  padding: 12px;
  border-top: 1px solid #f0f0ee;
  color: var(--ink-2);
}

th:first-child,
td:first-child {
  padding-left: 20px;
}

tbody tr:first-child td {
  border-top: 0;
}

.files td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.nowrap,
.files code {
  white-space: nowrap;
}

.hash {
  color: var(--muted);
}

tr.is-selected {
  background: #f4f3fd;
}

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}

.pick code {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.more-button {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid #f0f0ee;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.flow-card {
  padding: 36px 28px 28px;
  overflow-x: auto;
}

.flow {
  min-width: 900px;
  display: flex;
  align-items: center;
}

.flow-arrow {
  flex: none;
  color: #b9b9b4;
}

.flow-end {
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.flow-end svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.flow-end-dark svg {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.flow-node {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
}

.flow-node-accent {
  flex-grow: 2.2;
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.flow-stage {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.flow-node p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.flow-node code {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.flow-node-accent .flow-stage,
.flow-node-accent code {
  color: #eae6ff;
}

.flow-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
  color: var(--ink-2);
}

.flow-note svg {
  flex: none;
}

.flow-note strong {
  font-weight: 600;
  color: var(--ink);
}

.stages {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 20px;
}

.stage {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.stage h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
}

.stage h3 span,
.stage-head code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.stage p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.stage .stage-missing {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}

.stages-legend {
  margin-top: 28px;
}

kbd {
  font-size: 12px;
  padding: 2px 7px;
  border: 1px solid #d4d4d0;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.commands {
  overflow: hidden;
}

.command-row {
  display: grid;
  gap: 10px;
  padding: 18px 24px;
}

.command-row + .command-row {
  border-top: 1px solid #f0f0ee;
}

.command-row p {
  margin: 0;
  font-size: 15px;
}

.command-row .command {
  background: var(--soft);
  color: var(--ink-2);
  padding: 4px 4px 4px 16px;
  border-radius: 12px;
}

.command-row .command code {
  font-size: 14px;
  padding: 8px 0;
  /* Wrap instead of scrolling the option, the part that matters, out of view. */
  white-space: normal;
  overflow-wrap: anywhere;
}

.command-row strong {
  font-weight: 600;
  color: var(--ink);
}

.command-row .copy {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.command-row .copy:hover {
  background: var(--chip);
}

.sources {
  font-size: 14px;
  color: var(--muted);
}

.sources h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.sources details {
  margin-top: 12px;
}

.sources .table-card {
  margin-top: 12px;
}

.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sources a {
  color: var(--ink-2);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-row {
    position: relative;
    min-height: 68px;
    gap: 0;
  }

  .brand {
    font-size: 25px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .nav-toggle span {
    grid-area: 1 / 1;
    display: flex;
  }

  .nav-toggle .nav-close-icon,
  .nav-toggle[aria-expanded='true'] .nav-open-icon {
    visibility: hidden;
  }

  .nav-toggle[aria-expanded='true'] .nav-close-icon {
    visibility: visible;
  }

  .header-row .site-nav {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    background: var(--surface);
  }

  .nav-toggle:not([hidden]) ~ .site-nav {
    position: absolute;
    z-index: 5;
    top: calc(100% - 2px);
    left: 16px;
    right: 16px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px -12px #11111326;
  }

  .nav-toggle:not([hidden])[aria-expanded='false'] ~ .site-nav {
    display: none;
  }

  .header-row .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: var(--ink-2);
  }

  .header-row .site-nav a:hover,
  .header-row .site-nav a[aria-current='page'] {
    background: var(--soft);
  }

  .hero {
    padding-top: 40px;
  }

  .hero .pill {
    gap: 8px;
    padding: 6px 10px;
    font-size: clamp(10px, 2.8vw, 12px);
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(32px, 9.8vw, 58px);
    line-height: 1.04;
  }

  .hero .lead {
    margin-top: 18px;
    font-size: clamp(13px, 3.45vw, 18px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-top: 26px;
    padding: 14px;
    border: 1px solid #29292e;
    border-radius: 18px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 20px -12px #11111355;
  }

  .hero-actions .command {
    display: contents;
  }

  .hero-actions .command code {
    grid-column: 1 / -1;
    padding: 2px 0 14px;
    border-bottom: 1px solid #ffffff1a;
    font-size: 12px;
  }

  .hero-actions .copy,
  .hero-actions .button {
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-actions .button {
    color: var(--ink);
  }

  .hero .fine {
    margin-top: 12px;
    font-size: 12px;
  }

  /* A longer command, such as the Linux example, wraps instead of scrolling out of sight. */
  .get-run .command code {
    font-size: 15px;
    white-space: normal;
  }

  .demo-section {
    margin-top: 36px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .demo {
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 0 0 1px #111113e6, 0 20px 48px -24px #11111366;
  }

  .demo-bar {
    position: relative;
    height: 40px;
    gap: 6px;
    padding: 0 16px;
  }

  .demo-light {
    width: 8px;
    height: 8px;
  }

  .demo-bar p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
  }

  /* As tall as the menu, so the page below holds still while the screens change. */
  .demo-body {
    height: auto;
    min-height: 590px;
  }

  .demo-view {
    position: relative;
    padding: 20px 16px 16px;
  }

  /* Narrow terminals drop the toucan and keep their columns for the text, as Boubou's menu does. */
  .demo-toucan,
  .demo-keys {
    display: none;
  }

  .demo-about {
    margin: 10px 0 0 8px;
    font-size: 11px;
  }

  .demo-more .demo-name {
    white-space: normal;
  }

  .demo-site-name {
    margin: 14px 16px 10px;
    font-size: 20px;
  }

  .demo-site .command {
    margin: 0 16px;
    padding-left: 12px;
  }

  .demo-site .command code {
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .demo-title {
    font-size: 18px;
  }

  .demo-device {
    margin-top: 6px;
    font-size: 11px;
  }

  .demo-list {
    margin-top: 16px;
    gap: 2px;
  }

  .demo-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 1px 8px;
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 14px;
  }

  .demo-detail {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 11px;
  }

  .demo-mark {
    grid-row: 1 / span 2;
    width: 14px;
    height: 14px;
  }

  .demo-size {
    grid-row: 1;
    grid-column: 3;
    font-size: 11px;
  }

  .demo-local,
  .demo-pointer,
  .demo-ripple {
    display: none;
  }

  .demo-run {
    margin-top: 16px;
    gap: 8px;
    padding: 6px 6px 6px 10px;
    border-radius: 12px;
  }

  .demo-run code {
    font-size: 11px;
  }

  .demo-go {
    gap: 6px;
    padding: 0 12px;
    font-size: 12px;
  }

  .demo-command {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .demo-steps {
    margin-top: 20px;
    gap: 16px;
  }

  .demo-step {
    gap: 4px 10px;
  }

  .demo-step-title {
    font-size: 14px;
  }

  .demo-step-note {
    font-size: 11px;
  }

  .demo-progress {
    gap: 8px;
  }

  .demo-progress span {
    min-width: 0;
    font-size: 10px;
  }

  .demo-parts span {
    max-width: 100%;
    padding: 3px 7px;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .demo-talk {
    margin-top: 22px;
    padding: 12px;
  }

  .demo-voice {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    font-size: 12px;
  }

  .demo-meter {
    gap: 1px;
  }

  .demo-voice small {
    display: none;
  }

  .demo-back {
    margin-top: 8px;
    min-height: 44px;
    font-size: 12px;
  }

  .wall-section {
    padding: 60px 0 0;
  }

  .wall-title {
    font-size: 28px;
  }

  .wall {
    margin-top: 24px;
    gap: 8px;
  }

  .wall-group {
    gap: 8px;
    padding-right: 8px;
  }

  .wall-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .start-section {
    padding-top: 40px;
  }

  .cta {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .cta img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .cta h2 {
    margin-top: 18px;
    font-size: 32px;
  }

  .cta-button {
    min-height: 44px;
    margin-top: 22px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
  }

  .site-footer {
    margin-top: 40px;
  }

  .footer-row {
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .footer-row .site-nav {
    order: -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 380px;
    gap: 0;
    text-align: center;
    font-size: 13px;
  }

  .footer-row .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 8px 4px;
    white-space: nowrap;
  }

  .footer-brand {
    font-size: 12px;
  }

  .model-row {
    padding: 20px;
  }
}

/* Voice samples */

.sample-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.chip-play {
  cursor: pointer;
  font: inherit;
  font-family: var(--mono);
  font-size: 13px;
  text-align: left;
  min-height: 36px;
}

.chip-play:hover {
  border-color: #c9c9c5;
}

.chip-used.chip-play:hover {
  border-color: var(--ink);
  background: #2a2a30;
}

.play {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  opacity: 0.7;
}

.chip-play[aria-pressed='true'] {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px var(--violet-bg);
}

.chip-play[aria-pressed='true'] .play {
  width: 8px;
  height: 10px;
  border-width: 0 3px;
  border-color: currentColor;
  opacity: 1;
}

.chip-voice.chip-default {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);
}

.default-tag.other {
  background: transparent;
  color: #c9c9ce;
  border: 1px solid #55555c;
}

.default-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
