/* === tokens === */
:root {
  color-scheme: light;

  /* Brand: Warm Cream + Charcoal — editorial, premium */
  --paper: #FBF9F4;          /* warm cream */
  --paper-rgb: 251, 249, 244;
  --ink: #0E1422;            /* deep navy charcoal */
  --ink-rgb: 14, 20, 34;
  --ink-2: #1F2937;
  --muted: #6B7280;
  --body: #4B5563;           /* body copy on paper — 7.3:1 on --paper */
  --line: #ECE7DC;           /* warm hairline */
  --line-strong: #D9D2C2;
  --surface: #FFFFFF;
  --surface-2: #F4F0E6;

  /* Accents */
  --accent: #1F3A5F;         /* deep blue */
  --accent-rgb: 31, 58, 95;
  --accent-2: #B7956F;       /* warm bronze */
  --accent-2-rgb: 183, 149, 111;
  --accent-2-ink: #7A5F3E;   /* bronze darkened for text on light — 4.6:1 */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-lg: 0 30px 80px -20px rgba(14, 20, 34, 0.18);

  --nav-h: 76px;

  /* Fluid metrics — scale continuously with the viewport rather than
     snapping at a single breakpoint. clamp() floors them on phones and
     ceilings them so a 4K monitor doesn't get absurd whitespace. */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --stack-lg: clamp(28px, 4vw, 56px);
  --stack-md: clamp(20px, 2.6vw, 36px);
}

/* Wide monitors: let the measure grow instead of stranding 600px of margin
   on either side. Content stays readable because the inner grids are fluid. */
@media (min-width: 1700px) {
  :root { --container: 1440px; }
}
@media (min-width: 2200px) {
  :root { --container: 1600px; }
}

/* Short landscape viewports (laptops at 1366x768, phones on their side)
   — trim the vertical rhythm so a section still fits on one screen. */
@media (max-height: 720px) and (min-width: 900px) {
  :root { --section-y: clamp(48px, 6vh, 72px); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky nav. Honoured by Chrome 69+,
     Safari 14.1+, Firefox 68+; main.js offsets manually for the rest. */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Safety net against sideways scroll on phones. `clip` rather than `hidden`
   on purpose: `hidden` makes the root a scroll container, which historically
   breaks `position: sticky` on the nav in WebKit. `clip` never does, and
   browsers without it simply go without the net — the real overflow sources
   are fixed at source below. */
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

@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;
  }
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }

input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* < 16px triggers iOS zoom-on-focus */
button { background: none; border: 0; margin: 0; }

h1, h2, h3, h4, p { overflow-wrap: break-word; word-wrap: break-word; }

/* ---------------------------------------------------------------------------
   Focus. Keyboard users get a visible ring everywhere; :focus-visible keeps it
   off mouse clicks. Browsers without :focus-visible fall back to :focus, so the
   ring is never missing — only occasionally over-eager.
   --------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@supports not selector(:focus-visible) {
  a:focus, button:focus, [tabindex]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}
.btn-primary:focus-visible { outline-color: var(--accent-2); }
.dark :focus-visible { outline-color: var(--accent-2); }
/* Programmatic focus on a scroll target must not draw a ring around a section */
section:focus, header:focus, main:focus, [tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute;
  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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@supports (padding: max(0px)) {
  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* ---------------------------------------------------------------------------
   Gradient text.
   `color: transparent` on its own renders the headline INVISIBLE anywhere
   background-clip:text is missing (old WebKit views, Opera Mini, IE, forced
   colours). So: paint a real colour first, and only knock the fill out inside
   an @supports guard — using -webkit-text-fill-color, which no browser honours
   without also supporting the clip.

   The gradient itself is passed in per element as --grad and is applied ONLY
   inside the guard. Two reasons it lives here rather than on the element:

   1. `background: linear-gradient(...)` is a SHORTHAND, so it resets
      background-clip back to border-box. Section CSS is concatenated after
      this file (tokens → base → components → sections, see scripts/build.js),
      so any such shorthand silently un-clipped the text and painted the
      gradient across the whole box with a transparent fill on top — i.e. a
      solid gradient slab where the headline should be.
   2. Applying it under the guard means the no-support fallback gets no
      background at all, just real painted text, instead of dark text sitting
      on a full-bleed gradient block.

   Set --grad on the element; never set `background`/`background-image` on a
   .grad-text* element directly.
   --------------------------------------------------------------------------- */
.grad-text        { color: var(--ink); }
.grad-text-accent { color: var(--accent); }
.grad-text-light  { color: #fff; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text, .grad-text-accent, .grad-text-light {
    /* Fallback is a flat currentColor "gradient", not `none`: an element that
       gets a .grad-text class but forgets --grad then paints as ordinary
       coloured text instead of vanishing under the transparent fill. */
    background-image: var(--grad, linear-gradient(currentColor, currentColor));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Windows High Contrast / forced-colors strips backgrounds — restore the fill
   or the headline vanishes again. */
@media (forced-colors: active) {
  .grad-text, .grad-text-accent, .grad-text-light {
    background: none !important;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

/* Scroll-reveal: sections fade up as they enter the viewport. The hidden state
   is applied by main.js only after the observer is confirmed working, so a
   no-JS or failed-JS load never leaves the page blank. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto; /* release the compositor layer once the animation is done */
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: linear-gradient(to right, var(--accent-2), rgba(var(--accent-2-rgb), 0));
}

/* Section accents — subtle warm tint variation between bands */
.tint-cream { background: linear-gradient(180deg, var(--paper) 0%, var(--surface-2) 100%); }
.tint-bronze {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(var(--accent-2-rgb), 0.08), transparent 60%),
    var(--paper);
}
.tint-blue {
  background:
    radial-gradient(900px 500px at 10% 100%, rgba(var(--accent-rgb), 0.06), transparent 60%),
    var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  letter-spacing: 0.005em;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 1px 2px rgba(var(--ink-rgb), 0.18),
    0 6px 18px -10px rgba(var(--ink-rgb), 0.45);
}
.btn-primary:hover {
  background: #000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 2px 4px rgba(var(--ink-rgb), 0.22),
    0 12px 28px -12px rgba(var(--ink-rgb), 0.55);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 18px -10px rgba(var(--accent-rgb), 0.55);
}
.btn-accent:hover {
  background: #18304d;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(var(--accent-rgb), 0.65);
}
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(var(--ink-rgb), 0.05); }
.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
/* Touch devices have no hover; give taps their own feedback since
   -webkit-tap-highlight-color is switched off above. */
@media (hover: none) {
  .btn:active { opacity: 0.85; }
  a:active { opacity: 0.7; }
}

section { padding: var(--section-y) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: var(--stack-md);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 12px 0 0;
  text-wrap: balance;
}
.section-head p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--body);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* Minimum 44px tap target on any touch-primary device, not just narrow ones —
   a 1024px tablet needs this as much as a phone does. */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-links a, .foot-col a, .foot-contact {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .foot-col a { display: flex; }
}

/* ---------------------------------------------------------------------------
   Print. Without this the reveal effect prints blank sections, and the dark
   band burns a page of ink.
   --------------------------------------------------------------------------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .nav-toggle, .hero-bg, .skip-link, .preview-frame { display: none !important; }
  .dark {
    background: none !important;
    color: #000 !important;
  }
  .dark .lab, .dark .author-line { color: #333 !important; }
  .grad-text, .grad-text-light {
    background: none !important;
    -webkit-text-fill-color: #000;
    color: #000 !important;
  }
  body { background: #fff; }
  section, .hero { padding: 24px 0 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* === components/dashboard.css === */
/* ---------------------------------------------------------------------------
   Sign-in + QuantX dashboard.
   Uses the existing token palette so the authed surface reads as the same
   product as the marketing site.
   --------------------------------------------------------------------------- */

/* ---- Sign in ---- */
.auth {
  min-height: 100vh;
  min-height: 100dvh; /* avoids the mobile URL-bar jump where supported */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 64px) var(--gutter);
  background: var(--surface-2);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.auth-card h1 {
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.auth-sub { color: var(--body); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.auth-card input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 16px;
}
.auth-card input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.auth-card button[type="submit"] { width: 100%; justify-content: center; }
.auth-error {
  color: #9B1C1C;
  background: #FDF2F2;
  border: 1px solid #F5C2C2;
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 10px 12px;
  margin: 14px 0 0;
}
.auth-foot { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 24px 0 0; }

/* ---- Dashboard chrome ---- */
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.dash-bar .auth-brand { margin-bottom: 0; }
.dash-bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-fresh, .dash-account { font-size: 12.5px; color: var(--muted); }
.dash-account { font-weight: 600; color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13px; }

.dash { padding: clamp(24px, 4vw, 40px) var(--gutter) 80px; }
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: var(--stack-md);
}
.dash-head h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}
.dash-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-controls label { font-size: 12.5px; color: var(--muted); }
.dash-controls select {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.dash-error {
  color: #9B1C1C;
  background: #FDF2F2;
  border: 1px solid #F5C2C2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* ---- Panels ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 15px; letter-spacing: -0.01em; margin: 0; }
.panel-note { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.panel-body { padding: 4px 0 0; }
.dash-loading, .dash-empty { color: var(--muted); font-size: 13.5px; padding: 20px; margin: 0; }

/* Wide tables scroll inside the panel — the page body must never scroll
   sideways on a phone. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dash-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  vertical-align: top;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: var(--paper); }
.dash-table strong { color: var(--ink); font-family: var(--font-mono); }
.headline-link { color: var(--accent); text-decoration: none; }
.headline-link:hover { text-decoration: underline; }

.dir { font-family: var(--font-mono); font-weight: 600; }
.dir-bull { color: #1B6B3A; }
.dir-bear { color: #9B1C1C; }
.dir-flat { color: var(--muted); }

@media (max-width: 700px) {
  .dash-table th, .dash-table td { padding: 9px 12px; }
  .dash-head { align-items: flex-start; }
}

/* === components/footer.css === */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 64px) 0 clamp(28px, 3vw, 40px);
  padding-bottom: calc(clamp(28px, 3vw, 40px) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface-2) 100%);
  position: relative;
}
/* Footer brand uses larger size, matching the new nav lockup */
.site-footer .brand svg { width: 36px; height: 36px; }
.site-footer .brand-word { font-size: 22px; }
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-2-rgb), 0.4) 30%,
    rgba(var(--accent-rgb), 0.4) 70%,
    transparent
  );
}
.foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
}
.foot > * { min-width: 0; }
.foot-brand .lede {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink-2);
  max-width: 280px;
  margin-top: 12px;
  line-height: 1.3;
  font-feature-settings: "cv11";
}
.foot-contact {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  padding-bottom: 1px;
  overflow-wrap: anywhere;
  transition: color .15s ease, border-color .15s ease;
}
.foot-contact:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 6px 0;
  /* transform rather than padding — padding reflows the whole column on hover */
  transition: color .15s ease, transform .15s ease;
}
.foot-col a:hover {
  color: var(--ink);
  transform: translateX(4px);
}
.foot-bottom {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .foot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-bottom { justify-content: flex-start; }
}

/* === components/nav.css === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--paper-rgb), 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Firefox < 103 and older WebKit views get no blur — a translucent bar would
   let body text show through and become unreadable, so go near-opaque. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(var(--paper-rgb), 0.98); }
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-2-rgb), 0.45) 50%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  flex: none;
}
.brand svg {
  display: block;
  flex: none;
  width: clamp(28px, 2.6vw, 33px);
  height: clamp(28px, 2.6vw, 33px);
}
.brand-word {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: clamp(24px, 2.4vw, 29px);
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "cv11";
  font-variation-settings: "wght" 700;
}

/* Wrapper so the links and the CTAs collapse into one panel together on
   mobile — no duplicated markup, nothing hidden-but-focusable. */
.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 32px);
  margin-left: clamp(20px, 3.5vw, 56px);
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 14px;
  color: #374151;
}
.nav-links a {
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -2px;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex: none; }

/* ---------------------------------------------------------------------------
   Mobile menu toggle
   --------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle-box {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, background-color .15s ease;
}
.nav-toggle-bar { top: 7px; }
.nav-toggle-bar::before { content: ""; top: -7px; }
.nav-toggle-bar::after  { content: ""; top: 7px; }
.nav.is-open .nav-toggle-bar { background-color: transparent; }
.nav.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(var(--ink-rgb), 0.35);
    /* Long menus on short landscape phones must scroll, not run off-screen. */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav-menu { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }
  .nav-cta .btn {
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
  }
}

/* === sections/cta.css === */
.cta-band {
  padding: clamp(64px, 8vw, 110px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(var(--accent-2-rgb), 0.10), transparent 60%),
    radial-gradient(1100px 600px at 50% 100%, rgba(var(--accent-rgb), 0.06), transparent 65%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
  --grad: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
}
@media (min-width: 900px) {
  .cta-band h2 { line-height: 1; letter-spacing: -0.035em; }
}
.cta-band p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--body);
  max-width: 560px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  line-height: 1.6;
}
.cta-band .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-band .ctas .btn { flex: 1 1 100%; }
}

/* === sections/features.css === */
.features {
  display: grid;
  /* Fluid: 3 up on desktop, 2 up on tablets, 1 up on phones — without needing
     a breakpoint for every step in between. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 32px) clamp(20px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-width: 0;
  transition: background-color .25s ease, transform .25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.feature:hover {
  background: var(--surface);
}
.feature:hover::before { opacity: 1; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-2-ink);
  text-transform: uppercase;
}
.feature h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.feature p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}
.feature-stat {
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.feature-stat .num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.feature-stat .caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* === sections/hero.css === */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 6.5vw, 96px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .container { position: relative; z-index: 2; }

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; /* longhands for Safari < 14.1 */
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background:
    /* warm bronze glow, top-right */
    radial-gradient(900px 500px at 82% 14%, rgba(var(--accent-2-rgb), 0.18) 0%, transparent 62%),
    /* deep blue glow, bottom-left */
    radial-gradient(1100px 600px at 8% 92%, rgba(var(--accent-rgb), 0.14) 0%, transparent 65%),
    /* very subtle ink wash so text contrasts */
    radial-gradient(1200px 600px at 50% 30%, rgba(var(--ink-rgb), 0.04) 0%, transparent 60%),
    /* fade to paper at the bottom */
    linear-gradient(180deg, transparent 0%, rgba(var(--paper-rgb), 0.6) 70%, var(--paper) 100%);
}
.hero-bg svg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg .grid-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
/* No mask support → the grid would run edge to edge as a hard rectangle.
   Fade it back instead so it still reads as texture. */
@supports not ((mask-image: radial-gradient(#000, transparent)) or (-webkit-mask-image: radial-gradient(#000, transparent))) {
  .hero-bg .grid-overlay { opacity: 0.35; }
}

.hero-bg .node { fill: var(--accent); }
.hero-bg .node-glow { fill: var(--accent); opacity: 0.12; }
.hero-bg .edge { stroke: rgba(var(--ink-rgb), 0.18); stroke-width: 1; fill: none; }
.hero-bg .edge-strong { stroke: rgba(var(--accent-rgb), 0.45); stroke-width: 1.2; fill: none; }

/* Travelling pulses.
   `offset-path` landed in Firefox 72 and Safari 16. Without it the circles
   have no cx/cy and pile up as three bronze dots in the top-left corner of
   the hero — so they stay hidden unless the engine can actually move them. */
.hero-bg .pulse { fill: var(--accent-2); opacity: 0; }

@supports (offset-path: path('M 0 0 L 1 1')) {
  @keyframes pulse-travel-1 {
    0%   { offset-distance: 0%;   opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }
  .hero-bg .pulse-1 {
    offset-path: path('M 220 180 L 480 240 L 720 180 L 980 320 L 1240 220');
    animation: pulse-travel-1 6s linear infinite;
  }
  .hero-bg .pulse-2 {
    offset-path: path('M 100 420 L 360 360 L 620 480 L 880 420 L 1180 540');
    animation: pulse-travel-1 8s linear infinite;
    animation-delay: 1.5s;
  }
  .hero-bg .pulse-3 {
    offset-path: path('M 1320 80 L 1080 220 L 820 140 L 560 280 L 280 220');
    animation: pulse-travel-1 9s linear infinite;
    animation-delay: 3s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg .pulse { animation: none; opacity: 0; }
}

.h1 {
  font-size: clamp(32px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 20px 0 20px;
  max-width: 18ch;
  text-wrap: balance;
  --grad: linear-gradient(180deg, var(--ink) 0%, #1a2236 100%);
}
.h1 .accent {
  --grad: linear-gradient(90deg, var(--accent) 0%, #305680 70%, var(--accent-2) 100%);
}
@media (min-width: 900px) {
  .h1 { line-height: 0.98; letter-spacing: -0.04em; max-width: 1100px; }
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--body);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: clamp(32px, 4.5vw, 56px);
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-meta .value { font-size: 15px; color: var(--ink); font-weight: 500; }

@media (max-width: 640px) {
  /* Let the headline find its own break points instead of forcing one that
     overflows a 360px viewport. */
  .h1 br { display: none; }
  .h1 { max-width: none; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 148px; }
  .hero-meta { gap: 20px 28px; }
}

/* === sections/logos.css === */
.logos {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
}
.logos::before,
.logos::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.logos::before {
  top: -1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-2-rgb), 0.35), transparent);
}
.logos::after {
  bottom: -1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-2-rgb), 0.35), transparent);
}
.logos-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}
.logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 56px;
}
.logos-row span {
  font-family: var(--font-sans);
  font-weight: 500;
  color: #9CA3AF;
  font-size: 18px;
  transition: color .2s, transform .2s;
}
.logos-row span:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* === sections/preview.css === */
.preview {
  padding: clamp(56px, 8vw, 120px) 0 0;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    var(--paper);
}
.preview-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 80px -20px rgba(var(--ink-rgb), 0.18),
    0 8px 24px -12px rgba(var(--accent-rgb), 0.20);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.preview-bar .dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
}
.preview-bar .dot:nth-child(1) { background: #E89A9A; }
.preview-bar .dot:nth-child(2) { background: var(--accent-2); opacity: 0.65; }
.preview-bar .dot:nth-child(3) { background: #9CC3A0; }
.preview-bar .url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-body {
  padding: 0;
  /* min-height, not height: at narrow widths the rows wrap to two lines and a
     fixed 520px box spills its content out through the frame. */
  min-height: 520px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.preview-side {
  background: linear-gradient(180deg, var(--paper), var(--surface-2));
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-side-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding: 8px;
}
.preview-side-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-side-item.active {
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
  font-weight: 600;
}
.preview-side-item::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.5;
}
.preview-main {
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* let the grid track shrink instead of forcing overflow */
}
.preview-h {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.preview-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.agent-row:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 6px 20px -10px rgba(var(--accent-rgb), 0.25);
}
.agent-row .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.agent-row .left > svg { flex: none; }
.agent-row .name { font-size: 14px; font-weight: 500; color: var(--ink); }
.agent-row .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.agent-row .pill {
  flex: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(var(--accent-2-rgb), 0.12);
  color: var(--accent-2-ink);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.agent-row .pill.live {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .preview-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .preview-side { display: none; }
}

@media (max-width: 560px) {
  .preview-frame { padding: 6px; }
  .preview-bar .url { display: none; }
  .agent-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .agent-row .pill { align-self: flex-start; }
  /* The "+ New agent" chip and the heading stop fitting side by side */
  .preview-main > div:first-child { flex-wrap: wrap; gap: 12px; }
}

/* === sections/quote.css === */
.dark {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(var(--accent-2-rgb), 0.12), transparent 60%),
    radial-gradient(1200px 700px at 5% 90%, rgba(var(--accent-rgb), 0.22), transparent 65%),
    var(--ink);
  color: #fff;
  padding: clamp(64px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-2-rgb), 0.55), transparent);
}
.dark::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent);
}
.dark .eyebrow { color: var(--accent-2); }
.dark .eyebrow::before {
  background: linear-gradient(to right, var(--accent-2), rgba(var(--accent-2-rgb), 0));
}
.dark h2 {
  font-size: clamp(26px, 5.5vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 24px 0 0;
  max-width: 1080px;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .dark h2 { line-height: 1.05; letter-spacing: -0.03em; }
}
.dark .author-line {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: clamp(40px, 6vw, 80px);
}
.stat { min-width: 0; }
.stat .num {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  --grad: linear-gradient(135deg, #ffffff 0%, var(--accent-2) 100%);
}
.stat .lab {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.45;
}

/* === sections/security.css === */
.security {
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(var(--accent-2-rgb), 0.06), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
}
.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.security-grid > div { min-width: 0; }
.security-grid h2 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.security-grid > div > p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--body);
  line-height: 1.6;
  max-width: 520px;
}
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px -20px rgba(var(--ink-rgb), 0.18);
}
.compliance-cell {
  background: var(--surface);
  padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.1vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-width: 0;
  transition: background-color .2s ease;
}
.compliance-cell:hover { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.compliance-cell .badge {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.compliance-cell:nth-child(2n) .badge {
  border-color: var(--accent-2);
  color: var(--accent-2-ink);
  background: rgba(var(--accent-2-rgb), 0.06);
}
.compliance-cell .title { font-size: 14px; font-weight: 600; color: var(--ink); }
.compliance-cell .desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

.security-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}
.security-list .row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.security-list .row:first-child { border-top: none; }
.security-list .row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  width: 140px;
  flex: none;
  padding-top: 3px;
}
.security-list .row .v { color: var(--ink); line-height: 1.55; min-width: 0; }

@media (max-width: 900px) {
  .security-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 520px) {
  /* A 140px key column leaves too little room for the value on a phone. */
  .security-list .row { flex-direction: column; gap: 6px; padding: 14px 0; }
  .security-list .row .k { width: auto; padding-top: 0; }
}
