/* ==========================================================================
   GridGrade — Shared Design System (styles.css)
   LIGHT theme (UF-1) · warm paper surfaces · emerald→sky brand mark
   Brand-aligned with the marketing site (site.css): same paper/ink palette,
   the same self-hosted Fraunces + IBM Plex faces, soft light-tuned elevation.

   Token flip (dark → light), WCAG AA-audited WORST-CASE: text ≥ 4.5:1 and
   accent bars ≥ 3:1 on every surface the pair renders on — soft tint fills
   are composited over bg-1 (the darkest band chips/pills sit on), not just
   the white card. Full pair table: the feat(theme-2) commit message.
     --bg-0          #0f1115 → #fbfbf8   page (warm paper, = site --paper)
     --bg-1          #1a1d23 → #f5f6f3   inset/raised band (= site --paper-tint)
     --bg-2          #21252d → #ffffff   card surface (= site --surface)
     --bg-3          #2a2f3a → #d3d7dd   strong hairline / hover border
     --text-strong   #f3f5f8 → #15171c   headings (17.9:1 on card)
     --text-base     #e5e7eb → #2c3038   body (13.2:1)
     --text-muted    #9aa3af → #5b626d   secondary (6.2:1)
     --accent-green  #34d399 → #067647   success/pass TEXT (5.7:1); the bright
                                         emerald lives on in --grad-brand only
     --accent-blue   #38bdf8 → #0369a1   focus/checked borders (5.9:1) + chip
                                         TEXT on tint fills (4.75:1 worst —
                                         blue-2 dips under AA there)
     --accent-blue-2 #7dd3fc → #0e7490   links (5.4:1, = site --accent-deep)
     --accent-violet #a78bfa → #6d28d9   sparing tertiary (7.1:1)
     --danger        #fca5a5 → #b42318   errors/deductions (6.6:1, = site --danger)
     --success       #34d399 → #067647   (= site --success)
     --border        #2a2f3a → #e4e6ea   hairlines (= site --line)
   New status tokens (light chips need dark text on soft tints):
     --warn #92400e (7.1:1) · --warn-accent #b45309 (5.0:1 bars) · the four
     --*-soft tint fills + --danger-soft #fdecea (= site --danger-soft).
   ========================================================================== */

/* ----- 0. Fonts — the marketing faces, self-hosted (same /assets/fonts woff2
   files site.css already serves; same-origin, CSP default-src 'self' covers
   font-src, so no policy change). Plex Sans 600 declares 600–800 so bolder
   requests use the real 600 face instead of faux-bold synthesis. ----------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-600.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ----- 1. Design tokens -------------------------------------------------- */
:root {
  /* Backgrounds (warm paper → white cards, layered) */
  --bg-0: #fbfbf8;        /* page background (warm near-white paper) */
  --bg-1: #f5f6f3;        /* section / inset surface (tint band) */
  --bg-2: #ffffff;        /* card surface */
  --bg-3: #d3d7dd;        /* hover border / borders-strong */

  /* Text (ink) */
  --text-strong: #15171c; /* headings */
  --text-base:   #2c3038; /* body */
  --text-muted:  #5b626d; /* secondary / captions (AA on all surfaces) */

  /* Accents — deep AA-safe derivatives of the emerald→sky brand */
  --accent-green:  #067647; /* success/pass text (AA on white) */
  --accent-blue:   #0369a1; /* focus/checked borders, hover borders */
  --accent-blue-2: #0e7490; /* links / info text (AA on white) */
  --accent-violet: #6d28d9; /* sparing tertiary (chips/illustration) */

  /* Semantic */
  --danger:  #b42318;      /* form errors, deduction marks (AA on white) */
  --success: #067647;      /* success states (reuse green) */
  --border:  #e4e6ea;      /* hairline borders */
  --warn:        #92400e;  /* warning TEXT on light/tinted fills (AA) */
  --warn-accent: #b45309;  /* warning accent bars / borders (≥3:1 non-text) */
  --ok-soft:     rgba(6,118,71,0.10);   /* pass chip fill */
  --info-soft:   rgba(3,105,161,0.10);  /* info chip fill */
  --warn-soft:   rgba(217,119,6,0.14);  /* warn chip fill */
  --fail-soft:   rgba(180,35,24,0.08);  /* fail chip fill */
  --danger-soft: #fdecea;  /* error banner / deduction pill fill */

  /* Signature gradient — decorative fills ONLY (ink text on it ≥ 8.8:1);
     never used as small-text color on light surfaces */
  --grad-brand: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(52,211,153,0.14) 0%, rgba(56,189,248,0.14) 100%);

  /* Type scale (fluid, clamp-based) */
  --fs-display: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2:      clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3:      1.25rem;
  --fs-lead:    clamp(1.1rem, 2vw, 1.375rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-chip:    0.75rem;

  /* Fonts (brand faces + robust fallbacks, mirroring site.css) */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1120px;
  --measure: 68ch;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation — SOFT light-tuned shadows (a light theme can't elevate by
     lightening surfaces; it layers soft shadow + hairline borders instead) */
  --shadow-card: 0 1px 3px rgba(20,24,31,0.06), 0 8px 24px -12px rgba(20,24,31,0.12);
  --shadow-cta-hover: 0 0 0 1px rgba(14,116,144,0.35), 0 8px 20px -6px rgba(20,24,31,0.18);

  /* Chrome heights */
  --nav-h: 64px;
}

/* ----- 2. Reset & base --------------------------------------------------- */
*, *::before, *::after { 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(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-base);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text-strong); margin: 0 0 var(--space-4); }
p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-7) 0; }

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

:focus-visible {
  outline: 2px solid var(--accent-blue-2);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -120px;
  z-index: 200;
  background: var(--bg-2);
  color: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--space-3) var(--space-4);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--space-3); text-decoration: none; }

/* ----- 3. Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-8);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-9); }
}
.section--alt { background: var(--bg-1); }

.section__head { max-width: var(--measure); margin-bottom: var(--space-6); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: var(--fs-chip);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-base);
  font-weight: 400;
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, .h1 { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }

/* ----- 4. Announcement bar ----------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-base);
}
.announce[hidden] { display: none; }
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-2) calc(var(--space-7) + var(--space-2)) var(--space-2) var(--space-5);
  text-align: center;
  position: relative;
}
.announce__text { margin: 0; }
.announce__link {
  color: var(--accent-blue-2);
  font-weight: 600;
  white-space: nowrap;
}
.announce__dismiss {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.announce__dismiss:hover { color: var(--text-strong); background: var(--bg-2); }

/* ----- 5. Navigation ----------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-0);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.nav.scrolled {
  background: rgba(251, 251, 248, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: var(--nav-h);
  padding-inline: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--text-strong);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand__name { white-space: nowrap; }
.brand__name .brand__grid {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text-base);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}
.nav__links a:hover { color: var(--text-strong); text-decoration: none; }
.nav__links a[aria-current="page"] {
  color: var(--text-strong);
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.nav__actions { display: none; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-base);
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--bg-3); color: var(--text-strong); }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile slide-down panel */
.nav__panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.nav__panel.open {
  display: block;
  animation: panel-slide .18s ease;
}
@keyframes panel-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__panel.open { animation: none; }
}
.nav__panel-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-4) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nav__panel-inner a.nav__panel-link {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.nav__panel-inner a.nav__panel-link:hover { color: var(--text-strong); text-decoration: none; }
.nav__panel-inner .btn { margin-top: var(--space-4); width: 100%; }
@media (min-width: 1024px) {
  .nav__panel, .nav__panel.open { display: none; }
}

/* ----- 6. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--grad-brand);
  color: #0f1115;
  border-color: transparent;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }

.btn--secondary {
  background: transparent;
  color: var(--text-base);
  border-color: var(--bg-3);
}
.btn--secondary:hover { border-color: var(--accent-blue); color: var(--text-strong); }

.btn--ghost {
  background: transparent;
  color: var(--accent-blue-2);
  border-color: transparent;
  padding-inline: var(--space-2);
}
.btn--ghost:hover { text-decoration: underline; }

.btn--lg { min-height: 52px; padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-blue-2);
  font-weight: 600;
}
.link-arrow:hover { text-decoration: underline; }

/* CSS spinner for submit button */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(15,17,21,0.35);
  border-top-color: #0f1115;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.4s; }
}

/* ----- 7. Chips / badges ------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: var(--fs-chip);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; }

.chip--accent {
  position: relative;
  color: var(--text-base);
  background: var(--bg-2);
  border-color: transparent;
}
.chip--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(3,105,161,0.28);
  /* --accent-blue, not -blue-2: on the soft tint COMPOSITED OVER bg-1 (evidence
     cards) blue-2 lands at 4.48:1 — under AA. Blue holds 4.96:1 worst-case. */
  color: var(--accent-blue);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ----- 8. Cards ---------------------------------------------------------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { border-color: var(--bg-3); transform: translateY(-2px); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-1);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
  color: var(--accent-green);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Evidence / deduction card (illustrative) */
.evidence-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}
.evidence-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.evidence-card__title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.evidence-card__snippet {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-base);
  line-height: 1.55;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-3);
  white-space: pre-wrap;
  word-break: break-word;
}
.pill-deduction {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--danger-soft);
  border: 1px solid rgba(180,35,24,0.32);
  color: var(--danger);
  font-weight: 700;
  font-size: var(--fs-small);
  font-family: var(--font-mono);
}
.evidence-card__fix {
  font-size: var(--fs-small);
  color: var(--text-base);
  margin: 0;
}
.evidence-card__fix strong { color: var(--accent-green); }

/* ----- 9. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(1100px 480px at 70% -10%, rgba(56,189,248,0.10), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(52,211,153,0.08), transparent 55%),
    var(--bg-0);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-bottom: var(--space-6); max-width: 60ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__chip { margin-bottom: var(--space-5); }

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}
.hero__mark {
  width: clamp(160px, 26vw, 240px);
  height: clamp(160px, 26vw, 240px);
}

/* Animated grid-mark sweep on hero load */
.grid-mark--animated .gm-sq {
  opacity: 0;
  animation: gm-reveal .5s ease forwards;
}
.grid-mark--animated .gm-sq:nth-child(1) { animation-delay: .05s; }
.grid-mark--animated .gm-sq:nth-child(2) { animation-delay: .20s; }
.grid-mark--animated .gm-sq:nth-child(3) { animation-delay: .35s; }
.grid-mark--animated .gm-sq:nth-child(4) { animation-delay: .50s; }
@keyframes gm-reveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .grid-mark--animated .gm-sq { opacity: 1; animation: none; }
}

/* ----- 10. Differentiator comparison table ------------------------------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.9375rem;
}
.compare caption { text-align: left; }
.compare th, .compare td {
  padding: var(--space-4) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--bg-1);
  color: var(--text-strong);
  font-weight: 700;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare thead th:last-child {
  background: var(--grad-brand-soft);
  color: var(--text-strong);
}
.compare tbody th {
  font-weight: 600;
  color: var(--text-strong);
  background: var(--bg-1);
  width: 22%;
}
.compare tbody td { color: var(--text-base); }
.compare tbody td:last-child { color: var(--text-strong); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td,
.compare tbody tr:hover th { background: var(--bg-1); }

/* Mobile: stacked label/value cards */
.compare--stacked { display: none; }
@media (max-width: 639px) {
  .compare { display: none; }
  .compare--stacked { display: grid; gap: var(--space-4); }
  .compare-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--space-5);
  }
  .compare-card__task {
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: var(--space-3);
    font-size: 1.0625rem;
  }
  .compare-card__row { margin-bottom: var(--space-3); }
  .compare-card__row:last-child { margin-bottom: 0; }
  .compare-card__label {
    display: block;
    font-size: var(--fs-chip);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .compare-card__row--gg .compare-card__label { color: var(--accent-blue-2); }
  .compare-card__value { color: var(--text-base); }
  .compare-card__row--gg .compare-card__value { color: var(--text-strong); }
}

/* ----- 11. LOCATE→EXTRACT→COMPARE→SCORE steps ---------------------------- */
.steps {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-5);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(3,105,161,0.28);
  color: var(--accent-blue-2);
  font-weight: 700;
  font-size: var(--fs-small);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}
.step__name {
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}
.step p { margin: 0; font-size: 0.9375rem; }
.step::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 700;
}
.step:last-child::after { content: none; }
@media (max-width: 1023px) { .step::after { content: none; } }

/* Alternating feature rows (how-it-works lifecycle) */
.feature-row {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
}
@media (min-width: 1024px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .feature-row:nth-child(even) .feature-row__media { order: -1; }
}
.feature-row__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.feature-row__media {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----- 12. Pricing ------------------------------------------------------- */
.toggle-models {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.toggle-models button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.toggle-models button[aria-pressed="true"] {
  background: var(--grad-brand);
  color: #0f1115;
}

.price-cards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .price-cards { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.price-card--featured {
  border-color: transparent;
}
.price-card--featured::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--grad-brand);
}
.price-card--featured {
  box-shadow: 0 0 0 1px rgba(3,105,161,0.25);
}
.price-card__tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}
.price-card__name {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.price-card__price {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
}
.price-card__price .gradient-text { font-weight: 800; }
.price-card__period { font-size: var(--fs-small); color: var(--text-muted); font-weight: 500; }
.price-card__desc { font-size: 0.9375rem; color: var(--text-base); margin: 0; }
.price-card ul { margin: 0; padding-left: 1.1em; }
.price-card li { font-size: 0.9375rem; }

.mini-price {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-5);
  text-align: center;
}
.mini-price strong { display: block; font-size: 1.25rem; color: var(--text-strong); }

/* Pricing band table */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.9375rem;
}
.price-table th, .price-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  background: var(--bg-2);
  color: var(--text-strong);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-table tbody th { font-weight: 700; color: var(--text-strong); background: var(--bg-1); }
.price-table tbody td:nth-child(3) { color: var(--text-strong); font-weight: 700; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) {
  .price-table, .price-table thead, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table thead { display: none; }
  .price-table { border: 0; }
  .price-table tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: var(--bg-2);
  }
  .price-table tbody th, .price-table tbody td {
    border: 0;
    padding: var(--space-2) var(--space-3);
    background: transparent;
  }
  .price-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-chip);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
  }
}

.callout {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--r-md);
  padding: var(--space-5);
  font-size: 0.9375rem;
}
.callout p:last-child { margin-bottom: 0; }

.note {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
}

/* FAQ */
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.faq__item:last-child { border-bottom: 0; }
.faq__q { font-weight: 600; color: var(--text-strong); margin-bottom: var(--space-2); }
.faq__a { margin: 0; color: var(--text-base); }

/* ----- 13. CTA band ------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(800px 320px at 50% 120%, rgba(52,211,153,0.12), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band .container { max-width: 720px; }
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .btn { margin-top: var(--space-3); }
.cta-band__reassure { margin-top: var(--space-4); }

/* ----- 14. Forms --------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-base);
}
.field .req { color: var(--accent-blue-2); }
.field .opt { color: var(--text-muted); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-base);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.20);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235b626d' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180,35,24,0.16);
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--danger);
  line-height: 1.4;
}
.field__error::before {
  content: "";
  width: 14px; height: 14px;
  flex: 0 0 auto;
  background-color: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 3a1 1 0 011 1v3a1 1 0 11-2 0V5a1 1 0 011-1zm0 7.5a1.1 1.1 0 110-2.2 1.1 1.1 0 010 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 3a1 1 0 011 1v3a1 1 0 11-2 0V5a1 1 0 011-1zm0 7.5a1.1 1.1 0 110-2.2 1.1 1.1 0 010 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.has-error .field__error { display: flex; }

/* Radio group for interest */
.radio-group { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 480px) { .radio-group { grid-template-columns: repeat(2, 1fr); } }
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.9375rem;
}
.radio-card:hover { border-color: var(--bg-3); }
.radio-card input { accent-color: var(--accent-green); margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.radio-card:has(input:checked) {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}
.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--accent-blue-2);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-base);
}
.checkbox input { accent-color: var(--accent-green); width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }

/* Honeypot — visually hidden off-screen */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Form banners + success/error */
.form-banner {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-banner.show { display: flex; }
.form-banner--error {
  background: var(--danger-soft);
  border: 1px solid rgba(180,35,24,0.32);
  color: var(--text-base);
}
.form-banner--error a { color: var(--accent-blue-2); }

.form-success {
  text-align: left;
  background: var(--bg-1);
  border: 1px solid rgba(6,118,71,0.35);
  border-radius: var(--r-md);
  padding: var(--space-6);
}
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(6,118,71,0.4);
  color: var(--accent-green);
  margin-bottom: var(--space-4);
}
.form-success h3 { margin-bottom: var(--space-2); }
.form-success p:last-child { margin-bottom: 0; }

/* ----- 15. Modal --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-5);
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 31, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin-block: var(--space-7);
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  animation: modal-in .18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__dialog { animation: none; }
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.modal__title { margin: 0 0 var(--space-2); }
.modal__sub { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.modal__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--text-strong); border-color: var(--bg-3); }
.modal__body { padding: var(--space-6); }

body.modal-open { overflow: hidden; }

/* ----- 16. Footer -------------------------------------------------------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-6);
}
.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
}
.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: var(--space-3);
}
.footer__brand-mark svg { width: 26px; height: 26px; }
.footer__tagline { font-size: var(--fs-small); color: var(--text-muted); max-width: 32ch; margin-bottom: var(--space-3); }
.footer__launch { font-size: var(--fs-small); color: var(--text-muted); font-weight: 600; }
.footer__col h4 {
  font-size: var(--fs-chip);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--space-3); }
.footer__col a, .footer__col address a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer__col a:hover { color: var(--text-base); text-decoration: none; }
.footer__col address { font-style: normal; }
.footer__col p { font-size: var(--fs-small); color: var(--text-muted); }

.footer__baseline {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.footer__baseline .sep { color: var(--bg-3); }
.footer__disclaimer { flex-basis: 100%; line-height: 1.5; }

/* ----- 17. On-scroll reveal --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- 18. Utilities ----------------------------------------------------- */
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.text-strong { color: var(--text-strong); }
.footnote { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; max-width: var(--measure); }