/* ==========================================================================
   Docutise — marketing site design system
   Evidence-grade, instrument-precise, local-first document QC for lending.
   One stylesheet, no external calls. Palette derives from the product's own
   design tokens (apps/frontend/src/design/tokens.css) and is elevated for web.
   ========================================================================== */

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-roman.var.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink (dark surfaces) */
  --ink-900: #080b11;
  --ink-850: #0a0e15;
  --ink-800: #0c1117;
  --ink-750: #0f1620;
  --ink-700: #121a25;
  --ink-600: #16202c;
  --ink-line: rgba(148, 173, 209, 0.14);
  --ink-line-strong: rgba(148, 173, 209, 0.24);

  /* Paper (light surfaces) */
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eef1f6;
  --line: #e4e8ef;
  --line-strong: #d3dae4;

  /* Text */
  --ink: #10192a;
  --muted: #4f5b6d;
  --subtle: #74808f;
  --on-dark: #e9eef6;
  --on-dark-muted: #9db0c9;
  --on-dark-subtle: #6f7f96;

  /* Brand */
  --brand: #2f6fed;
  --brand-600: #245bd0;
  --brand-700: #1d4bb0;
  --brand-300: #7aa5ff;
  --brand-200: #a9c4ff;
  --brand-soft: rgba(47, 111, 237, 0.09);
  --brand-glow: rgba(74, 129, 255, 0.55);

  /* Evidence-source hues (from product tokens, brightened for web) */
  --ocr: #0f9a9a;
  --barcode: #7a4de0;
  --pdf: #1585b8;
  --detector: #4257d6;
  --model: #c0359f;
  --signature: #0f7a4f;
  --notary: #b06a12;

  /* Decision */
  --pass: #0f7a4f;
  --pass-bg: #e7f4ec;
  --review: #9a6708;
  --review-bg: #fbf1dc;
  --fail: #b3271a;
  --fail-bg: #fbe9e7;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 25, 42, 0.06), 0 1px 3px rgba(16, 25, 42, 0.05);
  --shadow: 0 6px 18px rgba(16, 25, 42, 0.08), 0 2px 6px rgba(16, 25, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(16, 25, 42, 0.16), 0 8px 24px rgba(16, 25, 42, 0.08);
  --shadow-brand: 0 18px 50px rgba(47, 111, 237, 0.28);

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --nav-h: 68px;

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'cv05' 1, 'ss03' 1, 'cv11' 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(47, 111, 237, 0.22); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.mono { font-family: var(--mono); font-feature-settings: normal; }
.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: 96px; position: relative; }
.section.tight { padding-block: 64px; }

.section--ink {
  background: var(--ink-800);
  color: var(--on-dark);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-dark); }

.section--paper2 { background: var(--paper-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 640;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.6;
}
.section--ink .eyebrow { color: var(--brand-300); }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--muted);
  line-height: 1.62;
}
.section--ink .section-head p { color: var(--on-dark-muted); }

.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  border-color: var(--ink-line-strong);
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.3); }

.btn-sm { height: 40px; padding-inline: 18px; font-size: 0.9rem; }
.btn-lg { height: 52px; padding-inline: 28px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 560;
  color: var(--brand-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--ink .link-arrow { color: var(--brand-300); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 1.12rem;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.brand .mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 3px 10px rgba(47,111,237,0.32); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 12px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--brand-600); font-weight: 580; }

.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1.4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-800);
  color: var(--on-dark);
  padding-block: 88px 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* technical grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
  z-index: -2;
}
.hero::after {
  /* brand glow */
  content: '';
  position: absolute;
  top: -320px; right: -180px;
  width: 780px; height: 780px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 62%);
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ink-line-strong);
  font-size: 0.8rem;
  font-weight: 520;
  color: var(--on-dark-muted);
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pass); box-shadow: 0 0 0 3px rgba(15,122,79,0.25);
}
.badge-pill b { color: var(--on-dark); font-weight: 620; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  line-height: 1.04;
  margin-top: 26px;
  letter-spacing: -0.032em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #8fb6ff, #4f8bff 55%, #a9c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.85rem;
  color: var(--on-dark-subtle);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--brand-300); }

/* --------------------------------------------------------------------------
   Product visual — document with evidence overlays + scorecard
   -------------------------------------------------------------------------- */
.evidence-viz { position: relative; perspective: 1600px; }
.doc-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotateY(-11deg) rotateX(4deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255,255,255,0.5);
}
.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.6), transparent 40%);
  pointer-events: none;
}
.doc-topbar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc-topbar .fname { font-size: 0.78rem; color: var(--subtle); font-family: var(--mono); }
.doc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.doc-body { position: relative; }
.paper-lines { display: grid; gap: 9px; }
.pl { height: 8px; border-radius: 4px; background: var(--paper-3); }
.pl.w1 { width: 88%; } .pl.w2 { width: 96%; } .pl.w3 { width: 72%; }
.pl.w4 { width: 82%; } .pl.w5 { width: 60%; } .pl.head { height: 13px; width: 46%; background: var(--paper-2); }

.ov {
  position: absolute;
  border: 1.8px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 9%, transparent);
}
.ov .tag {
  position: absolute;
  top: -11px; left: -1px;
  font-size: 0.62rem;
  font-weight: 640;
  font-family: var(--mono);
  color: #fff;
  background: var(--c);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ov.sig { --c: var(--signature); top: 34%; left: 8%; width: 40%; height: 15%; }
.ov.bar { --c: var(--barcode); top: 8%; right: 8%; width: 26%; height: 14%; left: auto; }
.ov.date { --c: var(--pdf); top: 62%; left: 55%; width: 30%; height: 9%; }
.ov.notary { --c: var(--notary); top: 78%; left: 10%; width: 34%; height: 12%; }

.scorecard {
  position: absolute;
  bottom: -26px; right: -26px;
  width: 208px;
  background: var(--ink-750);
  color: var(--on-dark);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r);
  padding: 15px 16px;
  box-shadow: var(--shadow-lg);
  transform: translateZ(60px);
}
.scorecard .sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sc-decision {
  font-size: 0.72rem; font-weight: 640; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 7px;
  color: #ffe0a3; background: rgba(244, 201, 107, 0.14); border: 1px solid rgba(244,201,107,0.4);
}
.sc-score { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; padding: 5px 0; color: var(--on-dark-muted); }
.sc-row + .sc-row { border-top: 1px solid var(--ink-line); }
.sc-row b { color: var(--on-dark); font-weight: 560; }
.sc-conf { font-family: var(--mono); font-size: 0.72rem; }

/* --------------------------------------------------------------------------
   Logo / trust strip
   -------------------------------------------------------------------------- */
.trust-strip { border-block: 1px solid var(--ink-line); padding-block: 26px; background: var(--ink-850); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.trust-strip .label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-subtle); }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 520; color: var(--on-dark-muted); }
.trust-item svg { width: 17px; height: 17px; color: var(--brand-300); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* tinted icon variants by evidence source */
.ic-ocr { background: color-mix(in srgb, var(--ocr) 12%, #fff); color: var(--ocr); }
.ic-barcode { background: color-mix(in srgb, var(--barcode) 12%, #fff); color: var(--barcode); }
.ic-pdf { background: color-mix(in srgb, var(--pdf) 12%, #fff); color: var(--pdf); }
.ic-sig { background: color-mix(in srgb, var(--signature) 12%, #fff); color: var(--signature); }
.ic-notary { background: color-mix(in srgb, var(--notary) 12%, #fff); color: var(--notary); }
.ic-detector { background: color-mix(in srgb, var(--detector) 12%, #fff); color: var(--detector); }
.ic-quality { background: color-mix(in srgb, var(--model) 12%, #fff); color: var(--model); }

/* --------------------------------------------------------------------------
   Evidence-lane list (product page)
   -------------------------------------------------------------------------- */
.lane {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  border-left: 3px solid var(--lane-c, var(--brand));
}
.lane .lane-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--lane-c, var(--brand)) 12%, #fff); color: var(--lane-c, var(--brand)); }
.lane .lane-ic svg { width: 22px; height: 22px; }
.lane h3 { font-size: 1.06rem; margin-bottom: 6px; }
.lane p { color: var(--muted); font-size: 0.93rem; }
.lane .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 520;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Pipeline / how it works
   -------------------------------------------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.pstep { position: relative; padding: 0 20px; }
.pstep:not(:last-child)::after {
  content: '';
  position: absolute; top: 22px; right: -16px; width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--brand-300), transparent);
}
.pstep .num {
  counter-increment: step;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--ink-750);
  color: var(--brand-300);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--ink-line-strong);
  margin-bottom: 16px;
}
.pstep .num::before { content: counter(step, decimal-leading-zero); }
.pstep h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pstep p { color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: left; padding: 4px; }
.stat .k { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 720; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--brand-200), #cfe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--ink .stat .k { }
.stat .v { margin-top: 6px; font-size: 0.92rem; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Split feature (image/visual + copy)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-visual { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
.split .feature-list { margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; list-style: none; }
.feature-list .fi { width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.feature-list .fi svg { width: 14px; height: 14px; }
.feature-list b { display: block; font-weight: 600; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 0.95rem; }

.panel-visual {
  background: var(--ink-800);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-line-strong);
  color: var(--on-dark);
}

/* console mock rows */
.console-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: var(--r-sm); background: var(--ink-750); border: 1px solid var(--ink-line); margin-bottom: 10px; }
.console-row .cr-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.console-row .cr-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.console-row .cr-t { font-size: 0.88rem; font-weight: 540; color: var(--on-dark); }
.console-row .cr-s { font-size: 0.76rem; color: var(--on-dark-subtle); font-family: var(--mono); }
.status-tag { font-size: 0.72rem; font-weight: 620; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.status-tag.pass { color: #7ee0a8; background: rgba(105,211,154,0.14); border: 1px solid rgba(105,211,154,0.4); }
.status-tag.review { color: #ffe0a3; background: rgba(244,201,107,0.14); border: 1px solid rgba(244,201,107,0.4); }
.status-tag.fail { color: #ffb7c0; background: rgba(241,110,125,0.14); border: 1px solid rgba(241,110,125,0.4); }

/* --------------------------------------------------------------------------
   Code block (developers)
   -------------------------------------------------------------------------- */
.code {
  background: var(--ink-850);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); background: var(--ink-800); }
.code-head .tl { display: flex; gap: 6px; }
.code-head .tl i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-line-strong); }
.code-head .fname { margin-left: 6px; font-family: var(--mono); font-size: 0.78rem; color: var(--on-dark-subtle); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: var(--on-dark); }
.code .t-key { color: #8fb6ff; }
.code .t-str { color: #7ee0a8; }
.code .t-com { color: var(--on-dark-subtle); font-style: italic; }
.code .t-fn { color: #f0b3e0; }
.code .t-num { color: #ffd08a; }

/* --------------------------------------------------------------------------
   Security grid
   -------------------------------------------------------------------------- */
.sec-card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px; border-radius: var(--r); background: rgba(255,255,255,0.03); border: 1px solid var(--ink-line); }
.sec-card .sec-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(74,129,255,0.12); color: var(--brand-300); }
.sec-card .sec-ic svg { width: 22px; height: 22px; }
.sec-card h3 { font-size: 1.04rem; margin-bottom: 7px; color: var(--on-dark); }
.sec-card p { color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.58; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.price.featured { border-color: var(--brand); box-shadow: var(--shadow-brand); position: relative; }
.price.featured::before { content: 'Most popular'; position: absolute; top: -12px; left: 30px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 620; padding: 4px 12px; border-radius: var(--r-pill); }
.price .tier { font-size: 0.82rem; font-weight: 640; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-600); }
.price .amt { margin-top: 14px; font-size: 2.4rem; font-weight: 720; letter-spacing: -0.03em; }
.price .amt small { font-size: 0.95rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.price .desc { margin-top: 10px; color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.price ul { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.price li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.92rem; color: var(--ink); }
.price li svg { width: 18px; height: 18px; color: var(--pass); margin-top: 2px; }
.price .btn { margin-top: auto; width: 100%; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-weight: 580; font-size: 1.04rem; cursor: pointer; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--muted); line-height: 1.62; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-700));
  border-radius: var(--r-xl);
  padding: 64px 56px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -20%, var(--brand-glow), transparent 60%);
  opacity: 0.5; z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band p { margin-top: 16px; color: var(--on-dark-muted); font-size: 1.08rem; max-width: 560px; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-850); color: var(--on-dark-muted); padding-block: 64px 34px; border-top: 1px solid var(--ink-line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; max-width: 300px; color: var(--on-dark-subtle); }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--on-dark-subtle); margin-bottom: 16px; font-weight: 620; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; color: var(--on-dark-muted); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--on-dark-subtle); }
.footer-note { font-size: 0.8rem; color: var(--on-dark-subtle); max-width: 720px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 560; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 20px 24px;
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink);
}
.callout p { color: var(--muted); }
.callout.warn { border-color: var(--review); background: var(--review-bg); }

.kicker-note { font-size: 0.82rem; color: var(--subtle); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }

.pagehead {
  background: var(--ink-800);
  color: var(--on-dark);
  padding-block: 78px 68px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 100% at 30% 0%, #000, transparent 70%);
  opacity: 0.45; z-index: -1;
}
.pagehead h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-top: 18px; }
.pagehead p { margin-top: 18px; max-width: 620px; font-size: 1.12rem; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
/* Content is visible by default; only the .js class (set before paint) opts
   into the fade-in, so no-JS and slow-JS visitors always see everything. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .doc-card { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .evidence-viz { max-width: 440px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .pstep::after { display: none; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-inline-start: auto; gap: 8px; }
  .nav-actions .btn-primary { height: 38px; padding-inline: 14px; }

  body.nav-open .nav-links {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    margin: 0;
  }
  body.nav-open .nav-links a { padding: 14px 16px; font-size: 1rem; border-radius: var(--r-sm); }

  .section { padding-block: 68px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .stats, .price-grid, .field-row { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .cta-band { padding: 44px 26px; }
  .container { padding-inline: 20px; }
  .scorecard { width: 170px; bottom: -16px; right: -12px; }
}

@media (max-width: 420px) {
  .hero { padding-block: 60px 72px; }
  .scorecard { position: relative; bottom: 0; right: 0; width: 100%; margin-top: 20px; transform: none; }
  .doc-card { transform: none; }
}
