/* =========================================================================
 * site-v2.css — DNS Platform public marketing site
 * =========================================================================
 *
 * Hand-written plain CSS for the public marketing site at
 * dns.netquirk.com. One file, one type scale, one spacing scale,
 * one small palette.
 *
 * The dashboard at /app keeps its own Tailwind stylesheet
 * (frontend/internal/static/css/app.css) — this file is only loaded by
 * the public layout (templates/layouts/public.html).
 *
 * No @import url(...), no web fonts, no Tailwind utilities. The system
 * font stack is the only font. Designed to fail loud and obvious if a
 * regression adds an off-origin asset or a utility class.
 *
 * Brand tokens
 * ------------
 * The single override point is the :root block below. The rest of the
 * file references these custom properties; no colour hex or font stack
 * is repeated inside a rule. To rebrand the site (e.g. swap the accent
 * from blue to green), change the tokens in this block and nothing else.
 *
 * The plan calls for the DNS accent to be a single blue that pairs with
 * the navy palette below (the standard's house green #3fb36b lives in
 * the v2 stylesheet we adapted from). Swap --accent / --accent-dark to
 * a green pair if a future owner wants the house brand colour instead.
 * ========================================================================= */

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.55; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* --- palette (single brand blue accent, navy navy palette) --- */
  --accent: #2563eb;          /* primary brand accent (DNS blue) */
  --accent-dark: #1d4ed8;     /* hover/pressed state of the accent */
  --accent-soft: #dbeafe;     /* tinted background for tags, badges, code chips */

  /* --navy-900 ... --navy-500 : the dark palette for the footer and any
     dark hero. Keeps the navy feel of the dashboard without dragging in
     Tailwind classes. */
  --navy-900: #0b1220;
  --navy-800: #111c2e;
  --navy-700: #16223b;
  --navy-600: #1e2c47;
  --navy-500: #2c3a55;

  /* --ink : the main text colour on light surfaces. */
  --ink:   #020817;
  --ink-2: #1f2a44;
  --muted: #64748b;

  /* --surface : page background. --surface-2 : tinted (soft) section.
     --line : the single hairline the design uses for borders. */
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --line:      #e2e8f0;

  /* --- radii / shadows --- */
  --radius:    6px;
  --radius-lg: 10px;
  --shadow:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 25px -5px rgba(15,23,42,.10), 0 8px 10px -6px rgba(15,23,42,.08);

  /* --- type scale --- */
  --fs-xs:  0.75rem;   /* 12 */
  --fs-sm:  0.875rem;  /* 14 */
  --fs-md:  1rem;      /* 16 */
  --fs-lg:  1.125rem;  /* 18 */
  --fs-xl:  1.25rem;   /* 20 */
  --fs-2xl: 1.5rem;    /* 24 */
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
  --fs-4xl: clamp(2.25rem, 1.85rem + 1.7vw, 3rem);

  /* --- spacing scale (one scale) --- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* --- font (system stack; no web font, matches the dashboard) --- */
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

/* ---------- Body / typography ------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: var(--fs-md);
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.95em; }
p { color: var(--ink-2); }
small { font-size: var(--fs-sm); color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Skip link (a11y) -------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--surface);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* ---------- Container / layout helpers ---------------------------------- */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--sp-6); }
}

/* ---------- Site header / nav ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--ink); font-weight: 600;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--accent); color: var(--surface);
  border-radius: var(--radius);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { font-size: var(--fs-lg); white-space: nowrap; }

.nav-links {
  display: none;
  list-style: none; padding: 0; margin: 0;
  gap: var(--sp-1);
}
@media (min-width: 880px) {
  .nav-links { display: flex; align-items: center; }
}
.nav-links a {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

.nav-cta {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: var(--sp-2);
}
@media (min-width: 880px) {
  .nav-cta { display: inline-flex; }
}
.signin {
  display: inline-flex; align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
}
.signin:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  color: var(--ink-2);
}
.nav-toggle:hover { background: var(--surface-2); color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 880px) {
  .nav-toggle { display: none; }
}

/* The mobile menu: a script-free disclosure. The <details>/<summary>
   pair gives us open/close state without a single line of JavaScript. */
.nav-mobile {
  display: block;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .nav-mobile { display: none; }
}
.nav-mobile[open] summary { color: var(--ink); }
.nav-mobile summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer; list-style: none;
  color: var(--ink-2);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after {
  content: ""; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.nav-mobile[open] summary::after { transform: rotate(-135deg); }
.nav-mobile-list {
  list-style: none; padding: 0 var(--sp-4) var(--sp-4); margin: 0;
  display: grid; gap: var(--sp-1);
}
.nav-mobile-list a {
  display: block;
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: 500;
}
.nav-mobile-list a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-mobile-list a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-mobile-list .signin-mobile {
  display: block; text-align: center;
  margin-top: var(--sp-2);
  background: var(--accent); color: var(--surface);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-mobile-list .signin-mobile:hover { background: var(--accent-dark); color: var(--surface); text-decoration: none; }

/* ---------- Main / sections -------------------------------------------- */
main { padding-block: var(--sp-10) var(--sp-12); }
@media (min-width: 640px) { main { padding-block: var(--sp-12) var(--sp-16); } }

.section { padding-block: var(--sp-12); }
.section.soft { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head .kicker {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent);
}
.section-head h1,
.section-head h2 {
  margin-top: var(--sp-2);
  font-size: var(--fs-3xl);
  line-height: 1.2; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-head h1 { font-size: var(--fs-4xl); }
.section-head .lede {
  margin-top: var(--sp-3);
  color: var(--muted);
  font-size: var(--fs-lg);
  max-width: 65ch;
}

/* ---------- Hero ------------------------------------------------------- */
.hero { padding-block: var(--sp-12) var(--sp-16); }
.hero-inner {
  display: grid; gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-12); }
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-xs); font-weight: 600;
}
.hero .eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.hero h1 {
  margin-top: var(--sp-4);
  font-size: var(--fs-4xl);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink);
}
.hero .lede {
  margin-top: var(--sp-4);
  color: var(--ink-2);
  font-size: var(--fs-lg);
  max-width: 60ch;
}
.hero-actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }
.hero-note a { color: var(--accent); font-weight: 500; }

.hero-shot { margin: 0; }
.hero-shot .browser {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-shot .browser-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-xs); color: var(--muted);
}
.hero-shot .browser-bar .traffic { display: inline-flex; gap: 6px; }
.hero-shot .browser-bar .traffic span {
  width: 10px; height: 10px; border-radius: 999px; background: var(--line);
}
.hero-shot .browser-bar .url { font-family: var(--font-mono); }
.hero-shot .browser-body { padding: var(--sp-6); }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: var(--sp-3) var(--sp-6); font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--accent-dark); color: var(--surface); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Grid / cards / icon --------------------------------------- */
.grid-2 { display: grid; gap: var(--sp-5); }
.grid-3 { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.grid-4 { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}
.card h3 { font-size: var(--fs-lg); color: var(--ink); margin-bottom: var(--sp-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 18px; height: 18px; }

/* ---------- Feature row ------------------------------------------------ */
.feature-row { display: grid; gap: var(--sp-8); align-items: center; padding-block: var(--sp-12); }
@media (min-width: 880px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-12); }
  .feature-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); direction: rtl; }
  .feature-row.flip > * { direction: ltr; }
}
.feature-copy h3 {
  font-size: var(--fs-2xl); color: var(--ink);
  margin-bottom: var(--sp-3); letter-spacing: -0.01em;
}
.feature-copy .kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--sp-2);
}
.feature-copy p { color: var(--ink-2); font-size: var(--fs-md); }
.ticks { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
.ticks li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--ink-2); font-size: var(--fs-sm); }
.ticks .tick {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--surface);
  border-radius: 999px;
}
.ticks .tick svg { width: 12px; height: 12px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- Facts strip ------------------------------------------------- */
.facts {
  display: grid; gap: var(--sp-5);
  padding-block: var(--sp-8);
  border-block: 1px solid var(--line);
}
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facts dt { font-size: var(--fs-2xl); font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- CTA band --------------------------------------------------- */
.cta-band {
  margin-top: var(--sp-12);
  background: var(--navy-900);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  display: grid; gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 880px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: var(--sp-12); }
}
.cta-band h2 { color: var(--surface); font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.cta-band p { color: rgba(255,255,255,.75); font-size: var(--fs-md); max-width: 56ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-band .btn-primary { background: var(--surface); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--surface-2); color: var(--ink); }
.cta-band .btn-ghost { background: transparent; color: var(--surface); border-color: rgba(255,255,255,.25); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--surface); }

/* ---------- Pricing ---------------------------------------------------- */
.price-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.price.featured {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent);
  color: var(--surface);
}
.price.featured h2, .price.featured p { color: var(--surface); }
.price.featured .btn-primary { background: var(--surface); color: var(--accent); }
.price.featured .btn-primary:hover { background: var(--surface-2); color: var(--accent-dark); }
.price .badge {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 2px var(--sp-2); border-radius: 999px;
  background: var(--surface); color: var(--accent);
}
.price h2 { font-size: var(--fs-lg); color: var(--ink); }
.price .for { font-size: var(--fs-sm); color: var(--muted); }
.price.featured .for { color: rgba(255,255,255,.8); }
.price .amount { font-size: var(--fs-3xl); font-weight: 700; color: var(--ink); }
.price.featured .amount { color: var(--surface); }
.price .annual { font-size: var(--fs-xs); color: var(--muted); }
.price.featured .annual { color: rgba(255,255,255,.8); }
.price ul.ticks { margin: 0; }
.price .btn { margin-top: auto; }

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
}
.empty-state h2 { font-size: var(--fs-2xl); color: var(--ink); margin-bottom: var(--sp-3); }
.empty-state p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.empty-state .actions { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ---------- FAQ --------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 800px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; float: right; font-weight: 400;
  font-size: var(--fs-lg); color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Site footer ----------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.78);
  margin-top: var(--sp-16);
  padding-block: var(--sp-12) var(--sp-6);
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--surface); }
.site-footer .container { display: grid; gap: var(--sp-8); }
.footer-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: var(--fs-sm); max-width: 36ch; margin-top: var(--sp-3); }
.footer-brand .brand-text { color: var(--surface); }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); color: var(--surface); }
.footer-col h2 {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--surface);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: rgba(255,255,255,.6);
}
.footer-legal code { color: rgba(255,255,255,.85); }

/* ---------- Prose (long-form docs pages) ------------------------------- */
main.prose { max-width: 760px; }
main.prose h1 { font-size: var(--fs-3xl); color: var(--ink); margin-bottom: var(--sp-3); }
main.prose h2 {
  font-size: var(--fs-2xl); color: var(--ink);
  margin-top: var(--sp-10); margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
main.prose h3 {
  font-size: var(--fs-lg); color: var(--ink);
  margin-top: var(--sp-6); margin-bottom: var(--sp-2);
}
main.prose p { color: var(--ink-2); margin-bottom: var(--sp-4); max-width: 65ch; }
main.prose ul, main.prose ol { margin-bottom: var(--sp-4); padding-left: var(--sp-6); color: var(--ink-2); }
main.prose li { margin-bottom: var(--sp-2); }
main.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; color: var(--ink); font-size: .9em; }
main.prose pre {
  background: var(--navy-900); color: var(--surface);
  padding: var(--sp-4); border-radius: var(--radius);
  overflow-x: auto; margin-bottom: var(--sp-4);
}
main.prose pre code { background: none; padding: 0; color: inherit; font-size: var(--fs-sm); }
main.prose table {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--sp-4);
}
main.prose th, main.prose td {
  text-align: left; padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line); font-size: var(--fs-sm);
}
main.prose th { background: var(--surface-2); color: var(--ink); }
main.prose details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
  color: var(--ink-2);
}
main.prose details summary { cursor: pointer; color: var(--ink); font-weight: 600; }
main.prose details pre { margin-top: var(--sp-3); }

/* ---------- Status / pills ---------------------------------------------- */
.status-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-2);
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--muted);
}
.status-pill.ok    { border-color: rgba(34, 134, 75, .25); background: rgba(34, 134, 75, .08); color: #166534; }
.status-pill.ok .dot    { background: #16a34a; }
.status-pill.warn  { border-color: rgba(161, 98, 7, .25); background: rgba(245, 158, 11, .08); color: #92400e; }
.status-pill.warn .dot  { background: #d97706; }
.status-pill.bad   { border-color: rgba(190, 18, 60, .25); background: rgba(244, 63, 94, .08); color: #9f1239; }
.status-pill.bad .dot   { background: #e11d48; }

/* ---------- Misc utility-ish helpers the pages actually use -------------- */
/* These are semantic shorthands — not Tailwind utilities. They are named
   for the page element they style, not a single CSS property. */
.kbd { font-family: var(--font-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .85em; }

.split { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.stack-xl > * + * { margin-top: var(--sp-10); }

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--sp-4);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}