/* 3tensors — site styles */

@font-face {
  font-family: "Kode Mono Round";
  src: url("../fonts/KodeMono-Round.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 100% 115%;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --ink-2: #0F0F0F;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --line-soft: #1C1C1C;
  --line: #262626;
  --line-strong: #3A3A3A;
  --text: #F2F2F2;
  --text-2: #CFCFCF;
  --muted: #A6A6A6;
  --dim: #858585;
  --faint: #5E5E5E;
  --accent: #F2F2F2;
  --on-accent: #0A0A0A;
  --on-accent-muted: #3A3A3A;
  --mid: #A6A6A6;
  /* the only two colors: used for live data in product visuals, never for UI chrome */
  --signal: #FF8B3D;
  --signal-2: #5CC8FF;

  --font-display: "Kode Mono Round", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-top: clamp(80px, 10vw, 128px);
  --section-bottom: clamp(64px, 8vw, 104px);
  --radius: 14px;
  --radius-sm: 10px;
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  scrollbar-color: var(--line-strong) var(--ink);
  caret-color: var(--accent);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--on-accent); }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.cta-band :focus-visible { outline-color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--font-display); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-display--sm { font-size: clamp(30px, 6.2vw, 80px); }
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-cta {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h-item { font-size: 20px; font-weight: 600; line-height: 1.35; }
.h-item--lg { font-size: 22px; line-height: 1.3; text-wrap: balance; }
.h-mono { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.br { display: block; }
.lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.measure { max-width: 46ch; }
.prose { max-width: 60ch; color: var(--muted); text-wrap: pretty; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 8px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, filter 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lnk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--text);
}
.lnk svg { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #FFFFFF; }
  .btn-ghost:hover { border-color: var(--faint); }
  .btn-dark:hover { background: #1C1C1C; }
  .lnk:hover svg { transform: translateX(3px); }
  .nav-links a:hover, .footer a:hover, .crumbs a:hover { color: #FFFFFF; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 22px; width: auto; }
.nav-panel { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav-links a { display: block; padding: 12px 0; color: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.menu-toggle {
  display: none; margin-left: auto;
  height: 44px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 500 15px/1 var(--font-body); cursor: pointer;
  align-items: center; gap: 10px;
}
.menu-toggle .bars { width: 16px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 200ms var(--ease-out), top 200ms var(--ease-out);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav-panel {
    display: none; flex: 0 0 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 4px 0 12px;
  }
  .js .nav-panel.is-open { display: flex; }
  .js .nav-links { flex-direction: column; gap: 0; font-size: 17px; }
  .js .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .js .nav-panel .btn { width: 100%; height: 52px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-top) var(--section-bottom); }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding-block: clamp(80px, 10vw, 120px); }
.section--rule { border-top: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; }
.gap-48 { gap: 48px; }
.gap-56 { gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.section-head > .h-section { flex: 1 1 520px; min-width: 0; }
.section-head > p { flex: 0 1 400px; color: var(--muted); text-wrap: pretty; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split--center { align-items: center; }
.split > .col-narrow { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.split > .col-wide { flex: 1.6 1 520px; min-width: 0; }
.split > .col-half { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--line-soft); }
.hero > .wrap {
  display: flex; flex-direction: column; gap: 40px;
  padding-block: clamp(64px, 8vw, 104px) clamp(56px, 7vw, 88px);
}
.hero--product > .wrap { gap: 32px; padding-top: clamp(48px, 6vw, 80px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hero-row .lead { flex: 1 1 460px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.crumbs [aria-current] { font-family: var(--font-display); color: var(--accent); }

/* ---------- Window mock ---------- */

.window { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.window-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.window-bar .mono { color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-2); }
.window-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.tabs { display: flex; gap: 4px; font-family: var(--font-display); }
.tabs span { padding: 6px 10px; border-radius: 6px; color: var(--dim); }
.tabs .on { background: #1F1F1F; color: var(--text); }
.panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--line); }
.panes--split { display: flex; flex-wrap: wrap; }
.pane { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.pane-head .name { font-family: var(--font-display); color: var(--accent); }
.pane-head .state { font-family: var(--font-display); color: var(--signal); }
.pane-head .state--ok { color: var(--signal-2); }
.pane-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--dim); }
.pane svg { width: 100%; height: auto; }
.pane .face { height: 72px; width: auto; align-self: center; }
.pane .probe { height: 200px; width: auto; max-width: 100%; }
.steps-mini { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px 8px; font-size: 14px; color: var(--muted); }
.steps-mini .n { font-family: var(--font-display); color: var(--faint); }
.steps-mini .s { font-family: var(--font-display); font-size: 13px; color: var(--signal-2); }
.steps-mini .s--wait { color: var(--signal); }
.steps-mini .now { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .window--reveal .pane { animation: pane-in 640ms var(--ease-out) both; }
  .window--reveal .pane:nth-child(2) { animation-delay: 70ms; }
  .window--reveal .pane:nth-child(3) { animation-delay: 140ms; }
  .window--reveal .pane:nth-child(4) { animation-delay: 210ms; }
}
@keyframes pane-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Product spotlight tabs (home) ---------- */

.tabs-row { display: none; flex-wrap: wrap; gap: 8px; }
.js .tabs-row { display: flex; }
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-2);
  font-family: var(--font-display); font-stretch: 110%; font-weight: 500; font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tab small { font-family: var(--font-body); font-stretch: 100%; font-size: 13px; font-weight: 400; color: var(--dim); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tab[aria-selected="true"] small { color: var(--on-accent-muted); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { border-color: var(--faint); color: var(--text); } }
.spot { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.spot > figure { flex: 1.3 1 520px; min-width: 0; margin-top: 0; }
.spot-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.h-spot { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.spot .probe { height: 160px; }
.js .spot:not(.is-active) { display: none; }
html:not(.js) .spot + .spot { padding-top: 48px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .js .spot.is-active { animation: spot-in 240ms var(--ease-out) both; }
}
@keyframes spot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Product list (home) ---------- */

.product-list { border-bottom: 1px solid var(--line); }
.product-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.product-name { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; }
.product-name .mark { font-family: var(--font-display); font-stretch: 115%; font-weight: 500; font-size: 40px; line-height: 1; color: var(--accent); }
.product-name .cat { font-size: 15px; color: var(--muted); }
.product-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-viz {
  flex: 0 1 320px; min-width: 0; height: 150px;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.product-viz svg { width: 100%; height: auto; max-height: 100%; }

/* ---------- Lists ---------- */

.rule-list { border-top: 1px solid var(--line); }
.rule-list > div { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rule-list dt { flex: 0 0 200px; font-family: var(--font-display); font-size: 18px; color: var(--accent); }
.rule-list dd { flex: 1 1 280px; color: var(--muted); }
.rule-list--compact > div { gap: 4px 20px; padding: 14px 0; }
.rule-list--compact dt { flex: 0 0 96px; font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--text); }
.rule-list--compact dd { flex: 1 1 220px; }

.spec-list { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); font-size: 16px; width: 100%; }
.spec-list dt { padding: 14px 24px 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.spec-list dd { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: right; }

.grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 420px), 100%), 1fr)); column-gap: 56px; }
.grid-list > div { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.grid-list p { max-width: 52ch; color: var(--muted); }
.grid-list--tight { column-gap: 40px; }
.grid-list--tight > div { padding: 20px 0 24px; gap: 6px; }
.grid-list--tight h3 { font-size: 18px; font-weight: 600; }
.grid-list--tight p { font-size: 16px; }

.service-list { border-bottom: 1px solid var(--line); }
.service-row { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.service-row .h-mono { flex: 0 0 300px; }
.service-row > p { flex: 1 1 300px; min-width: 0; color: var(--muted); }
.service-row > ul { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--faint); transform: translateY(-3px); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 2px solid #333333; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--faint); }
.steps .k { font-family: var(--font-display); font-size: 14px; color: var(--dim); }
.steps p { font-size: 16px; color: var(--muted); }
.steps li.is-key { border-top-color: var(--accent); }
.steps li.is-key::before { background: var(--accent); }
.steps li.is-key .k { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card--key { border-color: var(--accent); }
.card dl { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; font-size: 16px; }
.card dt { color: var(--dim); }
.placeholder { font-family: var(--font-display); color: var(--accent); text-decoration: underline dashed var(--faint); text-underline-offset: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chips li { border: 1px solid #333333; border-radius: 999px; padding: 6px 14px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.tools h3 { font-size: 16px; font-weight: 600; color: var(--muted); }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; }
.more a { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.more .mark { font-family: var(--font-display); font-stretch: 115%; font-size: 24px; color: var(--accent); }
.more .cat { color: var(--muted); font-size: 15px; }

/* ---------- Stack diagram (consulting) ---------- */

.stack-figure { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.stack-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 0 2px 8px; font-size: 14px; color: var(--dim); }
.layer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-left: var(--indent, 0);
}
.layer .tag { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.layer--hpc .tag { color: var(--signal-2); }
.layer--key { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.layer--key .tag { color: var(--on-accent); font-weight: 500; }

/* ---------- Charts / code ---------- */

.chart { flex: 1.3 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.legend { display: flex; gap: 16px; font-family: var(--font-display); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.chart svg { width: 100%; height: auto; }

.code { flex: 1.2 1 500px; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.code pre { margin: 0; padding: 24px 20px; overflow-x: auto; font-size: 14px; line-height: 1.8; color: var(--text-2); tab-size: 4; }
.code .k { color: var(--signal); }
.code .s { color: var(--signal-2); }
.code .c { color: var(--dim); }

.heatmap-wrap { flex: 2.4 1 560px; min-width: 0; background: var(--surface); padding: 20px; overflow-x: auto; }
.heatmap {
  min-width: 460px; display: grid; grid-template-columns: 44px repeat(9, minmax(0, 1fr)); gap: 3px;
  font-family: var(--font-display); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums;
}
.heatmap .h { color: var(--dim); padding: 4px 0; }
.heatmap .h.atm { color: var(--text); }
.heatmap .r { color: var(--dim); text-align: left; line-height: 38px; }
.heatmap .c { line-height: 38px; border-radius: 4px; color: var(--text); background: var(--bg); }
.heatmap .c.d { color: var(--ink); }
.heatmap .c.sel { outline: 2px solid var(--signal); outline-offset: -1px; }
.side-pane { flex: 1 1 260px; min-width: 0; background: var(--surface); padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.side-pane .label { font-size: 13px; color: var(--dim); }
.side-pane .value { font-family: var(--font-display); font-size: 18px; color: var(--signal); }
.kv { display: grid; grid-template-columns: 1fr auto; font-size: 15px; border-top: 1px solid var(--line); }
.kv dt { padding: 10px 0; border-bottom: 1px solid #1F1F1F; color: var(--muted); }
.kv dd { padding: 10px 0; border-bottom: 1px solid #1F1F1F; font-family: var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.kv dt:nth-last-child(2), .kv dd:last-child { border-bottom: 0; }
.kv .hi { color: var(--signal); }
.kv .ok { color: var(--signal-2); }

.meter { height: 8px; border-radius: 4px; background: #1F1F1F; position: relative; overflow: visible; }
.meter > i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: var(--signal); }
.meter > b { position: absolute; top: -4px; bottom: -4px; left: var(--t); width: 2px; background: var(--text-2); }

.candidates { display: flex; flex-direction: column; }
.candidates li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #1F1F1F; font-size: 14px; }
.candidates li:last-child { border-bottom: 0; }
.candidates .thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.candidates .thumb svg { width: 30px; height: auto; }
.candidates .who { display: flex; flex-direction: column; line-height: 1.35; }
.candidates .who b { font-family: var(--font-display); font-weight: 500; }
.candidates .who span { color: var(--dim); font-size: 13px; }
.candidates .score { font-family: var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.candidates li.top .score { color: var(--signal); }

.approval { border: 1px solid var(--signal); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.approval .t { font-size: 13px; color: var(--dim); }
.approval p { font-size: 15px; }
.approval .row { display: flex; gap: 8px; }
.approval .fake-btn { height: 36px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
.approval .fake-btn.solid { background: var(--signal); color: var(--on-accent); }
.approval .fake-btn.ghost { border: 1px solid var(--line-strong); color: var(--text); }

.trace { display: flex; flex-direction: column; font-size: 14px; }
.trace li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid #1F1F1F; color: var(--muted); }
.trace li:last-child { border-bottom: 0; }
.trace .n { font-family: var(--font-display); color: var(--faint); }
.trace .tool { font-family: var(--font-display); font-size: 13px; color: var(--signal-2); }
.trace .now { color: var(--text); }
.trace .now .tool { color: var(--signal); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band > .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
  padding-block: clamp(72px, 9vw, 112px);
}
.cta-band--art > .wrap { align-items: center; }
.cta-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cta-copy p { max-width: 50ch; font-size: 18px; color: var(--on-accent-muted); text-wrap: pretty; }
.cta-band .mail { font-family: var(--font-display); font-size: 16px; color: var(--on-accent); }
.cta-band .actions { align-items: center; gap: 12px 28px; }
.cta-art { flex: 0 1 260px; min-width: 0; width: 260px; height: auto; }

/* ---------- Contact page ---------- */

.contact-mail { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent); text-decoration: underline; }
.topics { display: flex; flex-direction: column; border-top: 1px solid var(--line); width: 100%; }
.topics a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.topics a span:first-child { display: flex; flex-direction: column; gap: 2px; }
.topics b { font-size: 18px; font-weight: 600; }
.topics small { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line-soft); }
.footer > .wrap { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { max-width: 32ch; font-size: 15px; color: var(--muted); }
.footer-cols { flex: 2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 32px; }
.footer-cols h2 { margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--dim); }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-name { flex-basis: 100%; }
  .product-viz { flex-basis: 100%; }
  .rule-list dt { flex-basis: 100%; }
  .service-row .h-mono { flex-basis: 100%; font-size: 22px; }
  .layer { margin-left: calc(var(--indent, 0) / 3); padding: 0 14px; font-size: 15px; }
  .cta-art { display: none; }
  .btn { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
  .btn:active { transform: none; }
}
