/* ═══════════════════════════════════════════════════════════════════════════
   STRAX — shared design system for the public site and the operator console.
   Hand-written, no build step. Brand kit v2: carbon chrome, light surfaces,
   orange as the ONLY accent (fills, active states, key data — never a field).

   Layers, in order:
     1 TOKENS      :root + dark-band overrides
     2 FONTS/BASE  @font-face (self-hosted — the Privacy page promises no CDN), reset, type, prose
     3 LAYOUT      container, bands + diagonal cuts, grids, browser frame
     4 COMPONENTS  buttons, pills, chips, cards, steps, pricing, faq, callouts, tables, forms
     5 PUBLIC      header/mega-menu, hero, works-with, tour, stats, cta band, footer, listings, lp
     6 CONSOLE     shell, tiles, toolbar, key-once, login
     7 UTILITIES
     8 MEDIA       widths, height, reduced motion

   Contracts that must never change (the console, the lead handler and the
   smoke tests depend on them): .hp-field, #lead-form/.form-grid/.field-error,
   .btn*, .pill*, .card, .callout*, table.data, .tile, .key-once, .js-only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1 TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand (kit v2) */
  --orange:      #FFB000;   /* accent ONLY: fills, active, links-on-dark, key data */
  --orange-alt:  #FF9800;
  --orange-600:  #F0A000;   /* primary button hover */
  --orange-700:  #D18C00;   /* primary button active */
  --amber-text:  #8A6100;   /* orange-family TEXT on light surfaces (5.5:1 on white) */
  --amber-900:   #664600;   /* orange-family text on warm tints (7:1) */
  --tint-50:  #FFF7E6; --tint-100: #FFE9B8; --tint-200: #FFDF99;
  --tint-300: #FFD066; --tint-400: #FFC233;
  --carbon:   #111418; --charcoal: #1E232A; --charcoal-2: #252B33;
  --steel:    #69727D; --light: #F5F4F0; --white: #FFFFFF;

  /* Semantic fills (dots, rules, badges on dark) */
  --success: #32C787; --info: #3D8BFF; --warning: #FF7A30; --critical: #E84A5F;
  /* Semantic TEXT on light (all >= 4.5:1 on white and on their tint) */
  --success-text: #14684A; --info-text: #1D5FC2; --warning-text: #B4470F; --critical-text: #B02A3D;
  --success-tint: #DCF5E8; --info-tint: #E3EEFF; --warning-tint: #FFF7E6; --critical-tint: #FDE4E7;

  /* Light theme (page default). Components read ONLY these generic names. */
  --bg:           #F5F4F0;  /* page */
  --surface:      #FFFFFF;  /* cards, header, inputs */
  --surface-2:    #EAE8E2;  /* table heads, code, chips */
  --text:         #111418;
  --text-2:       #3A424B;  /* long-form body, ledes (9.3:1 on --bg) */
  --text-muted:   #5B646E;  /* captions, hints (5.5:1 on --bg; kit steel fails AA there) */
  --border:       #D3D6DA;
  --border-strong:#8C949D;  /* input boundaries (3.07:1, WCAG 1.4.11) */
  --link:         var(--amber-text);
  --link-hover:   var(--amber-900);
  --eyebrow:      var(--amber-text);
  --focus-ring:   var(--amber-text);
  --shadow-card:  0 1px 2px rgba(17,20,24,.05), 0 6px 20px rgba(17,20,24,.06);

  /* Dark theme values (applied by .band-dark, .hero, .site-footer, console chrome) */
  --d-bg: #111418; --d-surface: #1E232A; --d-surface-2: #252B33;
  --d-text: #F5F4F0; --d-text-2: #DDE2E7; --d-text-muted: #B8C0C8; --d-border: #303845;

  /* Type */
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --fs-display: clamp(2.625rem, 1.4rem + 4.2vw, 4.5rem);    /* 42→72  home hero */
  --fs-h1:      clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);     /* 36→56  page hero */
  --fs-h2:      clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);  /* 30→44 */
  --fs-h3:      1.25rem;
  --fs-lede:    clamp(1.0625rem, 1rem + .35vw, 1.25rem);    /* 17→20 */
  --fs-stat:    clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-eyebrow: .9375rem;
  --ls-display: -.035em; --ls-h1: -.03em; --ls-h2: -.025em; --ls-h3: -.01em;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --s-11: 96px; --s-12: 128px;
  --section-pad: clamp(64px, 5vw + 32px, 112px);
  --gutter: 24px;
  --skew-drop: min(8.75vw, 132px);        /* tan(5°) × width — the diagonal's vertical drop */

  /* Radii / shadows */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.12);
  --shadow-md:    0 8px 24px rgba(0,0,0,.18);
  --shadow-frame: 0 30px 60px -20px rgba(17,20,24,.45);
  --shadow-glow:  0 0 0 4px rgba(255,176,0,.35);

  /* Containers / z / motion */
  --container: 1080px; --container-narrow: 760px; --container-wide: 1240px;
  --z-header: 50; --z-mega: 60; --z-skip: 100;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 600ms;

  /* Legacy names still referenced by page-local style islands until they are folded in. */
  --ink: var(--text); --muted: var(--text-muted); --line: var(--border); --panel: var(--bg);
  --card: var(--surface); --radius: var(--r-md); --shadow: var(--shadow-card); --shadow-lg: var(--shadow-md);
  --font: var(--font-sans); --mono: var(--font-mono);
  --accent: var(--orange); --amber: var(--warning-text); --red: var(--critical-text);
}

/* Dark bands re-point the generic tokens; every component adapts without duplicate rules. */
.band-dark, .hero, .site-footer, .console-side, .login-wrap, .cta-band {
  --bg: var(--d-bg); --surface: var(--d-surface); --surface-2: var(--d-surface-2);
  --text: var(--d-text); --text-2: var(--d-text-2); --text-muted: var(--d-text-muted);
  --border: var(--d-border); --border-strong: #69727D;
  --link: var(--orange); --link-hover: var(--tint-400);
  --eyebrow: var(--orange); --focus-ring: var(--orange);
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  background: var(--bg); color: var(--text);
}
/* A light card placed inside a dark scope (console login card, dark-band forms). */
.on-light, .login-card {
  --bg: #F5F4F0; --surface: #FFFFFF; --surface-2: #EAE8E2; --text: #111418; --text-2: #3A424B;
  --text-muted: #5B646E; --border: #D3D6DA; --border-strong: #8C949D; --link: #8A6100;
  --link-hover: #664600; --eyebrow: #8A6100; --focus-ring: #8A6100;
  --shadow-card: 0 1px 2px rgba(17,20,24,.05), 0 6px 20px rgba(17,20,24,.06);
  color: var(--text);
}

/* ── 2 FONTS + BASE ───────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/inter-latin-var.v1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-var.v1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the swap does not reflow. */
@font-face {
  font-family: 'Inter Fallback'; src: local('Arial');
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-h3); line-height: 1.3; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
strong { font-weight: 600; }
::selection { background: var(--tint-200); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.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; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip);
  padding: 10px 16px; border-radius: var(--r-sm); background: var(--carbon); color: var(--light);
  font-weight: 600; text-decoration: none; transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--s-4); }

/* Long-form copy: legal, trust, pillar sections. Old island class names are aliases. */
.prose .container, .legal-section .container, .trust-section .container, .pillar-section .container {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}
.prose h2, .legal-section h2, .trust-section h2, .pillar-section h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: var(--s-6) 0 var(--s-3);
}
.prose h2:first-child, .legal-section h2:first-child, .trust-section h2:first-child, .pillar-section h2:first-child { margin-top: 0; }
.prose p, .legal-section p, .trust-section p, .pillar-section p { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-bottom: var(--s-3); }
.prose ul, .legal-section ul, .trust-section ul, .pillar-section ul { list-style: disc; padding-left: 22px; margin: var(--s-2) 0 var(--s-4); }
.prose li, .legal-section li, .trust-section li, .pillar-section li { margin-bottom: 8px; font-size: 16px; color: var(--text-2); }
.prose a, .legal-section a, .trust-section a, .pillar-section a { text-decoration: underline; }
.prose .btn, .prose .link-arrow, .prose .card-link { text-decoration: none; }

/* ── 3 LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }

.band { position: relative; isolation: isolate; padding: var(--section-pad) 0; }
.band-white { background: var(--surface); }
/* Legacy section names keep working: block = light band, block.alt = white band. */
section.block { position: relative; isolation: isolate; padding: var(--section-pad) 0; }
section.block.alt { background: var(--surface); }
.band + .band-white, section.block + section.block.alt { border-top: 1px solid var(--border); }
.band-dark + .band-white, .band-cut-bottom + .band-white { border-top: 0; }

.section-head { max-width: 640px; margin-bottom: var(--s-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede, .block > .container > .lede { margin-top: var(--s-4); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.block > .container > .lede { margin-bottom: var(--s-7); }
.block > .container > h2 { margin-bottom: var(--s-2); }

/* Diagonal cuts: the paint moves to a clipped ::before so content (and the overhanging
   hero frame) is never clipped and no counter-skew is needed. */
.band-cut-bottom, .band-cut-top, .band-cut-both { background: transparent; }
.band-cut-bottom::before, .band-cut-top::before, .band-cut-both::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg);
}
.band-cut-bottom::before, .band-cut-bottom > .hero-bg { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew-drop)), 0 100%); }
.band-cut-top::before,    .band-cut-top > .hero-bg    { clip-path: polygon(0 var(--skew-drop), 100% 0, 100% 100%, 0 100%); }
.band-cut-both::before,   .band-cut-both > .hero-bg   { clip-path: polygon(0 var(--skew-drop), 100% 0, 100% calc(100% - var(--skew-drop)), 0 100%); }
.band-cut-bottom { padding-bottom: calc(var(--section-pad) + var(--skew-drop)); margin-bottom: calc(-1 * var(--skew-drop)); z-index: 1; }
.band-cut-top    { padding-top: calc(var(--section-pad) + var(--skew-drop)); }
.band-cut-both   { padding-top: calc(var(--section-pad) + var(--skew-drop) * .6); padding-bottom: calc(var(--section-pad) + var(--skew-drop) * .6); margin-bottom: calc(-1 * var(--skew-drop)); }
.band-cut-bottom + .band, .band-cut-both + .band, .band-cut-bottom + section.block { padding-top: calc(var(--section-pad) + var(--skew-drop) * .5); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-3.fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-9); align-items: center; }

/* Browser-style screenshot frame: neutral chrome, themed by tokens. */
.browser {
  --frame-bar: var(--bg); --frame-dot: var(--border); --frame-url: rgba(17,20,24,.06);
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-frame);
}
.band-dark .browser, .hero .browser { --frame-bar: rgba(255,255,255,.04); --frame-dot: rgba(255,255,255,.22); --frame-url: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.browser::before {
  content: ""; display: block; height: 34px; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle 4px at 18px 17px, var(--frame-dot) 99%, transparent),
    radial-gradient(circle 4px at 34px 17px, var(--frame-dot) 99%, transparent),
    radial-gradient(circle 4px at 50px 17px, var(--frame-dot) 99%, transparent),
    linear-gradient(var(--frame-url), var(--frame-url)) 72px 11px / calc(100% - 96px) 12px no-repeat,
    var(--frame-bar);
}
.browser img { width: 100%; display: block; }
figure.shot { margin: var(--s-6) 0; }
figure.shot > img { border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-frame); }
figure.shot figcaption { font-size: 14px; color: var(--text-muted); margin-top: var(--s-3); text-align: center; }
.grid figure.shot { margin: 0; }

/* ── 4 COMPONENTS ─────────────────────────────────────────────────────────── */
/* Eyebrow (Stripe-style sentence case; .kicker is the legacy alias) */
.eyebrow, .kicker { display: block; font: 600 var(--fs-eyebrow)/1.4 var(--font-sans); color: var(--eyebrow); margin-bottom: var(--s-3); letter-spacing: 0; text-transform: none; }
.kicker::before { content: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 15px/1 var(--font-sans); border-radius: var(--r-pill); padding: 0 20px; height: 44px;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary, .btn-accent { background: var(--orange); color: var(--carbon); }
.btn-primary:hover, .btn-accent:hover { background: var(--orange-600); color: var(--carbon); box-shadow: 0 6px 18px -6px rgba(255,176,0,.55); }
.btn-primary:active, .btn-accent:active { background: var(--orange-700); box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--steel); color: var(--text); }
.band-dark .btn-secondary, .hero .btn-secondary, .cta-band .btn-secondary, .btn-ghost-light {
  background: rgba(255,255,255,.06); color: var(--d-text); border-color: rgba(255,255,255,.18); box-shadow: none;
}
.band-dark .btn-secondary:hover, .hero .btn-secondary:hover, .cta-band .btn-secondary:hover, .btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--steel); color: var(--d-text); }
.btn-danger { background: var(--critical-text); color: #fff; }
.btn-danger:hover { background: #9C2436; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .arrow, .link-arrow:hover .arrow, a.card:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); text-decoration: none; }
.link-arrow:hover { color: var(--link-hover); }
.cta-row { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* Pills and chips */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--r-pill); font: 600 12px/1 var(--font-sans); white-space: nowrap; vertical-align: middle; }
.pill-green  { background: var(--success-tint);  color: var(--success-text); }
.pill-grey   { background: var(--surface-2);     color: var(--text-muted); }
.pill-amber  { background: var(--tint-50);       color: var(--amber-text); }
.pill-red    { background: var(--critical-tint); color: var(--critical-text); }
.pill-blue   { background: var(--info-tint);     color: var(--info-text); }
.pill-violet { background: var(--tint-100);      color: var(--amber-900); }   /* "Premium": orange family, no violet */
a.pill { text-decoration: none; }
.band-dark .pill, .hero .pill { background: rgba(255,255,255,.08); color: var(--d-text); border: 1px solid var(--d-border); }
.chip-row, .cat-row { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-4) 0 var(--s-2); }
.chip { height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 14px/1 var(--font-sans); text-decoration: none; display: inline-flex; align-items: center; transition: border-color var(--dur-fast); }
.chip:hover { border-color: var(--steel); color: var(--text); }
.chip.is-active { background: var(--carbon); color: var(--d-text); border-color: var(--carbon); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card); position: relative; }
.card h3 { font-size: 18px; margin-bottom: var(--s-2); }
.card p { font-size: 15px; color: var(--text-2); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
a.card:hover { border-color: var(--steel); box-shadow: var(--shadow-md); color: inherit; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font: 600 14px/1 var(--font-sans); color: var(--link); }
.band-dark .card { background: var(--d-surface); border-color: var(--d-border); }
/* Feature tile: icon + title + text, no card chrome (Stripe's 3-up) */
.feature { padding: 0; border: 0; background: none; box-shadow: none; }
.feature .icon, .card .icon-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--tint-100); color: var(--amber-900); display: grid; place-items: center; margin-bottom: var(--s-4); }
.feature .icon svg, .card .icon-tile svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.band-dark .feature .icon { background: rgba(255,176,0,.14); color: var(--orange); }
.pillar .idx { display: block; font: 400 13px/1 var(--font-mono); color: var(--amber-text); letter-spacing: .04em; margin-bottom: var(--s-3); }

/* Steps */
.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s-5); counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-card); }
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--tint-100); color: var(--amber-900);
  font: 600 13px/1 var(--font-mono); margin-bottom: var(--s-4);
}
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14.5px; color: var(--text-2); }

/* Pricing cards */
.price-card { display: flex; flex-direction: column; padding: var(--s-6); }
.price-card .tier { font: 600 13px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.price-card .amount { font: 600 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.1 var(--font-sans); letter-spacing: -.025em; margin: var(--s-3) 0 var(--s-1); font-variant-numeric: tabular-nums; color: var(--text); }
.price-card .per { font-size: 13px; color: var(--text-muted); margin-bottom: var(--s-5); }
.price-card .tagline { font-size: 15px; color: var(--text-2); margin-bottom: var(--s-4); }
.price-card ul { list-style: none; margin: 0 0 var(--s-5); flex: 1; }
.price-card li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; color: var(--text); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-tint); color: var(--success-text); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.price-card li.no { color: var(--text-muted); }
.price-card li.no::before { content: "–"; background: var(--surface-2); color: var(--text-muted); }
.price-card .btn { align-self: flex-start; }
.price-card .foot { font-size: 13px; color: var(--text-muted); margin-top: var(--s-3); }
.price-card.featured {
  background: linear-gradient(160deg, var(--charcoal), var(--carbon)); border-color: var(--carbon);
  --text: var(--d-text); --text-2: var(--d-text-2); --text-muted: var(--d-text-muted); --surface-2: var(--d-surface-2);
  color: var(--d-text); box-shadow: var(--shadow-md);
}
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -13px; right: 20px;
  background: var(--orange); color: var(--carbon); font: 600 12px/1 var(--font-sans); padding: 7px 12px; border-radius: var(--r-pill);
}
.price-card.featured li::before { background: rgba(50,199,135,.18); color: var(--success); }
.price-card.featured .btn-primary, .price-card.featured .btn-secondary { align-self: stretch; }
.price-card.featured .btn-secondary { background: rgba(255,255,255,.06); color: var(--d-text); border-color: rgba(255,255,255,.18); box-shadow: none; }

/* Compare table (pricing) */
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare th, table.compare td { text-align: center; }
table.compare td.yes { color: var(--success-text); font-weight: 600; }
table.compare td.no { color: var(--text-muted); }
table.compare td.partial { color: var(--amber-text); font-size: 13px; }
table.compare tr.group td { background: var(--surface-2); font-weight: 600; color: var(--text); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; font: 600 17px/1.4 var(--font-sans); color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 10px; height: 10px; margin-top: 6px; border: solid var(--amber-text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 0 var(--s-5); color: var(--text-2); font-size: 16px; max-width: 68ch; }

/* Callouts, tables, code */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--steel); border-radius: var(--r-sm); background: var(--surface-2); padding: 14px 18px; margin: var(--s-4) 0; font-size: 15px; color: var(--text); }
.callout.ok     { border-left-color: var(--success);  background: var(--success-tint); }
.callout.warn   { border-left-color: var(--warning);  background: var(--warning-tint); }
.callout.danger { border-left-color: var(--critical); background: var(--critical-tint); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
table.data th { text-align: left; font: 600 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); padding: 12px 14px; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: top; }
table.data tbody tr:hover td { background: var(--tint-50); }
table.data.kv td:first-child { width: 36%; color: var(--text-muted); }
table.data th.actions, table.data td.actions { white-space: nowrap; width: 1%; }
table.data td.actions form { display: inline-block; margin: 0; }
table.data td.actions .btn + .btn, table.data td.actions form + form, table.data td.actions .btn + form { margin-left: 6px; }
.band-dark table.data { background: var(--d-surface); border-color: var(--d-border); }
.band-dark table.data th { background: var(--d-surface-2); color: var(--d-text-muted); }
.band-dark table.data td { border-color: var(--d-border); }
.band-dark table.data tbody tr:hover td { background: rgba(255,255,255,.04); }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface-2); color: var(--text); padding: 1px 6px; border-radius: 4px; }
pre.code { background: var(--carbon); color: var(--d-text); border-radius: var(--r-md); padding: var(--s-5); overflow: auto; font: 400 14px/1.6 var(--font-mono); border: 1px solid var(--d-border); }
pre.code code { background: none; color: inherit; padding: 0; font-size: inherit; }
pre.code .k { color: var(--orange); } pre.code .c { color: var(--d-text-muted); } pre.code .s { color: var(--success); }

/* Forms */
.form-grid { display: grid; gap: var(--s-4); }
label { display: block; font: 500 14px/1.4 var(--font-sans); color: var(--text); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=search], input[type=url], select, textarea {
  width: 100%; height: 44px; font: 400 15px var(--font-sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 12px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber-text); box-shadow: var(--shadow-glow); }
input[aria-invalid="true"], .field.has-error input { border-color: var(--critical-text); }
.field-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: 14px; color: var(--critical-text); margin-top: 4px; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
#lead-form .btn { margin-top: var(--s-2); }
/* Honeypot — DO NOT REMOVE OR RENAME. _LeadForm.cshtml's "website" field must be visually gone but
   present in the DOM: if this rule disappears, humans see and fill the field and every real lead is
   discarded as a bot. Byte-identical to the original rule. */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── 5 PUBLIC ─────────────────────────────────────────────────────────────── */
/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(245,244,240,.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px -16px rgba(17,20,24,.18); }
.nav-bar, .site-header > .container { display: flex; align-items: center; gap: var(--s-6); height: 64px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-lockup img { width: 30px; height: 30px; }
.brand-lockup .brand-mark { width: 42px; height: 42px; }
.brand-lockup .brand-wordmark { width: auto; height: 22px; }
.brand-wordmark.on-dark { display: none; }
.site-footer .brand-wordmark.on-light, .console-side .brand-wordmark.on-light, .band-dark .brand-wordmark.on-light { display: none; }
.site-footer .brand-wordmark.on-dark, .console-side .brand-wordmark.on-dark, .band-dark .brand-wordmark.on-dark { display: inline-block; }
.footer-lockup { height: 64px; width: auto; }
.brand-word { font: 600 18px/1 var(--font-sans); letter-spacing: .12em; color: var(--text); }
.site-header .logo { display: inline-flex; text-decoration: none; }
.site-nav { display: flex; align-items: center; flex: 1; gap: var(--s-4); }
.nav-list { display: flex; gap: var(--s-1); list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link, .site-nav > a:not(.btn) {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-sm);
  font: 500 15px/1 var(--font-sans); color: var(--text); text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover, .site-nav > a:not(.btn):hover, .has-menu:focus-within > .nav-link, .has-menu.is-open > .nav-link { color: var(--amber-text); background: rgba(17,20,24,.04); }
.nav-link[aria-current="page"] { color: var(--amber-text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.site-nav > .btn { margin-left: auto; }
/* Mega menu: CSS opens on hover / keyboard focus; site.js adds click + Escape. */
.has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -12px; z-index: var(--z-mega); width: 720px;
  padding: var(--s-5); display: grid; grid-template-columns: 1fr 1fr 1fr 200px; gap: var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.has-menu:hover > .mega, .has-menu:focus-within > .mega, .has-menu.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-head { font: 600 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.mega-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: var(--s-3); }
.mega ul { list-style: none; }
.mega li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.mega li a small { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.mega li a:hover { background: var(--tint-50); color: var(--amber-text); }
.mega-feature { display: block; padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); text-decoration: none; color: var(--text); font-size: 14px; align-self: start; }
.mega-feature img { border-radius: var(--r-sm); border: 1px solid var(--border); margin-bottom: var(--s-3); }
.mega-feature strong { display: block; margin-bottom: 2px; }
.mega-feature span { color: var(--amber-text); font-weight: 600; }
.mega-foot { grid-column: 1 / -1; display: flex; gap: var(--s-5); flex-wrap: wrap; padding-top: var(--s-3); border-top: 1px solid var(--border); font-size: 14px; }
.mega-toggle { width: 22px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--text-muted); margin-left: -8px; display: none; }
.mega-toggle::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast); }
.mega-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translateY(2px); }
.mega-toggle.js-ready { display: inline-flex; }
.site-header .nav-toggle.js-ready { display: none; }   /* shown under 960px by the media block; scoped to beat .js-only.js-ready */
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { --bg: var(--carbon); color: var(--d-text); position: relative; isolation: isolate; overflow: visible; padding: clamp(56px, 8vw, 104px) 0 var(--section-pad); }
.hero-page { padding-top: clamp(40px, 4vw, 64px); }
.hero .container { position: relative; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(1000px 700px at 60% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(1000px 700px at 60% 0%, #000 20%, transparent 75%);
}
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; inset: -20%; will-change: transform; }
/* Warm carbon glow: orange + orange-alt at low alpha and a hint of info blue for depth. Never a flat orange field. */
.hero-bg::before {
  background: radial-gradient(900px 520px at 72% 18%, rgba(255,176,0,.20), transparent 62%), radial-gradient(700px 460px at 85% 70%, rgba(255,152,0,.12), transparent 60%);
  animation: glow-drift 26s var(--ease-std) infinite alternate;
}
.hero-bg::after {
  background: radial-gradient(800px 600px at 10% 90%, rgba(61,139,255,.10), transparent 65%), radial-gradient(600px 400px at 30% 10%, rgba(255,255,255,.035), transparent 60%);
  animation: glow-drift 34s var(--ease-std) infinite alternate-reverse;
}
@keyframes glow-drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3%,2%,0) scale(1.06); } 100% { transform: translate3d(2%,-2%,0) scale(1.02); } }
.hero h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h1); line-height: 1.06; color: var(--d-text); max-width: 20ch; }
.hero-home h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: var(--ls-display); max-width: 15ch; }
.hero .hl, .hero .grad { color: var(--orange); font-style: normal; background: none; -webkit-text-fill-color: initial; }
.hero .sub { font-size: var(--fs-lede); line-height: 1.55; color: var(--d-text-2); margin: var(--s-5) 0 var(--s-6); max-width: 48ch; }
.hero .eyebrow, .hero .kicker { color: var(--orange); }
.hero-home .split { align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); }
.hero-visual { perspective: 1600px; margin-bottom: calc(-1 * var(--skew-drop) - 24px); position: relative; z-index: 2; }
.hero-visual .browser {
  transform: rotateY(-9deg) rotateX(2deg) rotate(.6deg); transform-origin: 20% 50%;
  transition: transform 800ms var(--ease-out);
  box-shadow: var(--shadow-frame), 0 0 0 1px rgba(255,255,255,.06), 0 -20px 80px -20px rgba(255,176,0,.18);
}
.hero-visual:hover .browser { transform: none; }
/* Legacy hero pieces (inner pages until they are re-marked; home stats moved to the stats band). */
.hero-stats { display: flex; gap: var(--s-7); flex-wrap: wrap; margin: var(--s-7) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--d-border); }
.hero-stats .n { font-size: 26px; font-weight: 600; color: var(--d-text); letter-spacing: -.02em; }
.hero-stats .l { font-size: 13px; color: var(--d-text-muted); font-weight: 500; }
.hero-shot { margin: var(--s-8) auto 0; max-width: 980px; position: relative; }
.hero-shot .browser { margin: 0; }

/* Works-with strip */
.works-with { padding: var(--s-7) 0 var(--s-8); }
.band-cut-bottom + .works-with { padding-top: calc(var(--skew-drop) + var(--s-7)); }
.works-label { font: 500 13px/1.4 var(--font-sans); color: var(--text-muted); text-align: center; margin-bottom: var(--s-4); }
.works-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-7); }
.works-list li { font: 600 14px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.works-more { text-align: center; margin-top: var(--s-5); font-size: 14px; }

/* Product tour: alternating rows */
.tour-rows { display: grid; gap: var(--s-11); }
.tour-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tour-row:nth-child(even) .tour-text { order: 2; }
.tour-problem { display: flex; gap: 10px; align-items: baseline; font: 500 14px/1.5 var(--font-sans); color: var(--text-muted); margin-bottom: var(--s-3); }
.tour-problem::before { content: ""; flex: 0 0 20px; height: 2px; background: var(--orange); transform: translateY(-4px); }
.tour-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; margin-bottom: var(--s-3); }
.tour-text p { color: var(--text-2); font-size: 16px; margin-bottom: var(--s-4); }
.tour-shot { margin: 0; }

/* Stats band */
.stat-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.stat .n { display: block; font: 600 var(--fs-stat)/1 var(--font-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--d-text); }
.stat .n .hl { color: var(--orange); }
.stat .l { display: block; margin-top: var(--s-2); font-size: 14px; color: var(--d-text-muted); }
.stat + .stat { border-left: 1px solid var(--d-border); padding-left: var(--s-6); }

/* CTA band (reuses the hero glow, static) */
.cta-band { position: relative; isolation: isolate; text-align: center; }
.cta-band .hero-bg::before, .cta-band .hero-bg::after { animation: none; }
.cta-band .section-head { margin-bottom: 0; }
.cta-band .lede { margin: var(--s-4) auto var(--s-6); }

/* Footer */
.site-footer { padding: var(--s-10) 0 var(--s-7); font-size: 14px; border-top: 1px solid var(--d-border); }
.footer-top { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-8); flex-wrap: wrap; }
.footer-tag { color: var(--orange); font-weight: 500; }
.footer-cols, .site-footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
.footer-cols h4, .site-footer .cols h4 { font: 600 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--d-text); margin-bottom: var(--s-4); }
.footer-cols ul, .site-footer .cols ul { list-style: none; }
.footer-cols li, .site-footer .cols li { margin-bottom: 10px; }
.site-footer a { color: var(--d-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--d-text); }
.footer-legal, .site-footer .legal { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--d-border); color: var(--d-text-muted); font-size: 13px; }

/* Marketplace listings */
a.card.listing, .listing { display: flex; flex-direction: column; gap: var(--s-2); }
.listing .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.listing p.desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing .meta { margin-top: auto; padding-top: var(--s-3); font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; gap: var(--s-3); }
.listing .meta .price { color: var(--amber-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Marketplace search + pagination (server-rendered; built for a catalogue of thousands) */
.market-search { margin-top: var(--s-5); }
.market-search input[type="search"] { flex: 1 1 320px; max-width: 560px; }
.results-line { margin-top: var(--s-3); font-size: 14px; }
.listing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.listing-mark {
  width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.listing-mark img { width: 30px; height: 30px; object-fit: contain; }
.listing-monogram { font: 600 18px/1 var(--font-sans); color: var(--text-muted); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: var(--s-7); }
.pager a, .pager .gap, .pager .current {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--font-sans); text-decoration: none;
}
.pager a { border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color var(--dur-fast); }
.pager a:hover { border-color: var(--steel); }
.pager .current { background: var(--carbon); color: var(--d-text); }
.pager .gap { color: var(--text-muted); }

/* Landing pages */
.lp-hero .container { text-align: center; }
.lp-hero h1, .lp-hero .sub { margin-inline: auto; }
.lp-hero .cta-row { justify-content: center; }
.lp-bullet { display: flex; gap: var(--s-3); align-items: flex-start; }
.lp-bullet .icon { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--success-tint); color: var(--success-text); font: 600 13px/24px var(--font-sans); text-align: center; }
.lp-bullet p { font-size: 15.5px; color: var(--text); }
.lp-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.quote-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.lp-visual { max-width: 900px; margin: var(--s-8) auto calc(-1 * var(--skew-drop) - 24px); perspective: none; }
.lp-visual .browser { transform: none; }
.proof .lede { margin: 0 auto; text-align: center; max-width: 60ch; color: var(--d-text); font-weight: 500; }

/* Home: the three promises of the name (S · A · X) */
.promise { padding-top: var(--s-5); }
.promise .letter { display: block; font: 600 44px/1 var(--font-sans); letter-spacing: -.03em; color: var(--text); margin-bottom: var(--s-3); padding-bottom: var(--s-3); position: relative; }
.promise .letter::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
/* Home: the four strategy pillars */
.strat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strat { display: flex; flex-direction: column; gap: var(--s-4); }
.strat h3 { font-size: 20px; margin-bottom: 0; }
.strat .tag { font: 600 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.strat .with { padding: var(--s-4); margin: 0 calc(-1 * var(--s-3)); border-radius: var(--r-md); background: var(--tint-50); }
.strat .with .tag { color: var(--amber-text); } .strat .with p:not(.tag) { color: var(--text); }
.strat p:not(.tag) { font-size: 15px; }
.strat .links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: auto; padding-top: var(--s-2); font-size: 14px; }
@media (max-width: 760px) { .strat-grid { grid-template-columns: 1fr; } }

/* Pillar hero with a visual (split like the home hero) */
.hero-page.has-visual .split { align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); }
.hero-page.has-visual h1 { max-width: none; }

/* ── 6 CONSOLE ────────────────────────────────────────────────────────────── */
.console { display: flex; min-height: 100vh; background: var(--bg); }
.console-side { width: 232px; flex: 0 0 auto; background: var(--carbon); display: flex; flex-direction: column; padding: 18px 0; }
.console-side .logo { padding: 4px 20px 18px; border-bottom: 1px solid var(--d-border); }
.console-side .logo .brand-word { color: var(--d-text); }
.console-side nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.console-side nav .group { font: 600 11px/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--d-text-muted); padding: 14px 12px 4px; }
.console-side nav a { color: var(--d-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.console-side nav a:hover { background: rgba(255,255,255,.06); color: var(--d-text); }
.console-side nav a.active { background: rgba(255,176,0,.14); color: var(--orange); box-shadow: inset 2px 0 0 var(--orange); }
.console-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.console-top { height: 58px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 26px; gap: 16px; }
.console-top h1 { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.console-top .who { margin-left: auto; font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }
.console-body { padding: 26px; max-width: 1240px; width: 100%; }
.console-body .card { margin-bottom: 22px; }
.console-body table.data { box-shadow: none; border-radius: 0; border: 0; }
.console-body table.data th { background: transparent; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.console-body h3 { font-size: 17px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-card); }
.tile .n { font-size: 30px; font-weight: 600; color: var(--text); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.tile.alert .n { color: var(--warning-text); }
.tile.bad .n { color: var(--critical-text); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.stack { display: grid; gap: 22px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.table-scroll > table.data { box-shadow: none; }
.table-scroll table.data th, .table-scroll table.data td { padding: 10px 11px; }
.search-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.search-form input[type="search"] { min-width: 320px; margin: 0; }
.truncate-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }
.lead-message { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.55; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.nowrap { white-space: nowrap; }
/* Progressive-enhancement hooks: hidden until the script reveals them. */
.js-only { display: none; }
.js-only.js-ready { display: inline-flex; }
.cap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cap-head h3 { margin: 0; }
.cap-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font: inherit; }
.cap-toggle input { cursor: pointer; }
#cap-count { font-variant-numeric: tabular-nums; }

.key-once {
  background: var(--carbon); color: var(--tint-300); font-family: var(--font-mono); font-size: 16px;
  border-radius: var(--r-md); padding: 17px 19px; word-break: break-all; margin: 12px 0;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,176,0,.35); box-shadow: 0 0 0 4px rgba(255,176,0,.10);
}
.key-once button { flex: 0 0 auto; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(800px 420px at 80% 0%, rgba(255,176,0,.16), transparent 60%), radial-gradient(600px 400px at 10% 100%, rgba(61,139,255,.10), transparent 65%), var(--carbon);
}
.login-card { background: var(--surface); border-radius: var(--r-lg); padding: 38px; width: 100%; max-width: 420px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.login-card .logo { margin-bottom: 22px; }
.login-card h1 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 18px; }

/* ── 7 UTILITIES ──────────────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
/* Scroll reveal: only when JS is present, so nothing is ever hidden without it. */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .grid > .reveal:nth-child(2), html.js .stat-list > .reveal:nth-child(2), html.js .step-row > .reveal:nth-child(2) { transition-delay: 80ms; }
html.js .grid > .reveal:nth-child(3), html.js .stat-list > .reveal:nth-child(3), html.js .step-row > .reveal:nth-child(3) { transition-delay: 160ms; }
html.js .grid > .reveal:nth-child(4), html.js .stat-list > .reveal:nth-child(4), html.js .step-row > .reveal:nth-child(4) { transition-delay: 240ms; }

/* ── 8 MEDIA ──────────────────────────────────────────────────────────────── */
@media (max-width: 1119px) {
  :root { --gutter: 32px; }
  .hero-home .split { gap: var(--s-6); }
  .mega { width: min(720px, calc(100vw - 48px)); }
}
@media (max-width: 959px) {
  .site-header .nav-toggle.js-ready { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); }
  html.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: var(--s-4) var(--gutter) var(--s-6); background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: calc(100dvh - 64px); overflow: auto; }
  html.js .site-header.nav-open .site-nav { display: block; animation: drawer-in var(--dur-base) var(--ease-out); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; }
  .nav-link { height: 48px; width: 100%; font-size: 17px; }
  .nav-item.has-menu .nav-link { width: auto; flex: 1; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 var(--s-3) var(--s-4); grid-template-columns: 1fr; display: none; }
  .has-menu.is-open > .mega { display: grid; }
  .mega-feature { display: none; }
  .mega-toggle { width: 44px; height: 48px; margin: 0; }
  .nav-actions { margin: var(--s-4) 0 0; }
  .nav-actions .btn { width: 100%; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .mega { display: none; }
  .split, .tour-row, .lp-form, .hero-home .split, .hero-page.has-visual .split { grid-template-columns: 1fr; gap: var(--s-7); }
  .tour-row:nth-child(even) .tour-text { order: 0; }
  .hero-home h1 { max-width: none; }
  .hero-visual { margin-bottom: calc(-1 * var(--skew-drop)); }
  .hero-visual .browser { transform: none; }
  .stat-list { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .footer-cols, .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.fixed { grid-template-columns: 1fr; }
  .grid-3.fixed .featured { order: -1; }
}
@keyframes drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  :root { --section-pad: 56px; --skew-drop: max(28px, min(8.75vw, 132px)); }
  .eyebrow, .kicker { font-size: 14px; }
  .cta-row .btn { width: 100%; }
  .works-list { gap: var(--s-3) var(--s-5); }
  table.data { font-size: 13px; }
  .console-side { width: 64px; }
  .console-side .logo, .console-side nav .group, .console-side nav a span { display: none; }
  .hero-stats { gap: var(--s-5); }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .chip-row, .cat-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .footer-cols, .site-footer .cols { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr; }
}
@media (max-height: 640px) {
  .hero { padding-top: 40px; }
  .hero-visual .browser img { max-height: 46vh; object-fit: cover; object-position: top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-bg::before, .hero-bg::after { animation: none; }
  .hero-visual .browser { transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

