/* ==========================================================================
   Draco Safe Staff — marketing site styles · v2 "Midnight Steel"
   Design system: Draconum v7. Tokens only below the token block.
   Decorative depth (gradients, glows) uses steel-blue / slate-teal / slate-indigo.
   Functional status colors stay the v7 set (success / warning / error / info).
   Mobile-first: phone (≤640) → tablet (641–1024) → desktop (≥1025).
   ========================================================================== */

/* ---------- Tokens: light ---------- */
:root {
  --accent: #4a6280;
  --accent-strong: #3b516d;
  --accent-ink: #44607f;
  --accent-soft: rgba(74, 98, 128, .10);
  --accent-glow: rgba(74, 98, 128, .35);

  /* decorative spectrum (gradients only, never status) */
  --steel-300: #a9bed6;
  --steel-400: #7d9abb;
  --steel-500: #5b7ba1;
  --steel-600: #4a6280;
  --steel-700: #34475f;
  --teal-400: #6fa3a8;
  --teal-600: #3e6f76;
  --indigo-500: #5a6a9c;

  --ok: #4f7a64;      --ok-soft: rgba(79, 122, 100, .12);
  --warn: #8a6d3f;    --warn-soft: rgba(138, 109, 63, .12);
  --err: #9a4a52;     --err-soft: rgba(154, 74, 82, .12);
  --info: #4a6280;    --info-soft: rgba(74, 98, 128, .12);
  --k9: #44607f;

  --bg: #f4f6f9;
  --bg-2: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --surface-3: #e9edf3;
  --line: #e2e7ee;
  --line-strong: #cbd3de;
  --text: #121a24;
  --text-2: #33404f;
  --muted: #566273;
  --faint: #6c7686;

  --map-ground: #eef2f6;
  --map-block: #dde3eb;
  --map-zone: rgba(74, 98, 128, .14);
  --map-zone-line: rgba(74, 98, 128, .45);

  --card-border: linear-gradient(150deg, rgba(91, 123, 161, .38), rgba(226, 231, 238, .9) 38%, rgba(226, 231, 238, .9) 70%, rgba(62, 111, 118, .28));
  --icon-tile: linear-gradient(140deg, #5b7ba1 0%, #3e5a7a 55%, #3e6f76 100%);

  --ff: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.75rem, 1.25rem + 1.8vw, 2.625rem);
  --fs-3xl: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;
  --r-6: 6px; --r-8: 8px; --r-10: 10px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-24: 24px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-2: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -6px rgba(31, 45, 66, .14);
  --sh-3: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 42px -12px rgba(31, 45, 66, .24);
  --sh-glow: 0 10px 30px -10px rgba(74, 98, 128, .55);
  --ring: 0 0 0 3px rgba(91, 123, 161, .38);

  --tint-bg: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  --atmos-1: rgba(91, 123, 161, .20);
  --atmos-2: rgba(62, 111, 118, .14);
  --atmos-3: rgba(90, 106, 156, .12);
  --atmos-grid: rgba(74, 98, 128, .07);
  --header-bg: rgba(255, 255, 255, .78);
  --header-bg-solid: rgba(255, 255, 255, .94);
  --hover-wash: rgba(74, 98, 128, .07);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t-med: 240ms;
}

/* ---------- Tokens: dark (whole page in dark theme, and every .on-dark region) ---------- */
html[data-theme="dark"], .on-dark {
  --accent: #7d9abb;
  --accent-strong: #a9bed6;
  --accent-ink: #a9c0db;
  --accent-soft: rgba(125, 154, 187, .14);
  --accent-glow: rgba(125, 154, 187, .35);
  --ok: #78ab8f;   --ok-soft: rgba(120, 171, 143, .16);
  --warn: #b89a68; --warn-soft: rgba(184, 154, 104, .16);
  --err: #c97b84;  --err-soft: rgba(201, 123, 132, .18);
  --info: #94afcf; --info-soft: rgba(148, 175, 207, .16);
  --k9: #a9c0db;

  --bg: #0b1119;
  --bg-2: #0e151f;
  --surface: #131c27;
  --surface-2: #19232f;
  --surface-3: #212c3a;
  --line: rgba(169, 190, 214, .12);
  --line-strong: rgba(169, 190, 214, .22);
  --text: #eef2f7;
  --text-2: #cdd6e2;
  --muted: #a1adbd;
  --faint: #8692a3;

  --map-ground: #17202b;
  --map-block: #222d3b;
  --map-zone: rgba(125, 154, 187, .16);
  --map-zone-line: rgba(169, 190, 214, .5);

  --card-border: linear-gradient(150deg, rgba(169, 190, 214, .34), rgba(169, 190, 214, .08) 38%, rgba(169, 190, 214, .06) 70%, rgba(111, 163, 168, .3));
  --icon-tile: linear-gradient(140deg, #6d8db2 0%, #45607f 55%, #3e6f76 100%);

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 24px -8px rgba(0, 0, 0, .55);
  --sh-3: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 56px -14px rgba(0, 0, 0, .7);
  --sh-glow: 0 10px 34px -8px rgba(91, 123, 161, .6);
  --ring: 0 0 0 3px rgba(169, 190, 214, .45);
  --tint-bg: linear-gradient(180deg, #0a1018 0%, #0d1520 100%);
  --atmos-1: rgba(91, 123, 161, .50);
  --atmos-2: rgba(62, 111, 118, .34);
  --atmos-3: rgba(90, 106, 156, .26);
  --atmos-grid: rgba(169, 190, 214, .07);
  --header-bg: rgba(9, 14, 21, .80);
  --header-bg-solid: rgba(9, 14, 21, .94);
  --hover-wash: rgba(255, 255, 255, .06);
  color-scheme: dark;
}
html[data-theme="dark"] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--ff); font-size: var(--fs-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--text); margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); letter-spacing: -.038em; line-height: 1.04; }
h2 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
h3 { font-size: var(--fs-lg); letter-spacing: -.012em; font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s-4); }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
.tabular, table, time { font-variant-numeric: tabular-nums; }

/* Links are never underlined (house policy): color + weight 600 inside text. */
a { color: var(--accent-ink); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-strong); }
.text-link, .prose a, .form-note a { font-weight: 600; color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-6); }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--surface); color: var(--text); padding: var(--s-2) var(--s-4); border-radius: var(--r-8); box-shadow: var(--sh-3); font-weight: 600; }
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; flex: none; }

/* Gradient text accent for display headlines */
.grad-text {
  background: linear-gradient(100deg, #c9d8ea 0%, #93b2d4 38%, #8fbcbc 78%, #b9cfe6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.grad-text-ink {
  background: linear-gradient(100deg, var(--steel-600), var(--teal-600));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .grad-text-ink { background-image: linear-gradient(100deg, #a9c0db, #8fbcbc); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6); border-radius: var(--r-12); border: 1px solid transparent;
  font: inherit; font-size: var(--fs-md); font-weight: 500; line-height: 1; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6283aa 0%, #4a6280 55%, #3f5674 100%);
  border-color: rgba(30, 44, 62, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 24, 40, .25), var(--sh-glow);
}
.btn-primary:hover { color: #fff; filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 1px 2px rgba(16, 24, 40, .25), 0 14px 36px -8px rgba(74, 98, 128, .7); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--sh-2); }
.on-dark .btn-secondary, .btn-glass {
  color: #eef2f7; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.on-dark .btn-secondary:hover, .btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .26); }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-sm); border-radius: var(--r-10); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; filter: saturate(.6) brightness(.95); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-10); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.icon-btn:hover { background: var(--hover-wash); color: var(--text); }

/* ---------- Header (glass; draco_b on light, draco_w on dark) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled { background: var(--header-bg-solid); box-shadow: 0 8px 24px -16px rgba(31, 45, 66, .35); }
.brand-mark--dark { display: none; }
html[data-theme="dark"] .brand-mark--light { display: none; }
html[data-theme="dark"] .brand-mark--dark { display: block; }
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-family: "Rockwell", "Roboto Slab", "Charter", "Bitstream Charter", "Georgia", "Times New Roman", serif;
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; padding-top: 2px;
  background: linear-gradient(180deg, #2b4a7c 0%, #1b3360 55%, #0f2147 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.wordmark-tag { margin-top: 1px; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }
html[data-theme="dark"] .wordmark-name, .on-dark .wordmark-name { background-image: linear-gradient(180deg, #e3ecf7 0%, #b9cbe0 60%, #93aecd 100%); }
.footer-brand .wordmark-name { font-size: 1.375rem; }

.nav-primary { display: none; margin-left: auto; }
.nav-primary ul { display: flex; gap: 2px; list-style: none; }
.nav-primary a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-3); border-radius: var(--r-8); color: var(--muted); font-size: var(--fs-sm); font-weight: 500; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.nav-primary a:hover { color: var(--text); background: var(--hover-wash); }
.nav-primary a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-primary a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--steel-400), var(--teal-400)); }

.header-actions { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.header-cta { display: none; }
.ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
.ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding: var(--s-3) var(--gutter) var(--s-6); box-shadow: 0 24px 40px -20px rgba(31, 45, 66, .35); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin-bottom: var(--s-4); }
.mobile-nav li a { display: flex; align-items: center; min-height: 50px; padding: 0 var(--s-3); border-radius: var(--r-10); color: var(--text); font-weight: 500; }
.mobile-nav li a:hover, .mobile-nav li a[aria-current="page"] { background: var(--hover-wash); }
.mobile-nav li a[aria-current="page"] { font-weight: 600; }

/* ---------- Atmosphere: mesh gradients + grid (theme-aware) ---------- */
.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.atmos::before {
  content: ""; position: absolute; inset: -30% -10% -10% -10%;
  background:
    radial-gradient(42% 52% at 80% 14%, var(--atmos-1), transparent 70%),
    radial-gradient(34% 44% at 10% 6%, var(--atmos-2), transparent 70%),
    radial-gradient(40% 50% at 55% 96%, var(--atmos-3), transparent 72%),
    radial-gradient(28% 34% at 99% 72%, var(--atmos-2), transparent 70%);
}
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--atmos-grid) 1px, transparent 1px), linear-gradient(90deg, var(--atmos-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 30%, #000 30%, transparent 78%);
}
.atmos-soft::before { opacity: .6; }

/* ---------- Tinted regions (light by default; deep navy in dark theme) ---------- */
.tint { background: var(--tint-bg); position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.tint > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-16) 0 var(--s-20); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-12); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: var(--s-6); max-width: 34rem; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero-ctas.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-8); list-style: none; color: var(--muted); font-size: var(--fs-sm); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-points .ico { width: 18px; height: 18px; color: var(--ok); }

.pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 7px 14px 7px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft), 0 0 12px var(--ok); }

/* Capability strip floating over the hero edge */
.cap-strip { position: relative; z-index: 2; margin-top: calc(-1 * var(--s-12)); }
.cap-strip-inner {
  display: grid; grid-template-columns: 1fr; gap: 1px; overflow: hidden;
  border-radius: var(--r-20); background: var(--line); box-shadow: var(--sh-3);
  border: 1px solid var(--line);
}
.cap { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-5); background: var(--surface); }
.cap .ico { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.cap strong { display: block; font-size: var(--fs-sm); color: var(--text); }
.cap span { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* Inner page hero */
.page-hero { padding: var(--s-16) 0 var(--s-16); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); max-width: 22ch; }
.page-hero .lead { margin-top: var(--s-5); max-width: 44rem; color: var(--muted); font-size: var(--fs-lg); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--s-20) 0; }
.section-tight { padding: var(--s-12) 0; }
.section-alt { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-wash::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 100% 0%, var(--accent-soft), transparent 70%), radial-gradient(30% 40% at 0% 100%, rgba(62, 111, 118, .07), transparent 70%); }
.section > .container { position: relative; }
.section-head { max-width: 760px; margin-bottom: var(--s-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin-top: var(--s-4); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--steel-400), var(--teal-400)); }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal-400), var(--steel-400)); }
.lead { font-size: var(--fs-lg); color: var(--text-2); }

/* Dark feature band */
.band { overflow: hidden; }
.showcase { background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
html[data-theme="dark"] .showcase { background: var(--tint-bg); }
.showcase > .container { position: relative; z-index: 1; }

/* ---------- Device illustration ---------- */
.devices { position: relative; max-width: 640px; margin: 0 auto; width: 100%; }
.devices::before { content: ""; position: absolute; inset: 8% 4% 0 4%; background: radial-gradient(closest-side, var(--atmos-1), transparent); filter: blur(30px); z-index: 0; }
.devices svg { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 30px 44px rgba(31, 45, 66, .28)); }
html[data-theme="dark"] .devices svg { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.dv-frame { fill: var(--surface); stroke: var(--line-strong); }
.dv-bezel { fill: #05080c; stroke: rgba(169, 190, 214, .22); stroke-width: 1.5; }
.dv-screen { fill: var(--surface); }
.dv-screen-2 { fill: var(--surface-2); }
.dv-ground { fill: var(--map-ground); }
.dv-block { fill: var(--map-block); }
.dv-zone { fill: var(--map-zone); stroke: var(--map-zone-line); stroke-width: 1.2; stroke-dasharray: 4 3; }
.dv-text { fill: var(--text); font-family: var(--ff); }
.dv-muted { fill: var(--muted); font-family: var(--ff); }
.dv-faint { fill: var(--faint); }
.dv-line { stroke: var(--line-strong); }
.dv-card { fill: var(--surface); stroke: var(--line); }
.dv-accent { fill: var(--accent); }
.dv-accent-stroke { stroke: var(--accent); }
.dv-err { fill: var(--err); }
.dv-err-soft { fill: var(--err-soft); }
.dv-err-stroke { stroke: var(--err); }
.dv-ok { fill: var(--ok); }
.dv-ok-soft { fill: var(--ok-soft); }
.dv-info-soft { fill: var(--info-soft); }
.dv-ring { fill: var(--err-soft); stroke: var(--err); stroke-width: 1.2; stroke-opacity: .7; }
.dv-route { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.dv-white { fill: #fff; }
.dv-wall { stroke: var(--line-strong); }
.dv-ring-accent { stroke: var(--accent); stroke-width: 2; }
.dv-scale { stroke: var(--muted); }
.dv-err-line { stroke: var(--err); }
.dv-island { fill: #05080c; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .6; transform: scale(.85); } 70% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }

/* ---------- Cards (gradient hairline + layered shadow) ---------- */
.grid { display: grid; gap: var(--s-5); }
.card {
  position: relative; border-radius: var(--r-16); padding: var(--s-6) var(--s-6) var(--s-8);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-border) border-box;
  box-shadow: var(--sh-2);
  transition: box-shadow var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: var(--r-16) var(--r-16) 0 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); pointer-events: none; }
.on-dark .card::before, html[data-theme="dark"] .card::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
a.card { color: inherit; display: block; }
a.card:hover, .card:hover { box-shadow: var(--sh-3); color: inherit; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.card-icon {
  position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-5);
  border-radius: var(--r-12); background: var(--icon-tile); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 20px -8px rgba(62, 90, 122, .7);
}
.card-icon .ico { width: 22px; height: 22px; stroke-width: 1.9; }
.card-link { display: inline-flex; align-items: center; gap: var(--s-1); margin-top: var(--s-5); font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }
.card-link .ico { width: 16px; height: 16px; }

/* Steps: connected timeline */
.steps { list-style: none; display: grid; gap: var(--s-4); position: relative; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5); border-radius: var(--r-16); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-border) border-box; box-shadow: var(--sh-2); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--icon-tile); color: #fff; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -10px rgba(62, 90, 122, .8);
}
.step h3 { margin-bottom: var(--s-1); }
.step p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.step-time { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); font-size: 11px; font-weight: 600; color: var(--accent-ink); letter-spacing: .06em; text-transform: uppercase; }

/* Feature checklist */
.checks { list-style: none; display: grid; gap: var(--s-4); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; }
.checks .ico { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checks strong { display: block; color: var(--text); }
.checks span.muted { font-size: var(--fs-sm); }

/* Alert-type chips (status color + icon + text) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; box-shadow: var(--sh-1); }
.chip .ico { width: 16px; height: 16px; }
.chip-critical { color: var(--err); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--err), transparent 70%) border-box; border-color: transparent; }
.chip-critical .ico { color: var(--err); }
.chip-high { color: var(--warn); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--warn), transparent 70%) border-box; border-color: transparent; }
.chip-normal { color: var(--info); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--info), transparent 70%) border-box; border-color: transparent; }
.chip-k9 { color: var(--k9); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--teal-400), transparent 70%) border-box; border-color: transparent; }
.chip-custom { color: var(--muted); border-style: dashed; border-color: var(--line-strong); box-shadow: none; background: transparent; }

/* Split layout */
.split { display: grid; gap: var(--s-12); align-items: center; }
.split-copy h2 { margin-bottom: var(--s-5); }
.split-copy > p { color: var(--muted); font-size: var(--fs-lg); margin-bottom: var(--s-8); }

/* Callouts */
.callout { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); align-items: start; border-radius: var(--r-16); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--info); }
.callout .ico { width: 22px; height: 22px; margin-top: 2px; }
.callout p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; }
.callout strong { color: var(--text); }
.callout-info::before { background: linear-gradient(180deg, var(--steel-400), var(--teal-400)); }
.callout-info .ico { color: var(--info); }
.callout-warn::before { background: var(--warn); }
.callout-warn .ico { color: var(--warn); }
.callout-ok::before { background: var(--ok); }
.callout-ok .ico { color: var(--ok); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-24); padding: var(--s-16) var(--s-6); text-align: center; box-shadow: var(--sh-3); border: 1px solid transparent; background: linear-gradient(var(--tint-bg-solid, #f3f7fb), var(--tint-bg-solid, #f3f7fb)) padding-box, var(--card-border) border-box; }
html[data-theme="dark"] .cta-band { --tint-bg-solid: #0e1620; }
.cta-band > *:not(.atmos) { position: relative; z-index: 1; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band p { max-width: 40rem; margin: var(--s-5) auto 0; color: var(--muted); font-size: var(--fs-lg); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .eyebrow { justify-content: center; }

/* Facts */
.facts { display: grid; gap: var(--s-4); }
.fact { position: relative; padding: var(--s-6); border-radius: var(--r-16); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-border) border-box; box-shadow: var(--sh-2); }
.fact::after { content: ""; position: absolute; left: var(--s-6); top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--steel-400), var(--teal-400)); }
.fact-k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fact-v { margin-top: var(--s-2); font-size: var(--fs-lg); font-weight: 600; color: var(--text); letter-spacing: -.01em; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-16); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th, table.data td { text-align: left; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; background: var(--surface-2); }
table.data td { color: var(--text-2); }
table.data tbody tr:nth-child(even) td { background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Prose (legal) ---------- */
.prose-wrap { display: grid; gap: var(--s-8); }
.prose { max-width: 74ch; color: var(--text-2); }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-12) 0 var(--s-3); padding-top: var(--s-2); }
.prose h3 { font-size: var(--fs-md); margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose li { line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: var(--s-3) 0; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--steel-400); }
.prose > :first-child { margin-top: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: none; padding: var(--s-5); border-radius: var(--r-16); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.toc h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: var(--s-3); }
.toc ol { list-style: none; }
.toc a { display: block; padding: 6px var(--s-3); border-radius: var(--r-8); font-size: var(--fs-sm); color: var(--muted); }
.toc a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Forms ---------- */
.form-card { position: relative; border-radius: var(--r-24); padding: var(--s-6); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-border) border-box; box-shadow: var(--sh-3); }
.form-grid { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--faint); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px var(--s-4); border-radius: var(--r-10); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-md); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); -webkit-appearance: none; appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 156px; resize: vertical; line-height: 1.55; }
.select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background-color: var(--surface); box-shadow: var(--ring); outline: none; }
.field-error { display: none; align-items: center; gap: var(--s-2); color: var(--err); font-size: var(--fs-sm); font-weight: 500; }
.field-error .ico { width: 16px; height: 16px; }
.field.has-error .field-error { display: flex; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-xs); color: var(--faint); line-height: 1.6; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.grecaptcha-badge { visibility: hidden; }
.form-success { text-align: center; padding: var(--s-10) var(--s-4); }
.form-success > .ico { width: 56px; height: 56px; color: var(--ok); margin: 0 auto var(--s-5); }
.form-success h2 { font-size: var(--fs-xl); }
.form-success p { color: var(--muted); margin-top: var(--s-3); }
.contact-grid { display: grid; gap: var(--s-10); align-items: start; }

/* ---------- Toasts (top-right, self-closing) ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 12px; left: 12px; z-index: 90; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; width: 100%; max-width: 384px; position: relative; overflow: hidden; display: grid; grid-template-columns: 22px 1fr 32px; gap: var(--s-3); align-items: start; padding: var(--s-4); border-radius: var(--r-16); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); color: var(--text); font-size: var(--fs-sm); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ico { width: 22px; height: 22px; }
.toast-ok .ico { color: var(--ok); }
.toast-err .ico { color: var(--err); }
.toast-info .ico { color: var(--info); }
.toast strong { display: block; margin-bottom: 2px; }
.toast p { color: var(--muted); }
.toast-close { width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; background: transparent; color: var(--faint); border-radius: var(--r-8); cursor: pointer; display: grid; place-items: center; }
.toast-close:hover { background: var(--surface-2); color: var(--text); }
.toast-close .ico { width: 16px; height: 16px; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: currentColor; opacity: .3; }
.toast-ok .toast-bar { color: var(--ok); }
.toast-err .toast-bar { color: var(--err); }
.toast-info .toast-bar { color: var(--info); }

/* ---------- Footer (corporate navy; draco_w mark) ---------- */
.site-footer { margin-top: auto; position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #0f1a2b 0%, #0a1220 100%); color: var(--text-2); font-size: var(--fs-sm); }
.site-footer > .container { position: relative; z-index: 1; }
.footer-cta { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-12) 0; border-bottom: 1px solid var(--line); }
.footer-cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); color: #fff; }
.footer-cta p { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-md); }
.footer-cta .hero-ctas { margin-top: 0; }
.footer-main { display: grid; gap: var(--s-10); padding: var(--s-12) 0 var(--s-10); }
.footer-brand .brand { color: #fff; }
.footer-brand p.footer-about { margin-top: var(--s-5); max-width: 36ch; color: var(--muted); line-height: 1.7; }
.footer-contact { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.footer-contact li { display: flex; align-items: center; gap: var(--s-3); color: var(--text-2); }
.footer-contact .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.footer-contact a { color: var(--text-2); font-weight: 500; }
.footer-contact a:hover { color: #fff; }
.footer-badge { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-6); padding: 6px 12px; border-radius: var(--r-pill); background: rgba(120, 171, 143, .12); border: 1px solid rgba(120, 171, 143, .3); color: #b6d7c5; font-size: var(--fs-xs); font-weight: 600; }
.footer-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.footer-cols { display: grid; gap: var(--s-8); grid-template-columns: 1fr 1fr; }
.footer-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: var(--s-4); opacity: .9; }
.site-footer nav ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer nav a { color: var(--muted); display: inline-flex; min-height: 28px; align-items: center; transition: color var(--t-fast) var(--ease); }
.site-footer nav a:hover { color: #fff; }
.footer-emergency { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-4) var(--s-5); border-radius: var(--r-12); background: rgba(184, 154, 104, .10); border: 1px solid rgba(184, 154, 104, .25); }
.footer-emergency .ico { color: var(--warn); margin-top: 2px; }
.footer-emergency p { color: var(--text-2); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); padding: var(--s-6) 0 var(--s-8); border-top: 1px solid var(--line); color: var(--faint); font-size: var(--fs-xs); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; }
.footer-legal a { color: var(--faint); }
.footer-legal a:hover { color: #fff; }

/* ---------- Error page ---------- */
.error-wrap { min-height: 64dvh; display: grid; place-items: center; text-align: center; padding: var(--s-20) 0; overflow: hidden; }
.error-code { display: inline-block; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.error-wrap h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin: var(--s-4) auto 0; max-width: 20ch; }
.error-wrap p { color: var(--muted); max-width: 36rem; margin: var(--s-5) auto 0; font-size: var(--fs-lg); }
.error-wrap .hero-ctas { justify-content: center; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: 28px; } .mt-8 { margin-top: var(--s-8); } .mt-10 { margin-top: var(--s-10); }
.h3-like { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.012em; line-height: 1.3; margin-bottom: var(--s-2); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Tablet (641–1024) ---------- */
@media (min-width: 641px) {
  :root { --gutter: 32px; --header-h: 70px; }
  .section { padding: var(--s-24) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: inline-flex; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cta { grid-template-columns: 1fr auto; }
  .form-card { padding: var(--s-10); }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .cta-band { padding: var(--s-20) var(--s-12); }
  .toast-stack { left: auto; right: 20px; }
  .cap-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: var(--s-20) 0 var(--s-24); }
  .page-hero { padding: var(--s-20) 0; }
}

/* ---------- Desktop (≥1025) ---------- */
@media (min-width: 1025px) {
  .nav-primary { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-actions { margin-left: var(--s-3); }
  .hero { padding: var(--s-20) 0 var(--s-32); }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-12); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cap-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .split .facts { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-row { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
  .steps.steps-row::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--steel-400), var(--teal-400), var(--steel-400), transparent); opacity: .5; z-index: 0; }
  .steps.steps-row .step { grid-template-columns: 1fr; align-content: start; z-index: 1; }
  .split { grid-template-columns: 1fr 1.1fr; gap: var(--s-20); }
  .split.reverse .split-copy { order: 2; }
  .footer-main { grid-template-columns: 1.15fr 2fr; gap: var(--s-16); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .prose-wrap { grid-template-columns: 240px 1fr; gap: var(--s-12); }
  .toc { display: block; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pulse { display: none; }
}

/* ==========================================================================
   Marketing components (v1.2)
   ========================================================================== */

/* Hero trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); }
.trust-chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; box-shadow: var(--sh-1); }
.trust-chip .ico { width: 16px; height: 16px; color: var(--ok); }

/* Statistics with sources */
.stats { display: grid; gap: var(--s-5); }
.stat { position: relative; padding: var(--s-8) var(--s-6) var(--s-6); border-radius: var(--r-20); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-border) border-box; box-shadow: var(--sh-2); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, var(--atmos-1), transparent); pointer-events: none; }
.stat-num { font-size: clamp(2.75rem, 2rem + 2.6vw, 3.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, var(--steel-600), var(--teal-600)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html[data-theme="dark"] .stat-num { background-image: linear-gradient(100deg, #a9c0db, #8fbcbc); }
.stat-label { margin-top: var(--s-4); font-size: var(--fs-md); font-weight: 600; color: var(--text); line-height: 1.45; }
.stat-src { display: block; margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--faint); line-height: 1.5; }
.stat-src a { font-weight: 600; }

/* Before / after contrast */
.contrast { display: grid; gap: var(--s-5); }
.contrast-col { border-radius: var(--r-20); padding: var(--s-8) var(--s-6); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.contrast-col.is-after { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--steel-400), rgba(111, 163, 168, .7)) border-box; box-shadow: var(--sh-3); }
.contrast-col h3 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); font-size: var(--fs-xl); }
.contrast-tag { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.is-before .contrast-tag { background: var(--surface-3); color: var(--muted); }
.is-after .contrast-tag { background: var(--accent-soft); color: var(--accent-ink); }
.contrast ul { list-style: none; display: grid; gap: var(--s-4); }
.contrast li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.contrast li .ico { width: 20px; height: 20px; margin-top: 1px; }
.is-before li .ico { color: var(--faint); }
.is-after li .ico { color: var(--ok); }

/* Comparison table */
.compare { min-width: 760px; }
.compare th:first-child, .compare td:first-child { width: 30%; font-weight: 600; color: var(--text); }
.compare th.is-us, .compare td.is-us { background: var(--accent-soft) !important; color: var(--text); font-weight: 600; }
.compare thead th.is-us { color: var(--accent-ink); }
.cmp { display: inline-flex; align-items: center; gap: 6px; }
.cmp .ico { width: 18px; height: 18px; }
.cmp-yes .ico { color: var(--ok); }
.cmp-no .ico { color: var(--faint); }
.cmp-part .ico { color: var(--warn); }
.compare-note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--faint); }

/* Persona / audience cards */
.persona-role { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--s-2); }
.card ul.mini { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.card ul.mini li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.card ul.mini .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }

/* Feature list (features page) */
.feature-group + .feature-group { margin-top: var(--s-16); }
.feature-group-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-8); }
.feature-group-head .card-icon { margin: 0; }
.feature-group-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.feature-group-head p { color: var(--muted); margin-top: 4px; }
.feat { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-16); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.feat .ico { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 2px; }
.feat strong { display: block; color: var(--text); font-size: var(--fs-md); }
.feat span { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* FAQ accordion */
.faq-group + .faq-group { margin-top: var(--s-12); }
.faq-group h2 { font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.faq { display: grid; gap: var(--s-3); }
.faq details { border-radius: var(--r-16); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.faq details[open] { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); font-weight: 600; color: var(--text); font-size: var(--fs-md); min-height: 56px; border-radius: var(--r-16); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--muted); transition: transform var(--t-med) var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .faq-a { padding: 0 var(--s-6) var(--s-6); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; max-width: 76ch; }

/* Article (resources) */
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin: var(--s-12) 0 var(--s-4); }
.article h3 { margin: var(--s-8) 0 var(--s-2); }
.article p, .article li { color: var(--text-2); line-height: 1.8; }
.article p + p { margin-top: var(--s-4); }
.article ul, .article ol { padding-left: 1.25rem; margin: var(--s-4) 0; }
.article li + li { margin-top: var(--s-2); }
.article li::marker { color: var(--steel-400); }
.article .callout { margin: var(--s-6) 0; }
.article-layout { display: grid; gap: var(--s-10); }
.sources { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.sources h2 { font-size: var(--fs-md); margin: 0 0 var(--s-3); }
.sources ol { padding-left: 1.25rem; color: var(--muted); }
.sources a { font-weight: 600; word-break: break-word; }
.checklist { list-style: none !important; padding-left: 0 !important; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-12); background: var(--surface); border: 1px solid var(--line); }
.checklist li .ico { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }

@media (min-width: 641px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contrast { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .article-layout { grid-template-columns: 1fr 300px; gap: var(--s-16); }
  .grid-2-feats { grid-template-columns: repeat(2, 1fr); }
}
.container-narrow { max-width: 900px; }
main:has(.cta-band) + .site-footer .footer-cta { display: none; }
@media (max-width: 400px) {
  .site-header .wordmark-name { font-size: 1.25rem; }
  .site-header .wordmark-tag { font-size: 10px; letter-spacing: 0; }
  .site-header .brand-mark { width: 38px; height: 38px; }
  .site-header .brand { gap: var(--s-2); }
}
