/* Pluryface: design system + landing page
   Self-hosted only (CSP: no inline styles, no third parties). Light by default, dark via prefers-color-scheme. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f5f4ef;
  --bg-2: #eceae3;
  --surface: #ffffff;
  --surface-2: #f9f8f4;
  --line: #dcd9cf;
  --line-soft: #e8e5dd;
  --text: #15171c;
  --muted: #5d626c;
  --accent: #2b44e8;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --danger: #cf3535;
  --up: #1d9a58;
  --degraded: #b0741a;
  --down: #cf3535;
  --pending: #8a8f99;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 8px 24px -12px rgba(20, 22, 28, .12);
  --shadow-lg: 0 2px 4px rgba(20, 22, 28, .04), 0 24px 60px -24px rgba(20, 22, 28, .25);
  /* dark panels (CTA, auth side) stay dark in both themes */
  --ink: #0e1116;
  --ink-2: #151922;
  --ink-line: #262c38;
  --ink-text: #e6e8ec;
  --ink-muted: #8a91a0;
  --radius: 12px;
  --radius-sm: 8px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: var(--display);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e12;
    --bg-2: #101318;
    --surface: #14171d;
    --surface-2: #191d24;
    --line: #262b35;
    --line-soft: #1d2129;
    --text: #eceef1;
    --muted: #9399a4;
    --accent: #8d9cff;
    --accent-ink: #0c0e12;
    --danger: #ff6b6b;
    --up: #3fd68a;
    --degraded: #f0b64a;
    --down: #ff6b6b;
    --pending: #6b717d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --ink: #090b0f;
    --ink-2: #10131a;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 18px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.btn:hover { box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--small { padding: .55em 1em; font-size: .92rem; }
.btn--big { padding: 1em 1.8em; font-size: 1.08rem; }
.btn__arrow { transition: transform .25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: 1.06rem; text-decoration: none; letter-spacing: -0.02em; }
.brand__mark { width: 24px; height: 24px; fill: var(--accent); }
.brand__tld { color: var(--muted); font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .15s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__sep { width: 1px; height: 20px; background: var(--line); }
.nav__toggle {
  display: none; width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav__sep { display: none; }
  .nav__menu .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero__inner { display: grid; justify-items: center; text-align: center; }
.hero__copy { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.hero .hero__lead { margin-inline: auto; }
.hero__cta { justify-content: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 26px; padding: .35em .85em .35em .7em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: .45em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 22px 0 0; font-size: .88rem; color: var(--muted); }
.hero__note strong { color: var(--text); font-weight: 600; }
.hero__copy > * { animation: rise .8s var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }
.hero__copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 0; list-style: none; }
.facts__list li { padding: 26px 24px; border-right: 1px solid var(--line); text-align: center; }
.facts__list li:first-child { border-left: 1px solid var(--line); }
.facts__list li:last-child { border-right: 0; }
.facts__num { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.facts__label { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) {
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__list li:nth-child(2) { border-right: 0; }
  .facts__list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; scroll-margin-top: 68px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 60ch; }

/* ---------- Pipeline (how it decides) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pipeline li { background: var(--surface); padding: 28px 26px 30px; }
.pipeline__layer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pipeline__layer b { color: var(--accent); font-weight: 600; }
.pipeline h3 { font-size: 1.15rem; margin-bottom: .4em; }
.pipeline p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.verdicts div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.verdicts b { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.verdicts b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--up)); }
.verdicts span { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.verdicts .v-throttle { --c: #6d8bd6; }
.verdicts .v-challenge { --c: var(--degraded); }
.verdicts .v-ban { --c: var(--down); }
@media (max-width: 820px) { .verdicts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .3s var(--ease-out), box-shadow .3s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; background: var(--accent-soft); }
.feature__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; margin-bottom: .45em; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Setup steps ---------- */
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 820px) { .setup { grid-template-columns: 1fr; } }
.setup li { counter-increment: s; padding-top: 22px; border-top: 2px solid var(--text); }
.setup li::before { content: "0" counter(s); display: block; margin-bottom: 14px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.setup h3 { font-size: 1.2rem; }
.setup p { color: var(--muted); margin: 0; }
.setup code { padding: .1em .4em; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); font-size: .84em; }

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .limits { grid-template-columns: 1fr; } }
.limits__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.limits__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.limits__list svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.limits__list b { display: block; font-weight: 600; margin-bottom: 2px; }
.limits__list span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .3s var(--ease-out), margin .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); margin: 0; padding: 0 44px 24px 0; }
.faq details a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta { padding: clamp(72px, 10vw, 120px) 0; }
.cta__box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: 18px; background: var(--ink); color: var(--ink-text);
  border: 1px solid var(--ink-line);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 85% 50%, #000, transparent 70%);
}
.cta__box > * { position: relative; }
.cta__box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; margin-bottom: .3em; }
.cta__box p { color: var(--ink-muted); margin: 0; max-width: 52ch; }
.cta__box .btn { --accent: #8d9cff; --accent-ink: #0c0e12; }
@media (max-width: 760px) { .cta__box { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer__links a:hover { color: var(--text); }
.footer p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) 0 96px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs__toc { display: none; } }
.docs__toc { position: sticky; top: 92px; align-self: start; }
.docs__toc-title { margin: 0 0 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docs__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs__toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: .92rem; }
.docs__toc a:hover { color: var(--text); border-left-color: var(--text); }
.docs__body { max-width: 720px; }
.docs__body h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.04em; }
.docs__lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 8px; }
.docs__body section { padding-top: 44px; scroll-margin-top: 76px; }
.docs__body h2 { font-size: 1.55rem; letter-spacing: -0.03em; padding-top: 28px; border-top: 1px solid var(--line); }
.docs__body h3 { font-size: 1.08rem; margin-bottom: .3em; }
.docs__body p { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.docs__body a { color: var(--accent); text-underline-offset: 3px; }
.docs__body code { padding: .1em .4em; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); font-size: .85em; }
.docs__list { margin: 0 0 1em; padding-left: 1.2em; }
.docs__list li { margin-bottom: 8px; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.docs__steps { list-style: none; margin: 0 0 1em; padding: 0; counter-reset: d; }
.docs__steps li { counter-increment: d; position: relative; padding: 0 0 18px 46px; }
.docs__steps li::before {
  content: counter(d); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.docs__note { padding: 13px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.docs__table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .95rem; }
.docs__table th, .docs__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.docs__table th { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.docs__table td:first-child { white-space: nowrap; }
.docs__pill { display: inline-flex; align-items: center; gap: 6px; padding: .2em .65em; border-radius: 6px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); }
.docs__pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pending); }
.docs__pill--on { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.docs__pill--on::before { background: var(--up); }
.docs__status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs__status li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.docs__status b { display: block; }
.docs__status span:not(.lamp-dot) { color: var(--muted); font-size: .92rem; }
.lamp-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.lamp-dot--up { background: var(--up); }
.lamp-dot--degraded { background: var(--degraded); }
.lamp-dot--down { background: var(--down); }
.docs__chips { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.docs__chips li { padding: .35em .8em; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; }

.docs__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 20px; }
@media (max-width: 620px) { .docs__gallery { grid-template-columns: 1fr; } }
.docs__gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.docs__gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.docs__gallery figcaption { padding: 12px 14px 14px; font-size: .88rem; color: var(--muted); }
.docs__gallery figcaption b { display: block; color: var(--text); font-size: .95rem; margin-bottom: 2px; }
.docs__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
@media (max-width: 620px) { .docs__proof { grid-template-columns: 1fr; } }
.docs__proof div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.docs__proof b { display: block; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
.docs__proof span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.docs__tested td:first-child { white-space: normal; width: 100%; }
.docs__tested th:nth-child(n+2), .docs__tested td:nth-child(n+2) { text-align: right; }
.docs__tested td:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .docs__tested th, .docs__tested td { padding: 10px 8px; } .docs__what { display: none; } }
.docs__tested td:nth-child(3) { color: var(--up); font-weight: 600; }
.docs__what { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.docs__code { margin: 0 0 1em; padding: 14px 16px; border-radius: 10px; background: var(--ink); color: var(--ink-text); overflow-x: auto; font-size: .82rem; }
.docs__code code { background: none; border: 0; padding: 0; color: inherit; }

/* ---------- Live status ---------- */
.live { padding: clamp(48px, 7vw, 88px) 0 96px; }
.live__title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; }
.live__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pending); }
.live__dot--ok { background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: pulse 2.4s infinite; }
.live__dot--attack { background: var(--degraded); animation: pulse 1.2s infinite; }
.live__dot--down { background: var(--down); }
.live__lead { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.live__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0 24px; }
@media (max-width: 820px) { .live__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .live__grid { grid-template-columns: 1fr; } }
.live__card { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.live__num { display: block; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live__label { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; }
.live__meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.live__meta b { color: var(--text); font-weight: 600; }
.live__meta a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Simple page (404) ---------- */
.simple { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.simple__main { display: grid; place-items: center; padding: 48px 0; text-align: center; }
.simple__code { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.simple h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.simple p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.simple__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
