/* ─────────────────────────────────────────────────────────
   Nuqsaf — Marketing Site Styles
   Design tokens sourced from DESIGN.md
   Fraunces (display) + Instrument Sans (body)
   Accent #10B981, documentary modernism, minimal decoration
   ───────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --surface-light: #ffffff;
  --surface-elevated: #f9fafb;
  --surface-dark: #0c0f14;
  --surface-secondary-dark: #151921;

  /* Accent */
  --accent: #10b981;
  --accent-muted: #065f46;

  /* Text */
  --text-primary: #0a0a0a;
  --text-primary-dark: #f9fafb;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  /* Borders */
  --border-subtle: #e5e7eb;
  --border-dark: #1f2937;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01";
}

a {
  color: inherit;
  text-decoration: none;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Layout ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 128px 0;
}

.section-light {
  background: var(--surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 48px 0;
  max-width: 820px;
}

/* ─── Typography — prose ─── */
.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
}

.prose p {
  margin: 0 0 24px 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}

.btn-lg {
  font-size: 16px;
  padding: 18px 36px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-muted);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary-dark);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-secondary-dark {
  color: var(--text-primary-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   Landing page — documentary modernism on a permanent dark
   surface, with the report artifact as the primary visual.
   ───────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: 24px;
  top: -48px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  transition: top var(--duration-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.marketing-page {
  background: var(--surface-dark);
  color: var(--text-primary-dark);
}

.marketing-page em {
  font-family: var(--font-display);
  font-style: italic;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12, 15, 20, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner,
.landing-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-link {
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(249, 250, 251, 0.62);
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}

.site-nav-link:hover {
  color: var(--text-primary-dark);
  background: rgba(255, 255, 255, 0.04);
}

.landing-hero {
  padding: 56px 0 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.56);
}

.landing-hero-title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-primary-dark);
}

.landing-hero-sub {
  margin: 24px 0 0;
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(249, 250, 251, 0.7);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-meta {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hero-meta div {
  display: grid;
  gap: 6px;
}

.hero-meta dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.42);
}

.hero-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(249, 250, 251, 0.78);
}

.landing-hero-art {
  display: flex;
  justify-content: flex-end;
}

.report-frame {
  width: min(100%, 560px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.report-sheet {
  background: #f5f2eb;
  color: var(--text-primary);
  padding: 28px;
  min-height: 640px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.report-rule {
  height: 1px;
  background: rgba(10, 10, 10, 0.12);
}

.report-label,
.fact-label,
.assurance-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.report-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.report-amount-block {
  display: grid;
  gap: 8px;
  padding: 16px 0 8px;
}

.report-amount {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-columns div {
  display: grid;
  gap: 6px;
}

.report-value,
.fact-value,
.assurance-value,
.proof-row p,
.editorial-block p,
.process-item p,
.site-footer-copy,
.landing-cta-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.report-value {
  color: rgba(10, 10, 10, 0.86);
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.report-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  line-height: 1.45;
}

.report-list strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.report-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-section {
  padding: 96px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-section-paper .landing-shell {
  padding-top: 48px;
  padding-bottom: 48px;
  background: #f5f2eb;
  color: var(--text-primary);
}

.landing-section-paper .section-kicker,
.landing-section-paper .section-heading,
.landing-section-paper .editorial-block h3,
.landing-section-paper .fact-value,
.landing-section-paper .assurance-value {
  color: var(--text-primary);
}

.landing-section-paper .section-kicker,
.landing-section-paper .fact-label,
.landing-section-paper .assurance-label {
  color: var(--text-muted);
}

.landing-section-rule {
  background: #11151c;
}

.section-intro {
  max-width: 760px;
}

.section-heading {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary-dark);
}

.section-heading-light {
  color: var(--text-primary-dark);
}

.editorial-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.editorial-block,
.proof-row,
.assurance-item,
.fact-row {
  padding-top: 18px;
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.editorial-block h3,
.proof-row h3,
.process-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.editorial-block p {
  color: rgba(10, 10, 10, 0.74);
}

.facts-grid,
.assurance-list {
  margin-top: 48px;
  display: grid;
  gap: 24px;
}

.fact-row,
.assurance-item {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 24px;
}

.process-grid,
.split-proof,
.assurance-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}

.process-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.process-number {
  min-width: 52px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(249, 250, 251, 0.28);
}

.process-item p,
.proof-row p {
  color: rgba(249, 250, 251, 0.68);
}

.proof-stack {
  display: grid;
  gap: 28px;
}

.proof-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.landing-cta {
  padding: 112px 0;
}

.landing-cta-inner {
  text-align: center;
}

.landing-cta-inner .section-heading {
  max-width: 14ch;
  margin: 0 auto;
}

.landing-cta-copy {
  max-width: 34rem;
  margin: 24px auto 0;
  color: rgba(249, 250, 251, 0.68);
}

.landing-cta-inner .landing-hero-actions {
  justify-content: center;
}

.landing-ayah {
  margin: 48px auto 0;
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  color: rgba(249, 250, 251, 0.82);
}

.landing-ayah span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.5);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0 48px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.site-footer-copy {
  max-width: 24rem;
  margin-top: 12px;
  color: rgba(249, 250, 251, 0.62);
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-footer-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.44);
}

.site-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer-links a,
.site-footer-bottom p {
  color: rgba(249, 250, 251, 0.62);
}

.site-footer-links a:hover {
  color: var(--text-primary-dark);
}

.site-footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-1,
.reveal-2,
.reveal-3 {
  animation: fade-up 400ms var(--ease) both;
}

.reveal-2 {
  animation-delay: 80ms;
}

.reveal-3 {
  animation-delay: 160ms;
}

@media (max-width: 960px) {
  .landing-hero-grid,
  .process-grid,
  .split-proof,
  .assurance-grid,
  .site-footer-top {
    grid-template-columns: 1fr;
  }

  .landing-hero-art {
    justify-content: flex-start;
  }

  .site-footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav-link {
    display: none;
  }

  .landing-hero {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .landing-shell,
  .site-header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-meta,
  .editorial-grid,
  .report-columns,
  .site-footer-links,
  .fact-row,
  .assurance-item {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 16px;
  }

  .report-sheet,
  .landing-section-paper .landing-shell {
    padding: 22px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-number {
    min-width: 0;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  transition: color var(--duration-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
}

/* ─── Hero ─── */
.hero {
  padding: 128px 24px 160px;
  text-align: center;
  background: var(--surface-light);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-muted);
  margin-bottom: 48px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 32px 0;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Steps ─── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-dark);
  color: var(--text-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Meta grid ─── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  /* empty on purpose */
}

.meta-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin: 0 0 8px 0;
}

.meta-value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

/* ─── CTA section ─── */
.cta {
  background: var(--surface-dark);
  padding: 128px 24px;
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary-dark);
  margin: 0 0 24px 0;
}

.cta-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ─── Footer ─── */
.footer {
  background: var(--surface-light);
  padding: 96px 0 48px;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .wordmark {
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin: 0 0 20px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-ayah {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-ayah p {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.footer-ayah-source {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy,
.footer-note {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   Long-form whitepaper layout
   Used on /methodology and any future long-form documents.
   Reading-optimized: narrow column, generous line-height,
   Fraunces for display, Instrument Sans for body.
   ───────────────────────────────────────────────────────── */

.whitepaper {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.whitepaper-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 64px;
  transition: color var(--duration-fast) var(--ease);
}

.whitepaper-back:hover {
  color: var(--text-primary);
}

.whitepaper-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.whitepaper-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 32px 0;
}

.whitepaper-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
  font-size: 13px;
}

.whitepaper-meta dt {
  color: var(--text-subtle);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  align-self: center;
}

.whitepaper-meta dd {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

.whitepaper-status {
  background: #fefce8;
  border: 1px solid #fde047;
  border-left: 4px solid #ca8a04;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.6;
  color: #713f12;
}

.whitepaper-status strong {
  display: block;
  color: #422006;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.whitepaper-toc {
  padding: 24px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 64px;
}

.whitepaper-toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.whitepaper-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.whitepaper-toc li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.whitepaper-toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 24px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

.whitepaper-toc a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.whitepaper-toc a:hover {
  color: var(--accent);
}

.whitepaper-toc .toc-pending {
  color: var(--text-subtle);
  font-style: italic;
}

.whitepaper-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: #1f2937;
}

.whitepaper-body h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 80px 0 24px 0;
  scroll-margin-top: 96px;
}

.whitepaper-body h2:first-child {
  margin-top: 0;
}

.whitepaper-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 48px 0 16px 0;
  scroll-margin-top: 96px;
}

.whitepaper-body p {
  margin: 0 0 24px 0;
}

.whitepaper-body ul,
.whitepaper-body ol {
  margin: 0 0 28px 0;
  padding-left: 28px;
}

.whitepaper-body li {
  margin-bottom: 12px;
}

.whitepaper-body li:last-child {
  margin-bottom: 0;
}

.whitepaper-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.whitepaper-body em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}

.whitepaper-body a {
  color: var(--accent-muted);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all var(--duration-fast) var(--ease);
}

.whitepaper-body a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.whitepaper-body blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
  font-style: italic;
  color: #374151;
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface-elevated);
  border-radius: 0 12px 12px 0;
}

.whitepaper-body blockquote p {
  margin-bottom: 12px;
}

.whitepaper-body blockquote p:last-child {
  margin-bottom: 0;
}

.whitepaper-body blockquote strong {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.whitepaper-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 64px 0;
}

.whitepaper-body .callout {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.whitepaper-body .callout-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.whitepaper-feedback {
  margin-top: 96px;
  padding: 48px 32px;
  background: var(--surface-dark);
  border-radius: 20px;
  text-align: center;
}

.whitepaper-feedback h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: white;
  margin: 0 0 16px 0;
}

.whitepaper-feedback p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto 28px;
}

.whitepaper-feedback a.btn {
  background: var(--accent);
  color: white;
  font-size: 14px;
  padding: 12px 24px;
}

.whitepaper-feedback a.btn:hover {
  background: var(--accent-muted);
}

/* Print styles — for scholars who want to read on paper */
@media print {
  body {
    background: white;
    color: #0a0a0a;
    font-size: 11pt;
  }

  .nav,
  .footer,
  .whitepaper-back,
  .whitepaper-feedback {
    display: none !important;
  }

  .whitepaper {
    max-width: 100%;
    padding: 0;
  }

  .whitepaper-title {
    font-size: 24pt;
  }

  .whitepaper-body {
    font-size: 11pt;
    line-height: 1.55;
    color: #000;
  }

  .whitepaper-body h2 {
    font-size: 16pt;
    page-break-after: avoid;
  }

  .whitepaper-body h3 {
    font-size: 13pt;
    page-break-after: avoid;
  }

  .whitepaper-body blockquote {
    background: transparent;
    border-left: 2pt solid #666;
    page-break-inside: avoid;
  }

  .whitepaper-body a {
    color: #000;
    text-decoration: underline;
  }

  .whitepaper-body h2,
  .whitepaper-body h3,
  .whitepaper-body blockquote {
    break-inside: avoid;
  }
}

/* ─── Hero stats ─── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 560px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: border-color var(--duration-fast) var(--ease), transform var(--duration-base) var(--ease);
}

.feature-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.feature-badge-live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.feature-badge-soon {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}

.feature-badge-later {
  background: rgba(107, 114, 128, 0.08);
  color: var(--text-muted);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.feature-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.feature-body em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}

/* ─── Roadmap timeline ─── */
.roadmap {
  position: relative;
  padding-left: 32px;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}

.roadmap-item {
  position: relative;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-light);
  border: 2px solid var(--border-subtle);
  z-index: 1;
}

.roadmap-live .roadmap-marker {
  background: var(--accent);
  border-color: var(--accent);
}

.roadmap-content {
  padding-left: 0;
}

.roadmap-phase {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.roadmap-live .roadmap-phase {
  color: var(--accent);
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.roadmap-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 80px 24px 96px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .cta {
    padding: 80px 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-stat-value {
    font-size: 20px;
  }

  .nav-link {
    display: none;
  }
}
