/* =====================================================================
   manav.id, Stripe-infra theme (mobile-first)
   Black, white, electric blue. Monospace as headline material.
   No pastels. No gradients-as-decoration. Code is the design.
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-warm:   #fafaf7;       /* faint warm off-white */
  --s1:        #ffffff;
  --s2:        #f6f6f4;
  --s3:        #ededea;
  --bdr:       #e6e6e3;
  --bdr-soft:  #efefec;
  --ink:       #0a0a0a;       /* terminal-black */
  --ink-2:     #404040;
  --ink-3:     #737373;
  --ink-inv:   #ffffff;

  /* Single accent, brand purple (manav.id) */
  --ac:        #6E5CF7;
  --ac-hi:     #8B7DF5;
  --ac-lo:     #5A49E0;
  --ac-soft:   #F3EFFD;
  --ac-line:   #DAD3FB;

  /* Semantic, used sparingly */
  --ok:        #0a8c4b;
  --warn:      #b86b00;
  --crit:      #c0252a;
  --info:      var(--ac);

  /* Terminal palette (dark code blocks) */
  --term-bg:   #0a0a0a;
  --term-bg-2: #141414;
  --term-tx:   #e8e8e6;
  --term-mut:  #8a8a85;
  --term-prom: #6b7280;
  --term-str:  #7dd3fc;
  --term-key:  #fda4af;
  --term-fn:   #c4b5fd;
  --term-num:  #fcd34d;
  --term-cmt:  #6b7280;
  --term-ok:   #4ade80;

  /* Type scale, mobile-first */
  --fs-display: 36px;
  --fs-1:       28px;
  --fs-2:       22px;
  --fs-3:       18px;
  --fs-4:       16px;
  --fs-body:    16px;
  --fs-meta:    14px;
  --fs-small:   13px;
  --fs-micro:   11px;
  --fs-mono-hero: clamp(28px, 7.6vw, 64px);

  /* Fonts, JetBrains Mono carries hero, Inter Tight for prose */
  --font-mono:  'JetBrains Mono', 'SF Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-sans:  'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader', 'Charter', Georgia, 'Times New Roman', serif;

  /* Geometry, tight, Stripe-style */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,10,10,.04);
  --shadow:    0 4px 14px -6px rgba(10,10,10,.08);
  --shadow-lg: 0 20px 48px -16px rgba(110,92,247,.18);

  /* Layout */
  --maxw:        720px;
  --maxw-wide:   1120px;
  --maxw-narrow: 580px;
}

@media (min-width: 720px) {
  :root {
    --fs-display: 56px;
    --fs-1:       36px;
    --fs-2:       26px;
    --fs-3:       20px;
    --fs-4:       17px;
    --fs-body:    17px;
    --fs-meta:    15px;
  }
}
@media (min-width: 1100px) {
  :root {
    --fs-display: 72px;
    --fs-1:       44px;
    --fs-2:       30px;
    --fs-body:    17px;
  }
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--ac); color: var(--ink-inv); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: var(--fs-1); letter-spacing: -0.026em; }
h2 { font-size: var(--fs-2); letter-spacing: -0.022em; }
h3 { font-size: var(--fs-3); letter-spacing: -0.014em; }
h4 { font-size: var(--fs-4); }
h5, h6 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

p { color: var(--ink-2); margin-bottom: 20px; }
p.lede { color: var(--ink-2); font-size: calc(var(--fs-body) + 2px); line-height: 1.5; max-width: 560px; }

a { color: var(--ac); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--ac-lo); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 20px 22px; padding-left: 6px; }
li { margin-bottom: 8px; line-height: 1.55; color: var(--ink-2); }

hr { border: none; height: 1px; background: var(--bdr); margin: 48px 0; }

img, svg { max-width: 100%; display: block; }

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--s2);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--ink);
  border: 1px solid var(--bdr-soft);
}

/* Default light code block */
pre {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--s2);
  border: 1px solid var(--bdr-soft);
  padding: 18px 20px;
  border-radius: var(--r);
  overflow-x: auto;
  line-height: 1.6;
  color: var(--ink);
  margin: 24px 0;
}
pre code { background: transparent; padding: 0; border: none; }

/* Terminal block, for live curl, dark feel */
pre.term, .term {
  background: var(--term-bg);
  color: var(--term-tx);
  border: 1px solid var(--term-bg-2);
  border-radius: var(--r);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  position: relative;
}
.term .prompt { color: var(--term-prom); user-select: none; }
.term .cmd    { color: var(--term-tx); }
.term .flag   { color: var(--term-num); }
.term .str    { color: var(--term-str); }
.term .key    { color: var(--term-key); }
.term .ok     { color: var(--term-ok); }
.term .cmt    { color: var(--term-cmt); font-style: italic; }
.term .fn     { color: var(--term-fn); }

/* Copy button on terminal block */
.term-wrap { position: relative; }
.term-wrap .copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--term-tx);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xs);
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.term-wrap .copy-btn:hover { background: var(--ac); border-color: var(--ac); color: var(--ink-inv); }
.term-wrap .copy-btn.copied { background: var(--ok); border-color: var(--ok); color: var(--ink-inv); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
@media (min-width: 720px) { table { display: table; } }
th { background: var(--s2); padding: 12px 14px; text-align: left; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--bdr); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
td { padding: 12px 14px; border-bottom: 1px solid var(--bdr-soft); color: var(--ink-2); }
tr:last-child td { border-bottom: none; }

/* ---------- Containers ---------- */
.container, .container-wide, .container-narrow {
  margin: 0 auto;
  padding: 28px 20px 36px;
  width: 100%;
}
.container        { max-width: var(--maxw); }
.container-wide   { max-width: var(--maxw-wide); }
.container-narrow { max-width: var(--maxw-narrow); }
@media (min-width: 720px) {
  .container, .container-wide, .container-narrow { padding: 36px 32px 44px; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bdr-soft);
}
.topbar-inner {
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand:hover { color: var(--ac); text-decoration: none; }
.brand .dot {
  width: 22px; height: 22px;
  background: var(--ink);
  border-radius: var(--r-xs);
  display: inline-block;
  position: relative;
}
.brand .dot::after {
  content: "";
  position: absolute; inset: 4px;
  background: var(--ac);
  border-radius: 2px;
}
.brand .dot.img {
  background-color: transparent;
  background-image: url('../images/manav_id_sq.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
}
.brand .dot.img::after { display: none; }
.brand .id { color: var(--ink-3); font-weight: 400; }

/* Legacy: older templates use <img> inside .brand instead of <span class="dot img">.
   Constrain it so the source PNG doesn't blow up the hero. */
.brand img {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-family: var(--font-sans); }
.nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.nav a.cta {
  padding: 7px 14px;
  background: var(--ink);
  color: var(--ink-inv);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
}
.nav a.cta:hover { background: var(--ac); color: var(--ink-inv); }
@media (max-width: 540px) {
  .nav .hide-sm { display: none; }
  .nav { gap: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 8px; }
.hero.center { text-align: center; }
/* Hero owns its own vertical rhythm; its inner container must not double the padding (this was the site-wide white-gap cause). */
.hero > .container,
.hero > .container-wide,
.hero > .container-narrow { padding-top: 0; padding-bottom: 0; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 16px;
}
.hero .eyebrow::before {
  content: "■ ";
  color: var(--ac);
}

.hero h1.mono {
  font-family: var(--font-mono);
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 100%;
  word-break: keep-all;
}
/* The two "lines" of the function signature.
   Desktop: inline (one row). Mobile/tablet: each on its own row
   so the break lands intentionally between `is_human(email)` and `→ yes | no`. */
.hero h1.mono .ln { display: inline; white-space: nowrap; }
@media (max-width: 759px) {
  .hero h1.mono .ln { display: block; }
  .hero h1.mono {
    font-size: clamp(28px, 8.4vw, 44px);
  }
}
@media (max-width: 419px) {
  .hero h1.mono {
    font-size: clamp(24px, 8.8vw, 32px);
  }
}
.hero h1.mono .arrow { color: var(--ink-3); margin: 0 .15em; font-weight: 400; }
.hero h1.mono .yes   { color: var(--ok); }
.hero h1.mono .no    { color: var(--crit); }
.hero h1.mono .fn    { color: var(--ac); }
.hero h1.mono .arg   { color: var(--ink-3); font-weight: 400; }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 20ch;
}

.hero p.lede {
  font-size: calc(var(--fs-body) + 1px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero.center h1, .hero.center p.lede { margin-left: auto; margin-right: auto; }

@media (min-width: 720px) {
  .hero { padding: 48px 0 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 14px;
}
.section h2 {
  font-size: var(--fs-1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.026em;
  margin-bottom: 16px;
  max-width: 22ch;
  color: var(--ink);
}
.section p.intro {
  font-size: calc(var(--fs-body) + 1px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .section { padding: 52px 0; } }

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-family: var(--font-sans); }
.hero.center .cta-row { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--ink); color: var(--ink-inv); }
.btn.primary:hover { background: var(--ac); color: var(--ink-inv); text-decoration: none; }
.btn.accent { background: var(--ac); color: var(--ink-inv); box-shadow: 0 6px 18px -6px rgba(110,92,247,.45); }
.btn.accent:hover { background: var(--ac-lo); color: var(--ink-inv); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: var(--s1); color: var(--ink); border-color: var(--bdr); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn.mono { font-family: var(--font-mono); font-size: 13px; padding: 10px 16px; }
.btn:active { transform: translateY(1px); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid        { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .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(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.card .num, .card .layer-num, .card .step-num, .card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 10px;
  display: block;
}
.card h3 { font-size: var(--fs-3); font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.card .stat-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bdr-soft); }

/* ---------- Stats (live counters) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
}
.stat {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 18px 16px;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-bottom: 4px;
}
@media (min-width: 720px) { .stat .num { font-size: 30px; } }
.stat .label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ---------- Pills (used sparingly) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--s2);
  border: 1px solid var(--bdr);
}
.pill.accent { background: var(--ac-soft); color: var(--ac); border-color: var(--ac-line); }
.pill.ok     { background: #e7f5ed; color: var(--ok); border-color: #b7e0c6; }
.pill.warn   { background: #faeed3; color: var(--warn); border-color: #ecd9a3; }
.pill.crit   { background: #fbe2e3; color: var(--crit); border-color: #f1c4c6; }

/* Legacy pastel modifier classes, remapped to semantic Stripe-infra colors */
.pill.lav    { background: var(--ac-soft); color: var(--ac);    border-color: var(--ac-line); }
.pill.mint   { background: #e7f5ed;        color: var(--ok);    border-color: #b7e0c6; }
.pill.butter { background: #faeed3;        color: var(--warn);  border-color: #ecd9a3; }
.pill.blush  { background: #fbe2e3;        color: var(--crit);  border-color: #f1c4c6; }
.pill.sky    { background: var(--ac-soft); color: var(--ac);    border-color: var(--ac-line); }
.pill.peach  { background: #faeed3;        color: var(--warn);  border-color: #ecd9a3; }

/* Dot prefix for trust pills (used in trust-row context) */
.trust-row .pill::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.75;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }

/* ---------- Logo strip ---------- */
.logos {
  margin-top: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--bdr-soft);
  border-bottom: 1px solid var(--bdr-soft);
}
.logos .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}
.logos .label {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.logos .logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}

/* ---------- Use-case tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.tile:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.tile .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac);
}
.tile h3 { font-size: var(--fs-3); font-weight: 500; color: var(--ink); line-height: 1.3; }
.tile p  { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.tile .roi {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ok);
  margin-top: 4px;
}

/* ---------- Playground / API tester ---------- */
.playground {
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  background: var(--s1);
  padding: 22px;
  margin: 24px 0;
}
.playground .row { display: flex; gap: 10px; flex-wrap: wrap; }
.playground input[type="email"], .playground input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.playground input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(110,92,247,.12);
}
.playground button {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--ink-inv);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.playground button:hover { background: var(--ac); }
.playground button:disabled { background: var(--ink-3); cursor: wait; }
.playground .latency {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 12px;
  letter-spacing: 0.04em;
}
.playground .response {
  margin-top: 16px;
  background: var(--term-bg);
  color: var(--term-tx);
  border-radius: var(--r);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  display: none;
}
.playground .response.shown { display: block; animation: shimmer-in .35s ease-out; }
@keyframes shimmer-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.playground .response .yes { color: var(--term-ok); }
.playground .response .no  { color: #f87171; }
.playground .response .k   { color: var(--term-fn); }
.playground .response .s   { color: var(--term-str); }
.playground .response .n   { color: var(--term-num); }
.playground .response .c   { color: var(--term-cmt); font-style: italic; }

/* Verdict chip, big yes/no readout */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.verdict.yes { background: #0f3a23; color: #4ade80; }
.verdict.no  { background: #3a1014; color: #f87171; }

/* ---------- Live activity feed ---------- */
.feed {
  background: var(--term-bg);
  color: var(--term-tx);
  border-radius: var(--r);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--term-bg-2);
}
.feed .row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 2px 0;
  align-items: baseline;
}
.feed .t { color: var(--term-mut); font-variant-numeric: tabular-nums; }
.feed .e { color: var(--term-tx); }
.feed .v.yes { color: var(--term-ok); }
.feed .v.no  { color: #f87171; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.tier.featured[data-badge]::before {
  content: attr(data-badge);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--ink-inv);
  padding: 3px 9px;
  border-radius: var(--r-xs);
  align-self: flex-start;
}
.tier .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tier .price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.tier .price small {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 6px;
}
.tier .sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tier ul { list-style: none; margin: 8px 0 0; padding: 0; }
.tier li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--bdr-soft);
  margin: 0;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ac);
  font-size: 13px;
  top: 9px;
}
.tier li:last-child { border-bottom: none; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--ac-soft);
  border: 1px solid var(--ac-line);
  border-left: 3px solid var(--ac);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 28px 0;
  line-height: 1.55;
  color: var(--ink);
  font-size: 15px;
}
.callout.warn { background: #faeed3; border-color: #ecd9a3; border-left-color: var(--warn); }
.callout.ok   { background: #e7f5ed; border-color: #b7e0c6; border-left-color: var(--ok); }
/* Legacy callout variants, remapped to semantic */
.callout.mint   { background: #e7f5ed; border-color: #b7e0c6; border-left-color: var(--ok); }
.callout.butter { background: #faeed3; border-color: #ecd9a3; border-left-color: var(--warn); }
.callout.blush  { background: #fbe2e3; border-color: #f1c4c6; border-left-color: var(--crit); }
.callout.sky    { background: var(--ac-soft); border-color: var(--ac-line); border-left-color: var(--ac); }
.callout.mint   .label { color: var(--ok); }
.callout.butter .label { color: var(--warn); }
.callout.blush  .label { color: var(--crit); }
.callout.sky    .label { color: var(--ac); }

/* Em accent in hero headlines, subtle blue highlighter, not pastel */
.hero h1 em, .hero h1 i {
  font-style: italic;
  font-weight: 400;
  color: var(--ac);
  background: linear-gradient(180deg, transparent 70%, rgba(110,92,247,0.10) 70%, rgba(110,92,247,0.10) 92%, transparent 92%);
  padding: 0 4px;
  border-radius: 3px;
}

/* hero.center constrains and centers everything */
.hero.center { text-align: center; }
.hero.center h1 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.hero.center p.lede { margin-left: auto; margin-right: auto; }
.hero.center .cta-row { justify-content: center; }
.hero.center .trust-row { justify-content: center; }
.callout .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 6px;
}
.callout.warn .label { color: var(--warn); }
.callout.ok   .label { color: var(--ok); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--bdr-soft);
  background: var(--s1);
  padding: 48px 20px 40px;
  margin-top: 48px;
  font-family: var(--font-sans);
}
footer.site .inner {
  max-width: var(--maxw-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 720px) { footer.site .inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }
footer.site .col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 500;
}
footer.site .col a {
  display: block; font-size: 13.5px; color: var(--ink-2);
  margin-bottom: 8px; text-decoration: none; font-family: var(--font-sans);
}
footer.site .col a:hover { color: var(--ac); text-decoration: none; }
footer.site p { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
footer.site .legal {
  grid-column: 1 / -1;
  margin-top: 16px; padding-top: 20px;
  border-top: 1px solid var(--bdr-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; counter-reset: step; }
.step-item {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ac);
  background: var(--ac-soft);
  border-radius: var(--r-xs);
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
}
.step-item h3 { font-size: var(--fs-3); font-weight: 500; margin: 0 0 4px; color: var(--ink); }
.step-item p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted  { color: var(--ink-3); }
.mono   { font-family: var(--font-mono); }
.serif  { font-family: var(--font-serif); }
.sans   { font-family: var(--font-sans); }
.tight  { letter-spacing: -0.02em; }
.mt-0{margin-top:0}.mt-1{margin-top:12px}.mt-2{margin-top:24px}.mt-3{margin-top:40px}.mt-4{margin-top:64px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:12px}.mb-2{margin-bottom:24px}.mb-3{margin-bottom:40px}.mb-4{margin-bottom:64px}

/* ---------- Article / prose ---------- */
article.post, .prose {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
}
article.post h1, .prose h1 { font-family: var(--font-sans); font-size: var(--fs-1); font-weight: 500; line-height: 1.1; letter-spacing: -0.026em; margin-bottom: 22px; color: var(--ink); }
article.post h2, .prose h2 { font-family: var(--font-sans); font-size: var(--fs-2); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 14px; color: var(--ink); }
article.post h3, .prose h3 { font-family: var(--font-sans); font-size: var(--fs-3); font-weight: 500; line-height: 1.3; letter-spacing: -0.014em; margin: 32px 0 10px; color: var(--ink); }
article.post p, .prose p { margin-bottom: 18px; color: var(--ink-2); }
article.post p.lede, .prose p.lede { color: var(--ink-2); font-size: calc(var(--fs-body) + 2px); line-height: 1.55; margin-bottom: 32px; }
article.post ul, article.post ol, .prose ul, .prose ol { margin: 0 0 20px 22px; }
article.post li, .prose li { margin-bottom: 8px; color: var(--ink-2); line-height: 1.55; }
article.post .meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
article.post .meta .pill { letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }

/* Article hero image */
.article-hero {
  width: 100%; aspect-ratio: 5 / 3;
  border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 36px; background: var(--s2); border: 1px solid var(--bdr-soft);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blog landing ---------- */
.search-wrap { position: relative; margin: 0 0 24px; max-width: 720px; }
.search-wrap input {
  width: 100%; padding: 14px 18px 14px 44px;
  font-family: var(--font-mono); font-size: 14.5px;
  color: var(--ink); background: var(--s1); border: 1px solid var(--bdr);
  border-radius: var(--r); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input::placeholder { color: var(--ink-3); }
.search-wrap input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(110,92,247,.12); }
.search-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-3); pointer-events: none; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.filter {
  padding: 7px 13px; background: var(--s1); border: 1px solid var(--bdr);
  border-radius: var(--r-pill); cursor: pointer; font-size: 12.5px;
  color: var(--ink-2); font-family: var(--font-mono); letter-spacing: 0.04em;
  transition: all .15s;
}
.filter:hover { background: var(--s2); border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.results-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }

.posts-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .posts-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.post-card {
  background: var(--s1); border: 1px solid var(--bdr); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); text-decoration: none; }
.post-card .thumb { width: 100%; aspect-ratio: 5 / 3; background: var(--s2); border-bottom: 1px solid var(--bdr-soft); position: relative; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ac); letter-spacing: 0.08em; text-transform: uppercase;
}
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink); margin: 0; }
.post-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.post-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: auto; padding-top: 6px; display: flex; gap: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Related */
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--bdr-soft); }
.related h2 { font-family: var(--font-sans); font-size: var(--fs-2); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--ink); }
.related .list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .related .list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.related .item { padding: 16px 18px; background: var(--s1); border: 1px solid var(--bdr); border-radius: var(--r); text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.related .item:hover { border-color: var(--ink); transform: translateY(-1px); text-decoration: none; }
.related .item .cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--ac); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.related .item h4 { font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink); }

/* Read list */
.read-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media (min-width: 720px) { .read-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.read-list a { padding: 18px 20px; background: var(--s1); border: 1px solid var(--bdr); border-radius: var(--r); text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.read-list a:hover { border-color: var(--ink); transform: translateY(-1px); text-decoration: none; }
.read-list .cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--ac); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.read-list h4 { font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink); }

/* ---------- Legacy aliases (so older inline styles inherit Stripe-infra tokens) ---------- */
:root {
  --tx: var(--ink); --tx2: var(--ink-2); --tx3: var(--ink-3); --tx-inv: var(--ink-inv);
  --ac2: var(--ac); --ac-fg: var(--ac-lo);
  --bg-card: var(--s1); --bg-mute: var(--s2); --bg-code: var(--s2); --bdr-strong: var(--ink-3);
  --grn: #6ee7b7; --grn2: var(--ok);
  --red: #fecaca; --red2: var(--crit);
  --org: #fed7aa; --org2: var(--warn);
  --blu: #bfdbfe; --blu2: var(--ac);
  --pk: #fbcfe8; --tl: #99f6e4; --gld: #fde68a; --gld2: var(--warn);
  --mint: #6ee7b7; --mint2: var(--ok); --mint-soft: #e7f5ed;
  --blush: #fecaca; --blush2: var(--crit);
  --butter: #fde68a; --butter2: var(--warn);
  --sky: #bfdbfe; --sky2: var(--ac);
  --peach: #fed7aa; --peach2: var(--warn);
  --accent: var(--ac); --accent-light: var(--ac-soft);
  --surface: var(--s1); --surface-mute: var(--s2); --surface-hover: var(--ac-soft);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --border: var(--bdr); --divider: var(--bdr-soft); --filter: var(--bdr-soft);
  --r: var(--r); --radius: var(--r); --radius-pill: var(--r-pill);
  --font: var(--font-sans); --font-serif: var(--font-serif);
}
b, strong { font-weight: 500; color: var(--ink); }
.id { color: var(--ink-3); }
.cta { padding: 7px 14px; background: var(--ink); color: var(--ink-inv); border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; border: none; }
.cta:hover { background: var(--ac); }

/* Loader (text mark), kept for blog */
.loader, .loader-think, .brand-loader { font-family: var(--font-mono); font-variant-numeric: tabular-nums; display: inline-block; white-space: pre; color: inherit; }
.loader::before        { content: "[^_^]"; animation: manav-blink 2.4s steps(1) infinite; }
.loader-think::before  { content: "[^_^]"; animation: manav-think 1.6s steps(1) infinite; }
.brand-loader::before  { content: "[^_^]"; animation: manav-think 1.6s steps(1) infinite; }
@keyframes manav-blink { 0%{content:"[^_^]";} 82%{content:"[-_-]";} 86%{content:"[-_^]";} 90%{content:"[^_^]";} }
@keyframes manav-think { 0%{content:"[^_^]";} 20%{content:"[^_-]";} 40%{content:"[^_+]";} 60%{content:"[^_*]";} 80%{content:"[^_^]";} }
@media (prefers-reduced-motion: reduce) {
  .loader::before, .loader-think::before, .brand-loader::before { animation: none; content: "[^_^]"; }
}

/* ---------- Focus rings ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, .filter:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Mobile fine-tune (<720) ---------- */
@media (max-width: 719px) {
  .hero { padding: 32px 0 12px; }
  .hero h1.mono { font-size: clamp(28px, 8.6vw, 44px); letter-spacing: -0.035em; max-width: 100%; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -0.026em; max-width: 100%; }
  .hero p.lede { font-size: 15.5px; line-height: 1.5; }
  .section { padding: 32px 0; }
  .section h2 { font-size: clamp(24px, 7vw, 32px); max-width: 100%; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1; min-width: 0; justify-content: center; }
  .stat { padding: 14px 12px; }
  .stat .num { font-size: 20px; }
  .stat .label { font-size: 11.5px; line-height: 1.35; }
  .card, .tile, .tier { padding: 20px 18px; }
  .container, .container-wide, .container-narrow { padding: 24px 18px 32px; }
  footer.site { padding: 36px 18px 32px; margin-top: 56px; }
  .topbar-inner { padding: 12px 16px; }
  .brand { font-size: 14px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .nav a.cta { padding: 6px 12px; font-size: 12.5px; }
  .term, pre.term { font-size: 11.5px; padding: 14px 16px; }
  .playground { padding: 18px; }
  .playground input { font-size: 14px; padding: 11px 12px; }
  .playground button { padding: 11px 16px; font-size: 13.5px; }
  .feed { font-size: 11.5px; padding: 14px 16px; }
  .feed .row { grid-template-columns: 70px 1fr auto; gap: 10px; }
  .tier .price { font-size: 28px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
  pre { font-size: 12px; padding: 14px 16px; }
}
