/* ServerNest website. Same design tokens and components as the dashboard
   (app.servernest.io, apps/web/app/globals.css): type scale, 4px grid, cards, tables,
   badges and buttons. No inline styles (strict CSP). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef3ff;
  --surface: #ffffff;
  --line: #e6eaf1;
  --line-2: #cfd7e3;
  --text: #0b1b3a;
  --text-2: #33415c;
  --muted: #5b6b85;
  --primary: #2f5bff;
  --primary-600: #1f47e6;
  --primary-50: #eef2ff;
  --teal: #0fa39a;
  --teal-50: #e6f7f5;
  --teal-line: #a9e3dd;
  --teal-text: #0b6f69;
  --ok: #138a4b;
  --ok-50: #e7f6ee;
  --ok-line: #b6e2c8;
  --ok-text: #0d5c32;
  --warn: #a15c00;
  --warn-50: #fff4e0;
  --warn-line: #f3d39d;
  --warn-text: #6b3d00;
  --err: #c62828;
  --err-50: #fdecec;
  --err-line: #f5c2c2;
  --err-text: #8a1c1c;
  --info-line: #cdd8ff;
  --info-text: #0d2152;
  --navy: #071637;
  --navy-2: #0d2152;
  --navy-line: #22356a;
  --on-navy: #e6edff;
  --on-navy-2: #b9c8ef;
  --brand-light: #8fb0ff;
  --nest-light: #2dd4bf;
  --code-acc: #5ce1d6;
  --code-ok: #6ee7a8;
  --placeholder: #68758e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06);
  --shadow: 0 1px 2px rgba(11, 27, 58, .05), 0 8px 24px -12px rgba(11, 27, 58, .18);
  /* Dashboard type scale and 4px spacing grid (#126). Use only these. */
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem;
  /* Website only: two display sizes, for the home hero and big section headings. */
  --fs-2xl: 2rem; --fs-3xl: 2.5rem;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --section: calc(var(--sp-7) + var(--sp-5));
  --header: 56px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + var(--sp-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-base)/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside a sentence are underlined, so they don't rely on colour alone (WCAG 1.4.1). */
:where(p, dd, td, .prose li, .list-check li, .callout, .notice) a:not(.btn, .badge) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: var(--fs-xl); }
h2, h3 { font-size: var(--fs-md); }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); padding: 0 var(--sp-1); border-radius: 6px; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--bg-tint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: var(--sp-2); background: var(--primary); color: #fff; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: var(--sp-2); }
.muted { color: var(--muted); }

/* Line icons: inline SVG symbols in layout.html (24px grid, stroke 2, currentColor). */
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--sp-5)); margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 600px) { .wrap { padding: 0 var(--sp-4); } }
.narrow { max-width: calc(720px + 2 * var(--sp-5)); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .cta-row { justify-content: center; }
.grad { color: var(--primary); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-md); letter-spacing: -.02em; line-height: 1; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand b { font-weight: 700; color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 36px; padding: var(--sp-1) var(--sp-4); border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 500; line-height: 1.25; text-decoration: none; cursor: pointer;
  background: var(--primary); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-sm { min-height: 32px; padding: var(--sp-1) var(--sp-3); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- badges (same as the dashboard's status pills) ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; padding: 1px var(--sp-2); border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); white-space: nowrap; text-decoration: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before { display: none; }
.badge-ok { color: var(--ok-text); background: var(--ok-50); border-color: var(--ok-line); }
.badge-wait { color: var(--warn-text); background: var(--warn-50); border-color: var(--warn-line); }
.badge-off { color: var(--err-text); background: var(--err-50); border-color: var(--err-line); }
.badge-info { color: var(--primary-600); background: var(--primary-50); border-color: var(--info-line); }
.badge-solid { color: #fff; background: var(--err); border-color: var(--err); }
a.badge:hover { text-decoration: none; border-color: currentColor; }

/* A drawn check mark (no glyphs) for check lists. */
.list-check li, .checks li, .hero-facts li, .sec h3 { position: relative; display: flex; gap: var(--sp-3); align-items: flex-start; }
.list-check li::before, .checks li::before, .hero-facts li::before, .sec h3::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ok-50); box-shadow: inset 0 0 0 1px var(--ok-line);
}
.list-check li::after, .checks li::after, .hero-facts li::after, .sec h3::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hero-facts li { align-items: center; gap: var(--sp-2); }
.hero-facts li::before, .sec h3::before { margin-top: 0; }
.hero-facts li::after, .sec h3::after { top: calc(50% - 7px); }

/* ---------- header: a quiet top bar, like the dashboard ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { position: relative; display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header); }
.topnav { display: flex; align-items: center; gap: var(--sp-4); flex: 1; }
.topnav ul { display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.topnav-main { flex: 1; }
.topbar-link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; transition: background .15s; }
.topbar-link:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.topbar-link[aria-current="page"] { background: var(--bg-tint); color: var(--text); font-weight: 600; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn:hover { background: var(--bg-soft); }
.menu-btn .icon { width: 20px; height: 20px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5) var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header)); overflow-y: auto; }
  .topnav.open { display: flex; }
  .topnav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .topnav .topbar-link { display: flex; min-height: 44px; }
  .topnav-end { padding-top: var(--sp-3); border-top: 1px solid var(--line); }
  .topnav-end li, .topnav-end .btn { width: 100%; }
  .topnav-end .btn { min-height: 44px; }
}
@media (max-width: 600px) { .topnav { padding-left: var(--sp-4); padding-right: var(--sp-4); } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding-top: var(--sp-6); }
@media (max-width: 700px) { :root { --section: var(--sp-7); } }
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--primary-600); margin-bottom: var(--sp-2); }
.section-head h2, .ea h2, .ops-copy h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); letter-spacing: -.02em; }
.section-head p:not(.eyebrow), .ea-copy > p:not(.eyebrow), .ops-copy > p:not(.eyebrow) { color: var(--text-2); font-size: var(--fs-md); }
.h2-sm { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 600px; }
@media (max-width: 600px) { .section-head h2, .ea h2, .ops-copy h2 { font-size: var(--fs-xl); } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-5); }
@media (max-width: 600px) { .card { padding: var(--sp-4); } }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--primary); margin-bottom: var(--sp-4); }
.ic .icon { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { padding: var(--sp-7) 0 var(--section); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); letter-spacing: -.025em; margin: var(--sp-4) 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-5) 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); color: var(--text-2); font-weight: 500; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }
@media (max-width: 600px) { .hero { padding-top: var(--sp-6); } .hero h1 { font-size: var(--fs-2xl); } }

/* Product illustration: plain HTML/CSS in the dashboard's look. Names are made up. */
.hero-visual { position: relative; margin: 0; min-width: 0; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.mock-side { border-right: 1px solid var(--line); padding: var(--sp-3) var(--sp-2); display: grid; align-content: start; gap: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.mock-side .brand { font-size: var(--fs-base); padding: var(--sp-1) var(--sp-2) var(--sp-3); }
.mock-nav { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-sm); font-weight: 500; }
.mock-nav .icon { color: var(--muted); }
.mock-nav.on { background: var(--bg-tint); color: var(--text); font-weight: 600; }
.mock-nav.on .icon { color: var(--primary); }
.mock-main { min-width: 0; background: var(--bg-soft); }
.mock-top { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-3); min-height: 40px; padding: 0 var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-page { padding: var(--sp-4) var(--sp-4) var(--sp-7); }
.mock-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.mock-head small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.mock-head b { font-size: var(--fs-md); font-weight: 600; }
.mock-btn { font-size: var(--fs-xs); font-weight: 500; color: #fff; background: var(--primary); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-sm); white-space: nowrap; }
.mock-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.mock-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 80px minmax(0, 1fr); align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); min-height: 44px; border-top: 1px solid var(--line); }
.mock-row:first-child { min-height: 0; border-top: 0; color: var(--text-2); font-weight: 600; font-size: var(--fs-xs); }
.mock-row b { font-weight: 500; color: var(--primary-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row > :last-child { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { width: 80px; height: 24px; overflow: visible; }
.spark-fill { fill: var(--primary); fill-opacity: .12; stroke: none; }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-flat .spark-line { stroke: var(--line-2); }
.terminal { background: var(--navy); border: 1px solid var(--navy-line); border-radius: 10px; min-width: 0; box-shadow: var(--shadow); }
.term-float { position: relative; margin: calc(-1 * var(--sp-5)) var(--sp-7) 0 calc(-1 * var(--sp-5)); }
.term-bar { padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--navy-line); font: var(--fs-xs) var(--mono); color: var(--on-navy-2); }
.term-body { margin: 0; padding: var(--sp-3) var(--sp-4); font: var(--fs-xs)/1.75 var(--mono); color: var(--on-navy); overflow-x: auto; }
.term-body code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.c-prompt { color: var(--brand-light); } .c-acc { color: var(--code-acc); } .c-ok { color: var(--code-ok); }
.preview-note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 960px) { .term-float { margin: calc(-1 * var(--sp-5)) var(--sp-4) 0; } }
@media (max-width: 600px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); } .mock-side { display: none; } .mock-page { padding-bottom: var(--sp-4); }
  .mock-row { grid-template-columns: minmax(0, 1fr) 88px 80px; } .mock-row > :last-child { display: none; }
  .term-float { margin: var(--sp-3) 0 0; }
}
@media (max-width: 380px) { .mock-row { grid-template-columns: minmax(0, 1fr) 88px; } .mock-row > :nth-child(3) { display: none; } }

/* Planned GPU view (illustration on /features/ai-machines and the home page, #160). SVG bars, no inline styles. */
.gpu-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.gpu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.gpu-head small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.gpu-head b { font-size: var(--fs-md); font-weight: 600; }
.gpu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.gpu-tile { min-width: 0; padding: var(--sp-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.gpu-tile small { display: flex; align-items: center; gap: var(--sp-1); color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; }
.gpu-tile small .icon { color: var(--primary); }
.gpu-tile b { display: block; margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-md); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpu-tile b span { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.gpu-tile .spark { width: 100%; }
.gpu-bar { width: 100%; height: 8px; }
.gpu-bar-bg { fill: var(--line); }
.gpu-bar-fg { fill: var(--primary); }
.gpu-bar-warm { fill: var(--teal); }
.gpu-procs { border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.gpu-procs > div { display: grid; grid-template-columns: minmax(0, 1fr) 72px 56px; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line); }
.gpu-procs > div:first-child { border-top: 0; color: var(--text-2); font-weight: 600; font-size: var(--fs-xs); }
.gpu-procs code { justify-self: start; }
.gpu-procs span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.gpu-alert { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--radius-sm); background: var(--warn-50); border: 1px solid var(--warn-line); color: var(--warn-text); }
.gpu-alert .icon { margin-top: 2px; }
.gpu-alert b { display: block; font-weight: 600; }
.gpu-alert p { color: var(--warn-text); font-size: var(--fs-sm); }
.gpu-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.gpu-promo .cta-row { margin-bottom: 0; }
.lead + .lead { margin-top: var(--sp-3); }
.gpu-promo .section-head > .badge { margin-bottom: var(--sp-3); }
.roadmap.roadmap-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .gpu-promo { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }
@media (max-width: 860px) { .roadmap.roadmap-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .gpu-procs > div { grid-template-columns: minmax(0, 1fr) 56px; } .gpu-procs > div > :nth-child(2) { display: none; } }

/* Key facts as tiles, like the dashboard overview */
.stats { padding: var(--sp-6) 0 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.stats-inner div { padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats-inner b { display: block; font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-inner span { color: var(--muted); }
@media (max-width: 760px) { .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band-inner { display: flex; align-items: center; gap: var(--sp-3) var(--sp-5); padding-top: var(--sp-5); flex-wrap: wrap; }
.band p { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.band ul, .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.band li, .tags li { padding: var(--sp-1) var(--sp-3); border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-weight: 500; background: var(--surface); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.steps li { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--primary-600); font-weight: 600; }
.steps h3 { margin: var(--sp-4) 0 var(--sp-2); }
.steps p { color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.diagram { margin: 0; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.diagram svg { width: 100%; height: auto; color: var(--muted); }
.dg-box rect { fill: var(--bg-soft); stroke: var(--line-2); stroke-width: 1.5; }
.dg-main rect { fill: var(--bg-tint); stroke: var(--primary); }
.dg-box text { fill: var(--text); font: 600 17px var(--font); text-anchor: middle; }
.dg-box .dg-sub { fill: var(--muted); font: 400 13px var(--font); }
.dg-line line { stroke: currentColor; stroke-width: 2; }
.dg-acc { color: var(--teal-text); }
.dg-acc line { stroke-dasharray: 6 5; }
.dg-lbl { fill: currentColor; font: 600 13px var(--font); text-anchor: middle; }
.dg-mute { fill: var(--muted); font-weight: 500; }
.diagram figcaption { margin-top: var(--sp-4); color: var(--text-2); text-align: center; }
@media (max-width: 600px) { .diagram { padding: var(--sp-3); } }

.next-box { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.next-box h3 { font-size: var(--fs-base); color: var(--text-2); margin-bottom: var(--sp-3); }

/* ---------- platforms ---------- */
.plat-h { font-size: var(--fs-base); color: var(--text-2); margin: 0 0 var(--sp-3); }
.plat-h + .plat-grid { margin-bottom: var(--sp-6); }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
.plat { position: relative; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plat b { display: block; font-weight: 600; padding-right: var(--sp-4); }
.plat small { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.plat-grid.soon .plat, .plat.next { background: var(--bg-soft); box-shadow: none; }
.plat.idea { background: transparent; border-style: dashed; box-shadow: none; }
.plat.idea b { color: var(--text-2); }
.plat.launch, .plat.preview { border-color: var(--info-line); }
.plat::after { content: ""; position: absolute; top: var(--sp-4); right: var(--sp-3); width: 8px; height: 8px; border-radius: 50%; }
.plat.launch::after { background: var(--primary); }
.plat.next::after { background: var(--teal); }
.plat.idea::after { border: 1.5px solid var(--muted); }
.plat.preview::after { background: var(--surface); border: 2px solid var(--primary); }
.plat-more { margin-top: var(--sp-5); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-5); color: var(--text-2); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg.launch { background: var(--primary); } .lg.next { background: var(--teal); } .lg.idea { border: 1.5px solid var(--muted); } .lg.preview { border: 2px solid var(--primary); }
.pgroup { margin-bottom: var(--sp-7); }
.pgroup h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.plat:has(> img, > .plat-mono) { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--sp-3); align-content: start; }
.plat > img, .plat > .plat-mono { grid-row: 1 / span 3; margin-top: 2px; width: 24px; height: 24px; }
.plat > b, .plat > small { grid-column: 2; overflow-wrap: anywhere; }
.plat-mono { display: grid; place-items: center; border-radius: 6px; background: var(--bg-tint); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.plat.idea img { filter: grayscale(1); opacity: .65; }
@media (max-width: 520px) {
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .plat { padding: var(--sp-3); }
  .plat:has(> img, > .plat-mono) { column-gap: var(--sp-2); }
  .plat b { font-size: var(--fs-sm); padding-right: var(--sp-3); }
  .plat small { font-size: var(--fs-xs); }
  .plat::after { top: var(--sp-3); right: var(--sp-2); }
}
@media (max-width: 400px) { .plat { padding: var(--sp-3) var(--sp-2); } }

/* Any provider */
.hub { position: relative; max-width: 960px; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines line { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.hub-grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
.hub-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 96px; padding: var(--sp-3) var(--sp-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-weight: 500; color: var(--text-2); text-align: center; }
.hub-core { grid-column: span 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 144px; padding: var(--sp-4); background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.hub-core b { font-size: var(--fs-lg); font-weight: 600; }
.hub-core small { color: var(--muted); font-size: var(--fs-base); }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-7); }
.kind { text-align: center; }
.kind img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto var(--sp-3); }
.hub-note { margin: var(--sp-5) auto 0; max-width: 720px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.distros { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.distros li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; }
.distros img { flex: none; width: 32px; height: 32px; }
.distros span:not(.badge) { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .hub-lines { display: none; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .hub-core { grid-column: 1 / -1; order: -1; }
  .kinds, .distros { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1000px) { .distros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Supported versions */
.versions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.versions-grid h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-3); }
.versions-grid .prose { font-size: var(--fs-base); }
.versions-grid table { overflow-wrap: anywhere; }
@media (max-width: 760px) { .versions-grid { grid-template-columns: minmax(0, 1fr); } }

/* Safe changes */
.ops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.ops-copy > p:not(.eyebrow) { margin-bottom: var(--sp-5); }
.ops-card { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ops-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.ops-head small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.ops-head b { font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: var(--sp-2); bottom: var(--sp-2); width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 var(--sp-4) var(--sp-6); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-50); box-shadow: inset 0 0 0 1px var(--ok-line), 0 0 0 4px var(--surface); }
.timeline li.done::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.timeline li.ghost::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2), 0 0 0 4px var(--surface); }
.timeline li.ghost b { color: var(--muted); }
.timeline b { display: block; font-weight: 500; }
.timeline small { color: var(--muted); font-size: var(--fs-sm); }
.ops-card .preview-note { margin: 0; }
@media (max-width: 900px) { .ops { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.sec { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sec h3 { align-items: center; margin-bottom: var(--sp-2); }
.sec p { color: var(--text-2); }
@media (max-width: 960px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }
.wazuh { display: flex; gap: var(--sp-5); align-items: flex-start; margin-top: var(--sp-5); padding: var(--sp-5); border-radius: var(--radius); background: var(--primary-50); border: 1px solid var(--info-line); }
.wazuh-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.wazuh-ic .icon { width: 20px; height: 20px; }
.wazuh h3 { margin: var(--sp-2) 0; }
.wazuh p:not(.wazuh-tag) { color: var(--text-2); }
@media (max-width: 560px) { .wazuh { flex-direction: column; padding: var(--sp-4); } }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.roadmap li { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.roadmap h3 { margin: var(--sp-3) 0 var(--sp-2); }
.roadmap p { color: var(--text-2); }
.roadmap .now { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
@media (max-width: 860px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

/* Early access */
.ea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.checks { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); font-weight: 500; }
@media (max-width: 900px) { .ea { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

/* ---------- forms (same fields as the dashboard) ---------- */
.form { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: var(--sp-4); box-shadow: var(--shadow-sm); max-width: 640px; }
@media (max-width: 600px) { .form { padding: var(--sp-4); } }
.field { display: grid; gap: var(--sp-2); min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-size: var(--fs-base); font-weight: 500; color: var(--text); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 36px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: var(--sp-1) var(--sp-3); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 96px; padding: var(--sp-2) var(--sp-3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b85' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--sp-3) center; padding-right: var(--sp-6); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; border-radius: var(--radius-sm); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
::placeholder { color: var(--placeholder); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form > .btn:not(.btn-block) { justify-self: start; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status:empty { min-height: 0; margin-top: calc(-1 * var(--sp-4)); }
.form-status.ok { color: var(--ok-text); }
.form-status.err { color: var(--err); }

/* ---------- footer: navy, like the dashboard's sign-in panel ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); padding: var(--sp-7) 0 var(--sp-6); }
.footer .brand { color: #fff; --mark-server: var(--brand-light); --mark-cut: var(--navy); --mark-nest: var(--nest-light); }
.footer .brand b { color: var(--brand-light); }
.footer a:not(.brand) { color: var(--on-navy-2); }
.footer a:not(.brand):hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.foot-grid nav { display: grid; gap: var(--sp-2); align-content: start; }
.foot-grid h2 { font-size: var(--fs-sm); color: #fff; margin-bottom: var(--sp-1); }
.foot-tag { margin-top: var(--sp-3); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--navy-line); font-size: var(--fs-sm); }
.footer :focus-visible { outline-color: var(--brand-light); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-hero, .post-header { padding: var(--sp-7) 0 var(--sp-6); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1, .post-header h1 { font-size: var(--fs-2xl); letter-spacing: -.02em; margin-bottom: var(--sp-3); }
.post-header h1 { margin-top: var(--sp-3); }
@media (max-width: 700px) { .page-hero, .post-header { padding: var(--sp-6) 0 var(--sp-5); } .page-hero h1, .post-header h1 { font-size: var(--fs-xl); } }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { font-weight: 500; }
.prose { font-size: var(--fs-md); color: var(--text-2); }
.prose h2 { font-size: var(--fs-lg); margin: var(--sp-7) 0 var(--sp-3); }
.prose > h2:first-child, .prose > .callout + h2 { margin-top: 0; }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--sp-4); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--text); font-weight: 600; }
/* Code blocks: dark, like the dashboard's install command box. */
.prose pre { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); overflow-x: auto; background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy-line); border-radius: 10px; font-size: var(--fs-base); line-height: 1.5; }
.prose pre code { display: block; background: none; border: 0; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
/* Tables: one bordered rounded box, plain headers, thin row lines (dashboard tables). */
.prose table, .compare { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 var(--sp-5); font-size: var(--fs-base); border: 1px solid var(--line); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.prose th, .prose td, .compare th, .compare td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .compare thead th { color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.prose tbody tr:last-child > *, .compare tbody tr:last-child > * { border-bottom: 0; }
.list-check { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--sp-3); }
.list-check li { margin: 0; color: var(--text-2); }

/* Pricing (prices and notes are set by the owner; #13) */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); max-width: 900px; margin: 0 auto; }
.price-grid-single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.price-card { padding: var(--sp-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--sp-2); box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-tag { font-size: var(--fs-sm); font-weight: 600; color: var(--primary-600); }
.price-tag.muted { color: var(--muted); }
.price-card h2, .price-card h3 { font-size: var(--fs-2xl); }
.price-sub { color: var(--muted); margin-bottom: var(--sp-4); }
.price-card .list-check { margin-bottom: var(--sp-5); flex: 1; }
@media (max-width: 720px) { .price-grid { grid-template-columns: minmax(0, 1fr); } .price-card { padding: var(--sp-5); } }
.plan-head { margin-top: var(--sp-7); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.plan-card { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plan-card h3 { font-size: var(--fs-base); color: var(--text-2); margin: 0 0 var(--sp-2); }
.plan-price { font-size: var(--fs-2xl); font-weight: 600; color: var(--text); line-height: 1.25; font-variant-numeric: tabular-nums; }
.plan-alt { color: var(--muted); }
.plan-year { color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.plan-limit { color: var(--text-2); margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.plan-card > :nth-last-child(2) { margin-bottom: var(--sp-3); }
.plan-note { color: var(--muted); margin: var(--sp-4) 0 0; }
@media (max-width: 820px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }
.compare-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { min-width: 640px; margin: 0; }
.compare td { color: var(--text-2); }
.compare th[scope="row"] { color: var(--text); font-weight: 500; }
@media (hover: hover) { .compare tbody tr:hover > * { background: var(--bg-tint); } }

/* FAQ */
.faq { display: grid; gap: var(--sp-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--sp-5); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: var(--sp-4) 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: var(--sp-1); border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--text-2); padding-bottom: var(--sp-4); }
@media (max-width: 600px) { .faq details { padding: 0 var(--sp-4); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.contact-side { display: grid; gap: var(--sp-3); }
.contact-item { padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item h2 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.contact-item p { color: var(--text-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

/* Notes */
.notice { margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-5); background: var(--primary-50); border: 1px solid var(--info-line); border-radius: var(--radius); color: var(--info-text); }
.callout { padding: var(--sp-3) var(--sp-4); border-radius: 10px; background: var(--teal-50); border: 1px solid var(--teal-line); color: var(--text-2); margin: 0 0 var(--sp-5); font-size: var(--fs-base); }
.callout strong { color: var(--text); }

/* ---------- docs: light sidebar like the dashboard ---------- */
.docs-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.docs-side { position: sticky; top: var(--header); align-self: start; max-height: calc(100vh - var(--header)); overflow-y: auto; padding: var(--sp-5) var(--sp-3) var(--sp-6) 0; border-right: 1px solid var(--line); }
.docs-side h2 { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 0 var(--sp-3) var(--sp-1); margin-top: var(--sp-5); }
.docs-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-side a { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; line-height: 1.25; transition: background .15s; }
.docs-side a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.docs-side a[aria-current="page"] { background: var(--bg-tint); color: var(--text); font-weight: 600; }
.docs-side .icon { color: var(--muted); width: 18px; height: 18px; }
.docs-side a[aria-current="page"] .icon { color: var(--primary); }
.docs-main { min-width: 0; padding: var(--sp-6) 0 var(--sp-7) var(--sp-7); }
.docs-main .wrap { max-width: 720px; margin: 0; padding: 0; }
.docs-main .page-hero, .docs-main .post-header { padding: 0 0 var(--sp-5); background: none; border: 0; }
.docs-main .page-hero h1, .docs-main .post-header h1 { font-size: var(--fs-xl); margin-top: var(--sp-2); }
.docs-main .section { padding: 0; }
.docs-main .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-main { padding: var(--sp-5) 0 var(--sp-6); }
  .docs-side { order: 2; position: static; max-height: none; padding: var(--sp-5) 0 var(--sp-6); border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .docs-main .doc-grid { grid-template-columns: minmax(0, 1fr); } }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.doc-card { position: relative; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.doc-card:hover { border-color: var(--primary); }
.doc-card h2 { font-size: var(--fs-base); margin: 0 0 var(--sp-1); }
.doc-card h2 a { color: var(--text); }
.doc-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.doc-card p { color: var(--text-2); }
.doc-group { font-size: var(--fs-base); color: var(--text-2); margin: var(--sp-6) 0 var(--sp-3); }
.doc-group:first-child { margin-top: 0; }
@media (max-width: 960px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }
.guide-shot { margin: var(--sp-5) 0 var(--sp-6); }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.guide-shot figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- status ---------- */
.status-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); min-height: 48px; }
.status-list li + li { border-top: 1px solid var(--line); }
.status-list h2 { font-size: var(--fs-base); font-weight: 500; }
.status-list p { color: var(--muted); font: var(--fs-sm) var(--mono); }
.status-note { margin-top: var(--sp-4); color: var(--text-2); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--sp-7) var(--sp-4); background: var(--bg-soft); }
.nf-code { font-size: var(--fs-3xl); font-weight: 600; color: var(--primary); }
.nf h1 { margin-top: var(--sp-2); }
.nf p { color: var(--text-2); margin: var(--sp-3) 0 var(--sp-5); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.post-list { display: grid; gap: var(--sp-3); }
.post-card { display: block; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s; }
.post-card:hover { border-color: var(--primary); text-decoration: none; }
.post-card:hover h2, .post-card:hover h3 { color: var(--primary-600); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.post-card h2, .post-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.post-card p { color: var(--text-2); }
/* "More guides like this" at the end of a blog post (added by scripts/build.mjs). */
.related-guides { padding: var(--sp-7) 0; }
.related-guides h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.news { position: sticky; top: calc(var(--header) + var(--sp-4)); padding: var(--sp-5); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.news h2 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.news > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.news-item { display: block; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; }
.news-item:hover { border-color: var(--primary); text-decoration: none; }
.news-item b { display: block; font-weight: 500; line-height: 1.4; margin: var(--sp-1) 0; }
.news-item small { color: var(--muted); font-size: var(--fs-xs); }
.news-empty { color: var(--muted); padding: var(--sp-2) 0; }

/* ---------- free site checker ---------- */
.checker-results { margin-top: var(--sp-6); }
.checker-results h2 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); outline: none; overflow-wrap: anywhere; }
.checker-meta { color: var(--muted); margin: 0 0 var(--sp-4); overflow-wrap: anywhere; }
.checker-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.chk { padding: var(--sp-4); }
.chk + .chk { border-top: 1px solid var(--line); }
.chk p { margin: var(--sp-1) 0 0; color: var(--text-2); overflow-wrap: anywhere; }
.chk .chk-fix { color: var(--text); }
.chk-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.chk-head b { font-weight: 600; }

/* ---------- press kit (/press) ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 960px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kit-grid { grid-template-columns: minmax(0, 1fr); } }
.kit-item { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.kit-preview { display: grid; place-items: center; height: 160px; background: var(--bg); border-bottom: 1px solid var(--line); }
.kit-preview img { width: 96px; height: 96px; }
.kit-preview img.kit-logo { width: auto; max-width: 80%; height: 44px; }
.kit-preview.kit-wide img { width: auto; max-width: 85%; height: auto; max-height: 128px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kit-on-soft { background: var(--bg-soft); }
.kit-on-navy { background: var(--navy); }
.kit-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.kit-body h3 { font-size: var(--fs-md); margin: 0; }
.kit-body p { font-size: var(--fs-base); margin: 0; }
.kit-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.kit-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 960px) { .kit-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kit-swatch { height: 80px; border-bottom: 1px solid var(--line); }
.kit-c-primary { background: var(--primary); }
.kit-c-teal { background: var(--teal); }
.kit-c-navy { background: var(--navy); }
.kit-c-text { background: var(--text); }
.kit-c-soft { background: var(--bg-soft); }
.kit-c-tint { background: var(--bg-tint); }
.kit-c-brand-light { background: var(--brand-light); }
.kit-c-nest-light { background: var(--nest-light); }
.card .kit-hex { font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-2); }
.card .kit-font-sans { font-family: var(--font); font-size: var(--fs-xl); font-weight: 600; color: var(--text); }
.card .kit-font-mono { font-family: var(--mono); font-size: var(--fs-lg); color: var(--text); }
.kit-text { max-width: 720px; }

/* ---------- blog topic filter (main.js shows it; without JS every guide shows) ---------- */
.guide-filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.guide-filter[hidden], .post-card[hidden] { display: none; }
.guide-filter .btn[aria-pressed="true"] { background: var(--bg-tint); border-color: var(--primary); color: var(--primary-600); }
.guide-filter-count { font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }
.guide-filter-count:empty { display: none; }

/* web.servernest.io: our website work (#186) */
.web-work .web-work-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.web-work-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.web-work-item h3, .web-work-item p { padding: 0 var(--sp-5); }
.web-work-item h3 { margin-top: var(--sp-4); }
.web-work-item p { padding-bottom: var(--sp-5); }
