/*
 * Word Is Bond — marketing storefront styles.
 * Token layer mirrors apps/studio/src/styles.css (indigo→violet brand) so the
 * apex and the Studio read as one product. Marketing-only tokens (surfaces,
 * dark mode, layout scale) are layered on top.
 */

:root {
  color-scheme: light dark;

  /* Brand — kept in sync with apps/studio/src/styles.css.
   * --color-violet is the light end of --gradient-brand and therefore the
   * worst-case background for the white text on .btn-primary / .plan-flag /
   * .step::before. It is pinned one step darker than violet-500 (#8b5cf6,
   * white on it = 4.23:1, fails WCAG AA) so white clears 4.5:1 everywhere on
   * the gradient: white on #7c3aed = 5.50:1, white on #4f46e5 = 6.29:1.
   * --color-success and --color-warning are non-text (icon / bar fill) and
   * must clear 3:1 against the surface they sit on. */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-violet: #7c3aed;
  --color-success: #059669;
  --color-warning: #b45309;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-elevated: #ffffff;
  --surface-hover: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* Wordmark + accents */
  --gradient-brand: linear-gradient(135deg, var(--color-primary-dark), var(--color-violet));
  --gradient-hero: radial-gradient(1200px 600px at 70% -10%, rgba(129, 140, 248, 0.18), transparent 60%);

  /* Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 18px 40px -12px rgba(49, 46, 129, 0.28);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-subtle: #14141f;
    --bg-elevated: #191926;
    --surface-hover: #20202e;
    --border: #262636;
    --border-strong: #33334a;
    --text: #e8e8f2;
    --text-secondary: #b4b4c6;
    --text-muted: #8a8a9e;
    --color-primary: #818cf8;
    /* Dark surfaces are near-black, so the light-mode "darkened for contrast"
     * accents flip back to their vivid values (amber-500 on #20202e = 7.5:1). */
    --color-warning: #f59e0b;
    --gradient-hero: radial-gradient(1200px 600px at 70% -10%, rgba(129, 140, 248, 0.16), transparent 60%);
    --shadow-lg: 0 18px 46px -14px rgba(0, 0, 0, 0.6);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--color-primary-dark); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: var(--color-primary-light); } }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-lg); }

/* ── Wordmark ─────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.wordmark .wm-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid fallback first: without it, a browser that cannot parse color-mix()
   * drops the declaration entirely and the sticky header goes transparent,
   * letting page content scroll underneath the nav text. */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* min-height, never a fixed height: the row is allowed to wrap onto a second
 * line on narrow viewports instead of clipping or overflowing the document. */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  min-height: 64px;
  padding-block: 0.55rem;
}
.site-header .wordmark { flex-shrink: 0; white-space: nowrap; }
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: flex-end;
}
.site-nav a.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a.nav-link:hover { color: var(--text); text-decoration: none; }
.site-nav a.nav-link[aria-current] {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-primary);
}
/* One flex item, so .btn's 0.5rem gap never lands inside the label. */
.site-nav .nav-cta { white-space: nowrap; }
.site-nav .nav-cta .nav-cta-label { display: inline; }

/* The `hidden` attribute must actually hide.
   The browser's own `[hidden] { display: none }` comes from the user-agent
   sheet, so ANY author rule that sets `display` outranks it — `.btn` below is
   exactly that. Shipped 2026-08-17: the demo's "Keep this scorecard" download
   carried `hidden`, rendered anyway, and offered a download before a scorecard
   existed. This reset is why `hidden` can be trusted on a styled element. */
[hidden] { display: none !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  /* Buttons wrap by default — some labels are long ("Contact
   * security@wordis-bond.com"). Only the header CTA is pinned to one line,
   * below. max-width keeps even an unbreakable label inside its column. */
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-hover); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { background: var(--gradient-hero); padding: var(--space-3xl) 0 var(--space-2xl); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-2xl);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--surface-hover);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-lg);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--color-primary-light); } }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  font-weight: 800;
}
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: var(--space-xl);
}
/* One measure for a standalone hero headline, shared by every page that has
 * one (they used to carry two different arbitrary inline widths). */
.hero-title { max-width: 780px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-md); }

/* ── Scorecard (hero visual) ──────────────────────────────── */
.scorecard {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.scorecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.scorecard-head .sc-title { font-weight: 600; font-size: 0.9rem; }
.scorecard-head .sc-meta { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.badge-pass { color: #065f46; background: #d1fae5; }
@media (prefers-color-scheme: dark) {
  .badge-pass { color: #6ee7b7; background: rgba(16, 185, 129, 0.16); }
}
.sc-layers { padding: var(--space-sm) var(--space-lg) var(--space-lg); }
.sc-layer {
  display: grid;
  /* minmax(0, …), not 1fr: a 1fr track inherits the min-content width of the
   * longest unbreakable label ("Infrastructure") and pushes the card wider
   * than its container on a 320px screen. */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.sc-layer:last-child { border-bottom: none; }
.sc-layer .sc-name { font-weight: 600; font-size: 0.92rem; }
.sc-layer .sc-desc { font-size: 0.8rem; color: var(--text-muted); }
.sc-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 130px;
}
.sc-bar {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-hover);
  overflow: hidden;
}
.sc-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--gradient-brand); }
.sc-bar.warn > span { background: var(--color-warning); }
.sc-val { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; min-width: 34px; text-align: right; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: var(--space-3xl) 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Two identically-coloured bands in a row are ONE band: drop BOTH sides of the
 * seam (the pair used to draw two hairlines across a single flat colour) and
 * collapse the 4.5rem + 4.5rem gutter into one. */
.section-subtle + .section-subtle { border-top: none; padding-top: 0; }
.section-subtle:has(+ .section-subtle) { border-bottom: none; }
/* The hero already pays 3rem of bottom padding. Where the next section changes
 * background (the home page's subtle band), that stack reads as two distinct
 * bands and is correct. Where it does NOT — every integration page, the sample
 * report, the 404 — the hero's 3rem and the section's 4.5rem stack into ~7.5rem
 * of unexplained white between the sub-headline and the first heading, which is
 * the single largest "why is this so empty" gap on the site. Collapse it only in
 * the no-background-change case. */
.hero + section:not(.section-subtle) { padding-top: var(--space-xl); }
/* Opt-in for the same collapse between two plain-background siblings, where
 * no selector can tell them apart. */
.section-tight-top { padding-top: 0; }
.section-head { max-width: 42rem; margin: 0 auto var(--space-2xl); text-align: center; }
/* Left-aligned variant for a section head used as a grid column rather than
 * as a centered page-width introduction. */
.section-head.section-head-start { text-align: left; margin: 0; }
.section-head h1,
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  font-weight: 800;
}
.section-head p { color: var(--text-secondary); font-size: 1.08rem; }

/* ── Cards / grids ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
/* h2 and h3 both carry the card-title look: the level is chosen by the
 * document outline of the host page, the class-free selector supplies the
 * visual weight either way. */
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: var(--space-sm); letter-spacing: -0.01em; }
.card p { color: var(--text-secondary); font-size: 0.98rem; }
.card .card-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
}
@media (prefers-color-scheme: dark) { .card .card-icon { color: var(--color-primary-light); } }
.card .card-icon svg { width: 22px; height: 22px; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  margin-top: var(--space-md);
}
/* Inline inside a heading the tag is a badge, not a stacked meta row — the
 * card-footer top margin would otherwise drop it below the baseline. */
h1 .tag, h2 .tag, h3 .tag { margin-top: 0; vertical-align: middle; }

/* ── How it works ─────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.step { position: relative; padding: var(--space-xl); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-weight: 700; font-family: var(--font-mono);
  color: #fff; background: var(--gradient-brand);
  border-radius: 50%;
  margin-bottom: var(--space-md);
}
.step h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: start; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .plan-flag {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; background: var(--gradient-brand);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.plan-name { font-size: 1.1rem; font-weight: 700; }
.plan-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: var(--space-sm) 0 0; }
.plan-price .per { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.plan-tagline { color: var(--text-secondary); font-size: 0.92rem; min-height: 2.6rem; margin-bottom: var(--space-md); }
.plan ul { list-style: none; margin: var(--space-md) 0 var(--space-lg); display: grid; gap: 0.6rem; }
.plan li { display: flex; gap: 0.55rem; font-size: 0.92rem; color: var(--text-secondary); }
.plan li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-success); margin-top: 2px; }
.plan .btn { width: 100%; margin-top: auto; }

/* ── Comparison / detail table ────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.matrix th, table.matrix td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
table.matrix thead th { background: var(--bg-subtle); font-weight: 700; }
table.matrix tbody th { font-weight: 600; color: var(--text); }
table.matrix td { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
table.matrix tr:last-child td, table.matrix tr:last-child th { border-bottom: none; }

/* ── Docs ─────────────────────────────────────────────────── */
/* minmax(0, 1fr), not 1fr, on the content track in BOTH the two-column and the
 * collapsed rule: a bare 1fr track inherits the min-content width of its
 * widest child (a ~900px unwrappable <pre> line) and overflows the document
 * instead of letting .docs-content pre / .table-wrap scroll inside themselves. */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.docs-nav { position: sticky; top: 84px; }
.docs-nav-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--space-sm); font-weight: 700; }
.docs-nav ul { list-style: none; display: grid; gap: 0.2rem; margin-bottom: var(--space-lg); }
.docs-nav a { display: block; padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.92rem; }
.docs-nav a:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.docs-content h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 var(--space-lg); letter-spacing: -0.02em; }
.docs-content h2 { font-size: 1.5rem; margin: var(--space-2xl) 0 var(--space-md); letter-spacing: -0.02em; scroll-margin-top: 84px; }
.docs-content h1 + h2 { margin-top: 0; }
/* Grid items do not collapse child margins, so a leading heading's 3rem top
 * margin would offset this column from its sibling by 48px. */
.docs-content > h1:first-child,
.docs-content > h2:first-child { margin-top: 0; }
.docs-content h3 { font-size: 1.12rem; margin: var(--space-xl) 0 var(--space-sm); }
.docs-content p, .docs-content li { color: var(--text-secondary); }
.docs-content p { margin-bottom: var(--space-md); }
.docs-content ul, .docs-content ol { margin: 0 0 var(--space-md) 1.25rem; display: grid; gap: 0.4rem; }
.docs-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-hover); background: color-mix(in srgb, var(--color-primary) 10%, transparent); padding: 0.12em 0.4em; border-radius: 5px; }
.docs-content pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}
.docs-content pre code { background: none; padding: 0; font-size: 0.85rem; line-height: 1.6; color: var(--text); }
.callout {
  border-left: 3px solid var(--color-primary);
  background: var(--bg-subtle);
  background: color-mix(in srgb, var(--color-primary) 7%, transparent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}
.callout-narrow { max-width: 44rem; margin-inline: auto; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-xl); padding: var(--space-2xl); text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-sm); color: #fff; }
/* Full-opacity white: at .9 alpha this body copy computed 3.74:1 on the
 * gradient and failed WCAG AA. */
.cta-band p { color: #fff; margin-bottom: var(--space-lg); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-band .btn-secondary { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.9); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-2xl) 0; background: var(--bg-subtle); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xl); }
.footer-brand { max-width: 22rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--space-sm); }
.footer-cols { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
/* Level chosen for the document outline (h2, a sibling of the page's section
 * headings); the class supplies the small-caps footer look. */
.footer-col-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--space-sm); font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 0.4rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-bottom { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }

/* ── Utilities ────────────────────────────────────────────── */
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.lead-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: var(--color-primary-dark);
}
@media (prefers-color-scheme: dark) { .lead-tag { color: var(--color-primary-light); } }

.proof-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-xl);
  align-items: start;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.metric-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--bg-elevated);
}

.metric-tile strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
}

.metric-tile span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.transcript {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.turn {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--bg-subtle);
}

.turn b {
  display: inline-block;
  margin-right: var(--space-xs);
  color: var(--color-primary-dark);
}
/* The one accent that had no dark override: indigo-600 on #14141f is 2.91:1. */
@media (prefers-color-scheme: dark) { .turn b { color: var(--color-primary-light); } }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.integration-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* auto, not a fixed top margin — same rule as .plan .btn, so every CTA in the
 * grid sits on one line regardless of how tall its blurb is. */
.integration-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.integration-card p { margin-bottom: var(--space-lg); }

.status-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.status-list li {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .proof-grid, .integration-grid { grid-template-columns: 1fr; }
  /* Step down 4 → 2 → 1 rather than 4 → 1: four tiles become two rows of two,
   * which is still readable and keeps the block from becoming a long ribbon. */
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; }
  /* Hide the secondary nav links BEFORE the row runs out of width, not after:
   * the full four-link nav needs ~723px on its own, which no longer fits
   * alongside the wordmark inside a 900px viewport. */
  .site-nav .nav-link.hide-sm { display: none; }
}
@media (max-width: 560px) {
  section { padding: var(--space-2xl) 0; }
  .metric-row { grid-template-columns: 1fr; }
  /* Shorten the nav CTA to its verb ("Get started") — the full
   * "Sign in / Get started" label is the widest single item in the header. */
  .site-nav .nav-cta .cta-prefix { display: none; }
}
@media (max-width: 420px) {
  .sc-score { min-width: 92px; gap: 0.4rem; }
}

/* ── Founder note ─────────────────────────────────────────── */
.founder-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 46rem;
}
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.founder-note { margin: 0; }
.founder-note p {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.founder-by {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
}
/* Stack on narrow screens, and centre the photo above the note. */
@media (max-width: 560px) {
  .founder-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
