/* ==========================================================================
   SafeIdea — v4.1 design system foundation
   Tokens, base type, layout primitives, nav, footer, buttons.
   Page-level styles (hero, sections, scopes, how-steps, etc.) live below
   the foundation and will be replaced page-by-page in subsequent chunks.
   ========================================================================== */

:root {
  /* New v4.1 tokens (Erich's design) */
  --primary: #0a0a0a;
  --on-primary: #faf8f4;
  --canvas: #faf8f4;
  --canvas-warm: #f2ede2;
  --featured: #ece8df;
  --hairline: #e2ddd0;
  --hairline-soft: #ece9e1;
  --surface-cool: #ebedf0;
  --scrim: #111111;
  --footer-bg: #050505;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --graphite: #4a4a4a;
  --slate: #6b7280;
  --slate-soft: #8a8f99;
  --mute: #a8a89f;
  --stone: #9b9990;
  --ash: #c4c2b8;

  /* Sparing accent — gold lives only where the spec calls for it (logo
     glyph; chunk-2 will surface it on the "fresh" Compliance Receipt
     highlight and any hover/status accents). Not used in page chrome. */
  --accent: #eab308;
  --accent-soft: rgba(234, 179, 8, 0.12);

  /* Spacing (8px grid) */
  --xxs: 4px;
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;
  --section: 64px;
  --section-lg: 96px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Layout caps */
  --container: 1280px;
  --reading: 720px;
  --reading-wide: 920px;

  /* Legacy palette retained so existing page-level styles continue to
     render until each page is rewritten in its own chunk. */
  --gold-50:#fefce8;--gold-100:#fef9c3;--gold-200:#fef08a;--gold-300:#fde047;
  --gold-400:#facc15;--gold-500:#eab308;--gold-600:#ca8a04;--gold-700:#a16207;
  --white:#fff;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;
  --gray-300:#d1d5db;--gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;
  --gray-700:#374151;--gray-800:#1f2937;--gray-900:#111827;--gray-950:#0a0e14;
  --text:var(--gray-900);--text-sub:var(--gray-500);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--graphite); text-decoration: none; }

/* Type tokens */
.t-display { font-size: 48px; font-weight: 400; line-height: 1.0; letter-spacing: -1.4px; }
.t-display-sm { font-size: 40px; font-weight: 400; line-height: 1.0; letter-spacing: -1.2px; }
.t-heading-md { font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -1.1px; }
.t-heading-sm { font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.4px; }
.t-subtitle { font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -0.2px; }
.t-body { font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--graphite); }
.t-body-strong { font-weight: 600; color: var(--ink); }
.t-body-tight { font-size: 16px; font-weight: 400; line-height: 1.3; letter-spacing: -0.16px; }
.t-link-sm { font-size: 14px; font-weight: 600; line-height: 1.43; }
.t-eyebrow { font-size: 14px; font-weight: 500; line-height: 1.43; letter-spacing: 0.35px; text-transform: uppercase; color: var(--slate); }
.t-meta { font-size: 13px; font-weight: 400; line-height: 1.3; letter-spacing: -0.26px; }
.t-micro-caps { font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: 1.1px; text-transform: uppercase; }

/* Layout primitives */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--xxl); padding-right: var(--xxl); }
.reading { max-width: var(--reading); }
.reading-wide { max-width: var(--reading-wide); }
.text-center { text-align: center; }

/* ==========================================================================
   Site navigation (new — replaces .site-header / .nav-container / .nav-links)
   ========================================================================== */
.site-nav {
  background: var(--canvas);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline-soft);
}
.site-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--xxl);
  padding-right: var(--xxl);
}
.site-wordmark {
  display: flex;
  align-items: center;
  gap: var(--xs);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--ink);
  text-decoration: none;
}
.site-wordmark:hover { color: var(--ink); }
.site-nav-menu {
  display: flex;
  gap: var(--xl);
  justify-content: center;
}
.site-nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font: 600 14px/1.43 'Inter', sans-serif;
  padding: 8px 0;
}
.site-nav-link:hover { color: var(--ink); }
.site-nav-cta { display: flex; align-items: center; justify-content: flex-end; }

/* ==========================================================================
   Buttons (new — replaces gold-gradient .btn-primary system)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--r-full);
  font: 600 14px/1.43 'Inter', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { opacity: .88; color: var(--on-primary); }
.btn-primary-on-dark { background: var(--on-primary); color: var(--primary); }
.btn-primary-on-dark:hover { opacity: .88; color: var(--primary); }
.btn-ghost { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-primary); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-primary); }
.btn-text {
  background: transparent; color: var(--ink); padding: 0; height: auto;
  border-radius: 0; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  font: 600 14px/1.43 'Inter', sans-serif;
}
.btn-text:hover { color: var(--graphite); border-color: var(--graphite); }
.btn-text-on-dark {
  background: transparent; color: var(--on-primary); padding: 0; height: auto;
  border-radius: 0; border-bottom: 1px solid var(--on-primary); padding-bottom: 2px;
  font: 600 14px/1.43 'Inter', sans-serif; text-decoration: none;
}
.btn-text-on-dark:hover { color: var(--ash); border-color: var(--ash); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.hero-ctas { display: flex; gap: var(--xl); align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   Site footer (new — replaces .site-footer)
   ========================================================================== */
.site-foot {
  background: var(--footer-bg);
  color: var(--on-primary);
  padding: var(--section) 0 var(--xxl);
  margin-top: var(--section-lg);
}
.site-foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--xxl);
  padding-right: var(--xxl);
}
.site-foot-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--xxl);
  padding-bottom: var(--xxl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-foot-brand .site-foot-wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--on-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--sm);
}
.site-foot-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ash);
  max-width: 26ch;
}
.site-foot-col h4 {
  margin: 0 0 var(--md) 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ash);
}
.site-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot-col a { color: rgba(250, 248, 244, 0.7); text-decoration: none; font-size: 14px; }
.site-foot-col a:hover { color: var(--on-primary); }
.site-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--lg);
  font-size: 12px;
  color: var(--ash);
}
.site-foot-stamp { letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .site-nav-inner { grid-template-columns: 1fr auto; padding: 0 var(--lg); }
  .site-nav-menu { display: none; }
  .container { padding-left: var(--lg); padding-right: var(--lg); }
  .site-foot-top { grid-template-columns: 1fr 1fr; gap: var(--lg); }
  .site-foot-inner { padding: 0 var(--lg); }
}
@media (max-width: 600px) {
  .site-foot-top { grid-template-columns: 1fr; }
  .site-foot-bottom { flex-direction: column; gap: var(--xs); align-items: flex-start; }
}

/* ==========================================================================
   Coming-soon stub pages (/how-it-works, /white-paper before chunks 3 & 8).
   ========================================================================== */
.stub-page { padding: var(--section-lg) 0; }
.stub-page .container { max-width: var(--reading); }
.stub-page h1 { font-size: 48px; font-weight: 400; line-height: 1.0; letter-spacing: -1.4px; margin: 0 0 var(--lg); }
.stub-page p { font-size: 20px; line-height: 1.45; letter-spacing: -0.25px; color: var(--graphite); margin: 0 0 var(--xxl); }
.stub-page .stub-actions { display: flex; gap: var(--xl); align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   Home page (v4.1) — sections 1-9
   ========================================================================== */

/* §1 Hero */
.home-hero { padding: var(--section-lg) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--xxl); align-items: center; }
.home-hero-text h1 {
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 0 0 var(--lg);
  color: var(--ink);
  max-width: 14ch;
}
.home-hero-text .sub {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.25px;
  color: var(--graphite);
  max-width: 48ch;
  margin: 0 0 var(--xxl);
}
.home-hero-text .actions { display: flex; gap: var(--xl); align-items: center; flex-wrap: wrap; }

/* Hero proof visual: auto-cycling three-beat still */
.hero-proof {
  background: var(--canvas-warm);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-proof .video-chrome-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--md) var(--lg);
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}
.hero-proof .rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-proof .rec .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-proof .timecode { font: 500 11px/1 'Inter', sans-serif; letter-spacing: 1.1px; color: var(--stone); }
.hero-proof .stage-area { flex: 1; position: relative; padding: var(--xl) var(--xl) var(--lg); min-height: 0; }
.hero-proof .beat {
  position: absolute;
  inset: var(--xl) var(--xl) var(--lg);
  opacity: 0;
  animation: beat-cycle 12s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-proof .beat.b2 { animation-delay: -8s; }
.hero-proof .beat.b3 { animation-delay: -4s; }
@keyframes beat-cycle {
  0%   { opacity: 0; transform: translateY(4px); }
  6%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  34%  { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-4px); }
}
.hero-proof .beat-label { font: 500 10px/1.2 'Inter', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--stone); margin-bottom: var(--md); }
.doc-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: var(--md);
  border-radius: var(--r-xs);
}
.doc-text .ent {
  display: inline-block; background: var(--ink); color: var(--on-primary);
  padding: 1px 6px; border-radius: 2px;
  font-weight: 500; font-size: 13px; line-height: 1.4;
}
.doc-text .mask {
  display: inline-block; background: var(--featured); color: var(--graphite);
  padding: 1px 6px; border-radius: 2px;
  font-family: 'Inter', sans-serif; font-feature-settings: "tnum";
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.1px; line-height: 1.4;
  border: 1px dashed var(--stone);
}
.receipt-stack-hero { display: flex; flex-direction: column; gap: 6px; max-width: 280px; }
.receipt-stack-hero .rcpt {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--graphite);
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 500;
}
.receipt-stack-hero .rcpt .id { color: var(--ink); }
.receipt-stack-hero .rcpt .ts { color: var(--stone); font-feature-settings: "tnum"; letter-spacing: 0.2px; text-transform: none; font-weight: 400; }
/* Sparing-gold accent: the freshly-emitted Compliance Receipt highlights gold per Cart's decision. */
.receipt-stack-hero .rcpt.fresh {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  animation: dropIn 12s ease-out infinite;
  animation-delay: -4s;
}
.receipt-stack-hero .rcpt.fresh .id { color: var(--ink); }
.receipt-stack-hero .rcpt.fresh .ts { color: var(--graphite); }
@keyframes dropIn {
  0%, 6% { transform: translateY(-12px); opacity: 0; }
  10%, 30% { transform: translateY(0); opacity: 1; }
  34%, 100% { transform: translateY(0); opacity: 1; }
}
.hero-proof .video-chrome-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sm) var(--lg);
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  gap: var(--md);
}
.hero-proof .scrubber { flex: 1; height: 2px; background: var(--hairline); position: relative; overflow: hidden; }
.hero-proof .scrubber::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 33%;
  background: var(--ink); animation: scrub 12s linear infinite;
}
@keyframes scrub { 0% { left: -33%; } 100% { left: 100%; } }
.hero-proof .vc-meta { font-size: 11px; color: var(--stone); letter-spacing: -0.1px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hero-proof .beat { opacity: 1; animation: none; }
  .hero-proof .beat.b2, .hero-proof .beat.b3 { display: none; }
  .hero-proof .rec .dot { animation: none; }
  .hero-proof .scrubber::after { animation: none; left: 0; width: 33%; }
  .receipt-stack-hero .rcpt.fresh { animation: none; }
}

/* §2 Compliance solution */
.compliance-solution { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.lockup .t-eyebrow { margin: 0 0 var(--md); }
.lockup h2 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 0 0 var(--lg);
  color: var(--ink);
  max-width: 22ch;
}
.lockup .lead {
  font-size: 19px; line-height: 1.5; letter-spacing: -0.2px;
  color: var(--graphite); max-width: 60ch; margin: 0 0 var(--md);
}
.lockup .lead-final { color: var(--ink); margin-top: var(--lg); margin-bottom: 0; }
.lockup .lead strong { color: var(--ink); font-weight: 600; }

.arch-diagram { margin: var(--section-lg) 0 var(--xxl); }
.arch-frame { border: 1px solid var(--hairline); background: var(--canvas-warm); padding: var(--xxl); border-radius: var(--r-md); }
.arch-svg-wrap { width: 100%; overflow-x: auto; }
.arch-svg-wrap svg { width: 100%; height: auto; min-width: 720px; max-width: 1100px; display: block; margin: 0 auto; }
.arch-key { display: flex; justify-content: center; gap: var(--xl); margin-top: var(--xl); padding-top: var(--lg); border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.arch-key .item { display: flex; align-items: center; gap: var(--xs); font-size: 12px; color: var(--stone); letter-spacing: 0.2px; text-transform: uppercase; font-weight: 500; }
.arch-key .swatch { display: inline-block; width: 14px; height: 14px; border: 1.5px dashed var(--ink); }
.arch-key .swatch.solid { border: 1.5px solid var(--ink); background: var(--canvas); }
.arch-key .swatch.line { border: none; border-top: 1.5px solid var(--ink); height: 0; width: 14px; margin-top: 6px; margin-bottom: 6px; }

.home-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--xxl) var(--xl); margin-top: var(--xxl); }
.home-pillar { opacity: 1; transform: none; animation: pillarIn .6s ease both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes pillarIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.home-pillar .num { font-size: 12px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; color: var(--slate); margin: 0 0 var(--xs); }
.home-pillar h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; margin: 0 0 var(--xs); color: var(--ink); }
.home-pillar p { font-size: 15px; line-height: 1.55; color: var(--graphite); margin: 0; max-width: 36ch; }
.home-pillar.pillars-foot { display: flex; align-items: flex-end; }

/* §3 Urgency frame */
.urgency { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.urgency-body .reading { margin-top: var(--xl); }
.urgency-body p { color: var(--graphite); font-size: 18px; line-height: 1.55; margin: 0 0 var(--md); }
.urgency-body p.outro { color: var(--ink); font-size: 20px; font-weight: 400; margin-top: var(--xl); letter-spacing: -0.3px; }
.urgency-body em.case { font-style: italic; }
.callouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--section); border-top: 1px solid var(--ink); }
.callout-card { padding: var(--xl) var(--lg) var(--xl) 0; border-right: 1px solid var(--hairline); }
.callout-card:nth-child(n+2) { padding-left: var(--lg); }
.callout-card:last-child { border-right: none; }
.callout-card .tag { color: var(--slate); margin-bottom: var(--md); }
.callout-card h4 { font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -0.5px; color: var(--ink); margin: 0 0 var(--md); }
.callout-card h4 em.case { font-style: italic; }
.callout-card .citation { color: var(--stone); font-size: 13px; letter-spacing: -0.2px; margin: 0 0 var(--sm); }
.callout-card p { color: var(--graphite); font-size: 15px; line-height: 1.5; margin: 0; }
.urgency .foot { margin-top: var(--xxl); }

/* §4 Use the AI you already pay for */
.claim-aiyoupay { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); text-align: center; }
.claim-aiyoupay h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: 0 auto var(--md); max-width: 22ch; color: var(--ink); }
.works-with { margin-top: var(--xxl); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: var(--xl) 0; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--xl) var(--xxl); margin: 0 auto; max-width: 1080px; }
.logo-strip .name { font-size: 28px; font-weight: 500; letter-spacing: -0.9px; color: var(--ink); line-height: 1; font-family: 'Inter', sans-serif; }

/* §5 Compliance built in */
.claim-builtin { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section); align-items: start; }
.builtin-text p { color: var(--graphite); font-size: 17px; line-height: 1.55; margin: 0 0 var(--md); }
.builtin-text .foot { margin-top: var(--xl); }
.compare { display: grid; grid-template-columns: 1fr; gap: var(--lg); }
.compare-card { border: 1px solid var(--hairline); background: var(--canvas); padding: var(--lg); }
.compare-card.architectural { border-color: var(--ink); }
.compare-card .label { color: var(--slate); margin: 0 0 var(--xs); }
.compare-card.architectural .label { color: var(--ink); }
.compare-card .title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--md); margin-bottom: var(--md); }
.compare-card .title { font-size: 18px; font-weight: 500; letter-spacing: -0.3px; color: var(--ink); margin: 0; }
.compare-card .note { color: var(--stone); font-size: 12px; letter-spacing: -0.16px; }
.compare-card svg { width: 100%; height: auto; display: block; }
.compare-card .caption { font-size: 13px; line-height: 1.4; color: var(--graphite); margin: var(--md) 0 0; }

/* §6 Judgment, executable */
.claim-judgment { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.claim-judgment .body { margin-top: var(--xl); }
.claim-judgment .body p { font-size: 18px; line-height: 1.55; color: var(--graphite); margin: 0 0 var(--lg); max-width: 64ch; }
.claim-judgment .body p.outro { color: var(--ink); font-size: 20px; letter-spacing: -0.3px; }

/* §7 One firm posture */
.claim-firm { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); background: var(--canvas); }
.firm-eyebrow { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; text-transform: none; color: var(--ink); line-height: 1.3; padding-bottom: var(--md); border-bottom: 1px solid var(--hairline); margin: 0; }
.firm-text p { font-size: 17px; line-height: 1.55; color: var(--graphite); margin: 0 0 var(--md); }
.firm-text .foot { margin-top: var(--xl); }
.firm-visual { display: flex; flex-direction: column; gap: var(--xl); }
.dict-stack { border: 1px solid var(--hairline); background: var(--canvas-warm); padding: var(--xl); }
.dict-stack .stack-title { color: var(--slate); margin: 0 0 var(--lg); }
.dict-stack svg { width: 100%; height: auto; display: block; max-width: 420px; margin: 0 auto; }
.receipt-card { border: 1px solid var(--ink); background: var(--canvas); padding: var(--xl); }
.receipt-card .stack-title { color: var(--ink); margin: 0 0 var(--lg); }
.receipt-card svg { width: 100%; height: auto; display: block; max-width: 380px; margin: 0 auto; }

/* §8 Trust band */
.trust { padding: var(--section) 0; border-top: 1px solid var(--hairline); }
.trust-rows { display: flex; flex-direction: column; gap: var(--md); margin-bottom: var(--xl); }
.trust-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--xl); align-items: baseline; padding-bottom: var(--md); border-bottom: 1px solid var(--hairline-soft); }
.trust-row .key { color: var(--slate); }
.trust-row .val { font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.trust-row .val em.case { font-style: italic; }
.trust-row .val .ph { color: var(--mute); font-style: italic; }

/* §9 Closing CTA */
.closing-wrap { padding: var(--section-lg) 0; }
.closing { background: var(--scrim); color: var(--on-primary); border-radius: var(--r-lg); padding: 112px var(--xxl); text-align: center; }
.closing h2 { font-size: clamp(40px, 5vw, 56px); font-weight: 400; line-height: 1.0; letter-spacing: -1.6px; color: var(--on-primary); margin: 0 auto var(--lg); max-width: 22ch; }
.closing .sub { font-size: 18px; color: var(--on-primary); opacity: .72; margin: 0 auto var(--xxl); max-width: 52ch; line-height: 1.45; }
.closing .reassurance { color: var(--on-primary); opacity: .55; margin-top: var(--xl); font-size: 14px; letter-spacing: -0.2px; }

/* Responsive — home page */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--section); }
  .hero-proof { aspect-ratio: 16 / 10; }
  .home-pillars { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: var(--xxl); }
  .callouts { grid-template-columns: 1fr 1fr; }
  .callout-card { border-right: none; padding: var(--lg) 0; border-bottom: 1px solid var(--hairline); }
  .callout-card:nth-child(n+2) { padding-left: 0; }
  .callout-card:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: var(--lg); }
  .callout-card:nth-child(even) { padding-left: var(--lg); }
  .callout-card:nth-last-child(-n+2) { border-bottom: none; }
  .trust-row { grid-template-columns: 1fr; gap: var(--xs); }
}
@media (max-width: 768px) {
  .home-hero-text h1 { font-size: 42px; letter-spacing: -1.4px; }
  .home-pillars { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; }
  .callout-card, .callout-card:nth-child(odd), .callout-card:nth-child(even) {
    border-right: none; padding: var(--lg) 0;
    border-bottom: 1px solid var(--hairline);
  }
  .callout-card:last-child { border-bottom: none; }
  .logo-strip { gap: var(--lg) var(--xl); }
  .logo-strip .name { font-size: 22px; letter-spacing: -0.6px; }
  .closing { padding: 64px var(--lg); }
  .arch-frame { padding: var(--lg); }
}

/* ==========================================================================
   Legacy page-level styles (carryover for /partners, /team, /security,
   /privacy, /terms, /license, /support, /payment-*, /install)
   Pruned in chunk 7: old-home-only rules (shimmer, app-window, pillars,
   protection-demo, entity-swap, mark-danger/safe, cloud-block, flow-arrow,
   citation-band, how-steps, works-with-bar, bad-options, fourth-option,
   scope-grid, scope-card-moat, trust-band-line, roundtrip, cutaway,
   conv-ticker, typing-cursor, steps/step-number) are gone.
   ========================================================================== */

.section-container { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; position: relative; overflow: hidden; }

/* Dark sections (used by /partners "principle" section) */
.section-dark { background: var(--gray-950); color: var(--white); position: relative; }
.section-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(234, 179, 8, .07) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 80% 100%, rgba(234, 179, 8, .04) 0%, transparent 60%); pointer-events: none; }
.section-dark::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.section-dark .section-heading { color: var(--white); }
.section-dark .section-sub { color: var(--gray-400); }
.section-dark .feature-label { color: var(--gold-400); }
.section-dark .feature-item p { color: var(--gray-400); }
.section-dark .feature-item strong { color: var(--white); }

/* Decorative orbs (used by /partners) */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; }
.orb-1 { width: 400px; height: 400px; background: rgba(234, 179, 8, .08); top: -100px; left: -100px; animation: orbF 20s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: rgba(202, 138, 4, .06); bottom: -80px; right: -60px; animation: orbF 25s ease-in-out infinite reverse; }
@keyframes orbF { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(30px, -20px); } 50% { transform: translate(-20px, 30px); } 75% { transform: translate(20px, 20px); } }

/* Typography (legacy — used by /partners, /team, /security headings) */
.section-heading { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.25rem; }
.section-sub { font-size: 1.25rem; color: var(--text-sub); max-width: 42rem; line-height: 1.75; }
.text-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-700), var(--gold-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Feature split (used by /partners) */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; position: relative; z-index: 1; }
.feature-split-reverse .feature-text { order: 2; }
.feature-split-reverse .feature-visual { order: 1; }
.feature-label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .625rem; }
.feature-label::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.feature-text .section-heading { margin-bottom: 1.25rem; }
.feature-text .section-sub { margin-bottom: 2.25rem; max-width: none; }
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon-inline { flex-shrink: 0; font-size: 1.5rem; color: var(--gold-500); margin-top: .125rem; filter: drop-shadow(0 2px 4px rgba(234, 179, 8, .3)); }
.feature-item strong { display: block; font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.feature-item p { font-size: .9375rem; color: var(--text-sub); line-height: 1.65; margin: 0; }

/* Architecture cards (used by /partners and /team) */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.arch-card { padding: 2.25rem; border-radius: .875rem; text-align: center; background: var(--white); border: 1px solid var(--gray-200); box-shadow: 0 6px 16px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .03); transition: all .35s; }
.arch-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08), 0 0 40px rgba(234, 179, 8, .06); border-color: var(--gold-200); }
.arch-icon { width: 60px; height: 60px; border-radius: 1rem; background: linear-gradient(145deg, var(--gold-200), var(--gold-400)); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; box-shadow: 0 4px 12px rgba(234, 179, 8, .2), inset 0 1px 0 rgba(255, 255, 255, .4); }
.arch-icon svg { width: 24px; height: 24px; }
.arch-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.arch-card p { font-size: 1rem; color: var(--text-sub); line-height: 1.65; }

/* CTA section (used by /partners, /team) */
.section-cta { padding: 6rem 0; position: relative; overflow: hidden; background: var(--gray-950); color: var(--white); }
.section-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(234, 179, 8, .1) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 70% 50%, rgba(202, 138, 4, .08) 0%, transparent 60%); animation: ctaG 8s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ctaG { 0% { opacity: .7; } 100% { opacity: 1; } }
.section-cta::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.section-cta .section-heading { color: var(--white); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.section-cta .section-sub { color: var(--gray-400); margin: 0 auto 2.5rem; max-width: 36rem; position: relative; z-index: 1; }
.section-cta .hero-ctas { position: relative; z-index: 1; margin-top: 0; }
.section-cta .btn-outline { color: var(--gray-300); border-color: var(--gray-600); }
.section-cta .btn-outline:hover { border-color: var(--gold-400); color: var(--white); }
.cta-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(234, 179, 8, .1); pointer-events: none; }
.cta-ring-1 { width: 300px; height: 300px; top: -50px; right: -50px; animation: ringD 15s ease-in-out infinite; }
.cta-ring-2 { width: 200px; height: 200px; bottom: -30px; left: 10%; animation: ringD 20s ease-in-out infinite reverse; }
@keyframes ringD { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(15px, -10px) rotate(5deg); } 66% { transform: translate(-10px, 15px) rotate(-3deg); } }
.section-alt { background: var(--gray-50); }

/* Scroll-in animations (used by /partners) */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .7s, transform .7s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-children > * { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: .15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: .3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: .45s; }
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity .6s, transform .6s; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity .6s, transform .6s; }
.slide-right.visible { opacity: 1; transform: translateX(0); }
.scale-up { opacity: 0; transform: scale(.92); transition: opacity .6s, transform .6s; }
.scale-up.visible { opacity: 1; transform: scale(1); }
.text-center { text-align: center; }

/* Content pages — lightened to v4.1 cream/ink palette */
.page-header { padding: 7rem 0 3rem; background: var(--canvas); color: var(--ink); border-bottom: 1px solid var(--hairline-soft); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -1.4px; margin-bottom: .5rem; color: var(--ink); }
.page-header .section-sub { color: var(--graphite); }
.prose { max-width: 48rem; line-height: 1.8; font-size: 1.0625rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -.02em; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; margin: 2rem 0 .75rem; }
.prose p { margin-bottom: 1.25rem; color: var(--gray-700); }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .5rem; color: var(--gray-700); }
.prose a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold-600); }
.prose strong { color: var(--gray-900); }
.prose em { font-style: italic; }
.prose blockquote { border-left: 3px solid var(--gold-400); padding-left: 1.25rem; margin: 1.5rem 0; color: var(--gray-600); }
.prose hr { border: none; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }
.callout { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: .75rem; padding: 2rem; margin-bottom: 2rem; }
.callout h2 { margin-top: 0; }

/* FAQ accordion (used by /faq and /partners FAQ) */
.faq { max-width: 48rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 1.25rem 0; transition: background .25s; }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq details[open] { background: linear-gradient(180deg, rgba(234, 179, 8, .025), transparent); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 1rem; font-weight: 600; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); padding-right: .5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--gold-700); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; transition: transform .3s, background .25s; }
.faq details[open] summary::before { content: '−'; background: var(--accent); color: var(--ink); transform: rotate(0); }
.faq summary:hover { color: var(--gold-700); }
.faq details > div { padding: .875rem 0 .25rem 2.5rem; color: var(--graphite); font-size: 1rem; line-height: 1.75; }
.faq details > div p { margin-bottom: .75rem; }
.faq details > div p:last-child { margin-bottom: 0; }
.section-dark .faq details { border-color: rgba(255, 255, 255, .08); }
.section-dark .faq details:first-of-type { border-top-color: rgba(255, 255, 255, .08); }
.section-dark .faq summary { color: var(--white); }
.section-dark .faq summary:hover { color: var(--gold-400); }
.section-dark .faq summary::before { background: rgba(234, 179, 8, .18); color: var(--gold-400); }
.section-dark .faq details[open] summary::before { background: rgba(234, 179, 8, .3); }
.section-dark .faq details > div { color: var(--gray-400); }

/* Reassurance lines (used by /install, /team) */
.hero-reassurance { margin-top: 1.25rem; font-size: .875rem; color: var(--graphite); font-weight: 500; }
.cta-reassurance { margin-top: 2rem; font-size: .875rem; color: var(--gray-400); font-weight: 500; }

/* Legacy mobile responsive (kept rules only) */
@media (max-width: 768px) {
  .hero-ctas { justify-content: center; }
  .feature-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-split-reverse .feature-text { order: 1; }
  .feature-split-reverse .feature-visual { order: 2; }
  .arch-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================================
   /how-it-works page (v4.1) — page hero, six-stage walkthrough,
   three-scope dictionary, Indexer mechanics, Compliance Receipts
   ========================================================================== */

.page-hero { padding: var(--section-lg) 0 var(--section); }
.page-hero .t-eyebrow { margin: 0 0 var(--md); }
.page-hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -2.2px;
  margin: 0 0 var(--lg);
  color: var(--ink);
  max-width: 16ch;
}
.page-hero-lead { font-size: 20px; line-height: 1.45; color: var(--graphite); max-width: 60ch; margin: 0 0 var(--xl); letter-spacing: -0.2px; }
.page-hero .meta-row { display: flex; gap: var(--xxl); flex-wrap: wrap; border-top: 1px solid var(--hairline); padding-top: var(--lg); margin-top: var(--xl); }
.meta-row .item { display: flex; flex-direction: column; gap: var(--xs); }
.meta-row .label { color: var(--slate); }
.meta-row .val { font-size: 15px; color: var(--ink); font-weight: 500; letter-spacing: -0.1px; }

.walkthrough { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.walkthrough .lockup { margin-bottom: var(--xxl); }
.walkthrough h2 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: var(--md) 0 var(--lg);
  color: var(--ink);
  max-width: 22ch;
}
.stages { display: flex; flex-direction: column; gap: var(--xxl); }
.stage { border-top: 1px solid var(--hairline); padding-top: var(--xl); display: grid; grid-template-columns: 200px 1fr; gap: var(--xxl); align-items: start; }
.stage:first-child { border-top: none; padding-top: 0; }
.stage header { display: flex; flex-direction: column; gap: var(--xs); position: sticky; top: 88px; align-self: start; }
.stage .num { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 13px; color: var(--slate); letter-spacing: 1.2px; font-weight: 500; }
.stage h3 { font-size: 36px; font-weight: 400; letter-spacing: -1px; line-height: 1; color: var(--ink); margin: 0; }
.stage-body { display: flex; flex-direction: column; gap: var(--md); }
.stage-body > p { font-size: 17px; line-height: 1.55; color: var(--graphite); margin: 0 0 var(--xs); max-width: 60ch; }

.doc-content { font-size: 15px; line-height: 1.65; color: var(--ink-soft); letter-spacing: -0.1px; background: var(--canvas); border: 1px solid var(--hairline); padding: var(--lg); border-radius: var(--r-xs); }
.doc-content p { margin: 0; }
.doc-content em { font-style: italic; }
.ent-detected { display: inline-block; color: var(--ink); font-weight: 500; border: 1px dashed var(--ink); padding: 0 4px; border-radius: 2px; line-height: 1.3; }
.ent-masked { display: inline-block; background: var(--featured); color: var(--graphite); font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 13.5px; font-weight: 500; padding: 1px 6px; border-radius: 2px; line-height: 1.3; border: 1px dashed var(--stone); }
.ent-restored { display: inline-block; background: var(--canvas); color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--graphite); padding: 0 1px; }

.drop-zone { border: 2px dashed var(--ash); border-radius: var(--r-md); padding: var(--xl); text-align: center; color: var(--slate); background: var(--canvas-warm); }
.drop-zone svg { display: block; margin: 0 auto var(--md); color: var(--stone); }
.drop-zone .title { font-size: 18px; color: var(--ink); margin: 0 0 var(--xs); font-weight: 500; }
.drop-zone .hint { font-size: 13px; color: var(--slate); margin: 0; }

.entity-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: var(--r-xs); background: var(--canvas); }
.entity-list li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sm); align-items: center; padding: var(--sm) var(--md); border-bottom: 1px solid var(--hairline); }
.entity-list li:last-child { border-bottom: none; }
.entity-list .type-tag { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 10px; background: var(--ink); color: var(--on-primary); padding: 2px 6px; border-radius: 2px; letter-spacing: 0.4px; }
.entity-list .value { color: var(--ink); font-weight: 500; font-size: 14px; }
.entity-list .value .token { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; color: var(--graphite); font-size: 12px; font-weight: 400; margin-left: 6px; }
.entity-list .status { font-size: 11px; color: var(--slate); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 500; }

.send-indicator { background: var(--canvas-warm); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--md) var(--lg); display: flex; align-items: center; gap: var(--md); }
.send-indicator .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: dot-pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.send-indicator .text { font-size: 13px; color: var(--graphite); }
.send-indicator .text strong { color: var(--ink); font-weight: 600; }

.ai-response { background: var(--canvas-warm); border-left: 2px solid var(--ink); padding: var(--md) var(--lg); }
.ai-response .meta { color: var(--slate); margin: 0 0 var(--xs); }
.ai-response p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

.receipt-mock { border: 1px solid var(--ink); background: var(--canvas); padding: var(--lg); border-radius: var(--r-xs); box-shadow: 4px 4px 0 var(--featured); }
.receipt-mock .head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--sm); border-bottom: 1px solid var(--hairline); margin-bottom: var(--md); }
.receipt-mock .head .title { color: var(--slate); }
.receipt-mock .head .filetag { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 10px; color: var(--graphite); background: var(--canvas-warm); padding: 2px 6px; border-radius: 2px; letter-spacing: 0.4px; }
.receipt-mock .doc-title { font-size: 17px; color: var(--ink); font-weight: 500; margin: 0 0 var(--md); letter-spacing: -0.2px; }
.receipt-mock .kvs { display: grid; grid-template-columns: 140px 1fr; gap: 6px var(--md); margin-bottom: var(--md); font-size: 13px; }
.receipt-mock .kvs dt { color: var(--slate); margin: 0; }
.receipt-mock .kvs dd { margin: 0; color: var(--ink); font-feature-settings: "tnum"; letter-spacing: -0.1px; }
.receipt-mock .signature { margin-top: var(--md); padding-top: var(--md); border-top: 1px solid var(--hairline); }
.receipt-mock .signature .chain { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 10px; color: var(--stone); letter-spacing: 0.4px; word-break: break-all; margin: 0; }
.receipt-mock .signature .sig-label { color: var(--ink); font-weight: 500; margin: 0 0 4px; font-size: 12px; }

/* §scopes — override legacy .scope-card with the v4.1 style */
.scopes { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.scopes h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 var(--lg); color: var(--ink); max-width: 22ch; }
.scopes .intro { font-size: 19px; line-height: 1.5; color: var(--graphite); max-width: 60ch; margin: 0 0 var(--section); }
.scopes .scope-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg); }
.scopes .scope-card { border: 1px solid var(--hairline); padding: var(--lg); display: flex; flex-direction: column; gap: var(--md); background: var(--canvas); box-shadow: none; border-radius: 0; }
.scopes .scope-card.firm { background: var(--ink); color: var(--on-primary); border-color: var(--ink); }
.scopes .scope-card .scope-num { color: var(--slate); }
.scopes .scope-card.firm .scope-num { color: var(--ash); }
.scopes .scope-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.3px; margin: 0; color: var(--ink); line-height: 1.25; }
.scopes .scope-card.firm h3 { color: var(--on-primary); }
.scopes .scope-card .description { font-size: 14px; line-height: 1.5; color: var(--graphite); margin: 0; font-weight: 400; }
.scopes .scope-card.firm .description { color: var(--ash); }
.scopes .scope-card .scope-meta { display: flex; flex-wrap: wrap; gap: var(--xs) var(--md); font-size: 11px; color: var(--slate); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 500; margin-top: auto; padding-top: var(--md); border-top: 1px solid var(--hairline); }
.scopes .scope-card.firm .scope-meta { color: var(--ash); border-top-color: rgba(250, 248, 244, .12); }
.scopes .scope-card .scope-meta span { display: flex; gap: 4px; align-items: baseline; }
.scopes .scope-card .scope-meta strong { color: inherit; font-weight: 500; }
.dict-sample { background: var(--canvas-warm); padding: var(--md); margin-top: var(--xs); border-radius: var(--r-xs); font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 12px; color: var(--graphite); line-height: 1.6; }
.scopes .scope-card.firm .dict-sample { background: rgba(250, 248, 244, .06); color: var(--ash); }
.dict-sample .row { display: flex; justify-content: space-between; gap: var(--md); }
.dict-sample .row .real { color: var(--ink); }
.scopes .scope-card.firm .dict-sample .row .real { color: var(--on-primary); }
.dict-sample .row .tok { color: var(--stone); }
.scope-flow { margin-top: var(--xxl); border: 1px solid var(--hairline); background: var(--canvas-warm); padding: var(--xl); border-radius: var(--r-md); display: grid; grid-template-columns: 1fr 1fr; gap: var(--xl); }
.scope-flow h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 var(--xs); letter-spacing: -0.2px; }
.scope-flow p { font-size: 14px; color: var(--graphite); margin: 0; line-height: 1.5; }
.scope-flow p .verb { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; font-size: 12px; background: var(--ink); color: var(--on-primary); padding: 1px 6px; border-radius: 2px; letter-spacing: 0.4px; text-transform: uppercase; font-weight: 500; }

.indexer { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); background: var(--canvas); }
.indexer .lockup { margin-bottom: var(--xxl); }
.indexer h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 var(--lg); color: var(--ink); max-width: 22ch; }
.indexer .intro { font-size: 19px; line-height: 1.5; color: var(--graphite); max-width: 60ch; margin: 0; }
.indexer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section); margin-top: var(--section); align-items: start; }
.indexer-text p { color: var(--graphite); font-size: 16px; line-height: 1.6; margin: 0 0 var(--md); }
.indexer-text h3 { font-size: 18px; font-weight: 600; margin: var(--lg) 0 var(--xs); color: var(--ink); letter-spacing: -0.2px; }
.indexer-text h3:first-child { margin-top: 0; }
.indexer-vis { border: 1px solid var(--hairline); background: var(--canvas-warm); padding: var(--xl); border-radius: var(--r-md); }
.indexer-vis svg { width: 100%; height: auto; display: block; }
.indexer-caption { color: var(--slate); font-size: 12px; margin-top: var(--md); text-align: center; letter-spacing: 0.4px; text-transform: uppercase; }

.receipts-detail { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.receipts-detail .lockup { margin-bottom: var(--xxl); }
.receipts-detail h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 var(--lg); color: var(--ink); max-width: 22ch; }
.receipts-detail .intro { font-size: 19px; line-height: 1.5; color: var(--graphite); max-width: 60ch; margin: 0; }
.receipts-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--section); margin-top: var(--section); align-items: start; }
.receipt-anatomy { position: relative; }
.receipt-anatomy .receipt-mock { box-shadow: 6px 6px 0 var(--featured); max-width: 460px; }
.anatomy-notes { display: flex; flex-direction: column; gap: var(--lg); }
.anatomy-note { border-left: 2px solid var(--ink); padding-left: var(--lg); }
.anatomy-note .label { color: var(--slate); margin: 0 0 var(--xs); }
.anatomy-note h4 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 0 0 var(--xs); letter-spacing: -0.2px; }
.anatomy-note p { color: var(--graphite); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 44ch; }

/* /how-it-works responsive */
@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; gap: var(--lg); }
  .stage header { position: static; }
  .indexer-grid, .receipts-grid { grid-template-columns: 1fr; gap: var(--xl); }
  .scopes .scope-cards { grid-template-columns: 1fr; }
  .scope-flow { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: 42px; letter-spacing: -1.4px; }
  .receipt-mock .kvs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .send-indicator .pulse { animation: none; }
}

/* ==========================================================================
   /pricing (v4.1) — single SKU, Charter Customer program
   ========================================================================== */

.pricing-cards-section { padding: var(--section) 0 var(--section-lg); }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); align-items: stretch; }
.pricing-card { border: 1px solid var(--hairline); background: var(--canvas); padding: var(--xl); display: flex; flex-direction: column; gap: var(--lg); }
.pricing-card-feature { border-color: var(--ink); background: var(--canvas); position: relative; }
.pricing-card-feature::before { content: ""; position: absolute; inset: -1px; border: 2px solid var(--ink); pointer-events: none; }
.pricing-card-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sm); }
.pricing-card-eyebrow .badge { font-size: 11px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink); background: var(--accent); padding: 4px 10px; border-radius: var(--r-full); }
.pricing-card-amount { display: flex; align-items: baseline; gap: var(--sm); }
.pricing-card-amount .amount { font-size: 56px; font-weight: 400; line-height: 1; letter-spacing: -2px; color: var(--ink); }
.pricing-card-amount .per { font-size: 14px; color: var(--graphite); }
.pricing-card-meta { font-size: 14px; color: var(--graphite); line-height: 1.5; margin: 0; }
.pricing-card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--xs); border-top: 1px solid var(--hairline); padding-top: var(--lg); }
.pricing-card-list li { font-size: 14px; color: var(--graphite); line-height: 1.5; padding-left: var(--md); position: relative; }
.pricing-card-list li::before { content: "·"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.pricing-card-list strong { color: var(--ink); font-weight: 600; }
.pricing-card .btn { margin-top: auto; align-self: flex-start; }
.pricing-card-foot { font-size: 13px; color: var(--stone); line-height: 1.5; margin: 0; }

.pricing-includes { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); background: var(--canvas); }
.pricing-includes .lockup { margin-bottom: var(--xxl); }
.pricing-includes h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 0; color: var(--ink); max-width: 22ch; }
.pricing-includes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--lg) var(--xxl); }
.pricing-includes-list li { border-top: 1px solid var(--hairline); padding-top: var(--lg); }
.pricing-includes-list h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; margin: 0 0 var(--xs); color: var(--ink); }
.pricing-includes-list p { font-size: 14.5px; line-height: 1.55; color: var(--graphite); margin: 0; max-width: 50ch; }
.pricing-includes-foot { margin-top: var(--xxl); padding-top: var(--lg); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--graphite); line-height: 1.55; }

.charter-explainer { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.charter-explainer .lockup { margin-bottom: var(--xxl); }
.charter-explainer h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 0; color: var(--ink); max-width: 22ch; }
.charter-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg); }
.charter-phase { border-top: 2px solid var(--ink); padding-top: var(--lg); display: flex; flex-direction: column; gap: var(--md); }
.charter-phase .phase-num { color: var(--ink); font-weight: 600; }
.charter-phase h3 { font-size: 22px; font-weight: 400; line-height: 1.15; letter-spacing: -0.4px; margin: 0; color: var(--ink); }
.charter-phase p { font-size: 15px; line-height: 1.55; color: var(--graphite); margin: 0; }
.charter-phase strong { color: var(--ink); font-weight: 600; }
.charter-footnote { margin-top: var(--xxl); padding: var(--lg); border-left: 2px solid var(--hairline); }
.charter-footnote p { margin: 0; font-size: 14px; color: var(--graphite); line-height: 1.55; max-width: 70ch; }

.pricing-reassurance { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); background: var(--canvas-warm); }
.reassurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--xl); }
.reassurance-grid article h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.2px; margin: 0 0 var(--xs); color: var(--ink); }
.reassurance-grid article p { font-size: 14.5px; line-height: 1.55; color: var(--graphite); margin: 0; }

/* Responsive — pricing */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-includes-list { grid-template-columns: 1fr; }
  .charter-phases { grid-template-columns: 1fr; }
  .reassurance-grid { grid-template-columns: 1fr; gap: var(--lg); }
}

/* ==========================================================================
   /install (v4.1) — download + seat-assignment focus
   ========================================================================== */

.install-steps { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); }
.install-steps .lockup { margin-bottom: var(--xxl); }
.install-steps h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -1.4px; margin: var(--md) 0 0; color: var(--ink); max-width: 22ch; }
.install-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--xl); }
.install-step-list li { border-top: 2px solid var(--ink); padding-top: var(--lg); display: flex; flex-direction: column; gap: var(--xs); }
.install-step-list .step-num { color: var(--slate); margin: 0; }
.install-step-list h3 { font-size: 22px; font-weight: 400; line-height: 1.15; letter-spacing: -0.4px; margin: 0; color: var(--ink); }
.install-step-list p { font-size: 15px; line-height: 1.55; color: var(--graphite); margin: 0; }

.install-system { padding: var(--section-lg) 0; border-top: 1px solid var(--hairline); background: var(--canvas-warm); }
.install-system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--xl); }
.install-system-grid .t-eyebrow { margin: 0 0 var(--xs); }
.install-system-grid h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.3px; margin: 0 0 var(--xs); color: var(--ink); }
.install-system-grid p { font-size: 14.5px; line-height: 1.55; color: var(--graphite); margin: 0; }

@media (max-width: 1024px) {
  .install-step-list { grid-template-columns: 1fr; }
  .install-system-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   /white-paper (v4.1) — long-form prose, TOC, tables, citations
   ========================================================================== */

.whitepaper { padding: var(--section) 0 var(--section-lg); }
.whitepaper .prose { margin: 0 auto; max-width: var(--reading-wide); }
.whitepaper .prose h2 { font-size: 28px; font-weight: 400; letter-spacing: -0.6px; line-height: 1.15; margin: var(--section) 0 var(--lg); color: var(--ink); border-top: 1px solid var(--hairline); padding-top: var(--xl); }
.whitepaper .prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: var(--xl); }
.whitepaper .prose h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; margin: var(--xl) 0 var(--xs); color: var(--ink); }
.whitepaper .prose p { color: var(--graphite); font-size: 16px; line-height: 1.65; margin: 0 0 var(--md); }
.whitepaper .prose ul, .whitepaper .prose ol { color: var(--graphite); margin: 0 0 var(--md); padding-left: 1.5rem; }
.whitepaper .prose ul li, .whitepaper .prose ol li { margin-bottom: var(--xs); line-height: 1.55; }
.whitepaper .prose strong { color: var(--ink); }
.whitepaper .prose em { font-style: italic; }
.whitepaper .prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.whitepaper .prose a:hover { color: var(--graphite); }
.whitepaper .prose code { font-family: 'Inter', sans-serif; font-feature-settings: "tnum"; background: var(--canvas-warm); padding: 1px 6px; border-radius: 2px; font-size: 14px; }

.wp-toc { border: 1px solid var(--hairline); background: var(--canvas-warm); padding: var(--lg) var(--xl); margin: 0 0 var(--section); }
.wp-toc .t-eyebrow { margin: 0 0 var(--sm); }
.wp-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: var(--xl); }
.wp-toc ol li { color: var(--graphite); margin-bottom: 4px; line-height: 1.4; font-size: 14px; }
.wp-toc ol li a { color: var(--ink); text-decoration: none; }
.wp-toc ol li a:hover { color: var(--graphite); text-decoration: underline; }

.wp-table { width: 100%; border-collapse: collapse; margin: var(--lg) 0; font-size: 14px; }
.wp-table thead th { text-align: left; font-weight: 500; color: var(--slate); border-bottom: 1px solid var(--ink); padding: var(--xs) var(--sm); font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; }
.wp-table tbody td { color: var(--graphite); border-bottom: 1px solid var(--hairline); padding: var(--sm); line-height: 1.5; vertical-align: top; }
.wp-table tbody tr:last-child td { border-bottom: none; }

.wp-citations { list-style: decimal; padding-left: 1.5rem; margin: 0 0 var(--lg); }
.wp-citations li { color: var(--graphite); font-size: 13.5px; line-height: 1.55; margin-bottom: var(--xs); }
.wp-citations li em { font-style: italic; color: var(--ink-soft); }

@media (max-width: 900px) {
  .wp-toc ol { columns: 1; }
  .whitepaper .prose h2 { font-size: 24px; }
}
