/* =============================================================================
   Tidy — shared design system
   Loaded by /about, /contact, /privacy, /terms, /404 (and future pages).
   The landing page (/) keeps its own inline styles as the canonical hero
   treatment — this file is the v2 design vocabulary for everything else.
   Last updated: 2026-08-08
   ============================================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root[data-theme="dark"] {
  --ink: #0E0B08;
  --ink-2: #1A1410;
  --ink-3: #2A1F1A;
  --paper: #F5EFE6;
  --paper-2: #D4CABA;
  --paper-3: #8B7E70;
  --primary: #663399;
  --primary-deep: #4F2670;
  --primary-glow: rgba(102, 51, 153, 0.12);
  --on-primary: #F5EFE6;
  --amber: #D4A055;
  --success: #6FBF73;
  --danger: #E07856;
  --rule: rgba(245, 239, 230, 0.12);
  --rule-strong: rgba(245, 239, 230, 0.22);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
  --shadow-2: 0 2px 4px rgba(0,0,0,0.4), 0 24px 64px rgba(0,0,0,0.5);
  --grain: rgba(255, 220, 180, 0.03);
  --hero-bg: #0E0B08;
}
:root[data-theme="light"] {
  --ink: #F8F4ED;
  --ink-2: #FDF9F2;
  --ink-3: #FFFFFF;
  --paper: #1A1410;
  --paper-2: #5A4F45;
  --paper-3: #6B5F50;
  --primary: #4F2670;
  --primary-deep: #3A1A52;
  --primary-glow: rgba(79, 38, 112, 0.10);
  --on-primary: #F5EFE6;
  --amber: #B8842E;
  --success: #2D7A3D;
  --danger: #B8452A;
  --rule: rgba(26, 20, 16, 0.10);
  --rule-strong: rgba(26, 20, 16, 0.20);
  --shadow-1: 0 1px 2px rgba(60,40,20,0.06), 0 8px 24px rgba(60,40,20,0.08);
  --shadow-2: 0 2px 4px rgba(60,40,20,0.10), 0 24px 64px rgba(60,40,20,0.14);
  --grain: rgba(60, 40, 20, 0.02);
  --hero-bg: #140E08;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { margin: 0; }
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 75%, transparent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 22%, transparent);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  transition: background-color 400ms ease, color 400ms ease;
}

/* Subtle warm grain on the whole page (sits behind all content) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 80% 0%, var(--primary-glow), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(212, 160, 85, 0.04), transparent 60%);
  z-index: 0;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.wrap-wide { max-width: 1280px; }
.wrap-narrow { max-width: 760px; }
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* ---------- SKIP LINK ---------- */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 78%, transparent) 0%,
    color-mix(in srgb, var(--primary) 55%, transparent) 100%
  );
  color: var(--on-primary);
  padding: 12px 16px;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 14px;
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: top 200ms ease;
}
.skip:focus { top: 16px; }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}
h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.25; }
h4 { font-size: 20px; font-weight: 500; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}
.eyebrow.plain { color: var(--primary); }
.eyebrow.plain::before { background: var(--primary); }
.eyebrow.center { justify-content: center; }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 620px;
  margin: 0;
}

.eyebrow-block {
  display: block;
  text-align: center;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-weight: 700;
  font-size: 18px;
  font-family: 'Fraunces', Georgia, serif;
}

.nav-actions { display: inline-flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--paper-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-link:hover { color: var(--paper); background: var(--rule); }
.nav-link[aria-current="page"] { color: var(--paper); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--paper-2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.theme-toggle:hover { color: var(--paper); border-color: var(--paper-2); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.btn-cta-header {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 78%, transparent) 0%,
    color-mix(in srgb, var(--primary) 55%, transparent) 100%
  );
  color: var(--on-primary);
  border: 1px solid rgba(245, 239, 230, 0.2);
  padding: 9px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.22);
}
.btn-cta-header:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 88%, transparent) 0%,
    color-mix(in srgb, var(--primary) 68%, transparent) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-ghost-header {
  color: var(--paper);
  border: 1px solid var(--rule);
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn-ghost-header:hover {
  color: var(--paper);
  border-color: var(--rule-strong);
  background: rgba(245, 239, 230, 0.04);
}

@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-link.always-show { display: inline-flex; }
  .btn-ghost-header { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease, box-shadow 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 78%, transparent) 0%,
    color-mix(in srgb, var(--primary) 55%, transparent) 100%
  );
  color: var(--on-primary);
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 88%, transparent) 0%,
    color-mix(in srgb, var(--primary) 68%, transparent) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.btn-secondary:hover {
  border-color: var(--paper-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(102, 51, 153, 0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--paper-2);
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--paper); }
.btn-primary .arrow, .btn-secondary .arrow { transition: transform 200ms ease; }
.btn-primary:hover .arrow, .btn-secondary:hover .arrow { transform: translateX(3px); }

/* ---------- HERO (cinematic dark island) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--hero-bg);
  color: #F5EFE6;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Layered atmospheric background — gradient + grain + soft glow. */
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(102, 51, 153, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(212, 160, 85, 0.10), transparent 60%),
    linear-gradient(180deg, #140E08 0%, #0E0B08 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 220, 180, 0.05) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 11, 8, 0.40) 0%, rgba(14, 11, 8, 0.70) 60%, #0E0B08 100%),
    radial-gradient(ellipse 60% 50% at 30% 60%, transparent 0%, rgba(14, 11, 8, 0.5) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}
.hero-eyebrow { margin-bottom: 12px; }
.hero-headline {
  max-width: 18ch;
  line-height: 1.0;
  overflow: visible;
  color: #F5EFE6;
}
.hero-headline em { font-style: italic; color: var(--amber); font-weight: 400; }
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: wordIn 800ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-headline { --hero-word-step: 80ms; }
.hero-headline .word { animation-delay: var(--hero-word-step); }
.hero-headline .word:nth-child(2) { animation-delay: calc(var(--hero-word-step) * 2); }
.hero-headline .word:nth-child(3) { animation-delay: calc(var(--hero-word-step) * 3); }
.hero-headline .word:nth-child(4) { animation-delay: calc(var(--hero-word-step) * 4); }
.hero-headline .word:nth-child(5) { animation-delay: calc(var(--hero-word-step) * 5); }
.hero-headline .word:nth-child(6) { animation-delay: calc(var(--hero-word-step) * 6); }
.hero-headline .word:nth-child(7) { animation-delay: calc(var(--hero-word-step) * 7); }
.hero-headline .word:nth-child(8) { animation-delay: calc(var(--hero-word-step) * 8); }
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(12px);
  animation: wordIn 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 900ms forwards;
}
.hero-lede {
  opacity: 0;
  transform: translateY(12px);
  animation: wordIn 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 700ms forwards;
  color: #D4CABA;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.hero .eyebrow { color: #D4A055; }
.hero .lede { color: #D4CABA; }
.hero .btn-secondary {
  color: #F5EFE6;
  border-color: rgba(245, 239, 230, 0.22);
  background: rgba(245, 239, 230, 0.04);
}
.hero .btn-secondary:hover {
  border-color: #D4CABA;
  background: rgba(245, 239, 230, 0.08);
}
.hero .btn-primary {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}
.hero .btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

/* Compact hero variant — for pages that need a hero but not full-viewport */
.hero-compact { min-height: 60vh; min-height: 60svh; padding: 140px 0 80px; }

/* Scroll cue at the bottom of the hero */
.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 2;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-scroll-cue::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--paper-3) 0%, transparent 100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SECTIONS ---------- */
section { padding: 120px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 24px; }
.section-head .lede { margin-top: 24px; }
.section-head.center { text-align: center; margin: 0 auto 64px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- BENTO GRID ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }

.bento-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 180px;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 400ms ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
}
.bento-card.large { grid-column: span 4; }
.bento-card.medium { grid-column: span 3; }
.bento-card.small { grid-column: span 2; }
.bento-card.full { grid-column: span 6; }
@media (max-width: 900px) {
  .bento-card.large,
  .bento-card.medium,
  .bento-card.small,
  .bento-card.full { grid-column: span 2; }
}
.bento-card .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.bento-card h3 { font-size: 22px; margin: 0; }
.bento-card p { color: var(--paper-2); font-size: 15px; margin: 0; line-height: 1.55; }
.bento-card.tease {
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%);
  border-color: var(--rule-strong);
}
.bento-card.tease .feature-icon { color: var(--amber); }
.bento-card .feature-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* ---------- MOCKUPS (calculator, PDF) ---------- */
.calc {
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--paper);
}
.calc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--paper-2);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.calc-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  color: var(--paper-2);
}
.calc-row strong { color: var(--paper); font-weight: 500; }
.calc-divider { height: 1px; background: var(--rule); margin: 12px 0; }
.calc-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
}
.calc-total-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--paper);
  font-size: 14px;
}
.calc-total-val {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.calc-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 16px;
}

.pdf {
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 6px;
  aspect-ratio: 8.5/11;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: var(--shadow-2);
  position: relative;
}
.pdf:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.pdf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 30%);
  border-radius: 6px;
  pointer-events: none;
}
.pdf-logo {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
}
.pdf-h1 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.1;
  margin-top: 4px;
}
.pdf-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.pdf-divider { height: 1px; background: var(--rule-strong); margin: 8px 0; }
.pdf-table { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pdf-table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  color: var(--paper-2);
  padding: 4px 0;
}
.pdf-table-row.head { color: var(--paper-3); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.pdf-table-row.head strong { color: var(--paper); }
.pdf-row-divider { height: 1px; background: var(--rule); margin: 4px 0; }
.pdf-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--paper);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule-strong);
}

/* ---------- STEPS (numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.step {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 400ms ease, border-color 400ms ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--rule-strong); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--paper-2); font-size: 15px; margin: 0; line-height: 1.55; }

/* ---------- PROBLEM / NUMBERED CARDS ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--ink);
  padding: 40px 32px;
  position: relative;
  transition: background 200ms ease;
}
.problem-card:hover { background: var(--ink-2); }
.problem-num {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.problem-card h3 { color: var(--paper); margin-bottom: 12px; font-size: 22px; }
.problem-card p { color: var(--paper-2); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- TRUST ROW ---------- */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.trust-item strong {
  color: var(--paper);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

/* ---------- STATS ROW ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num .accent { color: var(--primary); font-style: italic; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  max-width: 200px;
}

/* ---------- WEDGE (split) ---------- */
.wedge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .wedge-grid { grid-template-columns: 1fr; }
}
.wedge-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.wedge-card h3 { font-size: 28px; margin-bottom: 12px; }
.wedge-card p { color: var(--paper-2); margin: 0 0 24px; }
.wedge-card .eyebrow { margin-bottom: 24px; }

/* ---------- FAQ ACCORDION ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-question {
  width: 100%;
  background: none;
  border: 0;
  padding: 28px 0;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 300ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--paper-2);
  transition: background 200ms ease;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.2, 0.7, 0.2, 1), padding 400ms ease;
  color: var(--paper-2);
  font-size: 16px;
  line-height: 1.65;
}
.faq-item[open] .faq-answer {
  max-height: 500px;
  padding-bottom: 28px;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--rule) 100%);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--primary);
}
.timeline-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.timeline-item h3 { font-size: 22px; margin-bottom: 8px; }
.timeline-item p { color: var(--paper-2); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-strip h2 { margin-bottom: 24px; }
.cta-strip .lede { margin: 0 auto 32px; }
.cta-strip-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) { .cta-strip { padding: 56px 24px; } }

/* ---------- CONTACT FORM (2-column on desktop, 1 on mobile) ---------- */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-form-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FORM ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-3);
}
.form-field label .req { color: var(--primary); margin-left: 2px; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; font-size: 15px;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 150ms ease, background 150ms ease;
  font-family: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--ink);
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-field .field-grid { grid-template-columns: 1fr; } }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.btn-submit:hover:not(:disabled) { background: var(--primary-deep); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { font-size: 13px; min-height: 20px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.form-card {
  padding: 36px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.5;
}

/* ---------- CONTACT PATHS GRID (2x2 on desktop, 1-col on mobile) ---------- */
.contact-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 560px) { .contact-paths { grid-template-columns: 1fr; } }
.contact-path {
  display: block;
  padding: 32px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-decoration: none;
  color: var(--paper);
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 400ms ease, background 400ms ease;
  position: relative;
  overflow: hidden;
}
.contact-path:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--ink-3);
}
.contact-path .path-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.contact-path h3 { font-size: 20px; margin-bottom: 8px; }
.contact-path p { color: var(--paper-2); font-size: 14px; line-height: 1.5; margin: 0; }
.contact-path .path-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 16px;
  transition: gap 200ms ease;
}
.contact-path:hover .path-cta { gap: 10px; }
.contact-path .path-cta::after { content: '→'; }

/* ---------- ERROR / 404 ---------- */
.error-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--hero-bg);
  color: #F5EFE6;
  isolation: isolate;
  width: 100%;
}
.error-page .hero-bg { z-index: 0; }
.error-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
.error-code {
  font-family: 'Fraunces', serif;
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--primary);
  margin: 0 0 16px;
  text-shadow: 0 0 80px rgba(102, 51, 153, 0.3);
}
.error-page h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: #F5EFE6;
  margin: 0 0 20px;
}
.error-page p {
  font-size: 17px;
  line-height: 1.6;
  color: #D4CABA;
  margin: 0 0 32px;
}
.error-path {
  display: inline-block;
  margin-bottom: 32px;
  padding: 8px 14px;
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid rgba(245, 239, 230, 0.15);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #D4CABA;
  word-break: break-all;
}
.error-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.error-cta-row .btn-secondary {
  color: #F5EFE6;
  border-color: rgba(245, 239, 230, 0.22);
  background: rgba(245, 239, 230, 0.04);
}
.error-cta-row .btn-secondary:hover {
  border-color: #D4CABA;
  background: rgba(245, 239, 230, 0.08);
}

.error-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.error-suggestion {
  padding: 20px 16px;
  background: rgba(245, 239, 230, 0.04);
  border: 1px solid rgba(245, 239, 230, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: #D4CABA;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.error-suggestion:hover {
  background: rgba(245, 239, 230, 0.08);
  border-color: var(--primary);
  color: #F5EFE6;
}
.error-suggestion .label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

/* ---------- TOC (for legal pages) ---------- */
.toc {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.toc h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 16px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: block;
  padding: 8px 0;
  color: var(--paper-2);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  transition: color 200ms ease, padding-left 200ms ease;
}
.toc li:last-child a { border-bottom: 0; }
.toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--primary);
  margin-right: 4px;
  letter-spacing: 0.05em;
}
.toc a:hover { color: var(--primary); padding-left: 4px; }

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 96px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin: 28px 0 10px;
}
.legal-content p, .legal-content li { color: var(--paper-2); font-size: 16px; line-height: 1.7; }
.legal-content p + p, .legal-content p + ul, .legal-content p + ol, .legal-content ul + p, .legal-content ol + p { margin-top: 16px; }
.legal-content strong { color: var(--paper); }
.legal-content ul, .legal-content ol { color: var(--paper-2); padding-left: 1.4em; }
.legal-content li { margin-top: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--primary-deep); }

.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--paper-3);
  margin-top: 20px;
  letter-spacing: 0.04em;
}

.legal-banner {
  margin: 20px 0 0;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
}
.legal-banner strong { color: var(--amber); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
  transition: color 200ms ease;
  text-decoration: none;
}
.footer-link:hover { color: var(--paper); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero-headline .word, .hero-cta-row, .hero-lede {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  :root[data-theme="dark"], :root[data-theme="light"] {
    --ink: #FFFFFF; --paper: #000000; --paper-2: #222; --paper-3: #555;
    --rule: #DDD;
  }
  body { background: #FFF; color: #000; }
  .site-header, .site-footer, .nav-actions, .theme-toggle, .btn-cta-header, .btn-ghost-header,
  .hero-overlay, .hero-bg, .hero-scroll-cue, .toc, .legal-banner,
  .reveal, .reveal-stagger > * { display: none !important; opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
  .wrap { max-width: none; padding: 0; }
  h1, h2, h3 { color: #000; }
  .hero { background: #FFF !important; color: #000; min-height: 0; padding: 40px 0; }
  .hero .lede, .hero-headline { color: #000; }
  .hero-headline em { color: #000; font-style: italic; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  section { padding: 80px 0; }
  .hero { padding: 110px 0 60px; min-height: 80vh; min-height: 80svh; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { justify-content: center; }
  .stat-row { gap: 32px; }
  .site-footer { padding: 48px 0 32px; }
  .footer-row { flex-direction: row; justify-content: center; }
}
