/* ============================================================================
   PrimeWright marketing site — "Federal Modern / paper registry" design system.
   Tier-1 primitives copied from web/src/styles/tokens.css, then site semantic
   tokens + components. Light + dark via prefers-color-scheme (no toggle).
   ============================================================================ */

:root {
  /* ---- Tier 1 primitives (copied from app tokens.css) ---- */
  --paper-50:  #faf9f5;
  --paper-100: #f7f5f0;
  --paper-200: #efece3;
  --paper-300: #e4e0d6;
  --paper-400: #d4cfc0;

  --ink-900: #0c111d;
  --ink-850: #101626;
  --ink-800: #131b2e;
  --ink-700: #1b2540;
  --ink-600: #24314f;
  --ink-500: #35415f;
  --ink-300: #5b6472;
  --ink-200: #8a93a3;
  --ink-100: #b8bfca;
  --ink-050: #dce0e6;

  --navy-700: #16233f;
  --navy-600: #1b2a4a;
  --navy-500: #24365e;
  --navy-400: #3a4f7d;
  --navy-300: #5c73a3;

  --brass-600: #7d5c22;
  --brass-500: #96702e;
  --brass-400: #b78d45;
  --brass-300: #d4ac60;

  --hue-new-l:#8a93a3;      --hue-new-d:#9aa3b4;
  --hue-analyzed-l:#6e7fd1; --hue-analyzed-d:#8b9bef;
  --hue-sourced-l:#4e9a8e;  --hue-sourced-d:#5fb8a9;
  --hue-decided-l:#c98a3e;  --hue-decided-d:#e0a557;
  --hue-quoting-l:#d17a4e;  --hue-quoting-d:#ef936a;
  --hue-reviewed-l:#b15fa8; --hue-reviewed-d:#d07ec6;
  --hue-submitted-l:#3e7bc9;--hue-submitted-d:#5c9bec;
  --hue-won-l:#3e9a5c;      --hue-won-d:#4fbd74;

  --font-ui: "Public Sans", -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", monospace;
  --font-display: "Source Serif 4", Georgia, serif;

  --fs-eyebrow: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-hero: 52px;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  --tracking-label: 0.08em;
  --tracking-eyebrow: 0.14em;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: cubic-bezier(0.2, 0.6, 0.2, 1);

  --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: 8px;
  --radius-lg: 14px;
  --max-width: 1160px;

  /* ---- Semantic tokens: light (default) ---- */
  color-scheme: light;
  --color-bg: var(--paper-100);
  --color-surface: #ffffff;
  --color-surface-2: var(--paper-50);
  --color-card-bg: var(--paper-100);
  --color-card-border: rgba(19, 27, 46, 0.10);
  --color-ink: var(--ink-800);
  --color-ink-muted: var(--ink-300);
  --color-border: var(--paper-300);
  --color-border-strong: var(--paper-400);
  --color-header-border: rgba(19, 27, 46, 0.10);
  --color-navy: var(--navy-600);
  --color-navy-hover: var(--navy-500);
  --color-signet: var(--brass-500);
  --color-signet-soft: rgba(150, 112, 46, 0.12);
  --hover-surface: rgba(19, 27, 46, 0.045);
  --elev-1: 0 1px 2px rgba(19,27,46,0.06), 0 1px 1px rgba(19,27,46,0.04);
  --elev-2: 0 4px 12px rgba(19,27,46,0.10), 0 2px 4px rgba(19,27,46,0.06);
  --elev-3: 0 16px 40px rgba(19,27,46,0.18), 0 6px 12px rgba(19,27,46,0.10);
  --tint-warn: rgba(201, 138, 62, 0.10);
  --tint-warn-border: rgba(201, 138, 62, 0.35);
  /* Paper grain: fractal-noise SVG baked to a low, fixed alpha (see body{}
     below) -- ink grain on paper. Kept as a data-URI so the texture pass
     adds zero new asset requests / dependencies. */
  --grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: var(--ink-900);
    --color-surface: var(--ink-800);
    --color-surface-2: var(--ink-850);
    --color-card-bg: var(--ink-700);
    --color-card-border: rgba(255, 255, 255, 0.10);
    --color-ink: #eef1f6;
    --color-ink-muted: var(--ink-100);
    --color-border: rgba(255, 255, 255, 0.09);
    --color-border-strong: rgba(255, 255, 255, 0.16);
    --color-header-border: rgba(255, 255, 255, 0.20);
    --color-navy: var(--navy-400);
    --color-navy-hover: var(--navy-300);
    --color-signet: var(--brass-400);
    --color-signet-soft: rgba(183, 141, 69, 0.16);
    --hover-surface: rgba(255, 255, 255, 0.06);
    --elev-1: 0 1px 2px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
    --elev-2: 0 6px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
    --elev-3: 0 20px 48px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.45);
    --tint-warn: rgba(224, 165, 87, 0.14);
    --tint-warn-border: rgba(224, 165, 87, 0.35);
    /* Dark grain: same turbulence, white output, slightly higher alpha --
       per spec §3, dark grain must read heavier than light (0.04 vs 0.025). */
    --grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  }
}

/* ============================== Reset ============================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Paper grain lives on the body's own background layer (not a ::before)
     so it is guaranteed to paint beneath every child -- a fixed pseudo-
     element here would sit in its own stacking context and can end up
     painting over non-positioned in-flow content depending on the
     browser's paint order; the background-image approach has no such
     ambiguity and needs no z-index at all. */
  background-color: var(--color-bg);
  background-image: var(--grain-image);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-navy); color: #fff; padding: var(--space-2) var(--space-4);
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* Header scroll-state sentinel: 24px tall, pinned to the very top of the
   document (not the viewport), so the header's IntersectionObserver flips
   .is-scrolled on once the page has moved past it. Zero layout impact. */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
  visibility: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ============================== Eyebrow / labels ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-signet);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-signet);
  display: inline-block;
}
/* Small line icons beside a group eyebrow (features.html) -- inline SVG,
   1.6px stroke/currentColor, matching the app's Icons.jsx set. */
.eyebrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================== Header ============================== */
/* Transparent-over-hero by default; gains the paper surface + hairline
   only after ~24px of scroll (site.js toggles .is-scrolled off an
   IntersectionObserver watching a 24px sentinel -- no scroll handlers). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-header-border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: var(--color-bg); }
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 72px;
}
.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-signet);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand-name, .footer-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.footer-brand .brand-name { font-size: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: var(--space-4);
  flex: 1;
}
.nav-group-label { display: none; }
.site-nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink-muted);
  padding-bottom: 2px;
  transition: color 0.15s var(--ease-out);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--color-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav a::after { transition: right 0.2s var(--ease-out); }
}
.site-nav a:hover { color: var(--color-ink); }
.site-nav a:hover::after { right: 0; }
.site-nav a.is-current {
  color: var(--color-ink);
  font-weight: 600;
}
.site-nav a.is-current::after {
  right: 0;
  height: 2px;
  background: var(--color-signet);
  bottom: -5px;
}

.site-header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 16px;
  height: 2px;
  background: var(--color-ink);
  margin: 0 auto;
}
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--color-signet);
  outline-offset: 2px;
}

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--radius-control, 8px);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn-brass {
  background: var(--color-signet);
  color: #fff;
  box-shadow: var(--elev-1);
}
.btn-brass:hover {
  background: var(--brass-600);
  box-shadow: var(--elev-2);
}
.btn-brass:active {
  background: var(--brass-600);
  box-shadow: var(--elev-1);
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-brass:hover, .btn-brass:focus-visible { transform: translateY(-1px); }
}
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover { background: var(--hover-surface); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--hover-surface); }
.btn-lg { padding: 14px 26px; font-size: var(--fs-base); }
.btn:focus-visible {
  outline: 2px solid var(--color-signet);
  outline-offset: 2px;
}

/* ============================== Sections / layout ============================== */
/* padding-top/bottom only on .section/.section-tight -- these are always
   paired with .wrap in markup (class="section wrap"), which supplies the
   horizontal padding; a `padding: X 0` shorthand here would zero it out
   for any content wide enough to reach the viewport edge (long headings,
   full-width paragraphs) -- same bug as .hero and .footer-legal below. */
.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
.section-tight {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.section-header {
  max-width: 640px;
  margin: 0 0 var(--space-6);
}
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}
/* Secondary page headers (contact/security/legal) share the section-h2
   scale -- consolidated here instead of duplicated per-page. */
.legal-h1, .contact-h1, .sec-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}
.legal-updated {
  margin-top: var(--space-3);
  font-family: var(--font-data);
  font-size: var(--fs-sm);
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
}
/* Legal/long-form measure: constrained + centered, per typography pass --
   these pages previously ran a left-aligned 760px block; centering the
   container (text itself stays left-aligned) reads calmer at wide widths. */
.legal-body {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-top: var(--space-7);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  margin-top: var(--space-3);
  color: var(--color-ink-muted);
  line-height: var(--lh-normal);
  max-width: 65ch;
}
.legal-body a { color: var(--color-navy); font-weight: 600; }
.section-sub {
  margin-top: var(--space-3);
  color: var(--color-ink-muted);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================== Cards ============================== */
.card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--elev-1);
  overflow: hidden;
}
/* Brass left spine on hover/focus -- echoes the app board's card treatment.
   Purely opacity, no layout shift (the border-left width never changes). */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-signet);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .card::before { transition: opacity 0.15s var(--ease-out); }
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.card p {
  position: relative;
  color: var(--color-ink-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
/* Ledger-page numerals: large faint brass numeral as a backdrop element in
   the card's top-right corner, like a page/exhibit number stamped on a
   government form. h3/p carry position:relative above so the numeral never
   overlaps legible text even though it paints in the same box. */
.card-number {
  position: absolute;
  top: 10px;
  right: var(--space-4);
  font-family: var(--font-data);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-signet);
  opacity: 0.2;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================== Hero ============================== */
.hero {
  /* padding-top/bottom only -- this section also carries .wrap, which
     supplies the horizontal padding. A shorthand `padding: X 0 Y` here
     was zeroing out .wrap's left/right padding (later in cascade order),
     running the H1/subhead/CTAs flush to the viewport edge on narrow
     screens. */
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-8);
  text-align: center;
}
/* Registry corner ticks -- a faint stamped-document frame at the top
   corners of the hero and the bottom corners of the closing CTA. Kept to
   two pseudo-elements per section (top pair / bottom pair) so the "frame"
   opens at the hero and closes at the bottom-cta. */
.hero::before, .hero::after,
.bottom-cta::before, .bottom-cta::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.15;
  pointer-events: none;
}
.hero::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--color-ink);
  border-left: 1px solid var(--color-ink);
}
.hero::after {
  top: 12px;
  right: 12px;
  border-top: 1px solid var(--color-ink);
  border-right: 1px solid var(--color-ink);
}
.bottom-cta::before {
  bottom: 12px;
  left: 12px;
  border-bottom: 1px solid var(--color-ink);
  border-left: 1px solid var(--color-ink);
}
.bottom-cta::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid var(--color-ink);
  border-right: 1px solid var(--color-ink);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-top: var(--space-4);
}
/* Landing hero's second sentence -- the one deliberate italic-serif
   contrast move per the typography pass. Nothing else on the site is
   italicized. */
.hero-accent { font-style: italic; }
.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--fs-lg);
  color: var(--color-ink-muted);
  line-height: var(--lh-snug);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-cta-secondary {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.hero-cta-secondary:hover { color: var(--color-navy-hover); }

/* Hero entrance: h1 letter-spacing settles in + fades once on load; sub
   and CTAs stagger in behind it. Pure CSS (no JS), reduced-motion-guarded --
   outside this media query the elements simply render in their final state. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: heroSettle 600ms var(--ease-reveal) both; }
  .hero-sub { animation: heroFadeUp 500ms var(--ease-reveal) 120ms both; }
  .hero-ctas { animation: heroFadeUp 500ms var(--ease-reveal) 200ms both; }
}
@keyframes heroSettle {
  from { opacity: 0; letter-spacing: 0.02em; }
  to { opacity: 1; letter-spacing: -0.015em; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================== Trust strip ============================== */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}
.trust-strip li {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
/* Line icon replaces the old plain dot marker -- same role (a small mark
   ahead of the line), more legible at a glance. */
.trust-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-signet);
}

/* ============================== Differentiator band ============================== */
.diff-band {
  /* padding-top/bottom only -- paired with .wrap in markup, see note above .section */
  background: var(--color-navy);
  color: #fff;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  border-radius: var(--radius-lg);
}
.diff-band .section-header h2,
.diff-band .section-header .eyebrow { color: #fff; }
.diff-band .section-sub { color: rgba(255,255,255,0.7); }
.diff-band .grid { margin-top: var(--space-6); }
.diff-item {
  border-left: 2px solid var(--color-signet);
  padding-left: var(--space-4);
}
.diff-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.diff-item p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.68);
  line-height: var(--lh-snug);
}

/* ============================== Step rows w/ mock panels ============================== */
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7) 0;
}
.step-row:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.step-row.reverse .step-copy { order: 2; }
.step-row.reverse .step-visual { order: 1; }
.step-index {
  font-family: var(--font-data);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-label);
  font-variant-numeric: tabular-nums;
  color: var(--color-signet);
  display: block;
  margin-bottom: var(--space-3);
}
.step-copy h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.step-copy p {
  margin-top: var(--space-3);
  color: var(--color-ink-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}
@media (max-width: 780px) {
  .step-row, .step-row.reverse {
    grid-template-columns: 1fr;
  }
  .step-row.reverse .step-copy,
  .step-row.reverse .step-visual { order: initial; }
}

/* ---- Mock UI panel: abstract board/worklist, no real data ---- */
.mock-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--elev-2);
}
.mock-panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); }
.mock-panel-title {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.mock-stage {
  background: var(--color-surface-2);
  border-radius: var(--radius);
  padding: var(--space-2);
}
.mock-stage-label {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-2);
  display: block;
}
.mock-chip {
  height: 30px;
  border-radius: 6px;
  margin-bottom: var(--space-2);
  opacity: 0.85;
}
.mock-chip:last-child { margin-bottom: 0; }
.mock-chip.c1 { background: var(--hue-new-l); }
.mock-chip.c2 { background: var(--hue-analyzed-l); }
.mock-chip.c3 { background: var(--hue-sourced-l); }
.mock-chip.c4 { background: var(--hue-decided-l); }
.mock-chip.short { height: 18px; }

@media (prefers-color-scheme: dark) {
  .mock-chip.c1 { background: var(--hue-new-d); }
  .mock-chip.c2 { background: var(--hue-analyzed-d); }
  .mock-chip.c3 { background: var(--hue-sourced-d); }
  .mock-chip.c4 { background: var(--hue-decided-d); }
}

/* Ruled ledger rows, not gray boxes -- a hairline divider between rows
   instead of a filled background per row. */
.mock-rows { display: flex; flex-direction: column; gap: 0; }
.mock-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-1);
  border-top: 1px solid var(--color-border);
}
.mock-row:first-child { border-top: none; }
.mock-row-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--color-border-strong); }
.mock-row-badge {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
}
.mock-row-badge.viable { background: var(--hue-won-l); }
.mock-row-badge.candidate { background: var(--hue-decided-l); }
.mock-row-badge.risky { background: var(--red-l, #c0392b); }
@media (prefers-color-scheme: dark) {
  .mock-row-badge.viable { background: var(--hue-won-d); }
  .mock-row-badge.candidate { background: var(--hue-decided-d); }
  .mock-row-badge.risky { background: #e2685a; }
}

.mock-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--color-border-strong);
  overflow: hidden;
  margin-top: var(--space-2);
}
.mock-meter-fill { height: 100%; background: var(--color-signet); }

.mock-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.mock-figure {
  background: var(--color-surface-2);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.mock-figure-label {
  font-family: var(--font-data);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  display: block;
  margin-bottom: var(--space-1);
}
.mock-figure-value {
  font-family: var(--font-data);
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.mock-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border-strong);
}
.mock-signature-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: var(--space-1);
  flex: 1;
}
.mock-signature-stamp {
  margin-left: var(--space-3);
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-signet);
  border: 1px solid var(--color-signet);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ============================== Disclaimer box ============================== */
.disclaimer {
  background: var(--tint-warn);
  border: 1px solid var(--tint-warn-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--color-ink);
}
.disclaimer strong { font-weight: 600; }

/* ============================== Pricing ============================== */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--color-signet);
  box-shadow: var(--elev-3);
}
.pricing-tier-name {
  font-family: var(--font-data);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: var(--space-2) 0;
}
.pricing-price span { font-size: var(--fs-sm); font-family: var(--font-ui); color: var(--color-ink-muted); font-weight: 400; }

/* ============================== FAQ accordion (no JS) ============================== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 var(--space-4);
}
.faq-item summary {
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  font-size: var(--fs-base);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-data);
  color: var(--color-signet);
  font-size: var(--fs-lg);
  margin-left: var(--space-3);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--color-ink-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  padding-bottom: var(--space-4);
}

/* ============================== Bottom CTA ============================== */
.bottom-cta {
  /* padding-top/bottom only -- paired with .wrap in markup, see note above .section */
  position: relative;
  text-align: center;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}
.bottom-cta .hero-ctas { margin-top: var(--space-5); }

/* ============================== Footer ============================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  background: var(--color-surface-2);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}
.footer-tagline {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-ink-muted);
  max-width: 220px;
}
.footer-heading {
  font-family: var(--font-data);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-3);
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  padding: var(--space-1) 0;
}
.footer-col a:hover { color: var(--color-ink); }
.footer-legal {
  /* padding-top/bottom only -- same fix as .hero above: this element also
     carries .wrap, which supplies horizontal padding. A shorthand
     `padding: X 0` here was zeroing it out, running the copyright line
     flush to the viewport edge. */
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  text-align: center;
}
.footer-legal-mark {
  display: block;
  margin: 0 auto var(--space-3);
}
.footer-legal p {
  font-size: 12px;
  color: var(--color-ink-muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--color-bg) 97%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-header-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-5) var(--space-4);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-group-label {
    display: block;
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-ink-muted);
    padding: var(--space-3) 0 var(--space-2);
  }
  .site-nav a {
    padding: var(--space-3) 0;
    width: 100%;
    border-top: 1px solid var(--color-border);
  }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .site-header-cta .btn-ghost { display: none; }
}

/* ============================== Section rule / § label ============================== */
/* Federal-form section break: a full-width hairline with a small centered
   mono "§ NN · label" marker. Landing-page section boundaries only. */
.rule-label {
  position: relative;
  height: 1px;
  margin: 0;
}
.rule-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}
.rule-label span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg);
  padding: 0 var(--space-4);
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

/* ============================== Scroll reveals ============================== */
/* .reveal is applied by site.js to a small set of selectors (cards, step
   rows, section headers, mock panels...) via one IntersectionObserver.
   Entirely inert outside the no-preference media query -- under
   reduced-motion the class does nothing and content renders visible
   immediately, satisfying the hard constraint. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms var(--ease-reveal), transform 420ms var(--ease-reveal);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================== FAQ open animation ============================== */
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] > p {
    animation: faqOpen 200ms var(--ease-out) both;
  }
  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Legal status banner (used on legal pages: in-force / review status) */
.legal-banner {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
