/* =============================================================
   ARK LABS — DESIGN SYSTEM (2026 redesign)
   One stylesheet for every marketing page. Docs add ark-docs.css.

   Type   Archivo (variable width: wide for display, normal for text)
          JetBrains Mono (code, labels, data)
   Colour ink (dark surfaces) + paper (light surfaces) + one violet
          hue as the accent, in several intensities (--violet-*). Signal
          orange is reserved for the second chart series and highlights.
   Motif  the open chevron of the ARK signet.
   ============================================================= */

:root {
  --ink: #0d0f10;
  --ink-2: #15181a;
  --ink-3: #1e2224;
  --ink-4: #2a2f31;
  --ink-line: rgba(255, 255, 255, 0.09);
  --ink-line-2: rgba(255, 255, 255, 0.16);
  --ink-text: #eceeeb;
  --ink-muted: #9aa29f;

  --paper: #f6f5fc;
  --paper-2: #eae9f3;
  --card: #ffffff;
  --line: #dbdae4;
  --line-2: #c6c4cf;
  --text: #121516;
  --muted: #565d5b;

  /* Accent: one violet hue (OKLCH h = 293°) in different intensities.
     Use these steps only; never mix in another violet or a blue. */
  --violet-50: #f7f5fe;
  --violet-100: #edeaff;
  --violet-200: #ddd6fe;
  --violet-300: #c0b1fe;
  --violet-400: #a486fe;
  --violet-500: #8f5cfe;
  --violet-600: #7d28f6;
  --violet-700: #6b11da;
  --violet-800: #5311ab;
  --violet-900: #371273;
  --violet-950: #240c4d;
  --accent: var(--violet-600);
  --accent-ink: var(--violet-700);
  --accent-soft: var(--violet-100);
  --accent-soft-ink: var(--violet-800);
  --accent-on-dark: var(--violet-400);
  --signal: #ff6a2b;
  --ok: #1d9a5f;
  --warn: #b86e00;
  --err: #c8342b;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p, li, dd, figcaption, blockquote { overflow-wrap: anywhere; }
td, th { overflow-wrap: break-word; }
code, kbd, pre, samp { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent-on-dark); }
::selection { background: var(--violet-200); color: var(--violet-950); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding: 112px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--flush-top { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }
.section--white { background: var(--card); }
.section--paper2 { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--ink-text); }
.dark .muted, .dark .lead { color: var(--ink-muted); }
.dark.section--line, .dark .section--line { border-color: var(--ink-line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--center { align-items: center; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1, .h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h3, .h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.012em; font-stretch: 106%; }
h4, .h4 { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }
.display-xl { font-size: clamp(2.6rem, 5.6vw, 5.1rem); line-height: 1; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.dark .accent { color: var(--accent-on-dark); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/img/brand/chevron.svg") center / contain no-repeat;
          mask: url("/assets/img/brand/chevron.svg") center / contain no-repeat;
}
.dark .eyebrow { color: var(--accent-on-dark); }
.eyebrow--plain::before { display: none; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead { margin-top: 20px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }

.prose { font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--muted); font-size: 1.1rem; }
.prose code { font-size: 0.88em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---------- links & buttons ---------- */
.link {
  color: var(--accent); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link::after { content: "\2192"; transition: transform 0.18s ease; }
.link:hover::after { transform: translateX(3px); }
.dark .link { color: var(--accent-on-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-4); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn--outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.dark .btn--outline { border-color: var(--ink-line-2); color: var(--ink-text); }
.dark .btn--outline:hover { border-color: var(--ink-text); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- tags / pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); background: transparent; white-space: nowrap;
}
.tag--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-soft-ink); }
.tag--ok { border-color: transparent; background: #e2f4ea; color: #12663e; }
.tag--warn { border-color: transparent; background: #fbefd9; color: #7a4a00; }
.tag--ink { border-color: transparent; background: var(--ink); color: #fff; }
.dark .tag { border-color: var(--ink-line-2); color: var(--ink-muted); }
.dark .tag--accent { background: rgba(125, 40, 246, 0.24); color: var(--violet-200); border-color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 0 rgba(29, 154, 95, 0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 154, 95, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(29, 154, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 154, 95, 0); }
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card--link { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.18s ease, transform 0.18s ease; }
.card--link:hover { border-color: var(--text); }
.card--link .link { margin-top: auto; padding-top: 20px; }
.card .icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--accent); }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.dark .card p { color: var(--ink-muted); }
.dark .card--link:hover { border-color: var(--ink-line-2); background: var(--ink-3); }
.dark .card .icon { color: var(--accent-on-dark); }
.card-kicker { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.dark .card-kicker { color: var(--ink-muted); }

/* feature list with chevron bullets */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 13px; height: 11px;
  background: var(--accent);
  -webkit-mask: url("/assets/img/brand/chevron.svg") center / contain no-repeat;
          mask: url("/assets/img/brand/chevron.svg") center / contain no-repeat;
}
.dark .checks li::before { background: var(--accent-on-dark); }

/* key/value facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.facts dd { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.facts dd small { display: block; font-size: 0.86rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.dark .facts { border-color: var(--ink-line); }
.dark .facts > div + div { border-color: var(--ink-line); }
.dark .facts dt, .dark .facts dd small { color: var(--ink-muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); background: var(--paper); white-space: nowrap;
}
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .model-id { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; }
.table .sub { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

/* ---------- code ---------- */
.code {
  background: var(--ink-2); color: #d9dedb; border: 1px solid var(--ink-line);
  border-radius: var(--radius); overflow: hidden; position: relative;
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.65;
}
.code pre { padding: 18px 20px; overflow-x: auto; tab-size: 2; }
.code pre code { white-space: pre; }
.code-head {
  display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--ink-line); background: var(--ink-3);
}
.code-title { font-size: 0.76rem; color: var(--ink-muted); padding: 0 6px; }
.code-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-muted);
  padding: 7px 11px; border-radius: 6px; white-space: nowrap;
}
.code-tab:hover { color: var(--ink-text); }
.code-tab[aria-selected="true"] { color: #fff; background: var(--ink-4); }
.code-copy {
  margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-muted);
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--ink-line);
}
.code-copy:hover { color: #fff; border-color: var(--ink-line-2); }
.code-panel[hidden] { display: none; }
/* syntax colours (assets/js/code.js adds the spans) */
.tok-c { color: #6f7975; font-style: italic; }
.tok-s { color: #b5e08a; }
.tok-k { color: var(--violet-300); }
.tok-n { color: #ffb38a; }
.tok-f { color: #7fd7e8; }
.tok-p { color: #f0a6d8; }
.tok-o { color: #9aa29f; }

/* inline code in light context */
code.inline, .inline-code {
  font-size: 0.86em; background: var(--paper-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px;
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card);
  border-radius: 8px; padding: 16px 18px; font-size: 0.95rem;
}
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout--warn { border-left-color: var(--warn); }
.callout--ok { border-left-color: var(--ok); }
.callout p + p { margin-top: 8px; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 1000; }
.nav-bar {
  background: rgba(13, 15, 16, 0.92); color: var(--ink-text);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav-logo { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.nav-logo img { height: 17px; width: auto; }
.nav-drawer { display: flex; align-items: center; flex: 1; gap: 24px; min-width: 0; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link, .nav-trigger { white-space: nowrap; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 8px; font-size: 0.93rem; font-weight: 500; color: #c9cecb; text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.is-open > .nav-trigger { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.is-active, .nav-trigger.is-active { color: #fff; }
.nav-trigger::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: 0.7; transition: transform 0.18s ease;
}
.nav-item.is-open > .nav-trigger::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px;
  background: var(--ink-2); border: 1px solid var(--ink-line-2); border-radius: 14px;
  padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.nav-menu--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.nav-item.is-open > .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: #fff;
  font-size: 0.92rem; font-weight: 550;
}
.nav-menu a span { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-muted); margin-top: 2px; line-height: 1.4; }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-menu-label {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px 4px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-login { color: #c9cecb; text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0 12px; height: 38px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav-login:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.is-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
/* reserve the header's height before site.js fills it; once loaded the
   wrapper drops out of layout so .site-header sticks to the viewport */
[data-include="/partials/header.html"] { min-height: var(--nav-h); background: var(--ink); }
[data-include="/partials/header.html"].is-loaded { display: contents; }

@media (max-width: 1240px) {  /* eight top-level items: switch to the drawer before they wrap */
  .nav-toggle { display: block; }
  .nav-drawer {
    position: fixed; top: var(--drawer-top, var(--nav-h)); left: 0; right: 0; bottom: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    overflow-y: auto; display: none;
  }
  .site-header.is-open .nav-drawer { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; flex: none; }
  .nav-item { border-bottom: 1px solid var(--ink-line); }
  .nav-link, .nav-trigger { width: 100%; height: 54px; padding: 0 4px; justify-content: space-between; font-size: 1.05rem; color: #fff; }
  .nav-link:hover, .nav-trigger:hover, .nav-item.is-open > .nav-trigger { background: none; }
  .nav-menu, .nav-menu--wide {
    position: static; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 12px; grid-template-columns: 1fr;
  }
  .nav-item.is-open > .nav-menu { display: block; }
  .nav-menu a { padding: 10px 4px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 10px; }
  .nav-actions .btn, .nav-login { height: 48px; justify-content: center; }
  .nav-login { border: 1px solid var(--ink-line-2); border-radius: 999px; }
  body.has-nav-open { overflow: hidden; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 72px 0 36px; font-size: 0.92rem; overflow: hidden; }
.footer-top { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 16px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 280px; line-height: 1.6; }
.footer-social { list-style: none; display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--ink-line-2); border-radius: var(--radius); color: var(--ink-muted);
}
.footer-social a:hover { color: #fff; border-color: var(--ink-muted); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h2 {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px; font-stretch: 100%;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-muted); }
.footer-col a:hover { color: #fff; }
/* the big wordmark sits behind the link columns, centred on them, and takes no space of its own */
.footer-mark { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: -1; color: var(--ink-2); pointer-events: none; }
.footer-mark svg { width: 100%; height: auto; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--ink-line); padding-top: 24px; margin-top: 56px; font-size: 0.84rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--ink-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-region { display: inline-flex; align-items: center; gap: 8px; }

/* cookie consent banner (consent.js) */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 24px; border: 1px solid var(--ink-line-2); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); font-size: 0.92rem; line-height: 1.55;
}
.consent-bar[hidden] { display: none; }
.consent-bar p { flex: 1 1 320px; color: var(--ink-muted); }
.consent-bar .btn-row { flex: none; gap: 10px; }

/* =============================================================
   HERO + PAGE HEADERS
   ============================================================= */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 1100px; height: 700px; right: -260px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(125, 40, 246, 0.38), rgba(125, 40, 246, 0) 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero .lead { color: #b9c0bd; margin-top: 24px; max-width: 34em; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 0.88rem; color: var(--ink-muted); display: flex; align-items: center; gap: 10px; }
.hero-note .live-dot { flex: none; }

.page-head { position: relative; overflow: hidden; padding: 88px 0 80px; }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 16em; }
.page-head .lead { margin-top: 22px; }
.page-head .btn-row { margin-top: 32px; }
.page-head.dark h1 { color: #fff; }
.page-head.dark .lead { color: #b9c0bd; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.dark .crumbs { color: var(--ink-muted); }
.dark .crumbs a:hover { color: #fff; }

/* chevron art (hero / page heads) */
.chev-art { position: absolute; pointer-events: none; color: rgba(255, 255, 255, 0.06); }
.chev-art--head { right: -40px; bottom: -120px; width: 520px; }
.page-head:not(.dark) .chev-art { color: rgba(18, 21, 22, 0.05); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-800) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 88px; }
.cta-band h2 { color: #fff; max-width: 13em; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 16px; max-width: 34em; }
.cta-band .chev-art { color: rgba(255, 255, 255, 0.09); right: -80px; top: -60px; width: 640px; }
.cta-band .btn--outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta-band .btn--outline:hover { border-color: #fff; }

/* =============================================================
   COMPONENTS USED ON SEVERAL PAGES
   ============================================================= */

/* console window (hero code) */
.console {
  background: var(--ink-2); border: 1px solid var(--ink-line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.console .code { border: 0; border-radius: 0; background: transparent; }
.console-out { border-top: 1px solid var(--ink-line); padding: 16px 20px 18px; font-family: var(--mono); font-size: 0.82rem; color: #d9dedb; min-height: 118px; }
.console-out-label { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.console-out p { white-space: pre-wrap; line-height: 1.6; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent-on-dark); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* model rows */
.model-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.model-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr) 24px; gap: 20px;
  align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.model-row:hover .model-name { color: var(--accent); }
.model-name { font-weight: 650; font-size: 1.08rem; font-stretch: 106%; letter-spacing: -0.01em; transition: color 0.15s ease; }
.model-org { display: block; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.model-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.model-meta b { display: block; color: var(--text); font-weight: 500; font-size: 0.92rem; }
.model-row .go { color: var(--muted); }
.dark .model-list, .dark .model-row { border-color: var(--ink-line); }
.dark .model-meta { color: var(--ink-muted); }
.dark .model-meta b { color: #fff; }
.dark .model-org { color: var(--ink-muted); }

/* tiers (Cloud / Core / Tailored) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.tier { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier h3 { font-size: 1.6rem; }
.tier .tier-for { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.tier p { color: var(--muted); }
.tier .checks { margin-top: 8px; font-size: 0.95rem; }
.tier .btn-row { margin-top: auto; padding-top: 18px; }
.tier--featured { background: var(--ink); color: var(--ink-text); }
.tier--featured p { color: var(--ink-muted); }
.tier--featured .tier-for { color: var(--accent-on-dark); }
.tier--featured .checks li::before { background: var(--accent-on-dark); }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  padding-top: 3px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
.dark .step { border-color: var(--ink-line); }
.dark .step::before { color: var(--accent-on-dark); }
.dark .step p { color: var(--ink-muted); }

/* logo / integration wall */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wall > * {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px;
  text-decoration: none; text-align: center; font-weight: 600; font-size: 0.95rem;
}
.wall > a:hover { background: var(--card); }
.wall img { height: 34px; width: auto; }
.wall .sub { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); font-weight: 400; }

/* compare tables (pricing, products) */
.compare th[scope="row"] { font-weight: 550; }
.compare td { color: var(--muted); }
.compare .yes { color: var(--ok); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.08rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-size: 1.3rem; color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 24px; color: var(--muted); max-width: 52em; }
.faq .faq-a > * + * { margin-top: 10px; }
.faq .faq-a a { color: var(--accent); }

/* charts (inline SVG, light background) */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.chart-card h3 { font-size: 1.1rem; }
.chart-card .chart-sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.chart { margin-top: 20px; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .s1 { stroke: var(--accent); fill: none; stroke-width: 2.5; }
.chart .s2 { stroke: var(--signal); fill: none; stroke-width: 2.5; }
.chart .s3 { stroke: #8a908d; fill: none; stroke-width: 2; stroke-dasharray: 5 4; }
.chart .d1 { fill: var(--accent); }
.chart .d2 { fill: var(--signal); }
.chart .d3 { fill: #8a908d; }
.chart .bar1 { fill: var(--accent); }
.chart .bar2 { fill: var(--signal); }
.chart .bar3 { fill: #c4c8c5; }
.chart .lbl { fill: var(--text); font-weight: 500; }
.chart .lbl-accent { fill: var(--accent); font-weight: 600; }
.chart .lbl-signal { fill: #d94f12; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 0.84rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend .k1 { background: var(--accent); }
.legend .k2 { background: var(--signal); }
.legend .k3 { background: #8a908d; }
.chart-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* post cards */
.post-card { display: flex; flex-direction: column; text-decoration: none; border-top: 1px solid var(--line); padding-top: 22px; }
.post-card .post-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post-card h3 { margin-top: 12px; font-size: 1.3rem; transition: color 0.15s ease; }
.post-card p { color: var(--muted); margin-top: 10px; }
.post-card:hover h3 { color: var(--accent); }

/* article layout */
.article-head { padding: 80px 0 48px; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18em; }
.article-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.article-body { padding: 0 0 112px; }

/* forms (contact uses mailto, kept simple) */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .hero-inner, .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div { padding-bottom: 24px; }
  .model-row { grid-template-columns: minmax(0, 1fr) auto; }
  .model-row .model-meta--opt, .model-row .go { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .dark .facts > div + div { border-color: var(--ink-line); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { padding: 64px 0 56px; }
  .btn { height: 46px; }
  .btn-row .btn { flex: 1 1 auto; }
  .tier { padding: 28px 22px; }
  .chart-card { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =============================================================
   MODEL CATALOGUE (/models/)
   ============================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.chip {
  font-size: 0.88rem; font-weight: 550; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text);
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .count { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.mcard[hidden] { display: none; }
.mcard:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mcard h3 { font-size: 1.18rem; overflow-wrap: anywhere; }
.mcard-org { font-size: 0.85rem; color: var(--muted); margin-top: -6px; }
.mcard-desc { color: var(--muted); font-size: 0.93rem; }
.mcard-specs { display: grid; gap: 6px; font-size: 0.86rem; border-top: 1px solid var(--line); padding-top: 12px; }
.mcard-specs > div { display: flex; justify-content: space-between; gap: 12px; }
.mcard-specs dt { color: var(--muted); }
.mcard-specs dd { text-align: right; font-weight: 550; }
.mcard-specs a { color: var(--text); text-underline-offset: 3px; }
.mcard-price { background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; font-family: var(--mono); }
.mcard-price span { display: block; font-family: var(--font); font-size: 0.74rem; color: var(--muted); margin-bottom: 2px; }
.mcard-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 4px; }
.mcard-id { font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }
.mcard-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mcard-card { font-size: 0.86rem; color: var(--muted); text-underline-offset: 3px; }
.mcard-card:hover { color: var(--text); }
.price-table td { vertical-align: middle; }
.price-table a.model-id { color: var(--text); text-decoration: none; }
.price-table a.model-id:hover { color: var(--accent); }
@media (max-width: 1080px) { .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mcards { grid-template-columns: minmax(0, 1fr); } .filters .count { width: 100%; margin-left: 0; } }

/* stat callouts carried over from the blog */
.stat-callout { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--card); }
.stat-callout .callout-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.stat-callout .callout-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 12px; }
.stat-callout .stat-val { font-size: 1.8rem; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
.stat-callout .stat-desc { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

/* legal documents (text unchanged from the previous site) */
.legal-doc { font-size: 0.98rem; line-height: 1.75; }
.legal-doc__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; }
.legal-doc h2 { font-size: 1.3rem; margin: 44px 0 14px; line-height: 1.25; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ol, .legal-doc ul { margin: 0 0 16px; padding-left: 1.4em; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc ol ol { list-style-type: lower-alpha; margin-top: 6px; }
.legal-doc ol ol ol { list-style-type: lower-roman; }
.legal-doc a { color: var(--accent); text-underline-offset: 3px; }
.legal-doc__imprint { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.legal-doc__imprint p { margin-bottom: 4px; }

/* tables and strong cards on dark sections */
.dark .table-wrap { background: var(--ink-2); border-color: var(--ink-line); }
.dark .table { color: var(--ink-text); }
.dark .table thead th { background: var(--ink-3); color: var(--ink-muted); }
.dark .table th, .dark .table td { border-color: var(--ink-line); }
.dark .table .sub { color: var(--ink-muted); }
.card--strong { border-color: var(--text); }

/* expandable "more" blocks */
details.more { border-top: 1px solid var(--line); padding-top: 20px; }
details.more > summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 1em; }
details.more[open] > summary::before { content: "\2212"; }
.chart--hbar text.lbl { font-family: var(--mono); }

/* changelog */
.changelog { border-left: 1px solid var(--line); padding-left: 32px; }
.release { position: relative; padding: 8px 0 48px; }
.release::before { content: ""; position: absolute; left: -38px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.release-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.release h2 { font-size: 1.6rem; margin-top: 12px; }
.release h3 { font-size: 1rem; margin-top: 22px; }
.release p, .release ul { margin-top: 12px; color: #3d4442; }
.release ul { padding-left: 1.2em; }
.release li + li { margin-top: 6px; }
.release a { color: var(--accent); }
.release code { font-size: 0.86em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .changelog { padding-left: 20px; } .release::before { left: -26px; } }
.tags--lg { gap: 10px; }
.tags--lg .tag { font-size: 0.86rem; padding: 8px 14px; color: var(--text); background: var(--card); }

/* integration guides, people, misc */
.integration-title { display: flex; align-items: center; gap: 18px; }
.integration-title img { width: 48px; height: 48px; flex: none; }
.person .avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.85rem; margin-bottom: 18px;
}
.wall--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall--2 > a { min-height: 140px; font-size: 1.15rem; font-stretch: 110%; }
.notfound { min-height: 60vh; display: flex; align-items: center; }
@media (max-width: 640px) {
  .model-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
  .model-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .model-meta b { display: inline; }
}
@media (max-width: 640px) {
  .chart-card { overflow-x: auto; }
  .chart-card .chart { min-width: 470px; }
  .chart-card .chart--hbar { min-width: 640px; }
}
.price-table { min-width: 600px; }
.table--wide { min-width: 820px; }  /* many columns: scroll sideways on phones instead of squeezing */

/* model families (/models/) */
.mchip-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; font-size: 0.86rem; color: var(--muted); }
.mchip-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--online { background: var(--ok); }
.dot--benchmarked { background: var(--accent); }
.dot--supported { background: transparent; border: 1.5px solid var(--line-2); }
.families { display: grid; gap: 20px; }
.family { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--card); scroll-margin-top: calc(var(--nav-h) + 24px); }
.family-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.family-head h3 { font-size: 1.45rem; }
.family-head p { color: var(--muted); margin-top: 8px; max-width: 40em; }
.family-meta { display: grid; gap: 10px; font-size: 0.86rem; align-content: start; border-left: 1px solid var(--line); padding-left: 24px; }
.family-meta dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.family-meta dd { margin-top: 2px; overflow-wrap: anywhere; }
.family-meta a { color: var(--text); text-underline-offset: 3px; }
.mchips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.mchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 0.8rem; border: 1px solid var(--line-2); color: var(--text); background: var(--card);
  transition: border-color 0.15s ease;
}
.mchip:hover { border-color: var(--text); }
.mchip i { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px solid var(--line-2); }
.mchip--online { border-color: transparent; background: #e2f4ea; color: #12663e; }
.mchip--online i { background: var(--ok); border-color: var(--ok); }
.mchip--benchmarked { border-color: transparent; background: var(--accent-soft); color: var(--accent-soft-ink); }
.mchip--benchmarked i { background: var(--accent); border-color: var(--accent); }
.family-note { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
/* GPU generations (/hardware/): same cards and chips, grouped by card class */
.gpu-classes { display: grid; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.gpu-class { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.gpu-class h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding-top: 8px; }
.gpu-class .mchips { margin-top: 0; padding-top: 0; border-top: 0; }
.card .gpu-cards { font-family: var(--mono); font-size: 0.8rem; color: var(--text); margin-top: 6px; }
.mchip--static { cursor: default; }
.mchip--static:hover { border-color: var(--line-2); }
.mchip--benchmarked.mchip--static:hover { border-color: transparent; }
@media (max-width: 860px) {
  .family-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .family-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .family { padding: 22px; }
  .gpu-class { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gpu-class h4 { padding-top: 0; }
}

/* =============================================================
   PATCHWORK CLUSTER DIAGRAM (home, /hardware/)
   ============================================================= */
.cluster-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.cluster-svg { display: block; width: 100%; height: auto; }
.cluster-svg text { font-family: var(--mono); font-size: 15px; fill: var(--muted); }
.cluster-svg .cl-title { font-size: 16px; fill: var(--text); font-weight: 600; }
.cluster-svg .cl-seg1 { fill: var(--violet-300); }
.cluster-svg .cl-seg2 { fill: var(--violet-500); }
.cluster-svg .cl-seg3 { fill: var(--violet-700); }
.cluster-svg .cl-link { stroke: var(--violet-400); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cluster-svg .cl-machine { fill: var(--paper); stroke: var(--line-2); stroke-width: 1; }
.cluster-svg .cl-gpu { fill: var(--ink); }
.cluster-svg .cl-gpu--alt { fill: var(--violet-800); }
.cluster-svg .cl-gpu--old { fill: var(--violet-600); }
.cluster-svg .cl-gpu-t { fill: #fff; font-size: 14px; }
.cluster-svg .cl-net { stroke: var(--text); stroke-width: 2; }
.cluster-svg .cl-drop { stroke: var(--text); stroke-width: 1.5; }
@media (max-width: 640px) { .cluster-card { padding: 16px; } }

/* =============================================================
   SOLUTION PAGES: quote band, proof strip, source lines
   ============================================================= */
.quote-band blockquote { font-size: clamp(1.3rem, 2.3vw, 1.85rem); font-weight: 600; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.32; max-width: 40em; }
.source { font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.source a { color: inherit; text-underline-offset: 3px; }
.dark .source { color: var(--ink-muted); }
.card .source { margin-top: 12px; font-size: 0.78rem; }
.footnote { font-size: 0.86rem; color: var(--muted); margin-top: 24px; max-width: 52em; }
.proof { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.proof > div { padding: 24px 24px 0 0; display: flex; flex-direction: column; }
.proof > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof-fig { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
.proof-text { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.proof .link { margin-top: 12px; font-size: 0.9rem; }
.proof-intro { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 960px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div { padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
