@charset "utf-8";
/* ==========================================================================
   GUARDIAN — Enterprise Cybersecurity Design System
   Single stylesheet for all 50 pages. No external requests. No web fonts.
   --------------------------------------------------------------------------
   00. TOKENS
   01. THEMES (dark default / light / [data-theme] override)
   02. RESET + BASE
   03. TYPOGRAPHY
   04. LAYOUT PRIMITIVES
   05. HEADER / NAV / MEGA MENU / MOBILE DRAWER
   06. BUTTONS
   07. CARDS + CONTENT COMPONENTS
   08. DATA COMPONENTS (table, stats, pricing, timeline, steps)
   09. INTERACTIVE (accordion, tabs, pagination, breadcrumb)
   10. FORMS
   11. HEROES + SECTION DECOR
   12. CTA BAND + FOOTER
   13. PROSE (long-form / legal)
   14. MOTION
   15. UTILITIES
   16. PRINT
   ========================================================================== */

/* ==========================================================================
   00. TOKENS
   ========================================================================== */

:root {
  /* ---- Brand ramp: signal cyan ------------------------------------------ */
  --brand-50:  #ecfeff;
  --brand-100: #cbfbff;
  --brand-200: #a2f4ff;
  --brand-300: #67e8f9;
  --brand-400: #29d6f2;
  --brand-500: #0bb8dd;
  --brand-600: #0791b4;
  --brand-700: #0c7291;
  --brand-800: #135c76;
  --brand-900: #144c63;
  --brand-950: #072f43;

  /* ---- Secondary ramp: sentinel violet ---------------------------------- */
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-900: #4c1d95;

  /* ---- Neutral ramp: navy-tinted slate ---------------------------------- */
  --n-0:    #ffffff;
  --n-25:   #fafcfe;
  --n-50:   #f5f8fc;
  --n-100:  #eaf0f7;
  --n-200:  #dae2ee;
  --n-300:  #bcc7d9;
  --n-400:  #8e9db6;
  --n-500:  #6a7a94;
  --n-600:  #4e5d76;
  --n-700:  #384457;
  --n-800:  #232d3e;
  --n-850:  #1a2231;
  --n-900:  #121926;
  --n-950:  #0a0f1a;
  --n-1000: #05080f;

  /* ---- Semantic hues ----------------------------------------------------- */
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-700: #047857;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --red-300:   #fca5a5;
  --red-400:   #f87171;
  --red-500:   #ef4444;
  --red-700:   #b91c1c;
  --blue-400:  #60a5fa;
  --blue-500:  #3b82f6;

  /* ---- Type ------------------------------------------------------------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable Text",
               Roboto, "Helvetica Neue", "Noto Sans", Ubuntu, Cantarell, Arial,
               "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Mono",
               "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Fluid modular scale (~1.2 mobile → ~1.28 desktop) */
  --fs-2xs: clamp(0.6875rem, 0.672rem + 0.08vw, 0.75rem);
  --fs-xs:  clamp(0.75rem,  0.727rem + 0.12vw, 0.8125rem);
  --fs-sm:  clamp(0.875rem, 0.855rem + 0.10vw, 0.9375rem);
  --fs-md:  clamp(1rem,     0.972rem + 0.14vw, 1.0625rem);
  --fs-lg:  clamp(1.125rem, 1.076rem + 0.24vw, 1.25rem);
  --fs-xl:  clamp(1.3125rem,1.223rem + 0.45vw, 1.5625rem);
  --fs-2xl: clamp(1.5625rem,1.393rem + 0.85vw, 2.0625rem);
  --fs-3xl: clamp(1.875rem, 1.585rem + 1.45vw, 2.75rem);
  --fs-4xl: clamp(2.25rem,  1.795rem + 2.27vw, 3.625rem);
  --fs-5xl: clamp(2.625rem, 1.905rem + 3.6vw,  4.75rem);
  --fs-6xl: clamp(3rem,     1.9rem + 5.5vw,    6rem);

  --lh-tight: 1.08;
  --lh-snug:  1.22;
  --lh-heading: 1.15;
  --lh-normal: 1.6;
  --lh-relaxed: 1.72;

  --tracking-tight: -0.022em;
  --tracking-snug: -0.012em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.10em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---- Spacing (4px base) ------------------------------------------------ */
  --sp-0: 0;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 1.75rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --sp-40: 10rem;

  /* Fluid rhythm */
  --gutter:        clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --section-y:     clamp(3.5rem, 2.4rem + 4.6vw, 7.5rem);
  --section-y-sm:  clamp(2.5rem, 1.9rem + 2.6vw, 4.5rem);
  --section-y-lg:  clamp(4.5rem, 3rem + 6.4vw, 10rem);
  --gap:           clamp(1rem, 0.75rem + 1.1vw, 1.75rem);
  --gap-lg:        clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem);

  /* ---- Radii ------------------------------------------------------------- */
  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-full: 999px;

  /* ---- Sizing ------------------------------------------------------------ */
  --maxw: 1200px;
  --maxw-wide: 1400px;
  --maxw-narrow: 880px;
  --maxw-prose: 72ch;
  --header-h: 4.5rem;
  --border-w: 1px;

  /* ---- Motion ------------------------------------------------------------ */
  --ease-standard: cubic-bezier(0.22, 0.68, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --t-instant: 90ms;
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 400ms;
  --t-slower: 700ms;

  /* ---- Z layers ---------------------------------------------------------- */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-scrim: 390;
  --z-drawer: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-skip: 700;
}

/* ==========================================================================
   01. THEMES
   Dark is the default. Light applies when the OS prefers light AND the author
   has not forced dark. An explicit [data-theme] on <html> always wins.
   ========================================================================== */

/* ---- DARK (default) ------------------------------------------------------ */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            var(--n-1000);
  --bg-deep:       #030509;
  --surface:       #0a0f1a;
  --surface-2:     #101725;
  --surface-3:     #161f30;
  --surface-4:     #1d283b;
  --surface-inset: rgba(255, 255, 255, 0.03);
  --surface-glass: rgba(10, 15, 26, 0.72);
  --header-bg:     rgba(6, 10, 18, 0.78);
  --header-bg-solid: #060a12;

  --text:        #e9eff8;
  --text-strong: #ffffff;
  --text-muted:  #9fb0c8;
  /* Was #6d7f9b, which measured 4.40:1 on --surface-2 and 3.64:1 on --surface-4 —
     below the 4.5:1 AA floor for the small text this token carries (captions,
     .mono-label, .hint, .resource-meta, figcaptions). #8290aa clears 4.5:1 on
     every surface in this theme while staying a clear step below --text-muted. */
  --text-subtle: #8290aa;
  --text-invert: #05080f;

  --border:        rgba(160, 190, 230, 0.13);
  --border-soft:   rgba(160, 190, 230, 0.08);
  --border-strong: rgba(160, 190, 230, 0.24);
  --border-accent: rgba(41, 214, 242, 0.42);
  --divider:       rgba(160, 190, 230, 0.10);

  --accent:          var(--brand-400);
  --accent-hover:    var(--brand-300);
  --accent-press:    var(--brand-500);
  --accent-ink:      var(--brand-300);
  --accent-contrast: #041420;
  --accent-soft:     rgba(41, 214, 242, 0.12);
  --accent-softer:   rgba(41, 214, 242, 0.06);

  --accent-2:        var(--violet-400);
  --accent-2-ink:    var(--violet-300);
  --accent-2-soft:   rgba(167, 139, 250, 0.14);

  --success:      var(--green-400);
  --success-ink:  var(--green-300);
  --success-soft: rgba(52, 211, 153, 0.13);
  --warning:      var(--amber-400);
  --warning-ink:  var(--amber-300);
  --warning-soft: rgba(251, 191, 36, 0.13);
  --danger:       var(--red-400);
  --danger-ink:   var(--red-300);
  --danger-soft:  rgba(248, 113, 113, 0.13);
  --info:         var(--blue-400);
  --info-ink:     #93c5fd;
  --info-soft:    rgba(96, 165, 250, 0.13);

  --grid-line:  rgba(120, 160, 200, 0.07);
  --mesh-1:     rgba(41, 214, 242, 0.20);
  --mesh-2:     rgba(124, 58, 237, 0.20);
  --mesh-3:     rgba(11, 184, 221, 0.10);
  --scrim:      rgba(3, 5, 9, 0.66);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.35), 0 20px 44px -12px rgba(0, 0, 0, 0.72);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.4), 0 36px 72px -20px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 0 1px rgba(41, 214, 242, 0.22), 0 12px 40px -12px rgba(41, 214, 242, 0.42);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-400);
}

/* ---- LIGHT --------------------------------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-deep:       var(--n-50);
  --surface:       var(--n-50);
  --surface-2:     var(--n-100);
  --surface-3:     var(--n-200);
  --surface-4:     #ccd6e6;
  --surface-inset: rgba(14, 27, 48, 0.035);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --header-bg:     rgba(255, 255, 255, 0.82);
  --header-bg-solid: #ffffff;

  --text:        var(--n-900);
  --text-strong: #050a14;
  --text-muted:  var(--n-600);
  /* --n-500 (#6a7a94) measured 4.35:1 on white and 3.79:1 on --surface-2,
     under the 4.5:1 AA floor for the small text this token carries.
     #5a6a83 clears it on --bg, --surface and --surface-2. */
  --text-subtle: #5a6a83;
  --text-invert: #ffffff;

  --border:        rgba(20, 40, 75, 0.13);
  --border-soft:   rgba(20, 40, 75, 0.07);
  --border-strong: rgba(20, 40, 75, 0.26);
  --border-accent: rgba(7, 145, 180, 0.45);
  --divider:       rgba(20, 40, 75, 0.10);

  --accent:          var(--brand-600);
  --accent-hover:    var(--brand-500);
  --accent-press:    var(--brand-700);
  /* brand-700 gives only 4.31:1 against --accent-soft, where .badge-accent
     puts it. #0b6a86 clears AA on the tint and on plain --bg. */
  --accent-ink:      #0b6a86;
  --accent-contrast: #ffffff;
  --accent-soft:     rgba(7, 145, 180, 0.10);
  --accent-softer:   rgba(7, 145, 180, 0.05);

  --accent-2:        var(--violet-600);
  --accent-2-ink:    var(--violet-700);
  --accent-2-soft:   rgba(124, 58, 237, 0.10);

  --success:      var(--green-700);
  --success-ink:  #046a4d;   /* green-700 measured 4.20:1 on --success-soft */
  --success-soft: rgba(4, 120, 87, 0.10);
  --warning:      var(--amber-700);
  --warning-ink:  #9a4708;   /* amber-700 measured 4.14:1 on --warning-soft */
  --warning-soft: rgba(180, 83, 9, 0.10);
  --danger:       var(--red-700);
  --danger-ink:   var(--red-700);
  --danger-soft:  rgba(185, 28, 28, 0.09);
  --info:         #1d4ed8;
  --info-ink:     #1e40af;
  --info-soft:    rgba(29, 78, 216, 0.09);

  --grid-line:  rgba(20, 50, 90, 0.06);
  --mesh-1:     rgba(11, 184, 221, 0.18);
  --mesh-2:     rgba(124, 58, 237, 0.14);
  --mesh-3:     rgba(7, 145, 180, 0.10);
  --scrim:      rgba(10, 20, 38, 0.44);

  --shadow-xs: 0 1px 1px rgba(16, 32, 60, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 32, 60, 0.07), 0 2px 6px rgba(16, 32, 60, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 32, 60, 0.06), 0 10px 22px -8px rgba(16, 32, 60, 0.14);
  --shadow-lg: 0 4px 10px rgba(16, 32, 60, 0.07), 0 22px 46px -16px rgba(16, 32, 60, 0.2);
  --shadow-xl: 0 10px 22px rgba(16, 32, 60, 0.09), 0 40px 80px -28px rgba(16, 32, 60, 0.28);
  --shadow-glow: 0 0 0 1px rgba(7, 145, 180, 0.24), 0 14px 40px -14px rgba(7, 145, 180, 0.34);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-600);
}

/* ---- LIGHT via OS preference (only when not forced to dark) -------------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg:            #ffffff;
    --bg-deep:       var(--n-50);
    --surface:       var(--n-50);
    --surface-2:     var(--n-100);
    --surface-3:     var(--n-200);
    --surface-4:     #ccd6e6;
    --surface-inset: rgba(14, 27, 48, 0.035);
    --surface-glass: rgba(255, 255, 255, 0.78);
    --header-bg:     rgba(255, 255, 255, 0.82);
    --header-bg-solid: #ffffff;

    --text:        var(--n-900);
    --text-strong: #050a14;
    --text-muted:  var(--n-600);
    /* See the note in the forced-light block above: --n-500 is below AA here. */
    --text-subtle: #5a6a83;
    --text-invert: #ffffff;

    --border:        rgba(20, 40, 75, 0.13);
    --border-soft:   rgba(20, 40, 75, 0.07);
    --border-strong: rgba(20, 40, 75, 0.26);
    --border-accent: rgba(7, 145, 180, 0.45);
    --divider:       rgba(20, 40, 75, 0.10);

    --accent:          var(--brand-600);
    --accent-hover:    var(--brand-500);
    --accent-press:    var(--brand-700);
    /* brand-700 gives only 4.31:1 against --accent-soft, where .badge-accent
       puts it. #0b6a86 clears AA on the tint and on plain --bg. */
    --accent-ink:      #0b6a86;
    --accent-contrast: #ffffff;
    --accent-soft:     rgba(7, 145, 180, 0.10);
    --accent-softer:   rgba(7, 145, 180, 0.05);

    --accent-2:        var(--violet-600);
    --accent-2-ink:    var(--violet-700);
    --accent-2-soft:   rgba(124, 58, 237, 0.10);

    --success:      var(--green-700);
    --success-ink:  #046a4d;   /* green-700 measured 4.20:1 on --success-soft */
    --success-soft: rgba(4, 120, 87, 0.10);
    --warning:      var(--amber-700);
    --warning-ink:  #9a4708;   /* amber-700 measured 4.14:1 on --warning-soft */
    --warning-soft: rgba(180, 83, 9, 0.10);
    --danger:       var(--red-700);
    --danger-ink:   var(--red-700);
    --danger-soft:  rgba(185, 28, 28, 0.09);
    --info:         #1d4ed8;
    --info-ink:     #1e40af;
    --info-soft:    rgba(29, 78, 216, 0.09);

    --grid-line:  rgba(20, 50, 90, 0.06);
    --mesh-1:     rgba(11, 184, 221, 0.18);
    --mesh-2:     rgba(124, 58, 237, 0.14);
    --mesh-3:     rgba(7, 145, 180, 0.10);
    --scrim:      rgba(10, 20, 38, 0.44);

    --shadow-xs: 0 1px 1px rgba(16, 32, 60, 0.06);
    --shadow-sm: 0 1px 2px rgba(16, 32, 60, 0.07), 0 2px 6px rgba(16, 32, 60, 0.05);
    --shadow-md: 0 2px 4px rgba(16, 32, 60, 0.06), 0 10px 22px -8px rgba(16, 32, 60, 0.14);
    --shadow-lg: 0 4px 10px rgba(16, 32, 60, 0.07), 0 22px 46px -16px rgba(16, 32, 60, 0.2);
    --shadow-xl: 0 10px 22px rgba(16, 32, 60, 0.09), 0 40px 80px -28px rgba(16, 32, 60, 0.28);
    --shadow-glow: 0 0 0 1px rgba(7, 145, 180, 0.24), 0 14px 40px -14px rgba(7, 145, 180, 0.34);
    --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-600);
  }
}

/* ==========================================================================
   02. RESET + BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-6));
  -moz-tab-size: 2;
  tab-size: 2;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: hidden;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums lining-nums;
}
/* `clip` prevents sideways scroll without turning <body> into a scroll
   container, which keeps position:sticky reliable for the header. */
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* Ambient page wash — subtle, never distracting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-below);
  pointer-events: none;
  background:
    radial-gradient(58rem 32rem at 12% -8%, var(--mesh-1), transparent 62%),
    radial-gradient(48rem 30rem at 92% 4%, var(--mesh-2), transparent 60%);
  opacity: 0.5;
}

img, svg, video, canvas, picture, iframe {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }

svg { fill: currentColor; }
/* :where() keeps this at element-level specificity so any component rule
   (.icon-lg, .btn svg, .feature-icon svg …) can override the default size. */
svg:where(:not([width]):not([height])) { width: 1.25em; height: 1.25em; }

/* Inline <symbol> sprite: present in the DOM, occupies no space. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.15em;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: none; cursor: pointer; }

ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; margin: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin-block: var(--sp-10);
}

::selection {
  background-color: var(--accent);
  color: var(--accent-contrast);
  text-shadow: none;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--ring);
  border-radius: var(--r-xs);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  border-radius: var(--r-sm);
}

/* Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--surface-4);
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-subtle); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: var(--z-skip);
  transform: translateY(-160%);
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--accent-contrast); }

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-snug);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-3xl); letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }

p { text-wrap: pretty; }

small { font-size: var(--fs-sm); }

strong, b { font-weight: var(--fw-semibold); color: var(--text-strong); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
}

code {
  background: var(--surface-inset);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xs);
  padding: 0.15em 0.4em;
  color: var(--accent-ink);
  white-space: nowrap;
}

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  padding: 0.1em 0.45em;
  font-size: 0.85em;
  color: var(--text);
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.65;
  tab-size: 2;
  box-shadow: var(--shadow-inset-top);
}
/* Code blocks scroll sideways on narrow screens, so pages give them
   tabindex="0". Keep the focus ring on the block's own radius — the generic
   :focus-visible rule would otherwise square the corners to --r-xs. */
pre:focus-visible { box-shadow: var(--ring); border-radius: var(--r-lg); }
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  white-space: pre;
}

blockquote {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

abbr[title] { text-decoration: underline dotted; cursor: help; }

/* Editorial helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  flex: none;
}
.eyebrow.is-plain::before { display: none; }

.display { font-size: var(--fs-5xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: var(--fw-black); }
.display-xl { font-size: var(--fs-6xl); line-height: 1.02; letter-spacing: -0.03em; font-weight: var(--fw-black); }

.lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 62ch;
}

.section-head { max-width: 46rem; margin-bottom: var(--gap-lg); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .eyebrow { justify-content: center; }
.section-head.is-centered .lede { margin-inline: auto; }
.section-head > * + * { margin-top: var(--sp-4); }

.text-gradient {
  background: linear-gradient(100deg, var(--text-strong) 8%, var(--accent) 52%, var(--accent-2) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: calc(var(--maxw-wide) + var(--gutter) * 2); }
.container-narrow { max-width: calc(var(--maxw-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: var(--section-y-sm); }
.section-lg { padding-block: var(--section-y-lg); }
.section-flush-top { padding-top: 0; }
.section-flush-bottom { padding-bottom: 0; }

.section-alt { background: var(--surface); }
.section-deep { background: var(--bg-deep); }
.section-bordered { border-block: 1px solid var(--divider); }
.section-line-top { border-top: 1px solid var(--divider); }

/* Grids */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-gap-lg { gap: var(--gap-lg); }
.grid-gap-sm { gap: var(--sp-3); }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
}

/* Auto-fit grid for logo clouds / chips */
.grid-auto {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }

/* Split: content + media / sidebar */
.split {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.split-60-40 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split-40-60 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.split-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); align-items: start; }
.split-sidebar-left { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: start; }
.split-top { align-items: start; }
@media (max-width: 900px) {
  .split, .split-60-40, .split-40-60,
  .split-sidebar, .split-sidebar-left { grid-template-columns: minmax(0, 1fr); }
  .split-reverse-mobile > :first-child { order: 2; }
}

/* Stack: vertical rhythm */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--stack-gap, var(--sp-4)); }
.stack-xs { --stack-gap: var(--sp-2); }
.stack-sm { --stack-gap: var(--sp-3); }
.stack-md { --stack-gap: var(--sp-5); }
.stack-lg { --stack-gap: var(--sp-8); }
.stack-xl { --stack-gap: var(--sp-12); }

/* Cluster: wrapping inline group */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--sp-3));
}
.cluster-sm { --cluster-gap: var(--sp-2); }
.cluster-lg { --cluster-gap: var(--sp-5); }
.cluster-center { justify-content: center; }
.cluster-end { justify-content: flex-end; }
.cluster-between { justify-content: space-between; }
.cluster-top { align-items: flex-start; }

.center-x { margin-inline: auto; }
.measure { max-width: var(--maxw-prose); }
.measure-narrow { max-width: 52ch; }

/* Sticky sub-nav / sidebar */
.sticky-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}
@media (max-width: 900px) { .sticky-aside { position: static; } }

/* ==========================================================================
   05. HEADER / NAV / MEGA MENU / MOBILE DRAWER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--header-bg-solid); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* ---- Logo lockup --------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-strong);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-tight);
  flex: none;
  padding-block: var(--sp-2);
}
.logo:hover { color: var(--text-strong); }
.logo-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--accent);
  filter: drop-shadow(0 2px 8px var(--accent-soft));
  transition: transform var(--t-base) var(--ease-spring);
}
.logo:hover .logo-mark { transform: translateY(-1px) scale(1.04); }
.logo-word { display: inline-flex; flex-direction: column; line-height: 1.05; }
.logo-word b { font-weight: var(--fw-bold); color: var(--text-strong); }
.logo-word span {
  font-size: 0.5em;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ---- Desktop nav --------------------------------------------------------- */
.nav-desktop { margin-inline-start: var(--sp-2); }
.nav-list { display: flex; align-items: center; gap: var(--sp-1); }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-standard),
              background-color var(--t-fast) var(--ease-standard);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--text-strong); background: var(--surface-inset); }
.nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav-caret {
  width: 0.7em; height: 0.7em;
  opacity: 0.65;
  transition: transform var(--t-base) var(--ease-standard);
}
.nav-item:hover > .nav-link .nav-caret,
.nav-item:focus-within > .nav-link .nav-caret { transform: rotate(180deg); opacity: 1; }

/* ---- Mega menu ----------------------------------------------------------- */
.mega {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline-start: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: min(60rem, calc(100vw - var(--gutter) * 2));
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl), var(--shadow-inset-top);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              visibility 0s linear var(--t-base);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mega { background: var(--surface-2); }
}
.mega::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -0.6rem;
  height: 0.6rem;
}
.nav-item:hover > .mega,
.nav-item:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}
.mega-start { inset-inline-start: 0; translate: 0 0; }

.mega-grid {
  display: grid;
  gap: var(--sp-6) var(--sp-8);
  grid-template-columns: repeat(var(--mega-cols, 2), minmax(12rem, 1fr));
}
.mega-3 { --mega-cols: 3; }
.mega-col-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}
.mega-list { display: flex; flex-direction: column; gap: 1px; }

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  margin-inline: calc(var(--sp-3) * -1);
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard);
}
.mega-link:hover,
.mega-link:focus-visible { background: var(--accent-softer); color: var(--text-strong); }
.mega-link .icon {
  width: 1.15rem; height: 1.15rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
  opacity: 0.9;
}
.mega-link b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: inherit;
  line-height: 1.35;
}
.mega-link span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: 1.45;
  margin-top: 1px;
}

.mega-promo {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background:
    radial-gradient(22rem 12rem at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--border);
  min-width: 15rem;
}
.mega-promo h4 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.mega-promo p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); }

.mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--divider);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

/* ---- Header actions ------------------------------------------------------ */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-inline-start: auto;
  flex: none;
}

/* ---- CSS-only mobile drawer ----------------------------------------------
   #nav-toggle, .site-header, .drawer-scrim and .drawer are SIBLINGS at the top
   of <body>. The drawer must NOT live inside .site-header, because the header's
   backdrop-filter creates a containing block that would trap position:fixed.
   The checkbox stays focusable (not tabindex="-1") so keyboard users can open
   the drawer; its focus ring is rendered on the visible hamburger label.
   -------------------------------------------------------------------------- */
.nav-toggle {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
  z-index: var(--z-below);
}

.hamburger {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-inset);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-standard),
              border-color var(--t-fast) var(--ease-standard);
}
.hamburger:hover { background: var(--surface-2); border-color: var(--border-strong); }
.hamburger-box { position: relative; width: 1.125rem; height: 0.875rem; }
.hamburger-box i {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-standard),
              opacity var(--t-fast) var(--ease-standard),
              top var(--t-base) var(--ease-standard);
}
.hamburger-box i:nth-child(1) { top: 0; }
.hamburger-box i:nth-child(2) { top: calc(50% - 1px); }
.hamburger-box i:nth-child(3) { top: calc(100% - 2px); }

.nav-toggle:checked ~ .site-header .hamburger-box i:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle:checked ~ .site-header .hamburger-box i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-toggle:checked ~ .site-header .hamburger-box i:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.nav-toggle:focus-visible ~ .site-header .hamburger { box-shadow: var(--ring); }
.nav-toggle:checked ~ .site-header .hamburger { border-color: var(--border-accent); color: var(--accent-ink); }

/* Lock background scroll while the drawer is open */
body:has(.nav-toggle:checked) { overflow: hidden; }

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: var(--scrim);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity var(--t-base) var(--ease-standard),
              visibility 0s linear var(--t-base);
}
.nav-toggle:checked ~ .drawer-scrim {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: var(--z-drawer);
  width: min(23rem, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--header-bg-solid);
  border-inline-start: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transform: translateX(102%);
  visibility: hidden;
  overscroll-behavior: contain;
  transition: transform var(--t-slow) var(--ease-out),
              visibility 0s linear var(--t-slow);
}
.nav-toggle:checked ~ .drawer {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s, 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--divider);
  min-height: var(--header-h);
  flex: none;
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-standard),
              border-color var(--t-fast) var(--ease-standard);
}
.drawer-close:hover { color: var(--text-strong); border-color: var(--border-strong); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5) var(--sp-8);
  -webkit-overflow-scrolling: touch;
}

.drawer-group { border-bottom: 1px solid var(--divider); }
.drawer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group > summary::after {
  content: "";
  width: 0.55rem; height: 0.55rem;
  flex: none;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  color: var(--text-subtle);
  transition: transform var(--t-base) var(--ease-standard);
}
.drawer-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.drawer-sublist { padding-bottom: var(--sp-4); display: flex; flex-direction: column; gap: 1px; }
.drawer-sublist a,
.drawer-link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  margin-inline: calc(var(--sp-3) * -1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard);
}
.drawer-sublist a:hover,
.drawer-link:hover { background: var(--accent-softer); color: var(--text-strong); }
.drawer-link {
  padding-block: var(--sp-4);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  margin-inline: 0;
}
.drawer-foot {
  flex: none;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

/* Prevent drawer from being reachable/animated on desktop.
   #nav-toggle must go too: it is a 1px transparent checkbox, so leaving it in
   the tab order gives desktop keyboard users an invisible first tab stop
   labelled "Open navigation menu" that opens nothing. */
@media (min-width: 1101px) {
  .drawer, .drawer-scrim, .nav-toggle { display: none; }
}
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .header-actions .btn-desktop-only { display: none; }
  .hamburger { display: grid; }
  .header-actions { gap: var(--sp-2); }
}
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .header-actions .hamburger { display: grid; }
  .logo-word span { display: none; }
}

/* Announcement / top bar */
.topbar {
  position: relative;
  z-index: var(--z-sticky);
  background: linear-gradient(90deg, var(--accent-softer), var(--accent-soft), var(--accent-softer));
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-2);
  text-align: center;
}
.topbar a { color: var(--accent-ink); font-weight: var(--fw-semibold); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ==========================================================================
   06. BUTTONS
   ========================================================================== */

.btn {
  --btn-py: 0.6875rem;
  --btn-px: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: relative;
  isolation: isolate;
  transition: background-color var(--t-fast) var(--ease-standard),
              border-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard),
              box-shadow var(--t-base) var(--ease-standard),
              transform var(--t-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn svg, .btn .icon { width: 1.1em; height: 1.1em; flex: none; }
.btn .icon-end { margin-inline-start: -0.1em; transition: transform var(--t-base) var(--ease-out); }
.btn:hover .icon-end { transform: translateX(3px); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--accent-contrast);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
              0 6px 18px -8px var(--border-accent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-hover));
  color: var(--accent-contrast);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
              0 10px 26px -8px var(--border-accent);
}
.btn-primary:active { background: var(--accent-press); }

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-strong);
  box-shadow: var(--shadow-inset-top);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-accent);
  color: var(--text-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-inset); color: var(--text-strong); }

.btn-outline {
  background: transparent;
  border-color: var(--border-accent);
  color: var(--accent-ink);
}
.btn-outline:hover { background: var(--accent-softer); color: var(--accent-ink); border-color: var(--accent); }

.btn-danger {
  background: var(--danger);
  color: var(--text-invert);
}
.btn-danger:hover { filter: brightness(1.08); color: var(--text-invert); }

.btn-link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent-ink);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-xs);
}
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; }
.btn-link:active { transform: none; }

/* Sizes */
.btn-xs { --btn-py: 0.3125rem; --btn-px: 0.625rem; font-size: var(--fs-2xs); border-radius: var(--r-sm); }
.btn-sm { --btn-py: 0.5rem; --btn-px: 0.875rem; font-size: var(--fs-xs); }
.btn-lg { --btn-py: 0.875rem; --btn-px: 1.5rem; font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn-xl { --btn-py: 1.0625rem; --btn-px: 1.875rem; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn-block { display: flex; width: 100%; }
.btn-icon { --btn-px: var(--btn-py); aspect-ratio: 1; }

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Inline "learn more" arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--r-xs);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform var(--t-base) var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link::after { content: none; }

/* ==========================================================================
   07. CARDS + CONTENT COMPONENTS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad, var(--sp-6));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.card > * + * { margin-top: var(--sp-3); }
.card-pad-lg { --card-pad: var(--sp-8); }
.card-pad-sm { --card-pad: var(--sp-4); }
.card-flush { padding: 0; overflow: hidden; }
.card-glass { background: var(--surface-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.card-hover:hover,
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { color: inherit; }

/* Stretched link — makes the whole card clickable while keeping semantics */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card:has(.card-link:focus-visible) { box-shadow: var(--ring); }

.card-title { font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
.card-text { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.card-foot {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(18rem 10rem at 30% 20%, var(--mesh-1), transparent 70%),
    radial-gradient(16rem 10rem at 85% 90%, var(--mesh-2), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }

/* Accent top edge on hover */
.card-accent { overflow: hidden; }
.card-accent::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-standard);
}
.card-accent:hover::before { opacity: 1; }

/* ---- Feature card -------------------------------------------------------- */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(28rem 16rem at 0% 0%, var(--accent-softer), transparent 62%),
    var(--surface);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}
.feature-card h3 { font-size: var(--fs-lg); }
.feature-card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.feature-card .arrow-link { margin-top: auto; padding-top: var(--sp-2); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: var(--r-lg);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-icon.is-violet { color: var(--accent-2); background: var(--accent-2-soft); border-color: var(--accent-2-soft); }
.feature-icon.is-success { color: var(--success); background: var(--success-soft); border-color: var(--success-soft); }
.feature-icon.is-warning { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-soft); }
.feature-icon.is-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft); }
.feature-icon-sm { width: 2.25rem; height: 2.25rem; border-radius: var(--r-md); }
.feature-icon-sm svg { width: 1.125rem; height: 1.125rem; }

/* Horizontal feature row */
.feature-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.feature-row h4 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.feature-row p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Stat card ----------------------------------------------------------- */
.stat-card {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.stat-value {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.stat-value em {
  font-style: normal;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
}
.stat-note { display: block; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-subtle); }

.stat-strip {
  display: grid;
  gap: var(--sp-6) var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  padding: var(--sp-8) 0;
}
.stat-strip .stat-card { border: 0; background: none; padding: 0; }
.stat-strip .stat-card::after { display: none; }

/* ---- Logo cloud ---------------------------------------------------------- */
.logo-cloud {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 45%), 1fr));
  align-items: center;
}
.logo-cloud-item {
  display: grid;
  place-items: center;
  padding: var(--sp-5) var(--sp-4);
  min-height: 4.5rem;
  border-radius: var(--r-lg);
  color: var(--text-muted);
  transition: color var(--t-base) var(--ease-standard),
              background-color var(--t-base) var(--ease-standard);
}
.logo-cloud-item:hover { color: var(--text-strong); background: var(--surface-inset); }
.logo-cloud-item svg { height: 1.75rem; width: auto; max-width: 100%; }
.logo-cloud-item span {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}
.logo-cloud-bordered { border-block: 1px solid var(--divider); padding-block: var(--sp-4); }

/* ---- Testimonial --------------------------------------------------------- */
.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(30rem 18rem at 100% 0%, var(--accent-softer), transparent 65%),
    var(--surface);
}
.testimonial-quote {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text);
  letter-spacing: var(--tracking-snug);
}
.testimonial-quote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.15em;
  margin-inline-end: 0.06em;
}
.testimonial-quote::after { content: "\201D"; color: var(--accent); line-height: 0; }
.testimonial-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-2);
}
.avatar {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  flex: none;
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
}
.avatar-lg { width: 4rem; height: 4rem; font-size: var(--fs-md); }
.avatar-sm { width: 2.125rem; height: 2.125rem; font-size: var(--fs-2xs); }
.testimonial-name { font-weight: var(--fw-semibold); color: var(--text-strong); font-size: var(--fs-sm); }
.testimonial-role { font-size: var(--fs-xs); color: var(--text-subtle); }
.testimonial-lg .testimonial-quote { font-size: var(--fs-xl); }

/* ---- Team card ----------------------------------------------------------- */
.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  align-items: center;
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.team-portrait {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 140deg, var(--accent), var(--accent-2), var(--accent));
  padding: 3px;
}
.team-portrait > * {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}
.team-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.team-role { font-size: var(--fs-xs); color: var(--accent-ink); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.team-bio { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Resource card ------------------------------------------------------- */
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.resource-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--accent-softer), transparent 55%),
    radial-gradient(16rem 10rem at 78% 12%, var(--mesh-2), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  color: var(--accent);
}
.resource-thumb svg { width: 3rem; height: 3rem; opacity: 0.85; }
.resource-body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); flex: 1; }
.resource-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.resource-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  margin-inline-end: var(--sp-3);
  vertical-align: middle;
  opacity: 0.6;
}
.resource-title { font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--text-strong); line-height: 1.3; }
.resource-excerpt { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-relaxed); }
.resource-card .arrow-link { margin-top: auto; padding-top: var(--sp-2); }

/* ---- Job card ------------------------------------------------------------ */
.job-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-standard),
              background-color var(--t-base) var(--ease-standard),
              transform var(--t-base) var(--ease-out);
}
.job-card:hover { border-color: var(--border-accent); background: var(--surface-2); transform: translateX(3px); }
.job-main { min-width: min(100%, 18rem); flex: 1; }
.job-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.job-meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.job-meta svg { width: 0.95em; height: 0.95em; opacity: 0.8; }

/* ---- Badges + pills ------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.65em;
  border-radius: var(--r-sm);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge svg { width: 0.9em; height: 0.9em; }
.badge-accent  { background: var(--accent-soft);   color: var(--accent-ink);   border-color: var(--border-accent); }
.badge-violet  { background: var(--accent-2-soft); color: var(--accent-2-ink); border-color: var(--accent-2-soft); }
.badge-success { background: var(--success-soft);  color: var(--success-ink);  border-color: var(--success-soft); }
.badge-warning { background: var(--warning-soft);  color: var(--warning-ink);  border-color: var(--warning-soft); }
.badge-danger  { background: var(--danger-soft);   color: var(--danger-ink);   border-color: var(--danger-soft); }
.badge-info    { background: var(--info-soft);     color: var(--info-ink);     border-color: var(--info-soft); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.9em;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard),
              background-color var(--t-fast) var(--ease-standard);
}
a.pill:hover, .pill.is-active {
  color: var(--text-strong);
  border-color: var(--border-accent);
  background: var(--accent-softer);
}
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--border-accent); }

/* Live status dot */
.dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  flex: none;
  box-shadow: 0 0 0 3px var(--success-soft);
}
.dot-warning { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.dot-danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot-pulse { animation: pulse-ring 2.4s var(--ease-in-out) infinite; }

/* ---- Alerts / callouts --------------------------------------------------- */
.alert, .callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}
.alert > svg, .callout > svg {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
}
.alert strong, .callout strong { display: block; color: var(--text-strong); margin-bottom: var(--sp-1); }
.alert-success { border-inline-start-color: var(--success); background: var(--success-soft); }
.alert-success > svg { color: var(--success); }
.alert-warning { border-inline-start-color: var(--warning); background: var(--warning-soft); }
.alert-warning > svg { color: var(--warning); }
.alert-danger { border-inline-start-color: var(--danger); background: var(--danger-soft); }
.alert-danger > svg { color: var(--danger); }
.alert-info { border-inline-start-color: var(--info); background: var(--info-soft); }
.alert-info > svg { color: var(--info); }

/* ---- Misc content -------------------------------------------------------- */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.check-list li > svg {
  width: 1.15rem; height: 1.15rem;
  flex: none;
  margin-top: 0.2rem;
  color: var(--success);
}
.check-list.is-accent li > svg { color: var(--accent); }
.check-list strong { color: var(--text-strong); }

.kpi-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-10);
}
.kpi-inline > div > b {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--text-strong);
  line-height: 1.1;
}
.kpi-inline > div > span { font-size: var(--fs-xs); color: var(--text-subtle); }

/* Decorative panel used to stand in for product screenshots */
.panel-visual {
  position: relative;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(30rem 18rem at 20% 0%, var(--mesh-1), transparent 60%),
    radial-gradient(26rem 18rem at 95% 100%, var(--mesh-2), transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow-xl), var(--shadow-inset-top);
  overflow: hidden;
  padding: var(--sp-4);
}
.panel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.panel-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
}
.panel-chrome i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--surface-4); }
.panel-chrome span { margin-inline-start: var(--sp-3); font-size: var(--fs-2xs); color: var(--text-subtle); font-family: var(--font-mono); }
.panel-body {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: var(--sp-5);
}

/* ==========================================================================
   08. DATA COMPONENTS
   ========================================================================== */

/* ---- Responsive table ---------------------------------------------------- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { box-shadow: var(--ring); }

.table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: start;
}
.table caption {
  caption-side: top;
  padding: var(--sp-4) var(--sp-5);
  text-align: start;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  border-bottom: 1px solid var(--divider);
}
.table th, .table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--divider);
}
.table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-strong);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}
.table tbody th { font-weight: var(--fw-semibold); color: var(--text-strong); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast) var(--ease-standard); }
.table tbody tr:hover { background: var(--surface-inset); }
.table td { color: var(--text-muted); }
.table .is-num { text-align: end; font-variant-numeric: tabular-nums; }
.table-striped tbody tr:nth-child(even) { background: var(--surface-inset); }
.table-compact th, .table-compact td { padding: var(--sp-3) var(--sp-4); }
.table-fixed-first tbody th:first-child,
.table-fixed-first thead th:first-child {
  position: sticky;
  inset-inline-start: 0;
  background: var(--surface-2);
  z-index: 2;
}
.table-yes { color: var(--success); font-weight: var(--fw-semibold); }
.table-no { color: var(--text-subtle); }

.table-note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-subtle); }
.scroll-hint {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--text-subtle);
}
@media (max-width: 760px) { .scroll-hint { display: block; } }

/* ---- Pricing ------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  align-items: start;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.pricing-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pricing-name { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); }
.pricing-desc { font-size: var(--fs-sm); color: var(--text-muted); min-height: 2.75em; }
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  border-top: 1px solid var(--divider);
  padding-top: var(--sp-5);
}
.pricing-amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.pricing-unit { font-size: var(--fs-xs); color: var(--text-subtle); padding-bottom: 0.3em; }
.pricing-card .check-list { flex: 1; }
.pricing-card .btn { width: 100%; }

.pricing-card.featured {
  border-color: var(--border-accent);
  background:
    radial-gradient(32rem 20rem at 50% -10%, var(--accent-soft), transparent 62%),
    var(--surface-2);
  box-shadow: var(--shadow-glow);
  z-index: var(--z-raised);
}
.pricing-card.featured:hover { transform: translateY(-4px); }
.pricing-card.featured .pricing-amount { color: var(--accent-ink); }
.pricing-flag {
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  translate: -50% -50%;
  padding: 0.3em 0.9em;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
/* In light mode --accent (#0791b4) gives the white flag text only 3.67:1 at
   badge size. --accent-press is the same hue, one step down, and clears AA. */
:root[data-theme="light"] .pricing-flag { background: var(--accent-press); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .pricing-flag { background: var(--accent-press); }
}

/* Billing toggle (CSS-only, radio based) */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.billing-toggle label {
  padding: 0.45em 1.1em;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard);
}
.billing-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing-toggle input:checked + label { background: var(--accent); color: var(--accent-contrast); }
.billing-toggle input:focus-visible + label { box-shadow: var(--ring); }

/* ---- Numbered process steps --------------------------------------------- */
.steps { display: grid; gap: var(--gap-lg); counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps-3, .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps-3, .steps-4 { grid-template-columns: minmax(0, 1fr); } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  counter-increment: step;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: calc(var(--sp-6) * -0.5 - 0.9rem);
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border-accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.step h3 { font-size: var(--fs-lg); margin-top: var(--sp-3); }
.step p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-relaxed); }

/* Vertical variant */
.steps-vertical { grid-template-columns: minmax(0, 1fr); gap: 0; }
.steps-vertical .step {
  border-top: 0;
  border-inline-start: 1px solid var(--border);
  padding: 0 0 var(--sp-10) var(--sp-8);
  margin-inline-start: 1.125rem;
}
.steps-vertical .step:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.steps-vertical .step::before {
  top: 0;
  inset-inline-start: -1.125rem;
  translate: 0 0;
  border-radius: var(--r-full);
}
.steps-vertical .step h3 { margin-top: 0; }

/* ---- Timeline ------------------------------------------------------------ */
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--sp-8); }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0.5rem 0;
  inset-inline-start: 0.4375rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border), transparent);
}
.timeline-item { position: relative; padding-inline-start: var(--sp-8); }
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
  width: 0.9375rem; height: 0.9375rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-softer);
}
.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--accent-ink);
  margin-bottom: var(--sp-2);
}
.timeline-item h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.timeline-item p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-relaxed); }

/* ---- Definition / glossary list ------------------------------------------ */
.def-list { display: grid; gap: var(--sp-5); }
.def-list dt {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  margin-bottom: var(--sp-1);
}
.def-list dd { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-relaxed); }
.def-list > div { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--divider); }
.def-list > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* Alphabet index for glossary */
.alpha-index { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.alpha-index a {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: 0.4em;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-standard);
}
.alpha-index a:hover { border-color: var(--border-accent); color: var(--accent-ink); background: var(--accent-softer); }

/* Meter / progress bar */
.meter {
  height: 0.5rem;
  border-radius: var(--r-full);
  background: var(--surface-3);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: var(--meter, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ==========================================================================
   09. INTERACTIVE (CSS-only)
   ========================================================================== */

/* ---- Accordion via <details> --------------------------------------------- */
.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.accordion-item { border-bottom: 1px solid var(--divider); }
.accordion-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-1);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast) var(--ease-standard);
}
.accordion-item > summary:hover { color: var(--accent-ink); }
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary::marker { content: ""; }
.accordion-icon {
  position: relative;
  width: 1.125rem; height: 1.125rem;
  flex: none;
  color: var(--accent);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 1px);
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-standard),
              opacity var(--t-fast) var(--ease-standard);
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-item[open] .accordion-icon::after { transform: rotate(0); opacity: 0; }
.accordion-panel {
  padding: 0 var(--sp-1) var(--sp-6);
  max-width: 68ch;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.accordion-panel > * + * { margin-top: var(--sp-3); }
.accordion-item[open] > summary { color: var(--accent-ink); }

.accordion-boxed { border-top: 0; gap: var(--sp-3); }
.accordion-boxed .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding-inline: var(--sp-5);
  transition: border-color var(--t-base) var(--ease-standard);
}
.accordion-boxed .accordion-item[open] { border-color: var(--border-accent); }

/* ---- Tabs (radio technique, up to 5 panels) ------------------------------ */
.tabs { display: block; }
.tabs > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 4px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: var(--gap);
}
.tab-list > label {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-standard),
              color var(--t-fast) var(--ease-standard);
}
.tab-list > label:hover { color: var(--text-strong); }
.tab-list > label svg { width: 1.05em; height: 1.05em; }

.tab-panels > .tab-panel { display: none; }

.tabs > input:nth-of-type(1):checked ~ .tab-list > label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tab-list > label:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tab-list > label:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tab-list > label:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tab-list > label:nth-of-type(5) {
  background: var(--bg);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}
.tabs > input:nth-of-type(1):focus-visible ~ .tab-list > label:nth-of-type(1),
.tabs > input:nth-of-type(2):focus-visible ~ .tab-list > label:nth-of-type(2),
.tabs > input:nth-of-type(3):focus-visible ~ .tab-list > label:nth-of-type(3),
.tabs > input:nth-of-type(4):focus-visible ~ .tab-list > label:nth-of-type(4),
.tabs > input:nth-of-type(5):focus-visible ~ .tab-list > label:nth-of-type(5) {
  box-shadow: var(--ring);
}
.tabs > input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tab-panels > .tab-panel:nth-of-type(5) {
  display: block;
  animation: fade-rise var(--t-slow) var(--ease-out) both;
}
@media (max-width: 640px) {
  .tab-list { flex-direction: column; }
  .tab-list > label { justify-content: flex-start; }
}

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { padding-block: var(--sp-5) 0; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before {
  content: "";
  width: 0.35rem; height: 0.35rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; border-radius: var(--r-xs); }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: var(--fw-medium); }

/* ---- Pagination ---------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--gap-lg);
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-standard);
}
.pagination a:hover { border-color: var(--border-accent); color: var(--text-strong); background: var(--surface-2); }
.pagination [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: var(--fw-semibold);
}
.pagination .is-gap { border: 0; color: var(--text-subtle); min-width: 1.5rem; padding-inline: 0; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

/* ==========================================================================
   10. FORMS
   ========================================================================== */

.form { display: grid; gap: var(--sp-5); }
.form-row {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }

.label, label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}
.label .req, label .req { color: var(--danger); margin-inline-start: 0.15em; }
.hint { font-size: var(--fs-xs); color: var(--text-subtle); }
.error-text { font-size: var(--fs-xs); color: var(--danger-ink); }

.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="password"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.45;
  transition: border-color var(--t-fast) var(--ease-standard),
              background-color var(--t-fast) var(--ease-standard),
              box-shadow var(--t-fast) var(--ease-standard);
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); opacity: 1; }
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 8rem; resize: vertical; }

select, .select {
  padding-inline-end: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    right 1.05rem center,
    right 0.65rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--text); }

input[aria-invalid="true"], .input.is-invalid, textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

input[type="checkbox"], input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  cursor: pointer;
  font-weight: var(--fw-regular);
}
.checkbox a, .radio a { color: var(--accent-ink); }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  min-width: 0;
}
legend {
  padding-inline: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}
fieldset > * + * { margin-top: var(--sp-5); }

.input-group { display: flex; gap: var(--sp-2); }
.input-group .input, .input-group input { flex: 1; min-width: 0; }
@media (max-width: 420px) {
  .input-group { flex-direction: column; }
  .input-group .btn { width: 100%; }
}

.form-card {
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) { .form-card { padding: var(--sp-5); } }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}
.form-legal { font-size: var(--fs-xs); color: var(--text-subtle); line-height: var(--lh-relaxed); }

/* Search field with leading icon */
.search-field { position: relative; }
.search-field > svg {
  position: absolute;
  inset-inline-start: 0.875rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.05rem; height: 1.05rem;
  color: var(--text-subtle);
  pointer-events: none;
}
.search-field input { padding-inline-start: 2.6rem; }

/* ==========================================================================
   11. HEROES + SECTION DECOR
   ========================================================================== */

.hero, .hero-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

/* Layered mesh + grid, authored entirely in CSS */
.hero::before, .hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46rem 26rem at 14% -6%, var(--mesh-1), transparent 58%),
    radial-gradient(40rem 26rem at 88% 8%, var(--mesh-2), transparent 58%),
    radial-gradient(60rem 30rem at 50% 108%, var(--mesh-3), transparent 62%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 72%);
}
.hero::after, .hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: clamp(38px, 5vw, 64px) clamp(38px, 5vw, 64px);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero { padding-block: clamp(4rem, 2.5rem + 7vw, 9.5rem) var(--section-y); }
.hero-inner { display: grid; gap: var(--gap-lg); align-items: center; }
.hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
@media (max-width: 980px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }

.hero-content { max-width: 40rem; }
.hero h1 { font-size: var(--fs-5xl); }
.hero .lede { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.hero-actions { margin-top: var(--sp-8); }
.hero-meta {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--divider);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.hero-centered { text-align: center; }
.hero-centered .hero-content { max-width: 52rem; margin-inline: auto; }
.hero-centered .eyebrow { justify-content: center; }
.hero-centered .lede { margin-inline: auto; }
.hero-centered .hero-actions { justify-content: center; }

/* Announcement chip in hero */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--sp-6);
  transition: border-color var(--t-base) var(--ease-standard);
}
.hero-chip:hover { border-color: var(--border-accent); color: var(--text); }
.hero-chip b { color: var(--text-strong); font-weight: var(--fw-semibold); }
.hero-chip .badge { margin-inline-start: 0; }

/* Interior page hero — compact */
.hero-page { padding-block: clamp(2.75rem, 2rem + 3.4vw, 5.5rem); }
.hero-page h1 { font-size: var(--fs-4xl); }
.hero-page .lede { margin-top: var(--sp-4); }
.hero-page-inner { max-width: 52rem; }
.hero-page .breadcrumb { padding-top: 0; margin-bottom: var(--sp-5); }
.hero-page-actions { margin-top: var(--sp-7); }
.hero-page.is-centered .hero-page-inner { margin-inline: auto; text-align: center; }
.hero-page.is-centered .eyebrow { justify-content: center; }
.hero-page.is-centered .lede { margin-inline: auto; }

/* Section-level decorative glow */
.has-glow { position: relative; isolation: isolate; }
.has-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48rem 24rem at 50% 0%, var(--accent-softer), transparent 65%);
  pointer-events: none;
}

/* Full-bleed divider with scanline motif */
.rule-glow {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-accent) 22%, var(--border-accent) 78%, transparent);
}

/* ==========================================================================
   12. CTA BAND + FOOTER
   ========================================================================== */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  border-block: 1px solid var(--border-soft);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38rem 22rem at 18% 12%, var(--mesh-1), transparent 62%),
    radial-gradient(34rem 22rem at 84% 88%, var(--mesh-2), transparent 62%),
    var(--surface);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
}
.cta-band-copy { max-width: 40rem; }
.cta-band h2 { font-size: var(--fs-3xl); }
.cta-band p { color: var(--text-muted); font-size: var(--fs-lg); margin-top: var(--sp-4); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-band.is-centered .cta-band-inner { flex-direction: column; text-align: center; justify-content: center; }
.cta-band.is-centered .cta-band-copy { margin-inline: auto; }

.cta-boxed {
  padding: clamp(2rem, 1.4rem + 2.6vw, 4rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(36rem 20rem at 10% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(30rem 20rem at 92% 100%, var(--accent-2-soft), transparent 62%),
    var(--surface-2);
  box-shadow: var(--shadow-lg);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-top: var(--section-y-sm);
  font-size: var(--fs-sm);
}
.footer-top {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.65fr);
  padding-bottom: var(--sp-12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

.footer-brand { max-width: 24rem; display: flex; flex-direction: column; gap: var(--sp-5); }
.footer-tagline { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

.footer-cols {
  display: grid;
  gap: var(--gap) var(--gap-lg);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 780px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

.footer-col h3 {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--r-xs);
  transition: color var(--t-fast) var(--ease-standard);
}
.footer-col a:hover { color: var(--accent-ink); }

.footer-newsletter {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.footer-newsletter h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.footer-newsletter p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); }

.social-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.social-list a {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease-standard),
              border-color var(--t-fast) var(--ease-standard),
              background-color var(--t-fast) var(--ease-standard),
              transform var(--t-fast) var(--ease-out);
}
.social-list a:hover {
  color: var(--accent-ink);
  border-color: var(--border-accent);
  background: var(--accent-softer);
  transform: translateY(-2px);
}
.social-list svg { width: 1.05rem; height: 1.05rem; }

.footer-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.footer-legal {
  border-top: 1px solid var(--divider);
  padding-block: var(--sp-6);
  margin-top: var(--sp-4);
}
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-legal-links a { color: var(--text-subtle); text-decoration: none; border-radius: var(--r-xs); }
.footer-legal-links a:hover { color: var(--text); text-decoration: underline; }

/* ==========================================================================
   13. PROSE
   ========================================================================== */

.prose {
  max-width: var(--maxw-prose);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  scroll-margin-top: calc(var(--header-h) + var(--sp-6));
}
.prose h3 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
  scroll-margin-top: calc(var(--header-h) + var(--sp-6));
}
.prose h4 { font-size: var(--fs-lg); margin-top: var(--sp-8); margin-bottom: var(--sp-2); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text-strong); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { padding-inline-start: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: var(--sp-6); }
.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.35rem;
  top: 0.68em;
  width: 0.375rem; height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--accent); font-weight: var(--fw-semibold); }
.prose li > ul, .prose li > ol { margin-top: var(--sp-2); }
.prose blockquote { margin-block: var(--sp-8); }
.prose figure { margin-block: var(--sp-8); }
.prose figcaption { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-subtle); text-align: center; }
.prose hr { margin-block: var(--sp-10); }
.prose pre { margin-block: var(--sp-6); }
.prose .table-wrap { margin-block: var(--sp-6); }
.prose dl { display: grid; gap: var(--sp-4); }
.prose dt { font-weight: var(--fw-semibold); color: var(--text-strong); }
.prose dd { margin: 0; }
.prose-wide { max-width: 84ch; }
.prose-legal h2 { font-size: var(--fs-xl); }
.prose-legal { font-size: var(--fs-sm); }

/* Article meta + table of contents */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.toc {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.toc h2, .toc h3 {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 var(--sp-3);
}
.toc ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding-inline-start: var(--sp-3);
  border-inline-start: 2px solid var(--border);
  line-height: 1.45;
  transition: color var(--t-fast) var(--ease-standard),
              border-color var(--t-fast) var(--ease-standard);
}
.toc a:hover { color: var(--accent-ink); border-inline-start-color: var(--accent); }

/* ==========================================================================
   14. MOTION
   ========================================================================== */

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 var(--success-soft); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.75; }
}
@keyframes sweep {
  from { transform: translateX(-110%); }
  to   { transform: translateX(110%); }
}

.reveal { animation: fade-rise var(--t-slower) var(--ease-out) both; }
.reveal-fade { animation: fade-in var(--t-slower) var(--ease-out) both; }
.reveal-scale { animation: scale-in var(--t-slow) var(--ease-out) both; }

.delay-1 { animation-delay: 70ms; }
.delay-2 { animation-delay: 140ms; }
.delay-3 { animation-delay: 210ms; }
.delay-4 { animation-delay: 280ms; }
.delay-5 { animation-delay: 350ms; }
.delay-6 { animation-delay: 420ms; }

/* Scanning highlight for hero visuals */
.scanline { position: relative; overflow: hidden; }
.scanline::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-softer), transparent);
  animation: sweep 5s var(--ease-in-out) infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-fade, .reveal-scale { animation: none; opacity: 1; transform: none; }
  .card-hover:hover, a.card:hover, .feature-card:hover,
  .resource-card:hover, .team-card:hover, .job-card:hover,
  .pricing-card.featured:hover, .social-list a:hover { transform: none; }
  .scanline::after { display: none; }
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.text-nowrap { white-space: nowrap; }
.text-upper { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }
.mono { font-family: var(--font-mono); }

/* Color */
.text-strong { color: var(--text-strong); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent-ink); }
.text-accent-2 { color: var(--accent-2-ink); }
.text-success { color: var(--success-ink); }
.text-warning { color: var(--warning-ink); }
.text-danger { color: var(--danger-ink); }

.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-deep { background: var(--bg-deep); }
.bordered { border: 1px solid var(--border); border-radius: var(--r-lg); }
.rounded { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.mb-12 { margin-bottom: var(--sp-12); }
.p-0 { padding: 0; }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }
.py-0 { padding-block: 0; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid-display { display: grid; }
.hidden { display: none; }
.flex-1 { flex: 1; }
.flex-none { flex: none; }
.full-width { width: 100%; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; }
/* Horizontal scroll container for wide diagrams. Mirrors .table-wrap: pages give
   it tabindex="0" so the region is reachable — and therefore scrollable — by
   keyboard alone, which is the only way to reach a clipped column at 360px. */
.overflow-x {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.overflow-x:focus-visible { box-shadow: var(--ring); border-radius: var(--r-md); }

/* Responsive visibility */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile-only { display: none !important; } }
@media (max-width: 1100px) { .hide-tablet-down { display: none !important; } }
@media (min-width: 1101px) { .hide-desktop { display: none !important; } }

/* Safety net: nothing may push the page sideways */
.container, .section, main, footer, header { max-width: 100vw; }
table, pre, code, figure, iframe { max-width: 100%; }

/* At 360px the container content box is ~320px, and a card interior is ~272px.
   Several real labels ("Public sector and education discounts available",
   "Talk to us about a parallel evaluation") measure wider than that, so the
   default white-space:nowrap on .btn / .pill / .badge and on inline <code>
   would push past the edge — and because <body> is overflow-x:clip, the
   overhang is silently cut off rather than scrollable. Let them wrap instead.
   Desktop keeps nowrap, where these labels comfortably fit on one line. */
@media (max-width: 560px) {
  .btn, .pill, .badge { white-space: normal; }
  :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
}

/* ==========================================================================
   16. PRINT
   ========================================================================== */

@media print {
  body { background: #fff; color: #000; }
  body::before,
  .site-header, .site-footer, .cta-band, .drawer, .drawer-scrim,
  .topbar, .skip-link, .pagination, .hero::after, .hero-page::after { display: none !important; }
  .hero::before, .hero-page::before { display: none !important; }
  .card, .feature-card, .pricing-card, .table-wrap { border: 1px solid #ccc; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .section { padding-block: 1.5rem; }
}
