/* ─── Design Tokens — Light Mode (canonical, single source of truth) ─── */
/*
 * Accent: deep navy (#0f1b2d) — used sparingly on labels, badges, CTA borders.
 * No dark surfaces. No dark: variants. No prefers-color-scheme: dark overrides.
 */
:root {
  --bg: #fafaf7;          /* warm off-white page background */
  --surface: #f4f3ef;     /* slightly cooler surface for alternating sections */
  --surface-2: #eeede8;   /* table headers, chrome bars */
  --cream: #111111;       /* primary body text — near-black */
  --cream-dim: #5a5a5a;   /* secondary / muted text — warm gray */
  --amber: #0f1b2d;       /* accent — deep navy (labels, badges, CTA borders) */
  --amber-dim: #3a5070;   /* lighter navy for dim accent use */
  --green: #2e7d32;       /* ✓ verified green */
  --open: #7a5c00;        /* ○ open / noted — warm amber-brown */
  --rec: #1a4a6b;         /* → office action — muted steel blue */
  --border: #e5e3dd;      /* subtle warm gray dividers */
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Base ─── */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Martian Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.2; }

/* ─── Nav ─── */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.5px;
}
.nav-tagline {
  color: var(--cream-dim);
  font-size: 12px;
}

/* ─── Hero ─── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  font-family: 'Martian Mono', monospace;
}
.hero-headline {
  font-size: 52px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 32px;
  line-height: 1.15;
}
.hero-sub {
  font-size: 16px;
  color: var(--cream-dim);
  max-width: 480px;
  margin-bottom: 40px;
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  line-height: 1.8;
}
.hero-cta-row {
  margin-bottom: 28px;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: 'Martian Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.hero-cta-primary:hover {
  background: var(--amber);
  color: var(--bg);
}
.hero-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--cream-dim);
}
.hero-meta-item {}
.hero-meta-item.strong { color: var(--amber); }

/* ─── Hero Card ─── */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  font-size: 12px;
  position: relative;
}
.hero-card-label {
  font-family: 'Fraunces', serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-card-line {
  color: var(--cream);
  margin-bottom: 6px;
}
.hero-card-line.muted { color: var(--cream-dim); margin-bottom: 14px; }
.hero-card-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 12px;
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  font-size: 10px;
  letter-spacing: 0.15em;
  border-radius: 2px;
}

/* ─── Receipt Section ─── */
.receipt-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}
.receipt-label {
  max-width: 1100px;
  margin: 0 auto 48px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}
.receipt-headline {
  max-width: 1100px;
  margin: 0 auto 40px;
  font-size: 38px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.25;
}
.receipt-body {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.8;
}
.receipt-block {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.receipt-block-header {
  padding: 14px 24px;
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
}
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.receipt-col {
  padding: 24px;
  border-right: 1px solid var(--border);
}
.receipt-col:last-child { border-right: none; }
.receipt-col-title {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 16px;
}
.receipt-item {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
}
.receipt-item:last-child { border-bottom: none; }
.receipt-item.ok::before { content: '✓ '; color: var(--green); }
.receipt-item.open::before { content: '○ '; color: var(--open); }
.receipt-item.rec::before { content: '→ '; color: var(--rec); }
.receipt-item.ok, .receipt-item.open, .receipt-item.rec { color: var(--cream-dim); }

/* ─── Problem Section ─── */
.problem-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.problem-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.problem-headline {
  font-size: 36px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 64px;
  max-width: 600px;
  line-height: 1.3;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.problem-card {}
.problem-num {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--border);
  margin-bottom: 20px;
  line-height: 1;
}
.problem-card h3 {
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 14px;
}
.problem-card p {
  color: var(--cream-dim);
  font-size: 13px;
  line-height: 1.8;
}

/* ─── How Section ─── */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}
.how-inner {
  max-width: 800px;
  margin: 0 auto;
}
.how-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 56px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}
.how-step-content h3 {
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
}
.how-step-content p {
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.8;
}
.how-footnote {
  margin-top: 48px;
  font-size: 12px;
  color: var(--amber-dim);
  text-align: center;
  font-style: italic;
}

/* ─── Principles Section ─── */
.principles-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.principles-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 56px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.principle {}
.principle-icon {
  font-size: 20px;
  color: var(--amber);
  margin-bottom: 16px;
  line-height: 1;
}
.principle h4 {
  font-size: 15px;
  color: var(--cream);
  margin-bottom: 10px;
}
.principle p {
  color: var(--cream-dim);
  font-size: 12px;
  line-height: 1.8;
}

/* ─── Closing ─── */
.closing-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 100px 40px;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing-quote {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 1.3;
}
.closing-sub {
  color: var(--cream-dim);
  font-size: 15px;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}
.footer-meta {
  color: var(--cream-dim);
  font-size: 12px;
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px 80px; }
  .hero-card { display: none; }
  .hero-headline { font-size: 36px; }
  .receipt-body { grid-template-columns: 1fr; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-col { border-right: none; border-bottom: 1px solid var(--border); }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .how-step { grid-template-columns: 48px 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .principles-grid { grid-template-columns: 1fr; }
  .receipt-section, .problem-section, .how-section, .principles-section, .closing-section { padding: 64px 24px; }
  .nav-inner, .footer-inner { padding: 0 24px; }
}

/* ─── Nav links ─── */
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  font-family: 'Martian Mono', monospace;
  font-size: 12px;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--cream); }

/* ─── Hero secondary CTA ─── */
.hero-cta-secondary {
  display: inline-block;
  margin-left: 20px;
  font-family: 'Martian Mono', monospace;
  font-size: 12px;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-cta-secondary:hover { color: var(--cream); }

/* ─── /how-it-works standalone page ─── */
.hiw-topbar {
  border-bottom: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.hiw-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
}
.hiw-back {
  font-family: 'Martian Mono', monospace;
  font-size: 12px;
  color: var(--cream-dim);
  text-decoration: none;
}
.hiw-back:hover { color: var(--cream); }

.hiw-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.hiw-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-section:last-child { border-bottom: none; }

.hiw-h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 28px;
}
.hiw-h2--muted { color: var(--cream-dim); }

.hiw-body {
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.85;
  margin-bottom: 0;
}
.hiw-body--spaced { margin-top: 24px; }
.hiw-body--label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 40px;
  margin-top: -8px;
}
.hiw-body--muted { color: var(--cream-dim); }

.hiw-steps {
  list-style: none;
  margin-top: 0;
}
.hiw-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  padding-top: 2px;
}
.hiw-step-body {
  font-family: 'Martian Mono', monospace;
}
.hiw-step-body strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hiw-step-body p {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.75;
  margin: 0;
}

.hiw-bullets {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.hiw-bullets li {
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.75;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.hiw-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--cream-dim);
}
.hiw-bullets--muted li { color: var(--cream-dim); }

.hiw-link {
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
}
.hiw-link:hover { text-decoration: underline; }

/* ─── Print / PDF (explicit white background, no dark surfaces) ─── */
@media print {
  @page { background: white; margin: 1in; }
  body { background: white !important; color: #111111 !important; }
  .nav, .footer, .page-footer { display: none; }
}
