/* ==========================================================================
 * Verifai — marketing site styles.
 *
 * Palette and surface treatment are lifted from the app itself
 * (tailwind.config.js + app/routes/privacy.tsx) so the site and the embedded
 * admin UI read as one product: brand blue #1f5be0, the `ink` neutral ramp,
 * and status hues that are RESERVED — success/warning/danger never appear as
 * decoration, only as meaning.
 *
 * Typography intentionally pairs Inter (body) with Newsreader (headings).
 * That pairing is already the app's "public-facing" voice — it is what
 * app/routes/privacy.tsx uses — and it is the fastest way for this page to
 * not look like every other system-font SaaS landing page.
 *
 * Deployed statically to technobrains.io/app/verifai. Every internal link and
 * asset path is prefixed /app/verifai/ because this is NOT served from the
 * domain root. WordPress owns the rest of this domain; nothing here may
 * depend on it. Google Fonts is the only external request.
 * ========================================================================== */

:root {
  /* Brand — the interactive blue */
  --brand-50:  #eef6ff;
  --brand-100: #d9eaff;
  --brand-200: #bcd9ff;
  --brand-300: #8ec0ff;
  --brand-400: #599cff;
  --brand-500: #3478f6;
  --brand-600: #1f5be0;
  --brand-700: #1a48b8;
  --brand-800: #1b3e91;

  /* Ink — the neutral ramp */
  --ink-50:  #f9fafb;
  --ink-100: #f3f4f6;
  --ink-200: #e5e7eb;
  --ink-300: #d1d5db;
  --ink-400: #9ca3af;
  --ink-500: #6b7280;
  --ink-600: #4b5563;
  --ink-700: #374151;
  --ink-800: #1f2937;
  --ink-900: #111827;

  /* Status scale — reserved. Never reuse these as "series N". */
  --success-50:  #ecfdf5;
  --success-100: #d1fae5;
  --success-600: #059669;
  --success-700: #047857;
  --warning-50:  #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --danger-50:   #fef2f2;
  --danger-100:  #fee2e2;
  --danger-500:  #ef4444;
  --danger-600:  #dc2626;
  --info-50:     #eff6ff;
  --info-600:    #2563eb;

  /* Risk ramp — the product's signature colour logic (0-30 / 31-70 / 71-100) */
  --risk-low:  #10b981;
  --risk-mid:  #f59e0b;
  --risk-high: #ef4444;

  /* Semantic surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f9fafb;
  --surface:   #ffffff;
  --surface-2: #f9fafb;
  --line:      #e5e7eb;
  --line-soft: #f3f4f6;
  --text:      #111827;
  --text-2:    #4b5563;
  --text-3:    #6b7280;
  --text-4:    #9ca3af;

  --shadow-card:  0 1px 2px 0 rgba(16, 24, 40, .04), 0 1px 3px 0 rgba(16, 24, 40, .06);
  --shadow-hover: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 6px -1px rgba(16, 24, 40, .04);
  --shadow-pop:   0 10px 30px -4px rgba(16, 24, 40, .12), 0 4px 12px -2px rgba(16, 24, 40, .06);
  --shadow-lift:  0 20px 40px -15px rgba(16, 24, 40, .18), 0 4px 12px -2px rgba(16, 24, 40, .06);

  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-2xl: 16px;

  --maxw: 1140px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0f17;
    --bg-soft:   #0f1520;
    --surface:   #131a26;
    --surface-2: #172032;
    --line:      #253044;
    --line-soft: #1c2536;
    --text:      #eef2f8;
    --text-2:    #b8c2d2;
    --text-3:    #94a1b5;
    --text-4:    #6e7d94;

    --brand-50:  #14243f;
    --brand-100: #172f52;
    --brand-200: #1d3f6e;
    --brand-600: #5a94ff;
    --brand-700: #7dabff;

    --success-50: #0e2a20;
    --success-100:#123726;
    --success-600:#34d399;
    --warning-50: #2a2110;
    --warning-100:#3a2c13;
    --warning-500:#fbbf24;
    --warning-600:#fcd34d;
    --danger-50:  #2c1416;
    --danger-100: #3d181c;
    --danger-500: #f87171;
    --danger-600: #fca5a5;
    --info-50:    #14243f;
    --info-600:   #60a5fa;

    --shadow-card:  0 1px 2px 0 rgba(0, 0, 0, .4), 0 1px 3px 0 rgba(0, 0, 0, .3);
    --shadow-hover: 0 4px 12px -2px rgba(0, 0, 0, .5), 0 2px 6px -1px rgba(0, 0, 0, .35);
    --shadow-pop:   0 10px 30px -4px rgba(0, 0, 0, .55), 0 4px 12px -2px rgba(0, 0, 0, .4);
    --shadow-lift:  0 20px 40px -15px rgba(0, 0, 0, .6), 0 4px 12px -2px rgba(0, 0, 0, .4);
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
}

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

/* Every number in the product is tabular. Keep that here. */
.tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin: 0 auto; }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-600);
  font-family: var(--sans);
}
.eyebrow svg { width: 14px; height: 14px; }

.h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lede { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--text-3); max-width: 620px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-lg);
  font-size: 14px; font-weight: 600; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-300); background: var(--surface-2); color: var(--text); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(52, 120, 246, .35); }

/* ── Nav ────────────────────────────────────────────────────────────────── */

.nav-outer {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
nav { display: flex; align-items: center; gap: 26px; height: 62px; }
.logo { display: flex; align-items: center; gap: 0px; font-weight: 700; font-size: 30.5px; letter-spacing: -.02em; }
/* The mark — a vector cut of the Verifai lockup (shield, verified figure, parcel). Inline
   SVG rather than the raster, because at nav size the illustration's detail turns to mush,
   and because a vector can animate: the pieces assemble on load and the check draws on.
   Every motion here is inside prefers-reduced-motion; the static mark is the fallback. */
.logo-svg {
  width: 36px; height: 36px; flex: 0 0 auto; overflow: visible;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), filter .28s;
}
.logo-svg * { transform-box: fill-box; transform-origin: center; }
.logo .wordmark { line-height: 1; }
.logo .wordmark em { font-style: normal; color: var(--success-600); transition: color .2s; }
.logo:hover .logo-svg { transform: translateY(-1px) rotate(-5deg) scale(1.07); filter: drop-shadow(0 5px 12px rgba(31, 91, 224, .32)); }
.logo:hover .wordmark em { color: #10b981; }

@media (prefers-reduced-motion: no-preference) {
  .logo-svg .lg-shield, .logo-svg .lg-face { animation: lg-pop .55s cubic-bezier(.22, 1, .36, 1) both; }
  .logo-svg .lg-head, .logo-svg .lg-body { animation: lg-rise .5s .22s cubic-bezier(.22, 1, .36, 1) both; }
  .logo-svg .lg-box { animation: lg-rise .5s .36s cubic-bezier(.22, 1, .36, 1) both; }
  .logo-svg .lg-check { stroke-dasharray: 22; stroke-dashoffset: 22; animation: lg-draw .45s .58s ease-out forwards; }
  .logo:hover .logo-svg .lg-check { animation: lg-redraw .5s ease-out forwards; }
  .logo .wordmark { animation: lg-fade .5s .15s ease-out both; }
}
@keyframes lg-pop    { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes lg-rise   { from { opacity: 0; transform: translateY(7px) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes lg-draw   { to { stroke-dashoffset: 0; } }
@keyframes lg-redraw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes lg-fade   { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 14px; color: var(--text-3); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(150deg, var(--brand-50) 0%, var(--bg) 46%, var(--bg) 100%);
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-blobs i {
  position: absolute; border-radius: 999px; filter: blur(64px); display: block;
}
.hero-blobs i:nth-child(1) { right: -110px; top: -140px; width: 420px; height: 420px; background: color-mix(in srgb, var(--brand-200) 55%, transparent); }
.hero-blobs i:nth-child(2) { left: 18%; bottom: -150px; width: 330px; height: 330px; background: color-mix(in srgb, var(--success-100) 60%, transparent); }
.hero-inner { position: relative; padding: 76px 0 84px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 64px; } }

.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hero h1 .accent { color: var(--brand-600); }
.hero .lede { font-size: 17px; max-width: 540px; margin-top: 20px; }

.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--text-4); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; }

/* Install form — mirrors the app's own /?store= conversion mechanic */
.install { margin-top: 26px; max-width: 440px; }
.install-row {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.install-row:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(52, 120, 246, .18); }
.install-row input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none;
  padding: 12px 14px; font-size: 14.5px; font-family: var(--sans);
  background: transparent; color: var(--text);
}
.install-row input::placeholder { color: var(--text-4); }
.install-suffix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--surface-2); border-left: 1px solid var(--line);
  font-size: 13px; color: var(--text-4); white-space: nowrap;
}
.install .btn { margin-top: 10px; width: 100%; }
.install-note { margin-top: 10px; font-size: 12px; color: var(--text-4); }

/* ── Cards & grids ──────────────────────────────────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-card);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card-hover:hover { box-shadow: var(--shadow-hover); border-color: var(--ink-300); }
@media (prefers-reduced-motion: no-preference) {
  .card-hover:hover { transform: translateY(-2px); }
}

/* Grid and flex children default to min-width:auto, which lets a single nowrap line (the
   gauge's factor names, a table) set the column's minimum and push the whole page wider
   than the viewport on phones. Zero it everywhere a track is laid out. */
.grid > *, .hero-inner > *, .score-grid > *, .demo-step > *, .pipeline > *, .price-grid > *, .foot-grid > * { min-width: 0; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Icon chip — tone-mapped, same vocabulary as the app's Section component */
.chip-icon {
  width: 38px; height: 38px; border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.chip-icon svg { width: 19px; height: 19px; }
.t-brand   { background: var(--brand-50);   color: var(--brand-600); }
.t-success { background: var(--success-50); color: var(--success-600); }
.t-warning { background: var(--warning-50); color: var(--warning-700); }
.t-danger  { background: var(--danger-50);  color: var(--danger-600); }
.t-info    { background: var(--info-50);    color: var(--info-600); }
.t-ink     { background: var(--ink-100);    color: var(--text-2); }
@media (prefers-color-scheme: dark) { .t-ink { background: var(--surface-2); } }

.feature { padding: 22px; }
.feature h3 { font-size: 16.5px; margin-top: 14px; }
.feature p { margin-top: 7px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }

/* Small labelled tag, e.g. "needs a key" */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); color: var(--text-4); background: var(--surface-2);
}
.tag-free { border-color: color-mix(in srgb, var(--success-600) 30%, transparent); color: var(--success-600); background: var(--success-50); }
.tag-key  { border-color: color-mix(in srgb, var(--warning-600) 32%, transparent); color: var(--warning-700); background: var(--warning-50); }

/* Stat tiles */
.stat { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.stat .v { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.15; }
.stat .l { font-size: 11.5px; line-height: 1.35; color: var(--text-3); margin-top: 2px; }

/* ── Risk gauge (the signature visual) ──────────────────────────────────── */

.gauge-card { padding: 20px 20px 18px; }
.gauge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gauge-order { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gauge-meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-4); }
.gauge-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-4); }
.gauge-wrap { display: flex; justify-content: center; padding: 2px 0 0; }
.gauge-svg { width: 100%; max-width: 250px; height: auto; overflow: visible; }

/* The track carries the three bands as muted tints, so the scale itself is legible
   before you read a single label — you can see which third the needle landed in. */
.gauge-band { fill: none; stroke-linecap: butt; }
.gauge-band.b1 { stroke: var(--success-100); }
.gauge-band.b2 { stroke: var(--warning-100); }
.gauge-band.b3 { stroke: var(--danger-100); }
.gauge-arc-fill {
  fill: none; stroke-linecap: round;
  stroke-dasharray: var(--arc-len);
  stroke-dashoffset: var(--arc-len);
  transition: stroke-dashoffset 1.2s cubic-bezier(.22, 1, .36, 1);
}
.in-view .gauge-arc-fill, .gauge-svg.in-view .gauge-arc-fill { stroke-dashoffset: var(--arc-off); }
/* Numerals are sans + tabular, matching the app's own meter. A display serif renders
   digits as book text; this has to read as a measurement. */
.gauge-score { font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; fill: var(--text); }
.gauge-out-of { fill: var(--text-4); font-family: var(--sans); font-weight: 600; }
.gauge-verdict { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gauge-tick { fill: var(--text-4); font-family: var(--sans); font-size: 8.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.gauge-summary {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; color: var(--text-4);
}
.gauge-summary b { color: var(--text-2); font-weight: 600; }
.gauge-summary i { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-300); display: block; }

.factors { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.factor {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px 8px 9px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: 12.5px; position: relative;
}
/* Severity as a colour edge as well as a number — two channels, so the shape of the
   problem is visible without reading every row. */
.factor::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 999px 999px 0; background: var(--danger-500);
}
.factor.ok::before { background: var(--success-600); }
.factor .fi { width: 15px; height: 15px; flex: 0 0 auto; margin-left: 3px; color: var(--danger-500); }
.factor.ok .fi { color: var(--success-600); }
.factor .name { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factor .pts {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 11.5px;
  padding: 2px 8px; border-radius: 999px; flex: 0 0 auto;
  background: var(--danger-50); color: var(--danger-600);
  border: 1px solid color-mix(in srgb, var(--danger-500) 22%, transparent);
}
.factor .pts.ok { background: var(--success-50); color: var(--success-600); border-color: color-mix(in srgb, var(--success-600) 24%, transparent); }
.gauge-legend {
  margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line-soft);
  font-size: 11px; color: var(--text-4); display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.gauge-legend b { font-weight: 600; color: var(--text-3); }

/* ── Pipeline (how it works) ────────────────────────────────────────────── */

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }
.step { padding: 20px; position: relative; }
.step-n {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-4); font-family: var(--sans);
}
.step h3 { font-size: 15.5px; margin-top: 10px; }
.step p { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.step-icon { width: 34px; height: 34px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 12px; }
.step-icon svg { width: 17px; height: 17px; }
.gr-brand   { background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); }
.gr-warning { background: linear-gradient(140deg, #fbbf24, #d97706); }
.gr-success { background: linear-gradient(140deg, #34d399, #059669); }
.gr-info    { background: linear-gradient(140deg, #60a5fa, #2563eb); }

/* ── Order row mockup ───────────────────────────────────────────────────── */

.queue { overflow: hidden; }
.queue-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.queue-head .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ink-300); }
.queue-title { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.orow {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.orow:last-child { border-bottom: 0; }
.orow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.orow.v::before { background: var(--risk-low); }
.orow.r::before { background: var(--risk-mid); }
.orow.h::before { background: var(--risk-high); }
.orow .num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.orow .who { font-size: 11.5px; color: var(--text-4); margin-top: 1px; }
.orow .why { font-size: 12.5px; color: var(--text-3); }
.orow .why b { font-weight: 600; color: var(--text-2); }
@media (max-width: 640px) {
  .orow { grid-template-columns: 1fr auto; }
  .orow .why { grid-column: 1 / -1; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-md);
  font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.b-v { background: var(--success-50); color: var(--success-600); border-color: color-mix(in srgb, var(--success-600) 22%, transparent); }
.b-r { background: var(--warning-50); color: var(--warning-700); border-color: color-mix(in srgb, var(--warning-600) 26%, transparent); }
.b-h { background: var(--danger-50);  color: var(--danger-600);  border-color: color-mix(in srgb, var(--danger-500) 26%, transparent); }
.b-s { background: var(--ink-100); color: var(--text-3); border-color: var(--line); }
@media (prefers-color-scheme: dark) { .b-s { background: var(--surface-2); } }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.plan { padding: 24px 22px; display: flex; flex-direction: column; height: 100%; }
.plan.featured { border-color: var(--brand-300); box-shadow: var(--shadow-pop); position: relative; }
.plan-flag {
  position: absolute; top: -10px; left: 22px;
  background: var(--brand-600); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.plan-name { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-family: var(--serif); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 12.5px; color: var(--text-4); }
.plan-tag { margin-top: 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; min-height: 38px; }
.plan .btn { margin-top: 16px; width: 100%; }
.plan-feats { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-feats li { display: flex; gap: 9px; font-size: 12.8px; line-height: 1.5; color: var(--text-2); }
.plan-feats svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--success-600); }

/* ── Comparison table ───────────────────────────────────────────────────── */

.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.cmp thead th {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-4); border-bottom: 1px solid var(--line);
}
.cmp thead th.us { color: var(--brand-600); }
.cmp td:first-child { color: var(--text-2); }
.cmp .yes { color: var(--success-600); font-weight: 600; }
.cmp .no  { color: var(--text-4); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); padding: 0; overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--ink-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid var(--text-4); border-bottom: 2px solid var(--text-4);
  transform: rotate(45deg); transition: transform .2s; margin-right: 3px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.65; color: var(--text-3); }

/* ── Callout ────────────────────────────────────────────────────────────── */

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand-500);
  background: var(--surface-2); border-radius: var(--r-xl);
  padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--text-3);
}
.callout b { color: var(--text-2); font-weight: 600; }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(150deg, var(--brand-50), var(--bg) 60%);
  padding: 74px 0;
}
.cta-band h2 { font-size: clamp(28px, 3.8vw, 40px); }
.cta-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: 46px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.foot-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); margin: 0 0 12px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--text-3); padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-about { font-size: 13px; color: var(--text-3); margin-top: 12px; max-width: 300px; line-height: 1.6; }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-4);
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out; }
  .reveal.in-view { opacity: 1; transform: none; }
}
/* Without JS, or with reduced motion, everything is simply visible. */
.no-js .reveal, .reveal.in-view { opacity: 1; transform: none; }

/* ── Doc pages (help / privacy / contact) ───────────────────────────────── */

.doc { padding: 54px 0 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 21px; margin-top: 38px; }
.doc h3 { font-size: 16px; margin-top: 26px; font-family: var(--sans); font-weight: 700; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; }
.doc li { margin-top: 7px; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 5px; border-radius: 5px;
}
.doc-hero { border-bottom: 1px solid var(--line-soft); background: linear-gradient(150deg, var(--brand-50), var(--bg) 55%); padding: 52px 0 44px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.toc a {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-3); font-weight: 500;
}
.toc a:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }

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