@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Base rules of the new front page; each section's stylesheet sits beside this file. */
html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

/* Page frame: every section of <main> sits in the 1200 px container with the same vertical rhythm. The
   :where() keeps these defaults at zero specificity, so a section's own sheet always wins. */
:where(main > section) {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-space) var(--gutter);
}

:where(main h2) {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

:where(main h3) {
  line-height: 1.25;
}

:where(main) a {
  color: var(--color-accent-ink);
  text-underline-offset: 2px;
}

:where(main) a:hover {
  color: var(--color-ink);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:focus-visible {
  outline: 2px solid var(--color-accent-ink);
  outline-offset: 2px;
}

/* Breakpoints (spec §2): desktop 1440 px, tablet 768 px, phone 390 px. A tablet sheet query stops at
   767 px (max-width: 767px) and a phone query at 389 px (max-width: 389px). */

/* Skip link: the first focusable element of the page. Off screen until it takes focus, then visible. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-accent-ink);
  outline-offset: 2px;
}

main:has(> #hero), #footer, .top {
  width: min(100%, var(--container));
  margin-inline: auto;
  border-inline: 1px solid var(--color-line);
}

main > section {
  position: relative;
  scroll-margin-top: var(--header-height);
  border-block-end: 1px solid var(--color-line);
}

/* Alignment marks straddle the two frame rails. */
@media (min-width: 1220px) {
  main > section::before, main > section::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block-end: -6px;
    width: 11px;
    height: 11px;
    pointer-events: none;
    background: linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) center / 1px 100% no-repeat,
                linear-gradient(var(--color-ink-soft), var(--color-ink-soft)) center / 100% 1px no-repeat;
    opacity: .48;
  }
  main > section::before { inset-inline-start: -6px; }
  main > section::after { inset-inline-end: -6px; }
}

@media (max-width: 599px) {
  :where(main h2) { font-size: 36px; }
}
.benchmarks{ padding:0;}
.benchmarks .section-intro{ padding:var(--section-space) var(--gutter) 24px;}
.bench-scroll{ overflow-x:auto;margin:0 var(--gutter) var(--gutter);border:1px solid var(--color-line);border-radius:var(--radius-card);}
.bench-table{ border-collapse:collapse;width:100%;min-width:620px;text-align:start;}
.bench-table th, .bench-table td{ padding:20px;vertical-align:top;text-align:start;border-bottom:1px solid var(--color-line);border-inline-end:1px solid var(--color-line);}
.bench-table thead th{ background:var(--color-bg-soft);font-weight:600;}
.bench-table tbody th{ font-weight:600;font-size:14px;width:20%;}
.bench-table tbody tr:last-child > *{ border-bottom:0;}
.bench-table th:last-child, .bench-table td:last-child{ border-inline-end:0;}
.bench-soon td{ color:var(--color-ink-soft);}
.bbs{ display:grid;gap:8px;}
.bb{ display:grid;grid-template-columns:auto minmax(60px, 1fr) auto;align-items:center;gap:10px;font-size:14px;}
.bb > .bt:first-child{ grid-column:1 / 3;}
.bnm{ min-width:84px;color:var(--color-ink-soft);}
.bt{ display:block;height:10px;border-radius:var(--radius-pill);background:var(--color-bg-soft);border:1px solid var(--color-line);overflow:hidden;}
.bf{ display:block;height:100%;width:var(--w);background:var(--color-ink-soft);}
.bfr{ background:var(--color-accent);}
.bv{ font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap;}
.bench-note{ margin:10px 0 0;font-size:13px;color:var(--color-ink-soft);}
@media (max-width:599px){.benchmarks .section-intro{ padding-block-end:16px;}
.bench-table th, .bench-table td{ padding:14px 12px;}
}
.bench-foot{ margin:-16px var(--gutter) var(--gutter);}
.compare{ padding:0;}
.compare .section-intro{ padding:var(--section-space) var(--gutter) 24px;}
.compare-scroll{ overflow-x:auto;margin:0 var(--gutter) var(--section-space);border:1px solid var(--color-line);border-radius:var(--radius-card);}
.compare-table{ border-collapse:collapse;width:100%;min-width:760px;table-layout:fixed;text-align:start;}
.compare-table th, .compare-table td{ padding:18px 20px;vertical-align:top;text-align:start;overflow-wrap:anywhere;font-size:14px;border-bottom:1px solid var(--color-line);border-inline-end:1px solid var(--color-line);}
.compare-table thead th{ background:var(--color-bg-soft);font-weight:600;font-size:16px;}
.compare-table tbody th{ font-weight:600;width:16%;}
.compare-table th:last-child, .compare-table td:last-child{ border-inline-end:0;}
.compare-table tbody tr:last-child > *{ border-bottom:0;}
.compare-table td a{ white-space:nowrap;}
@media (max-width:599px){ .compare-table th, .compare-table td{ padding:12px;} }
@media (max-width:599px){.compare-scroll, .bench-scroll{ overflow:visible;border:0;}
:is(.compare-table, .bench-table), :is(.compare-table, .bench-table) :is(tbody, tr, th, td){ display:block;min-width:0;width:auto;}
:is(.compare-table, .bench-table) thead{ display:none;}
:is(.compare-table, .bench-table) tr{ border:1px solid var(--color-line);border-radius:var(--radius-card);margin-block-end:12px;overflow:hidden;}
:is(.compare-table, .bench-table) :is(th, td){ border:0;}
:is(.compare-table, .bench-table) tbody th{ width:auto;background:var(--color-bg-soft);}
.compare-table td::before, .bench-table td[data-p]::before{ display:block;margin-block-end:6px;font-weight:600;font-size:13px;color:var(--color-ink-soft);}
.compare-table td:nth-of-type(1)::before{ content:"Ragon";}
.compare-table td:nth-of-type(2)::before{ content:"Claude Code";}
.compare-table td:nth-of-type(3)::before{ content:"Codex";}
.bench-table td[data-p]::before{ content:attr(data-p);}
}
.comparison { padding: 0; }

.comparison-headline {
  margin: 0;
}

.comparison-scroll {
  overflow-x: auto;
  margin: var(--gutter);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.comparison-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  table-layout: fixed;
  text-align: start;
}

.comparison-table th,
.comparison-table td {
  padding: 24px 20px;
  overflow-wrap: anywhere;
  border-inline-end: 1px solid var(--color-line);
  vertical-align: top;
  text-align: start;
  border-bottom: 1px solid var(--color-line);
}

.comparison-table thead th {
  font-weight: 600;
}

.comparison-table tbody th {
  font-weight: 600;
  font-size: 14px;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  background: var(--color-bg-soft);
  color: var(--color-ink);
}

/* The Ragon column carries the accent, without any rating words (spec §5). */
.comparison-table thead th:nth-child(2) {
  color: var(--color-accent-ink);
}

.comparison-table td {
  color: var(--color-ink-soft);
}

/* Sources of the comparison, listed under the table (spec §5). */
.comparison-sources {
  border-block-start: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: 0.875rem;
}

.comparison-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.comparison-sources li {
  padding: 24px;
  border-block-start: 1px solid var(--color-line);
  border-inline-end: 1px solid var(--color-line);
  overflow-wrap: anywhere;
}

.comparison-sources-heading {
  padding: 24px var(--gutter);
  margin: 0;
  color: var(--color-ink);
  font-weight: 600;
}

/* On a phone the table keeps readable columns and scrolls sideways inside its frame. */
@media (max-width: 767px) {
  .comparison-sources ul { grid-template-columns: minmax(0,1fr); }
  .comparison-table {
    min-width: 640px;
  }

  .comparison-table tbody th {
    white-space: normal;
    min-width: 8em;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }
}
.comparison-picker { padding: var(--gutter); background: var(--color-bg-soft); }
.comparison-picker fieldset { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; margin: 0; }
.comparison-picker legend { padding: 0 0 16px; font-size: 20px; font-weight: 600; }
.comparison-picker label { display: inline-flex; position: relative; }
.comparison-picker input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.comparison-picker span { display: grid; place-items: center; padding: 8px 16px; min-height: 44px; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-bg); font-size: 14px; }
.comparison-picker input:focus-visible + span { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }
.comparison-picker input:checked + span { color: var(--color-accent-ink); border-color: currentColor; }
.comparison-picker p { margin: 16px 0 0; color: var(--color-ink-soft); font-size: 14px; }
.comparison:has([value=ollama]:checked) tr > :nth-child(3),
.comparison:has([value=studio]:checked) tr > :nth-child(4),
.comparison:has([value=cpp]:checked) tr > :nth-child(5) { background: var(--color-bg-soft); color: var(--color-ink); }
@media (max-width: 900px) {
  .comparison-table { min-width: 0; }
  .comparison-table tr > :nth-child(n+3) { display: none; }
  .comparison:has([value=ollama]:checked) tr > :nth-child(3),
  .comparison:has([value=studio]:checked) tr > :nth-child(4),
  .comparison:has([value=cpp]:checked) tr > :nth-child(5) { display: table-cell; }
  .comparison-table tbody th { min-width: 0; }
}
/* At tablet width the comparison facts form a two-card row and a full-width final card. */
@media (min-width: 600px) and (max-width: 900px) {
  .comparison-scroll { border: 0; border-radius: 0; }
  .comparison-table tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .comparison-table tbody tr { display: flex; flex-direction: column; border: 1px solid var(--color-line); border-radius: 8px; overflow: hidden; }
  .comparison-table tbody tr:last-child { grid-column: 1/-1; }
  .comparison-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .comparison-table tbody th, .comparison-table tbody td { border: 0; padding: 18px 24px; }
  .comparison-table tbody th { color: var(--color-ink); background: var(--color-bg-soft); font-size: 18px; }
  .comparison-table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .comparison-table tbody tr > :nth-child(n+3) { display: flex; }
  .comparison-table tbody th { order: -3; }
  .comparison-table tbody td:nth-child(2) { order: -2; }
  .comparison-table td::before { font-weight: 600; color: var(--color-ink); }
  .comparison-table td:nth-child(2)::before { content: 'Ragon'; }
  .comparison-table td:nth-child(3)::before { content: 'Ollama'; }
  .comparison-table td:nth-child(4)::before { content: 'LM Studio'; }
  .comparison-table td:nth-child(5)::before { content: 'llama.cpp'; }
  .comparison:has([value=ollama]:checked) tbody tr > :nth-child(3),
  .comparison:has([value=studio]:checked) tbody tr > :nth-child(4),
  .comparison:has([value=cpp]:checked) tbody tr > :nth-child(5) { display: flex; order: -1; }
  .comparison-sources ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .comparison-sources li { padding: 32px 24px; min-height: 100px; }
  .comparison-sources li:last-child { grid-column: 1/-1; }
}
#cta {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  padding: 0;
  background: color-mix(in srgb,var(--color-accent) 15%,var(--color-bg));
}
#cta h2 { margin: 0; padding: 96px var(--gutter); font-size: 60px; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
#cta .cta-install { min-width: 0; padding: 48px var(--gutter); border-inline-start: 1px solid var(--color-line); align-content: center; }
#cta .cta-command { margin: 0 0 8px; padding: 12px; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 6px; font-size: 12px; direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
#cta .p { color: var(--color-accent-ink); }
#cta .cta-actions { display: grid; gap: 6px; }
#cta .btn { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--color-line); border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
#cta .primary { color: var(--color-bg); background: var(--color-ink); }
#cta .ghost { color: var(--color-ink); background: transparent; }
#cta .btn:hover { border-color: var(--color-ink); }
@media (max-width: 1023px) {
  #cta { grid-template-columns: minmax(0,1fr); }
  #cta .cta-install { border-inline: 0; border-block-start: 1px solid var(--color-line); }
}
@media (max-width: 599px) { #cta h2 { font-size: 36px; } #cta h2, #cta .cta-install { padding-block: 64px; } }
@media (min-width: 600px) and (max-width: 1023px) {
  #cta h2 { padding-block: 56px; }
  #cta .cta-install { padding-block: 72px; }
}
.docs-map .section-intro { grid-template-columns: 7fr 5fr; }
.docs-map .docs-map-title { font-size: 30px; line-height: 1.2; margin: 0; }
.docs-map .section-intro > * { padding-block: 40px; }
.docs-map .section-intro > p { font-size: 14px; line-height: 1.65; border: 0; }
.docs-map-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.docs-map-col { padding: 32px; border-inline-end: 1px solid var(--color-line); }
.docs-map-col:last-child { border-inline-end: 0; }
.docs-map-col h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 20px; }
.docs-map-col ul { list-style: none; margin: 0; padding: 0; }
.docs-map-col a { display: block; padding-block: 4px; color: var(--color-ink-soft); font-size: 14px; text-decoration: none; }
.docs-map-col a:hover { color: var(--color-ink); text-decoration: underline; }
@media (min-width: 600px) and (max-width: 1023px) {
  .docs-map .section-intro { display: grid; grid-template-columns: 1fr 1fr; }
  .docs-map-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .docs-map-col:nth-child(even) { border-inline-end: none; }
  .docs-map-col:nth-child(n+3) { border-block-start: 1px solid var(--color-line); }
}
@media (max-width: 599px) {
  .docs-map .docs-map-title { font-size: 24px; line-height: 32px; padding-block-end: 0; }
  .docs-map .section-intro > p { padding-block: 20px 40px; }
  .docs-map-columns { grid-template-columns: 1fr; }
  .docs-map-col { padding: 32px var(--gutter); border: 0; }
  .docs-map-col + .docs-map-col { border-block-start: 1px solid var(--color-line); }
}
@media (max-width: 1023px) { .docs-map-col a { padding-block: 6px; } }
.integration-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  border-block-end: 1px solid var(--color-line);
}
#editor { padding: 96px var(--gutter); }
#editor h2, #platforms h2 { margin: 0 0 24px; text-wrap: balance; }
#editor p, #platforms > p { font-size: 16px; line-height: 1.65; color: var(--color-ink-soft); }
#editor .editor-labels { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
#editor .editor-labels li { border: 1px solid var(--color-line); border-radius: 6px; padding: 5px 10px; font-size: 13px; }
#editor .editor-snippet { padding: 20px; direction: ltr; text-align: left; font-size: 14px; line-height: 2; background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: 8px; overflow-x: auto; }
@media (max-width: 1023px) {
  .integration-grid { grid-template-columns: minmax(0,1fr); }
  #editor { padding-block: 80px; }
  #editor > * { max-width: 28rem; }
}
@media (max-width: 599px) { #editor { padding-block: 64px; } }

/* JetBrains logo (official files, size only): the colour file on the light theme, the white one on the dark theme.
   Clear space is at least half the black square's width; the logo is smaller than the site's own name. */
#editor .integration-mark { margin: 0 0 24px; padding: 12px; }
#editor .integration-mark a { display: inline-block; padding: 12px; }
#editor .integration-mark img { display: block; height: 32px; width: auto; }
#editor .integration-mark .mark-light { display: none; }
[data-theme=light] #editor .integration-mark .mark-light { display: block; }
[data-theme=light] #editor .integration-mark .mark-dark { display: none; }
#editor .integration-mark small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--color-ink-soft); }
#faq { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); padding: 0; }
#faq h2 { margin: 0; padding: 96px var(--gutter); }
.faq-list { padding: 48px var(--gutter); border-inline-start: 1px solid var(--color-line); }
.faq-item { border-block-start: 1px solid var(--color-line); }
.faq-item:last-child { border-block-end: 1px solid var(--color-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}
[dir=rtl] .faq-item summary::after { transform: rotate(-45deg); }
.faq-item[open] summary::after { rotate: 180deg; }
.faq-item summary:hover { color: var(--color-accent-ink); }
.faq-item p { margin: 0 0 20px; line-height: 1.65; color: var(--color-ink-soft); }
@media (max-width: 1023px) {
  #faq { display: block; }
  .faq-list { border-inline: 0; border-block-start: 1px solid var(--color-line); }
}
@media (max-width: 599px) { #faq h2 { padding-block: 64px; } .faq-list { padding-block: 32px; } }
@media (prefers-reduced-motion: reduce) { #faq .faq-item { transition: none; } }
/* Each row shares the frame edges. Only the wider feature cell changes sides. */
.features, .docs-map, .comparison { padding: 0; }
.section-intro {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  border-block-end: 1px solid var(--color-line);
}
.section-intro > h2, .section-intro > p {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 80px var(--gutter);
}
.section-intro > h2 { text-wrap: balance; }
.section-intro > p {
  border-inline-start: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: 18px;
  line-height: 1.65;
}
.feature-cards { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); }
.feature-card {
  grid-column: span 5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 32px 32px 0;
  border-block-end: 1px solid var(--color-line);
  overflow: hidden;
}
.feature-card:nth-child(4n+1), .feature-card:nth-child(4n) { grid-column: span 7; }
.feature-card:nth-child(odd) { border-inline-end: 1px solid var(--color-line); }
.feature-card:nth-last-child(-n+2) { border-block-end: 0; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 28px; }
.feature-card p { margin: 0; font-size: 14px; line-height: 24px; color: var(--color-ink-soft); }
.feature-card > a {
  margin: 8px 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration-color: var(--color-line);
}
.feature-card > a:hover { text-decoration-color: var(--color-accent); }
@media (max-width: 1023px) {
  .section-intro { display: block; }
  .section-intro > h2 { padding: 80px var(--gutter) 0; }
  .section-intro > p { padding: 24px var(--gutter) 64px; border: 0; max-width: 46rem; }
  .feature-cards { display: block; }
  .feature-card, .feature-card:nth-child(odd), .feature-card:nth-last-child(2) { border-inline: 0; border-block-end: 1px solid var(--color-line); }
  .feature-card { min-height: 480px; padding-inline: var(--gutter); }
}
@media (max-width: 599px) {
  .section-intro > h2 { padding-block-start: 56px; }
  .section-intro > p { padding-block: 20px 48px; font-size: 16px; }
  .feature-card { padding-block-start: 24px; }
}

.feature-card .live-window {
  align-self: stretch;
  flex: 1;
  min-height: 284px;
  border-radius: 8px 8px 0 0;
  border-block-end: 0;
}
.live-window .demo-titlebar { background: var(--color-bg-soft); color: var(--color-ink-soft); font-size: 12px; }
.live-body { padding: 18px; display: grid; align-content: start; gap: 8px; min-width: 0; }
.live-body > strong, .live-body .demo-decision strong { font-size: 14px; font-weight: 600; }
.live-body pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-window .live-body button { width: fit-content; max-width: 100%; text-align: start; border-color: var(--color-line); }
.live-body button[aria-expanded] { width: 100%; display: flex; align-items: center; gap: 9px; }
.live-body button[aria-expanded]::after { content: "+"; margin-inline-start: auto; font: 16px ui-monospace, monospace; }
.live-body button[aria-expanded=true]::after { content: "−"; }
.live-body button[role=switch][aria-checked=true] { border-color: var(--color-accent-ink); color: var(--color-accent-ink); }
.live-body [data-net-off] > * + * { margin-top: 6px; }
.live-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.live-detail { border-inline-start: 2px solid var(--color-accent); padding-inline-start: 10px; }
.live-body code, .live-stream { font: 12px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.live-stream { list-style: none; padding: 0; margin: 0; }
.live-stream li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-block-end: 1px solid var(--color-line); }
.live-stream b { font-weight: 500; color: var(--color-accent-ink); }
.live-stream span { white-space: nowrap; }
.surface-stage .live-window { border: 0; border-radius: 0; min-height: 210px; }

.live-query { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; padding-inline: 8px; border: 1px solid var(--color-line); border-radius: 6px; }
.live-query input { width: 10ch; flex: 1 1 10ch; font: 13px ui-monospace, monospace; }
.live-body [data-hit] > * + * { margin-block-start: 6px; }
.live-body [data-hit] > strong { display: block; color: var(--color-ink-soft); font-size: 12px; }

.live-body [data-disclose] code { white-space: nowrap; color: var(--color-accent-ink); }
.live-body [data-airgap] { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.live-body [data-airgap]::before {
  content: "";
  width: 28px;
  height: 16px;
  border: 1px solid var(--color-ink-soft);
  border-radius: 12px;
}
.live-body [data-airgap]::after {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  width: 10px;
  height: 10px;
  background: var(--color-ink-soft);
  border-radius: 50%;
}
.live-body [data-airgap][aria-checked=true]::after { inset-inline-start: 29px; background: var(--color-accent-ink); }
.live-detail strong { font-weight: 500; }
.live-note { margin: 8px 0 0; font: 12px/1.5 ui-monospace, monospace; }
.live-note b { font-weight: 500; color: var(--color-accent-ink); }
#footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  border-inline: 1px solid var(--color-line);
}
#footer .footer-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr); }
#footer .footer-brand { padding: 56px 32px; border-inline-end: 1px solid var(--color-line); }
#footer .footer-logo { display: inline-flex; gap: 8px; align-items: center; color: var(--color-ink); font-size: 20px; font-weight: 650; text-decoration: none; }
#footer .footer-line { margin: 24px 0 0; color: var(--color-ink-soft); font-size: 14px; }
#footer .footer-cols { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
#footer .footer-col { min-width: 0; padding: 56px 24px; }
#footer h2, #footer h3 { font-size: 14px; font-weight: 600; line-height: 20px; margin: 0 0 16px; }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-col li { margin-block: 0 6px; }
#footer .footer-col a, #footer .footer-guides a { color: var(--color-ink-soft); font-size: 14px; line-height: 1.65; text-decoration: none; overflow-wrap: anywhere; }
#footer .footer-col a:hover, #footer .footer-guides a:hover { color: var(--color-ink); text-decoration: underline; }
#footer .footer-guides { padding: 32px 24px; grid-column: 1/-1; border-block-start: 1px solid var(--color-line); }
#footer .footer-guides ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }
#footer .footer-trust { margin: 0; padding: 20px 32px 0; font-size: 12px; border-block-start: 1px solid var(--color-line); }
#footer .footer-trust a { color: var(--color-ink-soft); }
#footer .footer-trademark { margin: 0; padding: 8px 32px 20px; color: var(--color-ink-soft); font-size: 12px; }
@media (max-width: 1023px) {
  #footer .footer-top { display: block; }
  #footer .footer-brand { border-inline: 0; border-block-end: 1px solid var(--color-line); padding-inline: var(--gutter); }
}
@media (max-width: 599px) {
  #footer .footer-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #footer .footer-col, #footer .footer-guides, #footer .footer-trust, #footer .footer-trademark { padding-inline: var(--gutter); }
  #footer .footer-col { padding-block: 36px; border-block-end: 1px solid var(--color-line); }
  #footer .footer-col:nth-child(odd) { border-inline-end: 1px solid var(--color-line); }
  #footer .footer-col a:not([hidden]) { display: inline-flex; align-items: center; min-height: 40px; }
}
#footer .footer-col li { margin-block-end: 8px; }
@media (min-width: 600px) and (max-width: 1023px) {
  #footer .footer-brand { padding-block: 72px; }
  #footer .footer-guides { padding-block: 40px; }
}
#hero-demo {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px;
  background: var(--color-bg-soft);
}

.demo-window {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 14px/1.5 system-ui, sans-serif;
  text-align: start;
}

.demo-titlebar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 16px;
  border-block-end: 1px solid var(--color-line);
}

.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #fa625c; }
.demo-dot:nth-child(2) { background: #f5bc40; }
.demo-dot:nth-child(3) { background: #34bd52; }

.demo-title {
  position: absolute;
  inset-inline: 0;
  width: max-content;
  margin: auto;
  padding: 2px 10px;
  border: 1px solid var(--color-line);
  border-radius: 7px;
  background: var(--color-bg-soft);
  color: var(--color-ink-soft);
  font-size: 12px;
}

.demo-layout { display: grid; grid-template-columns: minmax(180px, 19.5%) minmax(0, 1fr); height: 650px; }
.demo-side, .demo-bar, .demo-playbar { background: var(--color-bg-soft); }
.demo-side { display: flex; flex-direction: column; border-inline-end: 1px solid var(--color-line); }
.demo-brand { display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 17px; border-block-end: 1px solid var(--color-line); font-size: 18px; letter-spacing: -.04em; }
.demo-threads, .demo-project { display: grid; gap: 4px; padding: 16px 10px; }
.demo-threads small, .demo-project small { padding-inline: 8px; }
.demo-layout small { color: var(--color-ink-soft); font-size: 12px; font-weight: 500; }
.demo-project { margin-block-start: auto; border-block-start: 1px solid var(--color-line); }
.demo-project code { margin-inline: 8px; font-size: 12px; }

.demo-window button, .demo-window input {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.demo-window button { cursor: pointer; transition: background-color .15s, border-color .15s; }
.demo-window button:hover:enabled { background: color-mix(in srgb, var(--color-ink) 9%, transparent); }
.demo-window button[aria-pressed="true"], .demo-window button[aria-expanded="true"] { background: color-mix(in srgb, var(--color-ink) 10%, transparent); }
.demo-window button:disabled { opacity: .48; cursor: default; }
.demo-window :focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: -2px; }
.demo-window [hidden], #hero-demo:not([data-ready]) [data-demo-control] { display: none; }
.demo-threads button { text-align: start; font-size: 13px; font-weight: 500; }
.demo-threads button::before { content: ''; display: inline-block; width: 10px; height: 8px; border: 1px solid currentColor; border-radius: 3px 3px 3px 0; margin-inline-end: 8px; opacity: .65; }

.demo-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.demo-bar, .demo-playbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px; padding: 2px 12px; }
.demo-bar { min-height: 48px; border-block-end: 1px solid var(--color-line); }
.demo-segments, .demo-status, .demo-transport, .demo-files { display: flex; align-items: center; gap: 2px; }
.demo-bar button, .demo-playbar button { padding-inline: 10px; font-size: 13px; }
.demo-status button { color: var(--color-ink-soft); }
.demo-status button::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; background: var(--color-accent); border-radius: 50%; }
.demo-info { margin: 0; padding: 12px 20px; border-block-end: 1px solid var(--color-line); background: var(--color-bg-soft); }
.demo-desk { flex: 1; min-height: 0; overflow: auto; scrollbar-color: var(--color-line) transparent; padding: 16px clamp(16px, 2vw, 26px); }
.demo-crumb { display: flex; align-items: center; gap: 6px; margin-block-end: 5px; color: var(--color-ink-soft); font: 12px ui-monospace, monospace; }
.demo-heading { margin: 0 0 8px; color: inherit; font: 600 clamp(21px, 2vw, 30px)/1.2 system-ui, sans-serif; letter-spacing: -.04em; }
.demo-tabs { display: flex; overflow: auto; border-block-end: 1px solid var(--color-line); }
.demo-tabs button { border-radius: 0; font-size: 13px; }
.demo-tabs button[aria-pressed="true"] { border-block-end: 2px solid var(--color-accent); background: transparent; }
.demo-paper { margin-block: 12px; padding: 14px 18px; background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: 8px; }
.demo-paper p { margin: 5px 0 15px; max-width: 72ch; }
.demo-paper p:last-child { margin-block-end: 0; }
.demo-window pre { margin: 8px 0 0; padding: 12px 14px; overflow-x: auto; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-bg); color: inherit; font: 13px/1.6 ui-monospace, monospace; text-align: start; }
.demo-window .demo-screen { margin: 4px 0 12px; border-inline-start-color: var(--color-accent); }
.demo-files { flex-wrap: wrap; }
.demo-files button { font: 12px ui-monospace, monospace; }
.demo-decision, .demo-answer { display: grid; gap: 5px; padding: 12px 14px; border-inline-start: 2px solid var(--color-accent); background: var(--color-bg-soft); }
.demo-decision span, .demo-answer code { color: var(--color-ink-soft); }
.demo-decision button, .demo-form button { border-color: var(--color-line); }
.demo-decision button + button { margin-inline-start: 4px; }
.demo-questions { display: flex; flex-wrap: wrap; gap: 4px; }
.demo-questions button { text-align: start; border-color: var(--color-line); }
.demo-form { display: flex; margin-block-start: 16px; gap: 4px; }
.demo-form input { flex: 1; min-width: 0; border-color: var(--color-line); background: var(--color-bg); }
.demo-answer { margin-block-start: 12px; }
.demo-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.demo-steps button { color: var(--color-ink-soft); font-size: 13px; }
.demo-steps button::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border: 1px solid currentColor; border-radius: 50%; }
.demo-steps button[aria-pressed="true"]::before { background: var(--color-accent); border-color: var(--color-accent); }
.demo-playbar { border-block-start: 1px solid var(--color-line); margin-block-start: auto; }
.demo-playbar [data-reset] { margin-inline-start: auto; }
.demo-transport output { margin-inline-start: 4px; font: 12px ui-monospace, monospace; color: var(--color-ink-soft); }

@media (max-width: 900px) { .demo-layout { height: 600px; } }
@media (max-width: 600px) {
  #hero-demo { padding: 8px; }
  .demo-layout { height: 500px; display: flex; flex-direction: column; }
  .demo-side { border: 0; border-block-end: 1px solid var(--color-line); }
  .demo-brand, .demo-project, .demo-threads small { display: none; }
  .demo-threads { display: flex; gap: 3px; padding: 4px; overflow-x: auto; }
  .demo-threads button { flex: 0 0 auto; padding-inline: 8px; font-size: 12px; }
  .demo-main { flex: 1; }
  .demo-bar, .demo-playbar { padding: 3px 6px; min-height: 0; }
  .demo-bar button, .demo-playbar button, .demo-tabs button { padding-inline: 7px; font-size: 12px; }
  .demo-desk { padding: 13px; }
  .demo-transport output { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .demo-window button { transition: none; } }
#hero-machines { padding: 0; }

/* The makers' official logos, each on a white plate (the artwork is made for light grounds). A maker with no
   official file is not in the list at all, so the row is as long as the logos we have. */
.machines-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-block: 1px solid var(--color-line);
}

.machines-logos .maker {
  flex: 1 1 160px;
  max-width: 280px;
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 24px 32px;
  background: #ffffff;
}

.machines-logos .maker-logo {
  display: block;
  max-width: 100%;
  height: auto;
}
#hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding: 0;
}

.hero-heading, .hero-actions {
  min-width: 0;
  padding: 56px var(--gutter);
}

.hero-heading {
  position: relative;
  isolation: isolate;
  border-inline-end: 1px solid var(--color-line);
}


#hero h1 {
  margin: 28px 0 0;
  max-width: 12ch;
  font-size: clamp(48px, 5.25vw, 75.6px);
  line-height: 0.96;
  letter-spacing: -.04em;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  min-width: 106px;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-decoration: none;
}

.pill svg { color: var(--color-accent-ink); }
.pill:hover { background: var(--color-bg-soft); border-color: var(--color-ink-soft); }

.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-inline-start: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-accent-ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-decoration: none;
}

.release-badge:hover { background: var(--color-bg-soft); border-color: var(--color-ink-soft); }

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.lede {
  max-width: 32rem;
  margin: 0;
  font-size: 18px;
  line-height: 32px;
  text-wrap: pretty;
}

.hero-hardware {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  color: var(--color-ink-soft);
  font-size: 12px;
  line-height: 16px;
}

.hero-hardware::before {
  content: "";
  width: 12px;
  height: 10px;
  border: 1px solid var(--color-accent-ink);
  outline: 1px dashed var(--color-accent-ink);
  outline-offset: 2px;
  border-radius: 2px;
  margin-inline: 3px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-self: stretch;
  align-items: center;
  gap: 12px;
}

.hero-buttons .hero-install-btn { min-width: 0; padding: 0 28px; white-space: nowrap; }

.hero-requirements-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button, 8px);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.hero-requirements-btn:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-ink-soft);
}

.hero-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 12rem;
  padding: 0 32px;
  border-radius: var(--radius-button, 8px);
  background: var(--color-accent);
  color: #141414;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.hero-install-btn:hover { filter: brightness(1.09); }

.hero-demo-link {
  margin-top: 12px;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.hero-demo-link::after { content: "↓"; margin-inline-start: 7px; }
.hero-demo-link:hover { color: var(--color-ink); text-decoration: underline; }

@media (max-width: 1023px) {
  #hero { grid-template-columns: 1fr; }
  .hero-heading, .hero-actions { padding-block: 48px; }
  .hero-heading { border-inline-end: 0; border-bottom: 1px solid var(--color-line); }
  .hero-trace { height: 66%; }
  #hero h1 { max-width: 21ch; font-size: 48px; }
}

@media (max-width: 599px) {
  .hero-heading, .hero-actions { padding-block: 40px; }
  .hero-heading { min-height: 327px; }
  #hero h1 { max-width: 12ch; }
  .lede { font-size: 16px; line-height: 28px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-requirements-btn { width: 100%; }
  .hero-install-btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#platforms {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-inline-start: 1px solid var(--color-line);
}
#platforms > h2 { font-size: 30px; margin: 0; padding: 40px 32px 0; }
#platforms > p { padding: 12px 32px 32px; margin: 0; font-size: 14px; }
.platform-tiles {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.platform-tile {
  padding: 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-block-start: 1px solid var(--color-line);
}
.platform-tile:nth-child(odd) { border-inline-end: 1px solid var(--color-line); }
.platform-tile h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.platform-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-button, 8px);
  background: var(--color-accent);
  color: #141414;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 1023px) {
  #platforms { border-inline: 0; border-block-start: 1px solid var(--color-line); }
  #platforms > h2, #platforms > p, .platform-tile { padding-inline: var(--gutter); }
  .platform-tile { min-height: 200px; }
}
@media (max-width: 599px) { .platform-tile { padding: 24px 12px; } }
.hardware-list { border-block-start: 1px solid var(--color-line); }
.hardware-list h3 { margin: 0; padding: 24px 24px 0; font-size: 18px; font-weight: 600; }
.hardware-list p { margin: 4px 0 20px; padding-inline: 24px; color: var(--color-ink-soft); font-size: 14px; }
.hardware-list ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; }
.hardware-list li { display: flex; align-items: center; gap: 10px; min-height: 72px; border-block-start: 1px solid var(--color-line); border-inline-end: 1px solid var(--color-line); padding: 12px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .hardware-list ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hardware-list li { min-height: 80px; padding: 16px; }
}
@media (max-width: 599px) {
  .hardware-list ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-tiles { grid-template-columns: minmax(0,1fr); }
  .platform-tile { min-height: auto; padding: 24px var(--gutter); }
  .platform-tile:nth-child(odd) { border-inline: 0; }
}
@media (min-width: 1024px) {
  #platforms > h2 { padding-block-start: 28px; }
  #platforms > p { padding-block-end: 24px; }
  .platform-tile { padding-block: 24px; }
}
/* Privacy page: a single readable column under the top bar; the heading is the largest text. */
#privacy { max-width: 46rem; margin: 0 auto; padding: 32px var(--gutter) 64px; line-height: 1.6; }
#privacy h1 { font-size: 2.25rem; line-height: 1.2; margin: 24px 0 16px; }
#privacy h2 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 8px; }
#privacy ul { padding-inline-start: 1.2em; }
.proof {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.proof-headline, .proof-summary { margin: 0; padding: 24px var(--gutter); }
.proof-headline { font-size: 24px; line-height: 1.15; font-weight: 600; }
.proof-summary { color: var(--color-ink-soft); max-width: 60ch; align-self: center; }
.proof-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-block-start: 1px solid var(--color-line);
  list-style: none;
  padding: 0;
  margin: 0;
}
.proof-cell { display: flex; flex-direction: column; padding: 28px var(--gutter); background: var(--color-bg-soft); }
.proof-cell + .proof-cell { border-inline-start: 1px solid var(--color-line); }
.proof-value { font-size: clamp(32px,3vw,48px); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.proof-label { color: var(--color-ink-soft); margin-block-start: 8px; font-size: 14px; }
@media (max-width: 599px) {
  .proof { grid-template-columns: minmax(0,1fr); }
  .proof-headline { padding-block-end: 0; }
  .proof-cell { padding: 24px 12px; }
  .proof-label { font-size: 12px; }
}
@media (max-width: 599px) {
  .proof-summary { padding-block: 10px 18px; font-size: 14px; }
  .proof-cell { padding-block: 18px; }
}
/* RBRB section: the weekly values take 8 of 12 columns; the latest value and its sentence sit beside it. */
.rbrb {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 0;
  align-items: stretch;
}

.rbrb-headline {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  padding: 64px var(--gutter);
  max-width: 23ch;
  text-wrap: balance;
}

.rbrb-figure {
  grid-column: 1 / span 8;
  grid-row: 2;
  margin: 0;
  padding: 24px var(--gutter);
  border-block-start: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}

.rbrb-text {
  grid-column: 9 / span 4;
  grid-row: 2;
  align-content: center;
  padding: 32px;
  border-inline-start: 1px solid var(--color-line);
  border-block-start: 1px solid var(--color-line);
}

.rbrb-value {
  display: block;
  font-size: clamp(32px, 3.4vw, 48px);
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-accent-ink);
}

.rbrb-sentence,
.rbrb-week {
  margin: 8px 0 0;
  color: var(--color-ink-soft);
}

.rbrb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rbrb-table td, .rbrb-table th { padding: 10px; border-block-end: 1px solid var(--color-line); }
.rbrb-table th { text-align: start; font-weight: 500; }
.rbrb-table td { text-align: end; }

.rbrb-caption {
  margin-top: 8px;
  color: var(--color-ink-soft);
  font-size: 14px;
}

@media (max-width: 767px) {
  .rbrb {
    grid-template-columns: minmax(0, 1fr);
  }

  .rbrb-text,
  .rbrb-figure {
    grid-column: 1;
    grid-row: auto;
    border-inline: 0;
  }
}

/* The latest RBRB value: one big figure on its own line, above its sentence. */
.rbrb-latest {
  margin: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rbrb-figure,
.rbrb-text {
  min-width: 0;
}
@media (max-width: 767px) {
  .rbrb-headline { max-width: none; padding-block: 36px; }
  .rbrb-text { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px 20px; padding: 20px var(--gutter); }
  .rbrb-value { font-size: 34px; white-space: nowrap; }
  .rbrb-week { grid-column: 1/-1; margin: 0; font-size: 13px; }
  .rbrb-sentence { font-size: 14px; margin: 0; }
  .rbrb-figure { padding: 12px var(--gutter); }
}
/* Native radios select the product surface, including with the keyboard and without script. */
.surfaces {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
}
.surface-intro { padding: 96px var(--gutter); }
.surface-intro h2 { margin: 0 0 32px; max-width: 13ch; }
.surface-choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.surface-choices label { position: relative; display: inline-flex; cursor: pointer; }
.surface-choices input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.surface-choices span { border: 1px solid var(--color-line); border-radius: var(--radius-button); padding: 8px 12px; font-size: 14px; }
.surface-choices input:checked + span { background: var(--color-bg-soft); color: var(--color-accent-ink); }
.surface-choices input:focus-visible + span { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }
.surface-stage {
  display: grid;
  align-content: center;
  min-height: 730px;
  padding: 48px;
  background: var(--color-bg-soft);
  border-inline-start: 1px solid var(--color-line);
}
.surface-row {
  display: none;
  min-width: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}
.surfaces:has(input[value="terminal"]:checked) .surface-row:nth-child(1),
.surfaces:has(input[value="web"]:checked) .surface-row:nth-child(2),
.surfaces:has(input[value="desktop"]:checked) .surface-row:nth-child(3),
.surfaces:has(input[value="phone"]:checked) .surface-row:nth-child(4),
.surfaces:has(input[value="remote"]:checked) .surface-row:nth-child(5) { display: grid; }
.surface-text { padding: 24px; border-block-start: 1px solid var(--color-line); }
.surface-text h3 { margin: 0 0 8px; font-size: 18px; }
.surface-text p { margin: 0; color: var(--color-ink-soft); font-size: 14px; }
@media (max-width: 1023px) {
  .surfaces { grid-template-columns: minmax(0,1fr); }
  .surface-intro { padding: 80px var(--gutter); }
  .surface-stage { min-height: 450px; padding: var(--gutter); border-inline: 0; border-block-start: 1px solid var(--color-line); }
}
@media (max-width: 599px) {
  .surface-intro { padding-block: 64px; }
  .surface-stage { padding: 16px; }
}
/* The terminal row: four tabs over one panel each (surfaces.js switches them). */
.terminal-row {
  margin: 0;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px 8px 5px 5px;
  background: var(--color-code-bg);
  color: var(--color-code-ink);
}

.terminal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-code-dim) 30%, transparent);
}

.terminal-tabs [role=tab] {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--color-code-dim);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.terminal-tabs [role=tab]:hover {
  color: var(--color-code-ink);
}

.terminal-tabs [role=tab][aria-selected=true] {
  border-bottom-color: var(--color-accent);
  color: var(--color-code-ink);
}

.terminal-panel {
  min-height: 112px;
  padding: 20px 24px;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* The command line reads left to right on every page; on a right-to-left page it keeps the right edge. */
.terminal-panel p:first-child {
  direction: ltr;
  text-align: left;
}

[dir=rtl] .terminal-panel p:first-child {
  text-align: right;
}

.terminal-panel[hidden] {
  display: none;
}

.terminal-panel p {
  margin: 0;
}

.terminal-panel code {
  font: inherit;
  color: var(--color-code-ink);
}

.terminal-prompt {
  color: var(--color-accent);
  user-select: none;
}

.terminal-out {
  margin-top: 8px;
  color: var(--color-code-dim);
  font-family: system-ui, sans-serif;
}

.surface-intro > p { margin: 0 0 32px; color: var(--color-ink-soft); line-height: 1.65; max-width: 35ch; }
.surface-guide { display: inline-flex; gap: 5px; align-items: center; margin-block-start: 24px; margin-inline-end: 16px; color: var(--color-ink); font-size: 13px; text-decoration-color: var(--color-line); }
.surface-guide:hover { text-decoration-color: var(--color-accent); }
/* Shared by the product page and documentation. */
:root {
  --color-bg: #0a0a0a;
  --color-bg-soft: #171717;
  --color-ink: #fafafa;
  --color-ink-soft: #a3a3a3;
  --color-line: #292929;
  --color-accent: #ff6b35;
  --color-accent-ink: #ff8a5c;
  --color-header-bg: rgba(10, 10, 10, 0.95);
  --color-accent-solid: #c2410c;
  --color-on-accent: #ffffff;
  --color-code-bg: #141414;
  --color-code-ink: #ededed;
  --color-code-dim: #a3a3a3;
  --color-add: #e4e4e4;
  --color-del: #aaa;
  color-scheme: dark;

  --container: 1200px;
  --gutter: 40px;
  --section-space: 72px;

  --header-height: 57px;
  --header-blur: 8px;

  --radius-button: 6px;
  --radius-card: 8px;
  --radius-pill: 9999px;

  --shadow: none;

  --transition-fast: 150ms;
  --transition-base: 200ms;
  --transition-slow: 300ms;
}

[data-md-color-scheme="default"],
[data-theme=light] {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f6f6;
  --color-ink: #171717;
  --color-ink-soft: #575757;
  --color-line: #dedede;
  --color-accent: #ff6b35;
  --color-accent-ink: #b8461d;
  --color-header-bg: rgba(255, 255, 255, 0.95);
  --color-code-bg: #f7f7f7;
  --color-code-ink: #171717;
  --color-code-dim: #666;
  --color-add: #383838;
  --color-del: #666;
  color-scheme: light;
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-space: 48px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  :root { --gutter: 32px; }
}
/* Top bar: sticky, 57 px high (spec §1). Dropdowns are <details>, so they open without script. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: var(--color-header-bg);
  backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid var(--color-line);
}

.top::before {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: calc((100% - 100vw) / 2);
  width: 100vw;
  border-block-end: 1px solid var(--color-line);
  pointer-events: none;
}

.top-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-ink);
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -.045em;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.top-btn:hover {
  background: var(--color-bg-soft);
}

.top-menu {
  position: static;
}

.top-menu > summary {
  list-style: none;
}

.top-menu > summary::-webkit-details-marker {
  display: none;
}

.top-menu > summary::after {
  content: "\25BE";
  font-size: 0.7rem;
  color: var(--color-ink-soft);
}

.top-menu-list {
  position: absolute;
  top: 44px;
  left: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 700px;
  max-width: calc(100vw - 48px);
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: 0;
  background: var(--color-bg-soft);
  box-shadow: none;
  transition: none;
}

.top-menu-list > a {
  padding: 6px 10px;
  border-radius: var(--radius-card);
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.top-menu-list > a:hover {
  background: var(--color-bg);
}

/* Mega panels: open at once under the bar, items in columns: icon, name and one line each. */
.top-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 8px;
  padding: 12px;
  width: min(880px, calc(100vw - 48px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.top-panel-platforms, .top-panel-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, calc(100vw - 48px)); }
.top-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  color: var(--color-ink);
  text-decoration: none;
}
.top-item:hover, .top-item:focus-visible { background: var(--color-bg); }
.top-item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.top-item-icon { flex: none; margin-block-start: 2px; color: var(--color-accent); }
.top-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.top-item-name { font-size: 0.9rem; font-weight: 600; }
.top-item-desc { font-size: 0.8rem; line-height: 1.35; color: var(--color-ink-soft); }
.top-menu[open] > .top-menu-list { animation: none; }

.top-star { gap: 5px; }

.star-count {
  padding-inline-start: 6px;
  border-inline-start: 1px solid var(--color-line);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.top-star svg {
  color: var(--color-accent);
}

/* The plain Docs link, the theme switch and the language select share the 32 px button of the bar. */
.top-plain {
  color: var(--color-ink);
}

.top-theme {
  border: 1px solid var(--color-line);
  min-width: 4.5em;
  justify-content: center;
}

/* The language switcher: a <details> of plain links, the same 26 px height as the theme switch. */
.top-langmenu { position: relative; }
.top-langbtn { height: 26px; padding-inline: 10px; border: 1px solid var(--color-line); font-size: 0.85rem; }
.top-langmenu > .top-langbtn::after { content: "\25BE"; font-size: 0.7rem; color: var(--color-ink-soft); }
.top-lang-list {
  top: 32px;
  inset-inline-start: auto;
  inset-inline-end: 0;
  left: auto;
  right: 0;
  width: max-content;
  min-width: 11em;
  max-height: min(70vh, 480px);
  overflow-y: auto;
}
[dir=rtl] .top-lang-list { left: 0; right: auto; }
.top-lang-list a[aria-current=true] { background: var(--color-bg); font-weight: 600; }
.top-lang-list a[aria-current=true]::after { content: " \2713"; }
.top-lang-list a:focus-visible, .top-langbtn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

@media (min-width: 1024px) {
  .top-logo { position: absolute; inset-inline-start: var(--gutter); }
  .top-nav { margin-inline: auto; }
  .top-theme, .top-star, .top-langmenu { position: absolute; }
  .top-langmenu { inset-inline-end: calc(var(--gutter) + 6.6rem + 60px); }
  .top-theme { inset-inline-end: calc(var(--gutter) + 6.6rem); }
  .top-star { inset-inline-end: var(--gutter); }
}

.top-theme { min-width: 48px; height: 26px; padding: 2px; gap: 2px; border-radius: 20px; }
.top-theme svg { box-sizing: content-box; border-radius: 50%; padding: 2px; }
.top-theme[aria-pressed=false] svg:last-child,
.top-theme[aria-pressed=true] svg:first-child { background: var(--color-line); }

/* Phone menu button: shown under 1024 px only. Opening it folds the sticky header to 410 px. */
.top-menu-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .top-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
  }

  .top-nav {
    display: none;
  }

  .top.is-open {
    height: 410px;
  }

  .top.is-open .top-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 24px 16px;
    overflow-y: auto;
    background: var(--color-header-bg);
  }

  .top.is-open .top-langmenu { position: static; }
  .top.is-open .top-langbtn { align-self: flex-start; margin-block: 4px; }
  .top.is-open .top-lang-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
  }
  .top.is-open { height: min(640px, 100dvh); align-items: flex-start; }
  .top.is-open .top-logo, .top.is-open .top-menu-toggle { height: var(--header-height); }
  .top.is-open .top-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    left: auto;
    transform: none;
    width: auto;
    padding: 0 0 4px 4px;
  }
  .top.is-open .top-item { min-height: 0; padding: 8px 8px; }
  .top.is-open .top-menu-list {
    position: static;
    width: auto;
    max-width: none;
    border: 0;
    background: transparent;
    padding: 0 0 4px 12px;
  }
}
