/* VxSure website styles. Plain CSS, no framework.
   Layout concept: one 1400px container shared by header, content and footer;
   every section opens with the problem it solves, then the mechanism.
   Tokens follow the VxSure design system (Inter, brand blue, true neutral grey). */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

/* ---------- Tokens ----------
   Dark-first: dark is the default when the device gives no preference.
   Light applies when the device prefers light or the visitor chooses it. */
:root {
  --bg: #09090B;
  --surface: #18181B;
  --surface-2: #27272A;
  --fg: #E4E4E7;
  --fg-strong: #FAFAFA;
  --muted: #A1A1AA;
  --border: #27272A;
  --border-strong: #3F3F46;
  --border-control: #52525B;
  --accent: #016AF3;
  --accent-hover: #0155C2;
  --accent-active: #0155C2;
  --accent-border: #3B82F6;
  --accent-text: #60A5FA;
  --accent-surface: #102A43;
  --accent-surface-2: #153D63;
  --on-accent: #FFFFFF;
  --focus: #60A5FA;
  --cyan: #5ED4FD;
  --risk: #F59E0B;
  --risk-surface: #452A0A;
  --risk-text: #FEC84B;
  --success-text: #75E0A7;
  --success-bg: #073D2A;
  --warning-text: #FEC84B;
  --warning-bg: #452A0A;
  --error-text: #FDA29B;
  --error-border: #FDA29B;
  --disabled-bg: #27272A;
  --disabled-text: #A1A1AA;
  --disabled-border: #3F3F46;
  --header-bg: #09090B;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  --logo-light: none;
  --logo-dark: inline-block;

  --grad-logo: linear-gradient(135deg, #147CFA 0%, #0E9BFD 50%, #5ED4FD 100%);

  /* type: Inter for all text; system monospace only for technical labels
     (protocols, control names, diagram nodes, Problem tags), never running text */
  --font-sans: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* layout */
  --container-max: 1400px;
  --gutter: 16px;
  --section-gap: 48px;
  --group-gap: 24px;
  --card-pad: 16px;
  --grid-gap: 16px;
  --header-h: 64px;
  --radius-xs: 4px;
  --radius-md: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  --ease: 120ms ease-out;

  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFFFF;
    --surface: #FAFAFA;
    --surface-2: #F4F4F5;
    --fg: #18181B;
    --fg-strong: #09090B;
    --muted: #52525B;
    --border: #E4E4E7;
    --border-strong: #D4D4D8;
    --border-control: #71717A;
    --accent: #016AF3;
    --accent-hover: #0155C2;
    --accent-active: #0155C2;
    --accent-border: #016AF3;
    --accent-text: #0155C2;
    --accent-surface: #EBF3FE;
    --accent-surface-2: #D6E7FD;
    --on-accent: #FFFFFF;
    --focus: #016AF3;
    --cyan: #0E9BFD;
    --risk: #F59E0B;
    --risk-surface: #FFFAEB;
    --risk-text: #93370D;
    --success-text: #05603A;
    --success-bg: #ECFDF3;
    --warning-text: #93370D;
    --warning-bg: #FFFAEB;
    --error-text: #B42318;
    --error-border: #D92D20;
    --disabled-bg: #F4F4F5;
    --disabled-text: #52525B;
    --disabled-border: #D4D4D8;
    --header-bg: #FFFFFF;
    --shadow-float: 0 8px 24px rgba(0, 21, 49, 0.10), 0 2px 6px rgba(0, 21, 49, 0.06);
    --logo-light: inline-block;
    --logo-dark: none;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F4F4F5;
  --fg: #18181B;
  --fg-strong: #09090B;
  --muted: #52525B;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --border-control: #71717A;
  --accent: #016AF3;
  --accent-hover: #0155C2;
  --accent-active: #0155C2;
  --accent-border: #016AF3;
  --accent-text: #0155C2;
  --accent-surface: #EBF3FE;
  --accent-surface-2: #D6E7FD;
  --on-accent: #FFFFFF;
  --focus: #016AF3;
  --cyan: #0E9BFD;
  --risk: #F59E0B;
  --risk-surface: #FFFAEB;
  --risk-text: #93370D;
  --success-text: #05603A;
  --success-bg: #ECFDF3;
  --warning-text: #93370D;
  --warning-bg: #FFFAEB;
  --error-text: #B42318;
  --error-border: #D92D20;
  --disabled-bg: #F4F4F5;
  --disabled-text: #52525B;
  --disabled-border: #D4D4D8;
  --header-bg: #FFFFFF;
  --shadow-float: 0 8px 24px rgba(0, 21, 49, 0.10), 0 2px 6px rgba(0, 21, 49, 0.06);
  --logo-light: inline-block;
  --logo-dark: none;
  color-scheme: light;
}

/* Dark band: a full-width section that stays dark in both themes */
.band-dark {
  --bg: #09090B;
  --surface: #18181B;
  --surface-2: #27272A;
  --fg: #E4E4E7;
  --fg-strong: #FAFAFA;
  --muted: #A1A1AA;
  --border: #27272A;
  --border-strong: #3F3F46;
  --border-control: #52525B;
  --accent: #016AF3;
  --accent-hover: #0155C2;
  --accent-active: #0155C2;
  --accent-border: #3B82F6;
  --accent-text: #60A5FA;
  --accent-surface: #102A43;
  --accent-surface-2: #153D63;
  --on-accent: #FFFFFF;
  --focus: #60A5FA;
  --cyan: #5ED4FD;
  --risk: #F59E0B;
  --risk-surface: #452A0A;
  --risk-text: #FEC84B;
  --success-text: #75E0A7;
  --success-bg: #073D2A;
  --warning-text: #FEC84B;
  --warning-bg: #452A0A;
  --error-text: #FDA29B;
  --error-border: #FDA29B;
  --disabled-bg: #27272A;
  --disabled-text: #A1A1AA;
  --disabled-border: #3F3F46;
  --header-bg: #09090B;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  --logo-light: none;
  --logo-dark: inline-block;
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --section-gap: 64px; --group-gap: 32px; --card-pad: 24px; --grid-gap: 20px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --section-gap: 96px; --grid-gap: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--accent-surface-2); color: var(--fg-strong); }
strong, b { font-weight: 600; color: var(--fg-strong); }
code, kbd { font-family: var(--font-mono); font-size: 0.875em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--fg-strong); font-weight: 600; text-wrap: balance; }
.display-lg { font-size: 3rem; line-height: 1.1; letter-spacing: -0.03em; }
.display-sm, h1 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 640px) {
  .display-lg { font-size: 3.5rem; }
  .display-sm, h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}
@media (min-width: 1024px) {
  .display-lg { font-size: 4rem; }
  .display-sm, h1 { font-size: 3rem; }
}
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.body-lg { font-size: 1.125rem; line-height: 1.6; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.overline {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.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;
}

/* ---------- Container ---------- */
.vx-container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.reading { max-width: 65ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent-border); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-primary:active { background: var(--accent-active); }
.btn-secondary { background: var(--bg); color: var(--fg-strong); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.btn-sm { min-height: 36px; height: 36px; padding: 6px 14px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--disabled-bg); color: var(--disabled-text); border-color: var(--disabled-border); cursor: not-allowed;
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.arrow::after { content: " \2192"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand-logo-link {
  display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0;
  justify-self: start; border-radius: var(--radius-xs);
}
.brand-logo { width: 118px; height: auto; }
.brand-logo-light { display: var(--logo-light); }
.brand-logo-dark { display: var(--logo-dark); }
.site-nav { display: none; }
.site-nav a {
  display: inline-flex; align-items: center; height: 38px; padding: 6px 11px;
  border-radius: var(--radius-md);
  color: var(--fg); font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--fg-strong); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-surface); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.header-cta { display: none; }

.icon-btn {
  display: inline-grid; place-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: transparent; color: var(--fg-strong); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-sun { display: var(--logo-dark); }
.theme-icon-moon { display: var(--logo-light); }

.nav-toggle-open, .nav-toggle[aria-expanded="true"] .nav-toggle-closed { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: block; }

.mobile-nav {
  border-top: 1px solid var(--border);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding-block: 8px 24px;
}
.mobile-nav ul { list-style: none; display: grid; gap: 2px; }
.mobile-nav a.mobile-link {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
  border-radius: var(--radius-md); color: var(--fg-strong); font-weight: 500; text-decoration: none;
}
.mobile-nav a.mobile-link:hover { background: var(--surface-2); }
.mobile-nav a.mobile-link[aria-current="page"] { color: var(--accent-text); background: var(--accent-surface); }
.mobile-nav .btn { width: 100%; margin-top: 16px; }

@media (min-width: 640px) {
  .brand-logo { width: 142px; }
  .header-cta { display: inline-flex; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
}
@media (min-width: 1240px) {
  .site-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-nav { display: flex !important; justify-self: center; align-items: center; gap: 4px; }
  .nav-toggle { display: none !important; }
  .mobile-nav { display: none !important; }
  .header-actions { justify-self: end; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: var(--section-gap); }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.section-head { display: grid; align-content: start; gap: 16px; max-width: 72ch; margin-bottom: var(--group-gap); }
.section-head p { color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.section-head > .overline { color: var(--accent-text); font-size: 0.75rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Problem line: each section states the problem it solves */
.section-head > p.problem, .problem {
  display: block;
  font-size: 0.875rem; line-height: 1.6; color: var(--muted); max-width: 80ch;
}
.problem-tag {
  display: inline-block; margin-right: 10px; vertical-align: 1px;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-surface);
  padding: 2px 8px; border-radius: var(--radius-xs);
}

/* ---------- Hero ---------- */
.hero { padding-block: 48px var(--section-gap); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy .lead { margin-top: 4px; }
.hero-sub { font-size: 0.875rem; color: var(--muted); }
.hero-sub a { font-weight: 500; }
.proof-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.proof-strip li {
  font-size: 0.8125rem; font-weight: 500; color: var(--fg);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg);
}
.page-hero { padding-block: 48px var(--section-gap); border-bottom: 1px solid var(--border); }
.page-hero .hero-copy { max-width: 820px; }
@media (min-width: 1024px) {
  .hero { padding-block: 80px var(--section-gap); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
  .page-hero { padding-block: 80px 72px; }
}

/* ---------- Request path diagram (HTML) ---------- */
.path-diagram {
  border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--surface);
  padding: 20px; min-width: 0;
}
.path-diagram figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 16px; }
.path-steps { list-style: none; display: grid; gap: 0; }
.path-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.path-step:last-child { padding-bottom: 0; }
.path-step::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border-strong);
}
.path-step:last-child::before { display: none; }
.path-dot {
  width: 28px; height: 28px; border-radius: var(--radius-full);
  display: grid; place-content: center;
  background: var(--bg); border: 2px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--muted);
}
.path-step-title { font-size: 0.9375rem; font-weight: 600; color: var(--fg-strong); line-height: 1.4; padding-top: 3px; }
.path-step-meta { font-size: 0.8125rem; color: var(--muted); }
.path-step.is-engine .path-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.path-engine {
  margin-top: 10px; padding: 14px; border-radius: var(--radius-md);
  border: 1px solid var(--accent); background: var(--accent-surface);
}
.path-engine-title { font-size: 0.8125rem; font-weight: 600; color: var(--fg-strong); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  padding: 3px 8px; border-radius: var(--radius-xs);
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
}
.chip-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Engine diagram ---------- */
.engine-diagram {
  display: grid; gap: 16px; padding: 20px; border-radius: var(--radius-2xl);
  border: 1px solid var(--border); background: var(--surface); min-width: 0;
}
.engine-row { display: grid; gap: 10px; }
.engine-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.engine-core {
  border: 1px solid var(--accent); background: var(--accent-surface); border-radius: var(--radius-md); padding: 16px;
}
.engine-core-title { font-weight: 600; color: var(--fg-strong); font-size: 0.9375rem; }
.engine-arrow { justify-self: center; color: var(--muted); font-size: 1.25rem; line-height: 1; }
.outcome-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.outcome {
  text-align: center; padding: 8px 6px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg); font-size: 0.8125rem; font-weight: 600; color: var(--fg-strong);
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: var(--grid-gap); }
.grid > * { min-width: 0; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--card-pad); border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--bg);
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 1.125rem; line-height: 1.4; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card .card-foot { margin-top: auto; padding-top: 8px; }
.split { display: grid; gap: var(--group-gap); }
.split > *, .stack-lg > *, .stack > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.panel { padding: var(--card-pad); border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--bg); }
.panel-accent { border-color: var(--accent); background: var(--accent-surface); }
.panel h3 { margin-bottom: 16px; font-size: 1.125rem; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; line-height: 1.55; }
.check-list li::before {
  content: ""; width: 8px; height: 8px; margin: 8px 0 0 6px; border-radius: 2px; background: var(--accent);
}
.check-list strong { color: var(--fg-strong); }

.pullquote {
  margin-top: var(--group-gap); padding: 20px 24px; border-radius: var(--radius-2xl);
  background: var(--fg-strong); color: var(--bg); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
}

/* ---------- Service rows (responsive table substitute) ---------- */
.service-table { border: 1px solid var(--border); border-radius: var(--radius-2xl); overflow: hidden; background: var(--bg); }
.service-head { display: none; }
.service-row { display: grid; gap: 10px; padding: 18px var(--card-pad); border-top: 1px solid var(--border); }
.service-row:first-of-type { border-top: 0; }
.service-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.service-name h3 { font-size: 1rem; line-height: 1.4; }
.service-cell { font-size: 0.9375rem; line-height: 1.55; color: var(--fg); }
.service-cell-label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 500; line-height: 1.5; padding: 1px 8px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong); color: var(--fg); background: var(--surface);
  white-space: nowrap;
}
.badge-power { border-color: var(--accent); color: var(--accent-text); background: var(--accent-surface); }
.badge-advanced { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
@media (min-width: 1024px) {
  .service-head, .service-row {
    display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr) minmax(0, 3.4fr); gap: 24px;
  }
  .service-head {
    padding: 12px var(--card-pad); background: var(--surface); border-bottom: 1px solid var(--border);
    font-size: 0.8125rem; font-weight: 600; color: var(--muted);
  }
  .service-cell-label { display: none; }
  .service-name { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Tables ---------- */
.table-wrap {
  position: relative;
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 16px; font-weight: 600; color: var(--fg-strong); border-bottom: 1px solid var(--border); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--fg-strong); background: var(--surface); white-space: nowrap; }
tbody th { font-weight: 500; color: var(--fg-strong); }
.compare th, .compare td { min-width: 150px; }
.compare tbody th { min-width: 220px; }
@media (max-width: 639px) { .compare th, .compare td { min-width: 112px; } .compare tbody th { min-width: 150px; } }
.compare td { text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare .col-emph { background: var(--accent-surface); }
.yes { color: var(--accent-text); font-weight: 700; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.compare thead th:first-child { background: var(--surface); }
@media (max-width: 639px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table th, .stack-table td { padding: 0; border: 0; }
  .stack-table tbody th { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
  .stack-table td + td, .stack-table th + td { margin-top: 8px; }
  .stack-table td::before {
    content: attr(data-label); display: block;
    font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
}
.no { color: var(--muted); }
.table-note { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.table-note a { font-weight: 500; }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; display: grid; gap: var(--grid-gap); counter-reset: step; }
@media (min-width: 1024px) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  counter-increment: step; display: grid; gap: 8px; align-content: start;
  padding: var(--card-pad); border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--bg);
}
.step::before {
  content: counter(step);
  width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.875rem; margin-bottom: 4px;
}
.step h3 { font-size: 1.0625rem; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Journey (platform page) ---------- */
.journey { list-style: none; display: grid; gap: 0; }
.journey-step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; position: relative;
  padding-bottom: var(--section-gap);
}
.journey-step:last-child { padding-bottom: 0; }
.journey-step::before {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--border-strong);
}
.journey-step:last-child::before { display: none; }
.journey-num {
  width: 40px; height: 40px; border-radius: var(--radius-full); display: grid; place-content: center;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent-text);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.875rem;
}
.journey-body { display: grid; gap: 14px; min-width: 0; max-width: 860px; padding-top: 4px; }
.journey-body h3 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.015em; }
.journey-body > p { color: var(--fg); font-size: 1.0625rem; line-height: 1.6; max-width: 70ch; }
.journey-body .check-list { max-width: 70ch; }
.footnote { font-size: 0.8125rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); max-width: 860px; }
.faq-item { display: grid; gap: 6px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.faq-item dt { font-weight: 600; color: var(--fg-strong); }
.faq-item dd { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--section-gap); border-top: 1px solid var(--border); background: var(--surface); }
.cta-inner { display: grid; gap: 20px; justify-items: start; }
.cta-inner h2 { max-width: 24ch; }
.cta-inner p { color: var(--muted); max-width: 60ch; font-size: 1.125rem; }
@media (min-width: 1024px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
  .cta-inner .btn-row { justify-content: flex-end; }
}

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: var(--group-gap); }
@media (min-width: 1024px) { .form-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.form-card { padding: var(--card-pad); border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--bg); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; color: var(--fg-strong); }
.field .req { color: var(--error-text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--fg-strong);
  background: var(--bg); border: 1px solid var(--border-control); border-radius: var(--radius-md);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error-border); }
.field-help { font-size: 0.8125rem; color: var(--muted); }
.field-error { font-size: 0.875rem; color: var(--error-text); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.options { display: grid; gap: 4px; margin-top: 4px; }
@media (min-width: 640px) { .options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; color: var(--fg); cursor: pointer; }
.option input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.consent { align-items: flex-start; }
.consent input { margin-top: 3px; }
.form-actions { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
.form-status {
  font-size: 0.875rem; color: var(--warning-text); background: var(--warning-bg);
  padding: 8px 12px; border-radius: var(--radius-md);
}
.error-summary {
  border: 1px solid var(--error-border); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 20px;
  color: var(--error-text);
}
.error-summary h2 { font-size: 1rem; color: var(--error-text); }
.error-summary ul { padding-left: 20px; margin-top: 6px; }
.error-summary a { color: var(--error-text); }
.form-success {
  border: 1px solid var(--success-text); background: var(--success-bg); color: var(--success-text);
  border-radius: var(--radius-md); padding: 16px;
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.375rem; margin-top: 24px; }
.prose h3 { font-size: 1.0625rem; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose li { line-height: 1.6; }
.prose p { line-height: 1.65; }
.prose .table-wrap { margin-block: 4px; }
.prose pre {
  margin: 0; padding: 16px; overflow-x: auto; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6;
}
.meta-line { font-size: 0.875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 32px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; max-width: 36ch; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); }
.footer-col h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg); font-size: 0.875rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: grid; gap: 6px; font-size: 0.8125rem; color: var(--muted);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }

/* ---------- 404 ---------- */
.notfound { padding-block: 96px; display: grid; gap: 20px; }
.notfound ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }

/* ---------- Utilities ---------- */
.stack-sm { display: grid; gap: 8px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: var(--group-gap); }
.mt-group { margin-top: var(--group-gap); }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
}

/* Custom element hosts */
vx-nav { display: block; }
vx-theme-toggle { display: contents; }
vx-form { display: block; }

/* ---------- Signature: the VxSure engine node uses the logo gradient ----------
   This is the only place the logo gradient appears on the site. */
.path-step.is-engine .path-dot { background: var(--grad-logo); border: 0; color: #FFFFFF; }
.path-step:has(+ .is-engine)::before, .path-step.is-engine::before { background: var(--cyan); }
.path-engine, .engine-core {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--accent-surface), var(--accent-surface)) padding-box,
    var(--grad-logo) border-box;
}
.engine-arrow { color: var(--cyan); }

/* ---------- Risk highlight (amber): only for outcomes that handle risky content ---------- */
.chip-risk { background: var(--risk-surface); color: var(--risk-text); border-color: var(--risk); }
.outcome-risk { border-color: var(--risk); background: var(--risk-surface); color: var(--risk-text); }

/* ---------- Dark bands ---------- */
.band-dark + .section, .section + .band-dark, .band-dark + .band-dark { border-top: 1px solid var(--border); }
.band-dark.hero { border-bottom: 1px solid var(--border-strong); }

/* ---------- Problem line without the tag (dense sequences such as the platform journey) ---------- */
.problem-plain { font-size: 0.875rem; line-height: 1.6; color: var(--muted); max-width: 80ch; }
.problem-plain b { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-right: 6px; }

/* ---------- Service cards ---------- */
.service-card { gap: 12px; }
.service-card .service-name { flex-direction: row; align-items: center; }
.service-card h3 { font-size: 1rem; }
.service-card .service-cell-label { display: block; }
.service-card p { color: var(--fg); font-size: 0.875rem; line-height: 1.55; }
.service-card p.service-problem { color: var(--muted); }

/* ---------- Callout ---------- */
.callout {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline;
  margin-top: var(--group-gap); padding: 16px 20px; border-radius: var(--radius-2xl);
  border: 1px solid var(--border); background: var(--bg);
}
.callout strong { color: var(--fg-strong); }
.callout p { color: var(--muted); font-size: 0.9375rem; }

/* =====================================================================
   Modern UI layer (2026-10-12)
   ===================================================================== */

/* ---------- Extra tokens ---------- */
:root { --tile: #111113; --tile-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04); --radius-3xl: 20px; --dot: rgba(255, 255, 255, 0.07); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --tile: #FFFFFF; --tile-highlight: 0 1px 2px rgba(0, 21, 49, 0.04); --dot: rgba(9, 9, 11, 0.07); } }
:root[data-theme="light"] { --tile: #FFFFFF; --tile-highlight: 0 1px 2px rgba(0, 21, 49, 0.04); --dot: rgba(9, 9, 11, 0.07); }
.band-dark { --tile: #111113; --tile-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04); --dot: rgba(255, 255, 255, 0.07); }

/* ---------- Bigger, more confident type ---------- */
.display-xl { font-size: 2.75rem; line-height: 1.08; letter-spacing: -0.03em; }
@media (min-width: 640px) { .display-xl { font-size: 3.5rem; } }
@media (min-width: 1024px) { .display-xl { font-size: 4.5rem; line-height: 1.04; } }
@media (min-width: 1024px) {
  h2 { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.025em; }
  .section-head p { font-size: 1.1875rem; }
}
.eyebrow-mono {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Blueprint dot grid inside dark bands ---------- */
.band-dark {
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-box {
  display: inline-grid; place-content: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-surface); color: var(--accent-text); border: 1px solid var(--accent-surface-2);
}
.icon-box .icon { width: 20px; height: 20px; }

/* ---------- Tiles and bento ---------- */
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 24px; border-radius: var(--radius-3xl); border: 1px solid var(--border);
  background: var(--tile); box-shadow: var(--tile-highlight);
  transition: border-color var(--ease), transform 200ms ease-out;
}
.tile:hover { border-color: var(--accent-border); }
.tile h3 { font-size: 1.125rem; line-height: 1.35; }
.tile p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.tile .tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile .tile-foot { margin-top: auto; }
.tile-accent { border-color: var(--accent-border); }
.bento { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .span-full { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento .span-3 { grid-column: span 3; } .bento .span-4 { grid-column: span 4; } .bento .span-5 { grid-column: span 5; }
  .bento .span-6 { grid-column: span 6; } .bento .span-7 { grid-column: span 7; } .bento .span-8 { grid-column: span 8; }
  .bento .span-full { grid-column: 1 / -1; }
}
.service-meta { display: grid; gap: 6px; }
.service-meta .label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Illustrated UI pieces ---------- */
.ui {
  border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--bg);
  overflow: hidden; font-size: 0.8125rem; line-height: 1.5; min-width: 0;
}
.ui-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--muted);
}
.ui-bar .live { display: inline-flex; align-items: center; gap: 6px; }
.ui-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success-text); }
.ui-body { padding: 12px; display: grid; gap: 8px; }
.ui-caption { font-size: 0.75rem; color: var(--muted); }
.mono { font-family: var(--font-mono); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; line-height: 1.5;
  padding: 1px 8px; border-radius: var(--radius-full); border: 1px solid var(--border-strong);
  color: var(--fg); background: var(--surface); white-space: nowrap;
}
.pill-allow { color: var(--accent-text); background: var(--accent-surface); border-color: var(--accent-border); }
.pill-risk { color: var(--risk-text); background: var(--risk-surface); border-color: var(--risk); }

/* Decision feed */
.feed { display: grid; gap: 0; }
.feed-row {
  display: grid; grid-template-columns: 4.5em 4.2em minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px dashed var(--border); font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg);
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .t, .feed-row .m { color: var(--muted); }
.feed-row .h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .why { grid-column: 3 / -1; margin-top: -4px; color: var(--muted); font-size: 0.6875rem; }
@media (max-width: 479px) { .feed-row { grid-template-columns: 4.2em minmax(0, 1fr) auto; } .feed-row .m { display: none; } }

/* Policy rule card */
.rule { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; }
.rule-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rule-key { min-width: 3.2em; font-weight: 700; color: var(--accent-text); }
.rule-val { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--fg-strong); }

/* Structured log */
.log { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; color: var(--fg); white-space: pre-wrap; word-break: break-word; }
.log .k { color: var(--accent-text); }
.log .v-risk { color: var(--risk-text); }

/* Remote browser window */
.browser-url {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-full);
  background: var(--surface-2); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); min-width: 0;
}
.browser-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { display: grid; gap: 8px; padding: 4px 0; }
.skeleton i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.skeleton i:nth-child(1) { width: 60%; height: 12px; } .skeleton i:nth-child(2) { width: 92%; } .skeleton i:nth-child(3) { width: 84%; } .skeleton i:nth-child(4) { width: 70%; }
.iso-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md);
  border: 1px solid var(--risk); background: var(--risk-surface); color: var(--risk-text); font-size: 0.75rem; font-weight: 500;
}

/* Tenant console */
.tenant-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem;
}
.tenant-row:last-child { border-bottom: 0; }
.tenant-row .name { color: var(--fg-strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-row .ver { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

/* ---------- Animated request path ---------- */
vx-flow { display: block; }
.path-diagram.flow { position: relative; padding: 24px; border-radius: var(--radius-3xl); background: var(--tile); box-shadow: var(--tile-highlight); }
.path-steps { position: relative; }
.flow-packet {
  position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(94, 212, 253, 0.18);
  opacity: 0; pointer-events: none; z-index: 2;
}
vx-flow .chip { transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out; }
vx-flow .chip.is-dim { opacity: 0.45; }
vx-flow .chip.is-lit { background: var(--accent-surface-2); border-color: var(--accent-border); color: var(--fg-strong); }
vx-flow .chip-risk.is-active { box-shadow: 0 0 0 2px var(--risk); }
.flow-replay {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; margin-left: 8px;
  border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: transparent;
  color: var(--fg); font: inherit; font-size: 0.75rem; cursor: pointer;
}
.flow-replay:hover { border-color: var(--accent-border); color: var(--fg-strong); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; gap: 20px; counter-reset: tl; }
.timeline li { counter-increment: tl; position: relative; display: grid; gap: 8px; padding-left: 56px; }
.timeline li::before {
  content: counter(tl); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-content: center; background: var(--tile); border: 2px solid var(--accent-border);
  color: var(--accent-text); font-family: var(--font-mono); font-weight: 600;
}
.timeline li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: -16px; width: 2px; background: var(--border-strong); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.125rem; padding-top: 8px; }
.timeline p { color: var(--muted); }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .timeline li { padding-left: 0; padding-top: 60px; }
  .timeline li::after { left: 48px; right: -32px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .timeline h3 { padding-top: 0; }
}

/* ---------- Edition switcher ---------- */
vx-tabs { display: block; }
.tabs-list { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); }
.tab {
  min-height: 40px; padding: 8px 18px; border-radius: var(--radius-full); border: 0; background: transparent;
  font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--fg-strong); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.cap-grid { list-style: none; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cap {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: var(--tile); color: var(--fg-strong); font-size: 0.9375rem; font-weight: 500;
  transition: opacity 200ms ease-out, border-color 200ms ease-out;
}
.cap .icon { color: var(--accent-text); }
.cap .cap-ed { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cap.is-off { opacity: 0.38; }
.cap.is-off .icon { color: var(--muted); }
.cap.is-on { border-color: var(--accent-border); }
.tabs-summary { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.edition-desc { margin-top: 12px; color: var(--muted); max-width: 60ch; }

/* ---------- Tier tiles ---------- */
.tier-name { font-size: 1.5rem; letter-spacing: -0.015em; }
.tier-suited { font-size: 0.875rem; color: var(--muted); }
.tier-list { list-style: none; display: grid; gap: 10px; }
.tier-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; color: var(--fg); }
.tier-list .icon { width: 18px; height: 18px; color: var(--accent-text); margin-top: 2px; }
.tier-tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Escalation diagram ---------- */
.escalation { list-style: none; display: grid; gap: 12px; }
.escalation li { position: relative; }
@media (min-width: 1024px) {
  .escalation { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .escalation li:not(:last-child)::after {
    content: "\2192"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
    color: var(--cyan); font-size: 1.25rem;
  }
}
.esc-line { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Blue closing band ---------- */
.cta-blue {
  --fg-strong: #FFFFFF; --muted: #FFFFFF; --border: rgba(255, 255, 255, 0.24);
  background: #016AF3; color: #FFFFFF; border-top: 0;
}
.cta-blue .btn-primary { background: #FFFFFF; color: #0155C2; border-color: #FFFFFF; }
.cta-blue .btn-primary:hover { background: #EBF3FE; }
.cta-blue .btn-secondary { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.cta-blue .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.cta-blue :focus-visible { outline-color: #FFFFFF; }
.cta-blue h2 { font-size: 2rem; }
@media (min-width: 1024px) { .cta-blue h2 { font-size: 3rem; letter-spacing: -0.03em; } }

/* ---------- Datasheet tables ---------- */
.table-wrap { border: 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); border-radius: 0; background: transparent; }
thead th {
  background: transparent; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.compare thead th:first-child, .compare tbody th { background: var(--bg); }
.section-alt .compare thead th:first-child, .section-alt .compare tbody th { background: var(--surface); }
tbody tr:hover > * { background: var(--surface); }
.section-alt tbody tr:hover > * { background: var(--surface-2); }
.compare .col-emph { background: var(--accent-surface); }

/* ---------- Header compacts on scroll ---------- */
.site-header-inner { transition: min-height 160ms ease-out; }
.site-header.is-scrolled .site-header-inner { min-height: 60px; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border); }

/* ---------- Scroll reveal (only applied by script to off-screen elements) ---------- */
.reveal-pending { opacity: 0; transform: translateY(12px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 500ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  .tile, .tile:hover { transform: none; }
  .reveal-pending { opacity: 1; transform: none; }
  .flow-packet { display: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-2px); }
}

/* ---------- Split with visual ---------- */
.split-visual { display: grid; gap: var(--group-gap); align-items: center; }
@media (min-width: 1024px) { .split-visual { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } .split-visual.reverse > :first-child { order: 2; } }
.split-visual > * { min-width: 0; }
.tile .tier-name { font-size: 1.5rem; letter-spacing: -0.015em; }
/* Older .card markup follows the tile style */
.card { padding: 24px; border-radius: var(--radius-3xl); background: var(--tile); box-shadow: var(--tile-highlight); transition: border-color var(--ease), transform 200ms ease-out; }
.section-alt .card { background: var(--tile); }
.card:hover { border-color: var(--accent-border); }
.card .icon-box { margin-bottom: 4px; }
