/* =========================================================
   Vantafold — inner pages
   Extends styles.css. Tokens (--bg, --accent, --line, …) come from there.
   ========================================================= */

.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;
}

/* =========================================================
   Navbar: dropdown menus + grouped mobile menu
   ========================================================= */
.nav__link { font-size: 14.5px; color: var(--text-2); transition: color 0.2s var(--ease); }
.nav__link:hover { color: var(--text); }

.menu { position: relative; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.menu__btn:hover, .menu:hover .menu__btn, .menu:focus-within .menu__btn { color: var(--text); }
.menu__chev {
  width: 12px; height: 12px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.6; transition: transform 0.2s var(--ease);
}
.menu:hover .menu__chev, .menu:focus-within .menu__chev { transform: rotate(180deg); }

.nav__links a[aria-current="true"] { color: var(--text); }

.menu__panel {
  position: absolute; top: calc(100% + 14px); left: -14px;
  width: 320px; padding: 8px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(16, 16, 19, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
.menu:hover .menu__panel, .menu:focus-within .menu__panel {
  opacity: 1; visibility: visible; transform: none;
}
/* Bridge the gap so the pointer can travel from trigger to panel. */
.menu::after { content: ""; position: absolute; inset: 100% -14px auto; height: 14px; }

.menu__panel a {
  display: block; padding: 9px 12px; border-radius: 9px;
  transition: background-color 0.18s var(--ease);
}
.menu__panel a:hover { background: rgba(255, 255, 255, 0.05); }
.menu__panel strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.menu__panel span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-3); }

.nav__group { display: flex; flex-direction: column; padding-top: 14px; }
.nav__group h4 {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-3); padding-bottom: 6px;
}
.nav__group a { padding: 10px 0; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.nav__mobile { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }

/* =========================================================
   Page header band
   ========================================================= */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}
.page-head::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 1;
}
.mesh--head { inset: -60% -10% auto; height: 220%; opacity: 0.7; }
.page-head__inner { position: relative; z-index: 2; max-width: 780px; }
.page-head--wide .page-head__inner { max-width: none; }

.page-head h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.04em; line-height: 1.05;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 35%, #B8B8C6 125%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head__sub { margin-top: 18px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--text-2); max-width: 44em; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-head__meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.page-head__meta li { display: flex; flex-direction: column; gap: 2px; }
.page-head__meta strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.page-head__meta span { font-size: 12.5px; color: var(--text-3); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.crumbs a { color: var(--text-3); transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--text-2); }

/* =========================================================
   Shared blocks
   ========================================================= */
.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stat-row li { padding: 22px 24px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 4px; }
.stat-row strong { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; }
.stat-row span { font-size: 13px; color: var(--text-3); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 26px 24px 28px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.step__num {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent-soft); padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
}
.step h3 { font-size: 17px; letter-spacing: -0.025em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-3); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.panel {
  padding: 26px 26px 28px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.panel h3 { font-size: 17px; letter-spacing: -0.025em; }
.panel > p { margin-top: 10px; font-size: 14.5px; color: var(--text-3); }

.lede { font-size: 18px; color: var(--text-2); max-width: 46em; }

/* Sections that sit directly under the page-head band and lead with a visual. */
.section--tight { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }

/* =========================================================
   Tables
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table caption { text-align: left; padding: 16px 20px 0; color: var(--text-3); font-size: 13px; }
.table th, .table td { padding: 13px 20px; text-align: left; vertical-align: top; }
.table thead th {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr + tr th, .table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 500; color: var(--text); }
.table td { color: var(--text-2); }
.table tbody tr:hover td, .table tbody tr:hover th { background: rgba(255, 255, 255, 0.02); }
.table code, .prose code, .doc code {
  font-family: var(--font-mono); font-size: 0.88em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.06); color: #CFC2FF;
}
.table--compare thead th:not(:first-child),
.table--compare tbody td { text-align: center; }
.table--compare tbody th { width: 42%; }
.table--compare .col-featured { background: rgba(124, 92, 255, 0.06); }

.cell-yes { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.cell-yes svg { width: 13px; height: 13px; fill: none; stroke: var(--accent-soft); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cell-no { color: var(--text-3); }

/* =========================================================
   Accordion
   ========================================================= */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__item h3 { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 19px 22px; text-align: left;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.02em; color: var(--text);
  transition: background-color 0.2s var(--ease);
}
.acc__btn:hover { background: rgba(255, 255, 255, 0.025); }
.acc__icon {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round;
  transition: transform 0.25s var(--ease), stroke 0.2s var(--ease);
}
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); stroke: var(--accent-soft); }
.acc__panel { padding: 0 22px 20px; }
.acc__panel p { font-size: 14.5px; color: var(--text-2); max-width: 62em; }

/* =========================================================
   Docs / reference layout
   ========================================================= */
.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 190px;
  gap: 0 44px;
  align-items: start;
  padding-block: clamp(36px, 4vw, 56px) clamp(64px, 7vw, 96px);
}
.doc-side, .doc-aside {
  position: sticky; top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 8px;
}
.doc-side h4, .doc-aside h4 {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
}
.doc-side nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.doc-side nav a {
  padding: 6px 10px; border-radius: 7px;
  font-size: 14px; color: var(--text-2);
  border-left: 1px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.doc-side nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.doc-side nav a[aria-current="page"] {
  color: var(--accent-soft); background: var(--accent-dim);
}
.doc-aside ol { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); }
.doc-aside a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px;
  font-size: 13px; color: var(--text-3); border-left: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.doc-aside a:hover { color: var(--text-2); }
.doc-aside a.is-active { color: var(--accent-soft); border-left-color: var(--accent); }

.doc-side__toggle { display: none; }

/* =========================================================
   Prose (docs, blog article, legal)
   ========================================================= */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 52px; font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 {
  margin-top: 36px; font-size: 18px; letter-spacing: -0.025em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2 + p, .prose h3 + p { margin-top: 12px; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; line-height: 1.72; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn) { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.prose a:not(.btn):hover { text-decoration-color: var(--accent-soft); }
.prose ul, .prose ol { display: grid; gap: 9px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 28px; counter-increment: n; }
.prose ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-soft);
}
.prose .code, .prose .dx { margin-top: 22px; }
.prose blockquote {
  margin-top: 24px; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent-line);
  color: var(--text-2); font-size: 16.5px;
}
.prose hr { margin-top: 40px; border: 0; border-top: 1px solid var(--line); }
.prose figure { margin: 26px 0 0; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--text-3); }

.callout {
  display: flex; gap: 13px; padding: 16px 18px; margin-top: 24px;
  border: 1px solid var(--accent-line); border-radius: var(--r-md);
  background: var(--accent-dim);
}
.callout svg { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; font-size: 14px; color: var(--text-2); }
.callout strong { color: var(--text); }

.doc-nextprev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.doc-nextprev a {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.doc-nextprev a:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.doc-nextprev span { display: block; font-size: 12px; color: var(--text-3); }
.doc-nextprev strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }
.doc-nextprev .is-next { text-align: right; }

/* =========================================================
   API reference
   ========================================================= */
.endpoint { scroll-margin-top: calc(var(--nav-h) + 24px); }
.endpoint + .endpoint { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.endpoint__sig {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0;
}
.endpoint__sig .path { color: var(--text); }
.endpoint__sig .path b { color: var(--accent-soft); font-weight: 400; }
.method {
  padding: 3px 8px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.method--get { color: #7FD8A6; background: rgba(127, 216, 166, 0.12); border: 1px solid rgba(127, 216, 166, 0.28); }
.method--post { color: var(--accent-soft); background: var(--accent-dim); border: 1px solid var(--accent-line); }
.method--delete { color: #F1666A; background: rgba(241, 102, 106, 0.1); border: 1px solid rgba(241, 102, 106, 0.28); }

.req { display: inline-block; margin-left: 6px; font-family: var(--font-sans); font-size: 11px; color: #F1A06A; }
.opt { display: inline-block; margin-left: 6px; font-family: var(--font-sans); font-size: 11px; color: var(--text-3); }
.ptype { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* =========================================================
   SDK cards
   ========================================================= */
.sdk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sdk {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sdk:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.sdk__head { display: flex; align-items: center; gap: 12px; padding: 22px 22px 0; }
.sdk__logo {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft);
}
.sdk__head h3 { font-size: 16.5px; letter-spacing: -0.02em; }
.sdk__head span { display: block; font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); }
.sdk > p { padding: 14px 22px 0; font-size: 14px; color: var(--text-3); }
.sdk .code { margin: 18px 22px 22px; border-radius: var(--r-md); }
.sdk .code__body { padding: 14px 16px; font-size: 12px; }
.sdk__links { margin-top: auto; display: flex; gap: 16px; padding: 0 22px 22px; }
.sdk__links a { font-size: 13.5px; color: var(--accent-soft); }
.sdk__links a:hover { color: #B7A4FF; }

.install {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 22px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
}
.install span { color: var(--text-3); }
.install code { flex: 1; overflow-x: auto; white-space: nowrap; }

/* =========================================================
   Model catalog
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.search {
  position: relative; flex: 1 1 260px; min-width: 0;
}
.search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 1.7;
}
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 38px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 14.5px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-2); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02);
  font-size: 13px; color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.chip[aria-pressed="true"] {
  color: #CFC2FF; border-color: var(--accent-line); background: var(--accent-dim);
}

.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.model:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.model__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.model__name { font-family: var(--font-mono); font-size: 14px; color: var(--text); letter-spacing: 0; }
.model__provider { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.model__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.model__tags span {
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 11px; color: var(--text-3); background: rgba(255, 255, 255, 0.02);
}
.model__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.model__specs div { display: flex; flex-direction: column; gap: 2px; }
.model__specs dt { font-size: 11px; color: var(--text-3); }
.model__specs dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); letter-spacing: 0; }
.catalog__empty { padding: 40px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.catalog__count { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; }

/* =========================================================
   Status page
   ========================================================= */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(74, 222, 128, 0.3); border-radius: var(--r-lg);
  background: rgba(74, 222, 128, 0.07);
}
.status-banner__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse-ok 2.6s ease-in-out infinite;
}
@keyframes pulse-ok { 0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16); } 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.03); } }
.status-banner strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.status-banner span { margin-left: auto; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }

.svc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.svc__row { padding: 18px 22px; }
.svc__row + .svc__row { border-top: 1px solid var(--line); }
.svc__head { display: flex; align-items: center; gap: 12px; }
.svc__name { font-size: 15px; font-weight: 500; }
.svc__region { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.svc__pct { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

.pill-state {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 7px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: 0.02em;
}
.pill-state i { width: 6px; height: 6px; border-radius: 50%; }
.pill-state svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.state--ok { color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.28); background: rgba(74, 222, 128, 0.07); }
.state--ok i { background: var(--ok); }
.state--warn { color: var(--viz-warn); border: 1px solid rgba(224, 160, 60, 0.3); background: rgba(224, 160, 60, 0.08); }
.state--warn i { background: var(--viz-warn); }
.state--crit { color: var(--viz-crit); border: 1px solid rgba(241, 102, 106, 0.3); background: rgba(241, 102, 106, 0.08); }
.state--crit i { background: var(--viz-crit); }

.uptime { display: flex; gap: 2px; margin-top: 14px; height: 30px; }
.uptime i {
  flex: 1; min-width: 2px; border-radius: 2px;
  background: var(--ok); opacity: 0.55;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.uptime i:hover { opacity: 1; transform: scaleY(1.08); }
.uptime i[data-state="warn"] { background: var(--viz-warn); opacity: 0.9; }
.uptime i[data-state="crit"] { background: var(--viz-crit); opacity: 0.95; }
.uptime__scale { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11.5px; color: var(--text-3); }

.incident { padding: 22px 0; border-top: 1px solid var(--line); }
.incident:first-child { border-top: 0; padding-top: 0; }
.incident__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.incident h3 { font-size: 16px; letter-spacing: -0.02em; }
.incident__date { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.incident__log { margin-top: 14px; display: grid; gap: 10px; }
.incident__log li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; font-size: 14px; color: var(--text-2); }
.incident__log time { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding-top: 2px; }
.incident__log b { color: var(--text); font-weight: 500; }

/* =========================================================
   Changelog
   ========================================================= */
.log { display: grid; gap: 0; }
.log__entry {
  display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 40px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.log__entry:first-child { border-top: 0; padding-top: 0; }
.log__meta { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 10px; }
.log__date { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.log__ver {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
  font-family: var(--font-mono); font-size: 11.5px; color: #CFC2FF;
}
.log__tag {
  align-self: flex-start; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em;
}
.log__body h3 { font-size: 20px; letter-spacing: -0.03em; }
.log__body > p { margin-top: 10px; font-size: 15px; color: var(--text-2); max-width: 60em; }
.log__body ul { margin-top: 16px; display: grid; gap: 8px; }
.log__body li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-3); }
.log__body li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line); }
.log__body b { color: var(--text-2); font-weight: 500; }

/* =========================================================
   Blog
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.post:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.post__art { height: 132px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.post__art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(124, 92, 255, 0.5), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(64, 120, 255, 0.35), transparent 62%),
    var(--surface);
}
.post__art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom right, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post__tag {
  align-self: flex-start; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
  font-size: 11px; color: #CFC2FF; letter-spacing: 0.03em;
}
.post h3 { margin-top: 13px; font-size: 17.5px; letter-spacing: -0.028em; line-height: 1.28; }
.post p { margin-top: 9px; font-size: 14px; color: var(--text-3); }
.post__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 20px;
  font-size: 12.5px; color: var(--text-3);
}
.post__foot .avatar { width: 26px; height: 26px; }
.post--featured { grid-column: 1 / -1; flex-direction: row; }
.post--featured .post__art { height: auto; width: 44%; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
.post--featured .post__body { padding: 34px 36px; justify-content: center; }
.post--featured h3 { font-size: clamp(22px, 2.4vw, 30px); }
.post--featured p { font-size: 15.5px; max-width: 46em; }

.article-head { max-width: 74ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; font-size: 13.5px; color: var(--text-3); }
.article-meta .avatar { width: 32px; height: 32px; }
.article-meta b { color: var(--text-2); font-weight: 500; }

/* =========================================================
   Cards: values, team, roles, perks, community, customers
   ========================================================= */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.value { padding: 30px 26px 32px; background: var(--bg-alt); transition: background-color 0.3s var(--ease); }
.value:hover { background: var(--surface); }
.value__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-soft); }
.value h3 { margin-top: 14px; font-size: 17px; letter-spacing: -0.025em; }
.value p { margin-top: 9px; font-size: 14px; color: var(--text-3); }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.member .avatar { width: 52px; height: 52px; margin: 0 auto 14px; }
.member strong { display: block; font-size: 14.5px; font-weight: 600; }
.member span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }

.roles { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.role {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 20px 24px;
  transition: background-color 0.2s var(--ease);
}
.role + .role { border-top: 1px solid var(--line); }
.role:hover { background: rgba(255, 255, 255, 0.025); }
.role__title { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.role__team { font-size: 12.5px; color: var(--text-3); }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.role__meta span {
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12px; color: var(--text-3);
}
.role__apply { color: var(--accent-soft); font-size: 14px; white-space: nowrap; }
.role-group + .role-group { margin-top: 32px; }
.role-group > h3 {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.perk { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.perk svg { width: 20px; height: 20px; margin-bottom: 14px; fill: none; stroke: var(--accent-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { font-size: 15.5px; letter-spacing: -0.02em; }
.perk p { margin-top: 7px; font-size: 13.5px; color: var(--text-3); }

.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.link-card {
  display: block; padding: 26px 24px 28px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.link-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.link-card svg.link-card__icon { width: 24px; height: 24px; margin-bottom: 18px; fill: none; stroke: var(--accent-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link-card h3 { font-size: 17px; letter-spacing: -0.025em; }
.link-card p { margin-top: 9px; font-size: 14px; color: var(--text-3); }
.link-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--accent-soft); }
.link-card__go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.project__repo { font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); letter-spacing: 0; }
.project p { margin-top: 9px; font-size: 13.5px; color: var(--text-3); }
.project__foot { display: flex; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

.case { display: flex; flex-direction: column; overflow: hidden; }
.case__quote { font-size: 15.5px; line-height: 1.62; color: #DEDEE6; }
.case__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__results div { display: flex; flex-direction: column; gap: 2px; }
.case__results strong { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-soft); }
.case__results span { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.case__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.case__who strong { display: block; font-size: 14px; font-weight: 600; }
.case__who em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-3); }
.case__logo {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 12px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 8px;
  font-size: 11px; color: var(--text-3);
}
.case__logo i { width: 13px; height: 13px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }

/* =========================================================
   Forms
   ========================================================= */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--text-2); }
.field label .opt { color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 14.5px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E6E7A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
  padding-right: 36px;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-line); background: var(--surface-2);
}
.field__hint { font-size: 12px; color: var(--text-3); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.form__foot p { font-size: 12.5px; color: var(--text-3); }
.form__note {
  display: none; align-items: center; gap: 9px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.07);
  font-size: 13.5px; color: var(--ok);
}
.form__note.is-shown { display: flex; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .panel p { margin-top: 8px; }
.contact-aside a { color: var(--accent-soft); }

/* =========================================================
   Legal pages
   ========================================================= */
.legal-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 56px; align-items: start; padding-block: clamp(36px, 4vw, 56px) clamp(64px, 7vw, 96px); }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.legal-toc h4 { font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.legal-toc ol { display: flex; flex-direction: column; gap: 2px; counter-reset: t; }
.legal-toc a {
  display: block; padding: 6px 10px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-3);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.legal-toc a:hover { color: var(--text-2); background: rgba(255, 255, 255, 0.03); }
.legal-toc a.is-active { color: var(--accent-soft); background: var(--accent-dim); }
.legal-note {
  margin-top: 28px; padding: 14px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  font-size: 12.5px; color: var(--text-3); line-height: 1.6;
}
.updated {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3);
}

/* =========================================================
   Diagrams
   ========================================================= */
.arch {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(20, 20, 24, 0.9), rgba(12, 12, 14, 0.9)),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: auto, 22px 22px;
  overflow-x: auto;
}
.arch__flow { display: grid; grid-template-columns: repeat(4, minmax(158px, 1fr)); gap: 0; align-items: stretch; min-width: 680px; }
.arch__col { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; position: relative; }
/* Chevron between columns, so the diagram reads left to right. */
.arch__col + .arch__col::before {
  content: ""; position: absolute; left: -6px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-top: 1.6px solid rgba(124, 92, 255, 0.6);
  border-right: 1.6px solid rgba(124, 92, 255, 0.6);
  transform: rotate(45deg);
}
.arch__col + .arch__col::after {
  content: ""; position: absolute; left: -22px; top: 50%; width: 18px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(124, 92, 255, 0.4));
}
.arch__label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px;
}
.arch__node {
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.arch__node:hover { border-color: var(--accent-line); background: rgba(124, 92, 255, 0.06); }
.arch__node b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.arch__node span { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0; }
.arch__node--accent { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), rgba(124, 92, 255, 0.05)); }
.arch__node--accent b { color: #CFC2FF; }
.arch__node--dashed { border-style: dashed; background: rgba(255, 255, 255, 0.015); }
.arch__rail {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.015);
  font-size: 13px; color: var(--text-3);
}
.arch__rail b { color: var(--text-2); font-weight: 500; }
.arch__rail svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent-soft); stroke-width: 1.6; }

/* routing decision flow */
.flow { display: grid; gap: 12px; }
.flow__branch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow__node {
  padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
}
.flow__node--in { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(124, 92, 255, 0.04)); }
.flow__node b { display: block; font-size: 14.5px; letter-spacing: -0.02em; }
.flow__node span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.flow__node code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-soft); }
.flow__split { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.flow__split::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =========================================================
   Charts / dashboard mockup
   Palette validated for the dark surface (#101013):
   categorical #8A6DFF / #CB7440; ordinal violet ramp; reserved status hues.
   ========================================================= */
.viz {
  --viz-surface: #101013;
  --viz-s1: #8A6DFF;   /* series 1 — Vantafold */
  --viz-s2: #CB7440;   /* series 2 — baseline */
  --viz-o1: #C3B4FF;   /* ordinal ramp, light → dark */
  --viz-o2: #A78EFF;
  --viz-o3: #8A6DFF;
  --viz-o4: #6A4BD6;
  --viz-good: #4ADE80;
  --viz-warn: #E0A03C;
  --viz-crit: #F1666A;
  --viz-grid: rgba(255, 255, 255, 0.07);
}
:root { --viz-warn: #E0A03C; --viz-crit: #F1666A; }

.dash {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1);
}
.dash__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 46px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dash__title { font-size: 13.5px; font-weight: 500; }
.dash__crumb { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.dash__range { margin-left: auto; display: flex; gap: 4px; }
.dash__range span {
  padding: 3px 9px; border-radius: 6px; font-size: 11.5px; color: var(--text-3);
  border: 1px solid transparent;
}
.dash__range span[data-on] { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: var(--line); }
.dash__body { padding: 20px; display: grid; gap: 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); }
.tile__label { font-size: 11.5px; color: var(--text-3); }
.tile__value { margin-top: 7px; font-size: 24px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.tile__delta { margin-top: 7px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.tile__delta b { font-weight: 500; }
.tile__delta--up b { color: var(--viz-good); }
.tile__delta--down b { color: var(--viz-good); }
.tile__delta--warn b { color: var(--viz-warn); }

.chart { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.015); padding: 16px 18px 14px; }
.chart__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.chart__head h4 { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.chart__head p { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* column chart — single series, magnitude over time */
.cols { display: flex; align-items: flex-end; gap: 3px; height: 116px; padding-top: 4px; }
.cols > div {
  position: relative; flex: 1; min-width: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--viz-s1), rgba(138, 109, 255, 0.35));
  transition: filter 0.15s var(--ease);
}
.cols > div:hover { filter: brightness(1.35); }
.cols > div::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  border: 1px solid var(--line-strong); background: #17171C;
  font-family: var(--font-mono); font-size: 11px; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity 0.15s var(--ease);
  z-index: 4;
}
.cols > div:hover::after { opacity: 1; }
.axis { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* horizontal bars — ranked magnitude, one hue */
.bars { display: grid; gap: 11px; }
.bar { display: grid; grid-template-columns: 118px minmax(0, 1fr) 62px; gap: 12px; align-items: center; }
.bar__label { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__track { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 5px; background: var(--viz-s1); }
.bar__value { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); text-align: right; }

/* grouped comparison — two series, legend + direct labels */
.cmp { display: grid; gap: 16px; }
.cmp__group { display: grid; gap: 8px; }
.cmp__name { font-size: 12.5px; color: var(--text-2); }
.cmp__pair { display: grid; gap: 5px; }
.cmp__row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; }
.cmp__key { font-size: 11.5px; color: var(--text-3); }
.cmp__bar { height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 9px; min-width: 46px; }
.cmp__bar span { font-family: var(--font-mono); font-size: 11.5px; color: #0A0A0B; font-weight: 500; }
.cmp__bar--s1 { background: var(--viz-s1); }
.cmp__bar--s2 { background: var(--viz-s2); }

/* trace waterfall — ordinal ramp, every row labelled */
.trace { display: grid; gap: 6px; }
.trace__row { display: grid; grid-template-columns: 152px minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.trace__name { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace__track { position: relative; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.035); }
.trace__span { position: absolute; top: 0; height: 100%; border-radius: 4px; min-width: 3px; }
.trace__dur { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-align: right; }
.trace__row--sub .trace__name { padding-left: 14px; color: var(--text-3); }

.viz-note { font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* =========================================================
   Enterprise / misc
   ========================================================= */
.ent-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.check-list .check { position: relative; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-dim); }
.check-list .check::after { content: ""; position: absolute; left: 5.5px; top: 4.5px; width: 4.5px; height: 8px; border: solid var(--accent-soft); border-width: 0 1.5px 1.5px 0; transform: rotate(42deg); }

.mission { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.32; letter-spacing: -0.03em; max-width: 22ch; }
.timeline { display: grid; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline__item:first-child { border-top: 0; padding-top: 0; }
.timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); }
.timeline h3 { font-size: 17px; letter-spacing: -0.025em; }
.timeline p { margin-top: 8px; font-size: 14.5px; color: var(--text-3); max-width: 58em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .doc-aside { display: none; }
}

@media (max-width: 1080px) {
  .catalog, .posts, .sdk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid, .ent-cta { grid-template-columns: minmax(0, 1fr); }
  .post--featured { flex-direction: column; }
  .post--featured .post__art { width: auto; height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post--featured .post__body { padding: 26px 24px 28px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .steps, .three-col, .values, .perks, .link-cards, .showcase, .two-col { grid-template-columns: minmax(0, 1fr); }
  .values { border-radius: var(--r-lg); }
  .stat-row, .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__branch { grid-template-columns: minmax(0, 1fr); }

  .doc-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-side, .legal-toc {
    position: static; max-height: none; overflow: visible;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px;
    background: var(--surface);
  }
  .doc-side nav { margin-bottom: 16px; }

  .log__entry { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 30px 0; }
  .log__meta { position: static; flex-direction: row; align-items: center; gap: 10px; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .doc-nextprev { grid-template-columns: minmax(0, 1fr); }
  .doc-nextprev .is-next { text-align: left; }
}

@media (max-width: 620px) {
  .catalog, .posts, .sdk-grid, .team { grid-template-columns: minmax(0, 1fr); }
  .stat-row, .four-col, .tiles { grid-template-columns: minmax(0, 1fr); }
  .page-head__meta { gap: 20px 28px; }
  .case__results { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .role { gap: 8px 14px; }
  .role__meta { margin-left: 0; width: 100%; }
  .bar { grid-template-columns: 92px minmax(0, 1fr) 52px; }
  .trace__row { grid-template-columns: 100px minmax(0, 1fr) 46px; }
  .incident__log li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  /* 90 bars will not fit at 2px each on a phone. */
  .uptime { gap: 1px; height: 26px; }
  .uptime i { min-width: 1px; border-radius: 1px; }
  .status-banner { flex-wrap: wrap; }
  .status-banner span { margin-left: 0; width: 100%; }
}
