/* fonts:begin — generated by scripts/fonts.py; do not edit by hand */
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-cyrillic-ext.woff2?v=2317fa4b) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-cyrillic.woff2?v=68944396) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-vietnamese.woff2?v=8fa40e5d) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-latin-ext.woff2?v=824f485b) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-latin.woff2?v=19f9c925) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-cyrillic-ext.woff2?v=2317fa4b) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-cyrillic.woff2?v=68944396) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-vietnamese.woff2?v=8fa40e5d) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-latin-ext.woff2?v=824f485b) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-latin.woff2?v=19f9c925) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-cyrillic-ext.woff2?v=2317fa4b) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-cyrillic.woff2?v=68944396) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-vietnamese.woff2?v=8fa40e5d) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-latin-ext.woff2?v=824f485b) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-latin.woff2?v=19f9c925) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/geist-cyrillic-ext.woff2?v=2317fa4b) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/geist-cyrillic.woff2?v=68944396) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/geist-vietnamese.woff2?v=8fa40e5d) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/geist-latin-ext.woff2?v=824f485b) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/geist-latin.woff2?v=19f9c925) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-cyrillic-ext.woff2?v=cd880099) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-cyrillic.woff2?v=4866787f) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-symbols2.woff2?v=5bb66d83) format('woff2');unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-vietnamese.woff2?v=d39b6088) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-latin-ext.woff2?v=1a189eb9) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-mono-latin.woff2?v=684ad5b5) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-cyrillic-ext.woff2?v=cd880099) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-cyrillic.woff2?v=4866787f) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-symbols2.woff2?v=5bb66d83) format('woff2');unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-vietnamese.woff2?v=d39b6088) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-latin-ext.woff2?v=1a189eb9) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-mono-latin.woff2?v=684ad5b5) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* fonts:end */
/* ============================================================
   Cogneris — design system
   Vanilla CSS · purple/cyan brand · Geist + Instrument Serif
   ============================================================ */

:root {
  /* brand */
  --brand-primary: #581cff;
  --brand-primary-deep: #3f0fd1;
  --brand-primary-soft: #ede5ff;
  --brand-accent: #00d2ff;
  --brand-accent-soft: #d6f4fb;

  /* surfaces */
  --ink: #0c0d18;
  --ink-2: #1a1b2e;
  --ink-3: #262842;
  --paper: #fbfaff;
  --paper-soft: #f5f2ff;
  --paper-warm: #faf8ff;
  --surface: #ffffff;
  --line: #e8e3f5;
  --line-soft: #efedf8;
  /* Generic border alias used by the cookie banner (app.js) and any component
     that wants the default hairline. Must stay defined — an undefined var()
     with no fallback invalidates the whole `border` shorthand and renders no
     border at all (WCAG 1.4.11). */
  --border: var(--line);

  /* type */
  --muted: #6b6783;
  /* #6f6a87 ≈ 5.1:1 on white — meets 1.4.3 as placeholder/secondary text */
  --muted-soft: #6f6a87;

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* type families */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-italic: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* shadow */
  --shadow-card: 0 20px 60px -28px rgba(60, 22, 180, 0.18);
  --shadow-deep: 0 30px 80px -24px rgba(60, 22, 180, 0.28);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; padding: 0; margin: 0; }
input, textarea { font-family: inherit; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 80px 0; }
.section-lg { padding: 112px 0; }
.section-xl { padding: 140px 0; }

.divider-top { border-top: 1px solid var(--line); }
.divider-bottom { border-bottom: 1px solid var(--line); }

/* ============================================================
   Typography
   ============================================================ */
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; }
.font-italic  { font-family: var(--font-italic); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.font-mono    { font-family: var(--font-mono); }

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.accent-italic {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 200;
  color: var(--brand-primary);
  letter-spacing: -0.035em;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-primary);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(88, 28, 255, 0.12);
}
.eyebrow.cyan { color: #00738a; } /* 5.5:1 on white / 4.76:1 on cyan-soft — WCAG 1.4.3 small text */
.eyebrow.cyan::before { background: var(--brand-accent); box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.18); }

.muted { color: var(--muted); }
.text-ink { color: var(--ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(88, 28, 255, 0.55);
}
.btn-primary:hover { background: var(--brand-primary-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(88, 28, 255, 0.6); }

.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-soft:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.btn-cyan {
  background: var(--brand-accent);
  color: #052b33;
}
.btn-cyan:hover { background: #00b9e0; transform: translateY(-1px); }

.btn-block { width: 100%; }

/* arrow icon spacing */
.btn .icon { display: inline-block; width: 16px; height: 16px; }

/* ============================================================
   Logo  — wordmark style (FLUE in navy, X in blue)
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo.dark .logo-img {
  filter: brightness(0) invert(1);
}
/* legacy — keep for any remaining text logos */
.logo-name { display: none; }
.logo-accent { display: none; }
.logo-mark { display: none !important; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 1.5px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
/* `transform-origin` takes a <position>, which has no logical keywords, so the
   sweep cannot be expressed with `inline-start`/`inline-end` the way the rest of
   this sheet is. Writing them anyway is worse than leaving it physical: the
   declaration is invalid, the browser drops it, and the underline silently grows
   from the centre instead. So the axis stays physical and RTL flips it here. */
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .nav-link::after { transform-origin: left; }
[dir="rtl"] .nav-link:hover::after { transform-origin: right; }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link.active::after { transform: scaleX(1); }
/* External destination (the docs portal): an arrow after the label, like any link that leaves the site. */
.nav-link-external { padding-inline-end: 14px; }
.nav-link-external::before { content: "\2197"; position: absolute; inset-inline-end: 0; top: 5px; font-size: 11px; line-height: 1; }
[dir="rtl"] .nav-link-external::before { transform: scaleX(-1); }

/* Dropdown menu (desktop) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  cursor: pointer;
  transition: color .2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.active-parent .nav-dropdown-trigger {
  color: var(--ink);
}
.nav-dropdown.active-parent .nav-dropdown-trigger { font-weight: 500; }
.nav-dropdown-trigger svg { transition: transform .25s; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 14px 36px -12px rgba(60, 22, 180, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover { background: var(--paper-soft); color: var(--brand-primary); }
.nav-dropdown-menu a.active { background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 500; }

/* mega-menu (multi-column) */
.nav-dropdown.mega .nav-dropdown-menu {
  width: min(720px, calc(100vw - 40px));
  min-width: 0;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(170px, 1.3fr) minmax(190px, 1.3fr);
  gap: 28px;
}
.nav-dropdown.mega:hover .nav-dropdown-menu,
.nav-dropdown.mega:focus-within .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
}
/* RTL: o mega-menu centrado no gatilho sai da tela.
   `left: 50%` + `translateX(-50%)` centra o menu no GATILHO, e em LTR isso cabe
   porque "Products" e o primeiro item e fica a esquerda: medido em 1280px, o
   menu ocupa 199..1019. Espelhado, o mesmo gatilho vai para a direita e o menu
   de 820px passa a ocupar 694..1514 -- 249px fora da janela, e a coluna da
   direita fica inalcancavel.

   O conserto e so para RTL de proposito: ancora o menu pela borda inline-start
   (a direita, em arabe) em vez de centra-lo. As treze arvores LTR nao veem
   nenhuma destas regras, entao o nav delas fica byte-identico. */
[dir="rtl"] .nav-dropdown.mega .nav-dropdown-menu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  transform: translateY(6px);
}
[dir="rtl"] .nav-dropdown.mega:hover .nav-dropdown-menu,
[dir="rtl"] .nav-dropdown.mega:focus-within .nav-dropdown-menu {
  transform: translateY(0);
}

.dropdown-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 0 8px;
}
.nav-dropdown.mega .nav-dropdown-menu .dropdown-col a {
  padding: 6px 8px;
  font-size: 13.5px;
}

/* mobile section header */
.mobile-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 6px;
}
.nav-mobile a.sub { padding-inline-start: 16px; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 900px) { .nav-cta { display: flex; } }
.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 24px 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--ink);
}
.nav-mobile .btn { margin-top: 16px; width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #d6d2e6;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  position: relative;
  padding: 88px 0 48px;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer p { color: #b6b0cf; font-size: 14px; max-width: 280px; margin: 20px 0 0; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-socials a {
  width: 44px; height: 44px;
  border: 1px solid #2c2d44;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #d6d2e6;
  transition: background .2s, border-color .2s, color .2s;
}
.footer-socials a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8a85a8;
  margin: 0 0 16px;
}
.footer-col li { margin-bottom: 4px; }
.footer-col a {
  display: inline-block;
  padding: 6px 0;
  color: #d6d2e6;
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #2c2d44;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a85a8;
}
/* XTRAK-1116. Seletor de idioma: gerado por scripts/i18n/emit.py em TRES
   lugares -- .footer-bottom, .nav-cta e .nav-mobile. A classe `lang-switch`
   e antes de tudo o token que extract_shell/extract_head usam para bloquear
   a subarvore inteira; sem ela o gerador se alimenta de si mesmo. Por isso
   as regras VISUAIS pendem de uma classe IRMA por lugar -- -footer, -nav,
   -mobile -- e nunca de `lang-switch` sozinha: herdar o claro-sobre-escuro
   do rodape num header claro deixaria o texto ilegivel.

   Irma, e nao descendente de `.footer-bottom`: escopar assim juntava as
   regras do rodape a uma familia que o critical_css ja considera acima da
   dobra, e 199 bytes de estilo de RODAPE passavam a viajar inline em cada
   uma das 397 paginas. */
.lang-switch-footer { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lang-switch-footer a { color: #d6d2e6; transition: color .2s; }
.lang-switch-footer a:hover { color: #fff; }
.lang-switch-footer .lang-switch-current { color: #8a85a8; }

/* Header: reusa .nav-dropdown, entao posicionamento, abertura por
   :hover/:focus-within e o espelhamento RTL do menu ja vem de la. So o
   gatilho e a altura maxima da lista sao proprios -- 15 idiomas nao cabem
   na viewport de um laptop. */
.lang-switch-nav .nav-dropdown-trigger { gap: 6px; }
.lang-switch-nav .nav-dropdown-menu {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding-block: 8px;
}
.lang-switch-nav .lang-switch-current {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 500;
}

/* Menu de celular: e uma secao do menu, nao um componente. Os itens ja
   herdam .nav-mobile a; o corrente e o unico que precisa se distinguir sem
   ser link. */
.lang-switch-mobile .lang-switch-current {
  display: block;
  padding: 14px 0;
  padding-inline-start: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--brand-primary);
  font-weight: 500;
}

.footer-wordmark {
  position: absolute;
  inset-inline: 0; bottom: -6vw;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  font-size: clamp(140px, 24vw, 360px);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ============================================================
   Cards / surfaces
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.card-lg { padding: 36px; border-radius: var(--r-lg); }

.surface-paper { background: var(--paper-soft); }
.surface-cream { background: var(--paper); }
.surface-ink { background: var(--ink); color: #f4f1ff; }

/* feature grid (1px-divider tile pattern) */
.tile-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tile-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .tile-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.tile-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .tile-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.tile-grid > .tile { background: var(--surface); padding: 40px; }

.icon-bubble {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.icon-bubble.cyan { background: var(--brand-accent-soft); color: #008faa; }

/* ============================================================
   Hero 2-column grid (text left, animated mesh right)
   ============================================================ */
.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.hero-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
/* The ribbons are the hero's background wash, not a right-hand illustration:
   an out-of-flow layer over the whole section, so .hero-text keeps column 1
   and the hero keeps its height. Matches the login page's brand panel. */
.hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  pointer-events: none;
}

/* ============================================================
   Flowing ribbon wash — the hero's animated background
   ============================================================ */
/* Sized to the viewBox aspect so preserveAspectRatio="xMidYMid meet" leaves no
   letterbox, then aimed: the band enters at the hero's top-right corner and
   exits across the middle of its bottom edge. -53.5deg is the geometric axis
   between those two points; 73%/42.5% is where the band's midpoint has to sit
   for it to land there, tuned against screenshots rather than derived, because
   the paths curve and .hero-visual is inset within .hero (so these are not the
   hero's own percentages). Measured at 1440x900: enters spanning 75-100% of the
   hero width, exits spanning 42-68%, centred ~55%.

   inset-inline-start, not left: check_logical_properties.py whitelists only the
   `left: 50%` centering idiom, and rightly so -- a physical 73% would leave the
   `ar` tree unmirrored. So RTL mirrors the whole diagonal instead: it enters at
   the top-LEFT and exits the same bottom middle. The [dir="rtl"] rule below
   flips both halves of the transform, because inset-inline-start resolves to
   `right` there and the centering translate has to reverse with it. */
.ribbon-stage {
  position: absolute;
  top: 42.5%;
  inset-inline-start: 73%;
  width: 200%;
  aspect-ratio: 1000 / 900;
  transform: translate(-50%, -50%) rotate(-53.5deg);
  /* Half the 0.45 this shipped at — asked to be 2x lighter. */
  opacity: 0.225;
  pointer-events: none;
}
/* RTL: inset-inline-start resolves to `right`, so the centring translate and the
   diagonal both reverse. Without this the band would sit off-centre and still
   lean the LTR way. */
[dir="rtl"] .ribbon-stage {
  transform: translate(50%, -50%) rotate(53.5deg);
}
.ribbon-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ribbon {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.ribbon-1 { animation: ribbonDance1 8s ease-in-out infinite; }
.ribbon-2 { animation: ribbonDance2 7s ease-in-out infinite; }
.ribbon-3 { animation: ribbonDance3 9s ease-in-out infinite; }
.ribbon-4 { animation: ribbonDance4 11s ease-in-out infinite; }

@keyframes ribbonDance1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-18px, -24px) rotate(2.2deg); }
}
@keyframes ribbonDance2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(20px, 22px) rotate(-1.8deg); }
}
@keyframes ribbonDance3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(12px, -16px) scale(1.06); }
}
@keyframes ribbonDance4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-14px, 18px) rotate(1.2deg); }
}

/* fine grain over the mesh for depth */
.mesh-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* subtle radial vignette */
.mesh-canvas-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(12,13,24,0.6) 100%);
  pointer-events: none;
}

/* product cards floating ON TOP of the mesh */
.mesh-cards {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mesh-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.25);
  animation: meshCardIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.mesh-card:nth-child(2) { animation-delay: .15s; align-self: flex-end; width: 84%; }
.mesh-card:nth-child(3) { animation-delay: .3s; align-self: center; width: 90%; }
.mesh-card .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}
.mesh-card .ic.cyan { background: var(--brand-accent-soft); color: #008faa; }
.mesh-card .ic.ink { background: var(--ink); color: var(--brand-accent); }
.mesh-card .body { flex: 1; min-width: 0; }
.mesh-card .title {
  font-weight: 500; font-size: 14px;
  color: var(--ink);
}
.mesh-card .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.mesh-card .meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
@keyframes meshCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* live "now processing" pill */
.live-pill {
  position: absolute;
  bottom: 32px; inset-inline-start: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12,13,24,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.live-pill .dot-live {
  width: 7px; height: 7px;
  background: #00ffaa;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(0,255,170,0.7);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,170,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(0,255,170,0); }
}

/* ============================================================
   Hero hero floating cards
   ============================================================ */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  pointer-events: none;
  filter: blur(80px);
  opacity: .35;
  border-radius: 999px;
}

.float-cards {
  position: absolute;
  inset-inline-end: 40px;
  top: 120px;
  width: 360px;
  display: none;
}
@media (min-width: 1100px) { .float-cards { display: block; } }
.float-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.float-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.float-card .ic.cyan { background: var(--brand-accent-soft); color: #008faa; }
.float-card .ic.ink { background: var(--ink); color: #fff; }
.float-card .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.float-card .body { flex: 1; min-width: 0; }
.float-card .title { font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.float-card .sub { font-size: 12.5px; color: var(--muted); }

/* compact JSON-ish extraction card (hero) */
.extract-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.extract-card .row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 0;
}
.extract-card .row .k { color: var(--muted); }
.extract-card .row .v { color: var(--ink); }

/* ============================================================
   Page reveal animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .18s; }
.delay-3 { animation-delay: .28s; }
.delay-4 { animation-delay: .38s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .65s; }
.delay-7 { animation-delay: .8s; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 28, 255, 0.35); }
  50%      { box-shadow: 0 0 0 14px rgba(88, 28, 255, 0); }
}
.pulse-glow { animation: pulseGlow 2.4s ease-out infinite; }

/* ============================================================
   Hero specifics
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 128px;
}
@media (min-width: 768px) { .hero { padding: 120px 0 160px; } }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 32px 0 28px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
}
.tag.cyan { color: #00738a; background: var(--brand-accent-soft); } /* 4.76:1 on cyan-soft — WCAG 1.4.3 */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.trust-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px; color: var(--muted); font-size: 14px;
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  margin-inline-start: -8px;
}
.avatar-stack .av:first-child { margin-inline-start: 0; }

/* ============================================================
   Logo cloud
   ============================================================ */
.logo-cloud {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 24px 56px;
  opacity: .75;
  margin-top: 36px;
}
.logo-cloud span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink-2);
  opacity: .85;
}

/* ============================================================
   Architecture / pipeline diagram
   ============================================================ */
.pipeline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.pipeline-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.pipeline-step {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: background .2s;
}
.pipeline-step.active { background: var(--brand-primary-soft); }
.pipeline-step.active .num,
.pipeline-step.active .desc {
  color: #5c5678;
}
.pipeline-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  width: 22px;
}
.pipeline-step .role {
  font-size: 14px; font-weight: 500;
}
.pipeline-step .desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.pipeline-step .chev { margin-inline-start: auto; color: var(--brand-primary); }

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 0 0; border-top: 1px solid var(--ink); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(50px, 6.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ============================================================
   Big CTA card
   ============================================================ */
.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1a0a4a 0%, var(--ink) 60%, #0a1f24 120%);
  color: #f4f1ff;
  padding: 72px 56px;
}
.cta-block .blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}
.cta-block .blob.purple { background: var(--brand-primary); top: -120px; inset-inline-end: -80px; opacity: .55; }
.cta-block .blob.cyan { background: var(--brand-accent); bottom: -160px; inset-inline-start: -120px; opacity: .35; }
.cta-block .inner { position: relative; max-width: 640px; }
.cta-block h2 { color: #fff; }
.cta-block p { color: #c8c0e3; }

/* ============================================================
   Pricing
   ============================================================ */
.toggle-pill {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  margin-top: 32px;
}
.toggle-pill button {
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.toggle-pill button.active { background: var(--brand-primary); color: #fff; }

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 800px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex; flex-direction: column;
}
.tier.featured {
  background: linear-gradient(180deg, #18103a 0%, var(--ink) 100%);
  color: #f4f1ff;
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: var(--shadow-deep);
}
.tier .tag-pill {
  position: absolute;
  top: -14px; inset-inline-start: 32px;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier .tag-static {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted);
}
.tier.featured .tag-static { color: #8a85a8; }
.tier .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.tier .desc { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.tier.featured .desc { color: #b8b0d8; }
.tier .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 54px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
}
.tier .price small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-inline-start: 4px;
}
.tier.featured .price small { color: #8a85a8; }
.tier ul { display: grid; gap: 12px; flex: 1; margin: 0 0 28px; }
.tier li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
}
.tier li svg { flex-shrink: 0; color: var(--brand-primary); margin-top: 2px; }
.tier.featured li svg { color: var(--brand-accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: start;
  padding: 22px 0;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
}
.faq-q .ic-toggle { color: var(--brand-primary); transition: transform .2s; }
.faq-a {
  display: none;
  padding: 0 0 22px;
  font-size: 15px; line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .ic-toggle { transform: rotate(45deg); }

/* ============================================================
   Code block
   ============================================================ */
.code-block {
  background: #0a0b16;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #1f2036;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6c688a;
}
.dot { width: 10px; height: 10px; border-radius: 999px; background: #2a2b40; }
.code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #e6e1ff;
  white-space: pre;
  overflow-x: auto;
}
.code-body .c-com { color: #6c688a; }
.code-body .c-key { color: #c1a3ff; }
.code-body .c-fn  { color: #00d2ff; }
.code-body .c-str { color: #b9f7c2; }
.code-body .c-num { color: #ffb37a; }

/* ============================================================
   Doc-type cards (product page)
   ============================================================ */
.doc-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: repeat(4, 1fr); } }
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}
.doc-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.doc-card .ic { color: var(--brand-primary); margin-bottom: 14px; }
.doc-card .name { font-weight: 500; font-size: 15px; }
.doc-card .cat {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted); margin-top: 4px;
}

/* ============================================================
   Lang chips (sdk pills)
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

.principle {
  background: var(--surface);
  padding: 36px 32px;
}
.principle .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-primary);
}
.principle h3 { margin: 18px 0 10px; }
.principle p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ============================================================
   Blog
   ============================================================ */
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.blog-tag.active, .blog-tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.featured-post {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: border-color .2s;
}
.featured-post:hover { border-color: var(--brand-primary); }
@media (min-width: 800px) { .featured-post { grid-template-columns: 1fr 1fr; } }
.post-cover {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(88,28,255,.55), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(0,210,255,.45), transparent 55%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.post-cover svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; opacity: .55; color: #fff;
}
.post-pill {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .18em;
}
.post-pill .cat {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.post-meta { color: var(--muted); }

.post-grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-grid .post {
  background: var(--surface);
  padding: 32px;
  transition: background .2s;
}
.post-grid .post:hover { background: var(--paper-soft); }
.post-grid .post h3 { margin: 16px 0 10px; line-height: 1.18; }
.post-grid .post p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.post-grid .post .read {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 13px; font-weight: 500;
}

/* ============================================================
   Contact form
   ============================================================ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
}
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--brand-primary); background: var(--surface); }
.field textarea { resize: vertical; min-height: 120px; }

.volume-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .volume-row { grid-template-columns: repeat(4, 1fr); } }
.volume-pill {
  font-size: 13px;
  padding: 11px 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.volume-pill:hover { border-color: var(--brand-primary); }
.volume-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.contact-info {
  display: grid; gap: 18px; margin-top: 40px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
}
.contact-row .ic {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.success {
  text-align: center;
  padding: 36px 0;
}
.success .check {
  width: 56px; height: 56px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: 999px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
}

/* ============================================================
   Docs page
   ============================================================ */
.docs-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 56px;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.docs-hero .container { position: relative; z-index: 2; }
.docs-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 32px;
  box-shadow: 0 12px 32px -16px rgba(60, 22, 180, 0.18);
  max-width: 640px;
}
.docs-search input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
}
.docs-search input::placeholder { color: var(--muted-soft); }
.docs-search .key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper-soft);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.docs-search svg { color: var(--muted); flex-shrink: 0; }

.docs-layout {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
  padding: 64px 0 112px;
  align-items: start;
}
@media (min-width: 900px) {
  .docs-layout { grid-template-columns: 240px 1fr; }
}

.docs-sidebar {
  position: sticky;
  top: 96px;
}
.docs-sidebar .group { margin-bottom: 28px; }
.docs-sidebar .group-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.docs-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.docs-sidebar a:hover { background: var(--paper-soft); }
.docs-sidebar a.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 500;
}
.docs-sidebar a svg { color: var(--muted); flex-shrink: 0; }
.docs-sidebar a.active svg { color: var(--brand-primary); }

/* main column */
.docs-main { min-width: 0; }
.docs-section { margin-bottom: 56px; }
.docs-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.docs-section-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.docs-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .docs-card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .docs-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.docs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.docs-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(88, 28, 255, 0.22);
}
.docs-card .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}
.docs-card .ic.cyan { background: var(--brand-accent-soft); color: #008faa; }
.docs-card .ic.dark { background: var(--ink); color: var(--brand-accent); }
.docs-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 6px 0 0;
}
.docs-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.docs-card .more {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-primary);
  margin-top: 6px;
}

/* big "popular" featured row */
.docs-popular {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 56px;
}
@media (min-width: 800px) { .docs-popular { grid-template-columns: 2fr 1fr 1fr; } }
.docs-popular-main {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #7338ff 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.docs-popular-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0,210,255,0.4), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,78,205,0.25), transparent 60%);
  pointer-events: none;
}
.docs-popular-main * { position: relative; z-index: 2; }
.docs-popular-main h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 8px 0 6px;
}
.docs-popular-main p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 22px;
  max-width: 280px;
}
.docs-popular-side {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.docs-popular-side h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.docs-popular-side p {
  font-size: 13px;
  color: #b8b0d8;
  margin: 6px 0 0;
}

/* small inline tag */
.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: fit-content;
}
.docs-pill.dark { background: rgba(0,210,255,0.18); color: var(--brand-accent); }

/* small SDK row */
.sdk-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}
@media (min-width: 700px) { .sdk-row { grid-template-columns: repeat(5, 1fr); } }
.sdk-row a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.sdk-row a:hover { border-color: var(--brand-primary); background: var(--paper-soft); }
.sdk-row .lang-mark {
  width: 26px; height: 26px;
  background: var(--paper-soft);
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
}

/* ============================================================
   Utilities
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; } .mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; }
.text-center { text-align: center; }
.max-w-580 { max-width: 580px; }
.max-w-640 { max-width: 640px; }
.max-w-720 { max-width: 720px; }
.max-w-820 { max-width: 820px; }
.max-w-880 { max-width: 880px; }
.max-w-960 { max-width: 960px; }
.mx-auto { margin-inline: auto; }
.relative { position: relative; }

.two-col {
  display: grid; gap: 64px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.split-12 {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split-12 { grid-template-columns: 5fr 7fr; }
}

.feature-list { display: grid; gap: 12px; margin-top: 28px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.feature-list li .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   Cookie consent banner
   ───────────────────────────────────────────────────────────────────── */
.cc-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1000;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .cc-banner {
    inset-inline-start: auto;
    inset-inline-end: 24px;
    bottom: 24px;
    max-width: 540px;
    padding: 22px 24px;
  }
}
.cc-inner { display: grid; gap: 16px; }
.cc-copy { color: var(--muted); }
.cc-copy strong { color: var(--ink); margin-inline-end: 4px; }
.cc-copy a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cc-btn {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cc-btn:hover { border-color: var(--brand-primary); }
.cc-btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.cc-btn-primary:hover { filter: brightness(1.05); }
.cc-btn-ghost { background: transparent; }
.cc-prefs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}
.cc-prefs[hidden] { display: none; }
.cc-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.cc-pref-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.cc-pref-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cc-pref-locked {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-pref-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}
.cc-prefs-actions { display: flex; justify-content: flex-end; margin-top: 4px; }

/* Receipt row appears after a banner choice is saved server-side. Plain text
   + a single link — Cogneris voice: no fanfare, just the code the user needs. */
.cc-receipt-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--muted);
}
.cc-receipt-row[hidden] { display: none; }
.cc-receipt-link {
  color: var(--brand-primary);
  text-decoration: underline;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ─────────────────────────────────────────────────────────────────────
   Global focus-visible — WCAG 2.4.7 + 1.4.11
   Brand-primary ring on light surfaces; white on dark surfaces.
   Mouse clicks still suppress the ring (per :focus-visible semantics).
   ───────────────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
/* On dark surfaces (footer, brand-primary buttons, the .footer wordmark area
   and inverse CTA blocks) the purple ring disappears; switch to white. */
.footer :where(a, button):focus-visible,
.btn-primary:focus-visible,
.cyan-cta :where(a, button):focus-visible,
.section-dark :where(a, button):focus-visible {
  outline-color: #fff;
}

/* Skip-to-content link — visually hidden until focused.
   Fixed positioning so it stays in viewport regardless of scroll. */
.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2000;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Reset default <fieldset> chrome on the volume picker — semantic grouping
   without the native browser border/padding. */
.volume-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--field-gap, 16px);
  min-width: 0;
}
.volume-fieldset > legend {
  padding: 0;
  margin-bottom: 8px;
}

/* GEO: TL;DR summary block — placed immediately after byline in long-form articles */
.tldr {
  background: var(--surface-card, #f7f7fb);
  border-inline-start: 3px solid var(--color-primary, #581cff);
  padding: 16px 20px;
  margin: 24px 0 32px;
  border-radius: var(--radius-md, 8px);
}
.tldr-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #581cff);
  margin: 0 0 8px;
}
.tldr ul {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 16px;
  line-height: 1.55;
}
.tldr li + li {
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────────────
   Reduced motion — WCAG 2.2.2 / 2.3.3
   Users who request reduced motion get near-instant, single-shot animations
   and no smooth scroll. Covers the pulsing live-dot, .pulse-glow, and all
   reveal/transition motion site-wide. The hero ribbons are the one exception
   and opt out entirely — see the block immediately below.
   ───────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Hero ribbons opt out of the reduced-motion freeze
   Deliberate exception, chosen explicitly: the ribbons keep their full
   8-11s ribbonDance even when the visitor asks for reduced motion, so
   cogneris.ai matches login.cogneris.ai, which has never honoured the
   preference here either.

   This overrides a stated accessibility preference, so keep it narrow. It
   applies to these four decorative background groups and nothing else —
   every other animation on the site, and smooth scrolling, still stop for
   the blanket rule above. A softened middle ground was tried first (a slow
   drift at two fifths speed) and rejected as too subtle to read as motion.

   Must sit AFTER the blanket rule: it overrides two !important
   declarations, so it wins on source order, not specificity.
   ───────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ribbon-1, .ribbon-2, .ribbon-3, .ribbon-4 {
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out;
  }
  .ribbon-1 { animation-name: ribbonDance1; animation-duration: 8s !important; }
  .ribbon-2 { animation-name: ribbonDance2; animation-duration: 7s !important; }
  .ribbon-3 { animation-name: ribbonDance3; animation-duration: 9s !important; }
  .ribbon-4 { animation-name: ribbonDance4; animation-duration: 11s !important; }
}

/* ─────────────────────────────────────────────────────────────────────
   Ask an assistant (XTRAK-1112)
   Entry point from a decision page into ChatGPT / Claude / Perplexity with a
   summary prompt already written into the query string. Static anchors only:
   no third-party script, and no <form>, because the site's CSP pins
   form-action to 'self'. Deliberately the last block inside <main> so it
   never enters the above-the-fold set that critical_css.py measures.
   ───────────────────────────────────────────────────────────────────── */
.ask-ai {
  border-top: 1px solid var(--line, #e8e3f5);
  background: var(--paper-soft, #f5f2ff);
  padding: 40px 0;
}
.ask-ai-heading {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink, #0c0d18);
  margin: 0 0 8px;
}
.ask-ai-note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted, #6b6783);
  margin: 0 0 16px;
  max-width: 68ch;
}
.ask-ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ask-ai-link {
  display: inline-block;
  border: 1px solid var(--line, #e8e3f5);
  border-radius: var(--r-pill, 999px);
  background: var(--surface, #ffffff);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0c0d18);
  text-decoration: none;
}
.ask-ai-link:hover {
  border-color: var(--brand-primary, #581cff);
  color: var(--brand-primary, #581cff);
}
.ask-ai-fineprint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #6b6783);
  margin: 0;
  max-width: 68ch;
}
