/* =========================================================================
   MEJEPA — Trust-as-Aesthetic Design System
   Records office, not software. Signed, sealed, dated, indexed.
   ========================================================================= */

/* TYPE — Fraunces (display serif), Switzer (body grotesk), JetBrains Mono (evidence) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap");

:root {
  /* Palette */
  --vellum: #F4F1EA;
  --vellum-warm: #ECE7DC;
  --ink: #0E1116;
  --ink-soft: #4A4F58;
  --rule: #C9C3B5;
  --hairline: #DCD6C7;
  --notary: #7A0E16;
  --notary-deep: #5A0810;
  --foil: #9A8456;
  --foil-soft: #C4B894;
  --archive: #1B3A52;

  /* Verdict semantics */
  --pass: #1F5C3A;
  --pass-bg: #E0E9DC;
  --fail: #7A0E16;
  --fail-bg: #EDD9D6;
  --abstain: #8B5A1F;
  --abstain-bg: #F0E4CC;
  --ood: #1B3A52;
  --ood-bg: #D9DFE5;

  /* Type */
  --display: "Fraunces", "Source Serif 4", "Libre Caslon Display", Georgia, serif;
  --body: "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
}

/* RESET */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* PAPER TEXTURE — subtle vellum grain via repeating noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14,17,22,0.03) 1px, transparent 0);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* =========================================================================
   THE FOLIO — top Vignelli bar
   ========================================================================= */
.folio {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.folio-wrap {
  max-width: 1240px; margin: 0 auto;
  padding: 10px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.folio-left, .folio-center, .folio-right {
  display: flex; align-items: center; gap: 16px;
}
.folio .sep { color: var(--foil); }
.folio .mark { color: var(--vellum); font-weight: 600; }
.folio .vol { color: var(--foil-soft); }
.folio .verdict-num { color: var(--vellum); }
.folio .date { color: var(--foil-soft); }

/* =========================================================================
   NAV — secondary, below folio
   ========================================================================= */
nav.primary {
  background: var(--vellum);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 36px; z-index: 40;
}
nav.primary .wrap {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
nav.primary .wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24, "SOFT" 0;
}
nav.primary .wordmark .dot { color: var(--notary); }
nav.primary ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; font-size: 14px;
  font-family: var(--body);
  letter-spacing: -0.005em;
}
nav.primary ul a { color: var(--ink-soft); transition: color .15s; }
nav.primary ul a:hover { color: var(--notary); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  background: var(--vellum-warm);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-toggle__bar {
  display: block;
  width: 13px;
  height: 1px;
  background: currentColor;
}
.nav-toggle__label { color: var(--ink-soft); }
.primary.is-open .nav-toggle {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--vellum);
}
.primary.is-open .nav-toggle__label { color: var(--foil-soft); }
/* Persistent email CTA — info@mejepa.com always present in nav */
nav.primary .cta {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.04em;
  background: var(--ink); color: var(--vellum);
  padding: 10px 16px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .15s;
  text-transform: lowercase;
}
nav.primary .cta:hover { background: var(--notary); }
nav.primary .cta .arrow {
  display: inline-block; transition: transform .15s;
  color: var(--foil);
}
nav.primary .cta:hover .arrow { transform: translateX(3px); color: var(--vellum); }
nav.primary .cta .dot { color: var(--foil); }
nav.primary .cta:hover .dot { color: var(--vellum); }

@media (max-width: 760px) {
  nav.primary .cta { padding: 9px 12px; font-size: 11px; }
  nav.primary .cta .full { display: none; }
}

/* Folio top-bar email — second persistence surface */
.folio .folio-right a {
  color: var(--foil); transition: color .15s;
}
.folio .folio-right a:hover { color: var(--vellum); }

/* =========================================================================
   LAYOUT — container
   ========================================================================= */
.wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 2;
}
.wrap--narrow { max-width: 960px; }
.wrap--prose { max-width: 720px; }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; }
h1 {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 500;
}
h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96, "SOFT" 0, "wght" 500;
}
h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 500;
}
h4 {
  font-size: 20px;
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 600;
  letter-spacing: -0.01em;
}
p { margin: 0; }
strong { font-weight: 600; }
em.notary { font-style: normal; color: var(--notary); }
em.archive { font-style: normal; color: var(--archive); }

/* SECTION EYEBROW — hanging §-numeral motif */
.section {
  padding: var(--space-7) 0;
  position: relative;
  border-top: 1px solid var(--rule);
}
.section--alt { background: var(--vellum-warm); }
.section--ink { background: var(--ink); color: var(--vellum); }
.section--ink .lede { color: rgba(244, 241, 234, 0.7); }
.section--ink .hairline-rule { background: rgba(244, 241, 234, 0.2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.eyebrow .sigil {
  font-family: var(--display);
  font-size: 18px;
  color: var(--notary);
  font-variation-settings: "opsz" 24, "SOFT" 0;
  letter-spacing: 0;
}
.section--ink .eyebrow { color: var(--foil-soft); }
.section--ink .eyebrow .sigil { color: var(--foil); }

.lede {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 400;
  color: var(--ink-soft);
  max-width: 720px;
  margin: var(--space-3) 0 var(--space-5);
}

/* Drop cap utility — only on first paragraph of marked blocks */
.dropcap > p:first-of-type::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 5.2em;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 600;
  color: var(--notary);
}

/* Body prose */
.prose p {
  font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 var(--space-2);
}
.prose p + p { margin-top: var(--space-2); }
.prose strong { color: var(--ink); }

/* Hairline rule — pleading-paper double line */
.hairline-rule {
  height: 1px; background: var(--ink); margin: var(--space-4) 0;
  position: relative;
}
.hairline-rule::after {
  content: ""; position: absolute; left: 0; right: 0; top: 3px;
  height: 1px; background: var(--ink);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .15s;
  cursor: pointer;
}
.btn--ink { background: var(--ink); color: var(--vellum); }
.btn--ink:hover { background: var(--notary); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--vellum); }
.btn--notary { background: var(--notary); color: var(--vellum); }
.btn--notary:hover { background: var(--notary-deep); }
.btn--foil { background: var(--foil); color: var(--ink); }
.btn--foil:hover { background: var(--foil-soft); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
}
.hero h1 em.notary { font-style: italic; color: var(--notary); }
.hero .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--notary);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 12px;
}
.hero .kicker::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--notary);
}
.hero .sub {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 400;
  color: var(--ink-soft);
  max-width: 720px;
  margin: var(--space-4) 0 var(--space-5);
}
.hero .meta-strip {
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.hero .meta-strip .num { color: var(--notary); font-weight: 600; }

/* =========================================================================
   VERDICT TABLE / EVIDENCE BLOCK
   ========================================================================= */
.evidence {
  margin-top: var(--space-5);
  background: var(--vellum-warm);
  border: 1px solid var(--rule);
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
}
.evidence-head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--vellum);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.evidence-head .sig-stamp { color: var(--foil); }
.evidence-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.evidence-row:last-child { border-bottom: none; }
.evidence-row .pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--mono);
}
.pill--pass { color: var(--pass); background: var(--pass-bg); }
.pill--fail { color: var(--fail); background: var(--fail-bg); }
.pill--abstain { color: var(--abstain); background: var(--abstain-bg); }
.pill--ood { color: var(--ood); background: var(--ood-bg); }
.evidence-row .desc { color: var(--ink); }
.evidence-row .sig { color: var(--ink-soft); font-size: 11px; }
.evidence-row > * { min-width: 0; }

/* =========================================================================
   PIPELINE — four steps
   ========================================================================= */
.pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-5);
}
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } }
.pipeline .step {
  background: var(--vellum);
  padding: var(--space-4);
  position: relative;
}
.pipeline .step .step-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--notary); font-weight: 600;
  margin-bottom: 16px;
}
.pipeline .step h4 {
  font-family: var(--display);
  font-size: 22px;
  font-variation-settings: "opsz" 36, "SOFT" 0, "wght" 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.pipeline .step p {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
}

/* =========================================================================
   OFFER CARDS
   ========================================================================= */
.offers {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 800px) { .offers { grid-template-columns: 1fr; } }
.offer {
  background: var(--vellum);
  border: 1px solid var(--rule);
  padding: var(--space-4);
  display: flex; flex-direction: column;
  position: relative;
}
.offer::before {
  content: attr(data-num);
  position: absolute;
  top: -1px; left: -1px;
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 12px;
}
.offer h4 {
  font-family: var(--display);
  font-size: 26px;
  font-variation-settings: "opsz" 48, "SOFT" 0, "wght" 500;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 8px;
  padding-right: 80px;
}
.offer .price {
  font-family: var(--mono);
  font-size: 14px; letter-spacing: 0.05em;
  color: var(--notary); font-weight: 600;
  margin-bottom: var(--space-2);
}
.offer .price .qual { color: var(--ink-soft); font-weight: 400; }
.offer p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-bottom: var(--space-3); }
.offer .meta {
  margin-top: auto; padding-top: var(--space-2);
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.offer .meta .turnaround { color: var(--ink); }

/* =========================================================================
   APPLICATIONS GRID — top apps on homepage
   ========================================================================= */
.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-5);
}
@media (max-width: 800px) { .apps { grid-template-columns: 1fr; } }
.app {
  background: var(--vellum);
  padding: var(--space-5);
  display: flex; flex-direction: column;
  transition: background .2s;
  position: relative;
}
.app:hover { background: var(--vellum-warm); }
.app .app-rank {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--notary); font-weight: 600;
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.app .app-rank > * { min-width: 0; }
.app .app-rank .price { color: var(--ink-soft); font-weight: 500; }
.app h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-variation-settings: "opsz" 48, "SOFT" 0, "wght" 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.app .who {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.05em; color: var(--ink-soft);
  margin-bottom: var(--space-2);
}
.app p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: var(--space-3); }
.app .arrow-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--notary); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.app .arrow-link::after { content: "→"; transition: transform .15s; }
.app:hover .arrow-link::after { transform: translateX(4px); }

/* =========================================================================
   WITNESS SEAL — the recurring brand device
   ========================================================================= */
.seal {
  display: inline-block;
  width: 180px; height: 180px;
  position: relative;
  margin: 0 auto;
}
.seal svg { width: 100%; height: 100%; display: block; }
.seal-ring {
  fill: none; stroke: var(--notary); stroke-width: 1.2;
}
.seal-ring--inner {
  stroke-width: 0.6;
}
.seal-circular-text {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  fill: var(--notary);
  text-transform: uppercase;
  font-weight: 600;
}
.seal-center {
  font-family: var(--display);
  font-size: 20px;
  fill: var(--notary);
  text-anchor: middle;
  font-variation-settings: "opsz" 36, "SOFT" 0, "wght" 600;
}
.seal-sub {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  fill: var(--notary);
  text-anchor: middle;
  text-transform: uppercase;
}
/* Off-register effect — physical inking */
.seal::after {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  transform: translate(1px, 1px);
  z-index: -1;
}

/* =========================================================================
   TWO-COLUMN editorial layout — like a journal spread
   ========================================================================= */
.spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; gap: var(--space-4); } }
.spread .running-head {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.spread .running-head .sigil {
  color: var(--notary); font-family: var(--display); margin-right: 8px;
}

/* Marginalia — small note in margin */
.marginalia {
  background: var(--vellum-warm);
  border-left: 2px solid var(--notary);
  padding: 18px 24px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "opsz" 24, "SOFT" 100, "wght" 400;
  color: var(--ink);
  font-style: italic;
  margin: var(--space-3) 0;
}

/* =========================================================================
   BENEFITS — reality compiler outcomes
   ========================================================================= */
.section--benefits {
  background: var(--vellum-warm);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-5);
}
.benefit-card {
  background: var(--vellum);
  padding: var(--space-4);
  min-width: 0;
}
.benefit-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--notary);
  font-weight: 600;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: clamp(23px, 2vw, 30px);
  margin-bottom: 12px;
}
.benefit-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.outcome-band {
  margin-top: var(--space-5);
  background: var(--ink);
  color: var(--vellum);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  padding: var(--space-5);
}
.outcome-copy h3 {
  color: var(--vellum);
  margin-bottom: 12px;
}
.outcome-copy p {
  color: rgba(244, 241, 234, 0.72);
  font-size: 16px;
  line-height: 1.6;
}
.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.outcome-list li {
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  padding: 0 0 10px 28px;
  position: relative;
  color: rgba(244, 241, 234, 0.82);
  font-size: 15px;
  line-height: 1.5;
}
.outcome-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--foil);
  font-family: var(--mono);
}

.content-visual {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--ink);
  overflow: hidden;
}
.content-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.content-visual--wide {
  margin: var(--space-5) 0;
  box-shadow: 0 24px 60px rgba(14, 17, 22, 0.16);
}
.visual-copy-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: var(--space-4);
  align-items: stretch;
  margin: var(--space-5) 0;
}
.lead-card {
  border: 1px solid var(--ink);
  background: var(--vellum);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-card h3 {
  margin-bottom: 12px;
}
.lead-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.lead-card .btn {
  align-self: flex-start;
}
.cta-conversion {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-5);
  align-items: center;
  text-align: left;
}
.cta-conversion h2 {
  text-align: left;
  max-width: 760px;
  margin: 0 0 var(--space-3);
}
.cta-conversion .lede {
  margin: 0 0 var(--space-4);
  text-align: left;
}
.microcopy {
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================================
   FEATURED CALLOUT — dark "wedge" panel
   ========================================================================= */
.feat {
  background: var(--ink);
  color: var(--vellum);
  padding: var(--space-6);
  margin-top: var(--space-5);
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; padding: var(--space-5); } }
.feat .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--foil);
  padding: 5px 12px;
  border: 1px solid var(--foil);
  border-radius: 2px;
  margin-bottom: var(--space-3);
}
.feat h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72, "SOFT" 0, "wght" 500;
  margin-bottom: var(--space-3);
}
.feat p { font-size: 17px; color: rgba(244, 241, 234, 0.75); line-height: 1.6; margin-bottom: var(--space-3); }
.feat-mock {
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.12);
  padding: var(--space-3);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(244, 241, 234, 0.6);
}
.feat-mock .line { padding: 4px 0; }
.feat-mock .ok { color: #6FB58D; }
.feat-mock .warn { color: #D4A55A; }
.feat-mock .fail { color: #C97A7A; }

/* =========================================================================
   TRUST STRIP — three primitives
   ========================================================================= */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 800px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-card {
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.15);
  padding: var(--space-4);
}
.trust-card .num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--foil); font-weight: 600;
  margin-bottom: 14px;
}
.trust-card h4 {
  font-family: var(--display);
  font-size: 24px; color: var(--vellum);
  font-variation-settings: "opsz" 36, "SOFT" 0, "wght" 500;
  margin-bottom: 10px;
}
.trust-card p { font-size: 15px; line-height: 1.6; color: rgba(244, 241, 234, 0.75); }

/* =========================================================================
   HUMAN OVERSIGHT CALLOUT
   ========================================================================= */
.oversight {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--vellum);
  border: 1px solid var(--ink);
  display: flex; align-items: center; gap: var(--space-3);
  position: relative;
}
@media (max-width: 700px) { .oversight { flex-direction: column; align-items: flex-start; } }
.oversight .label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vellum);
  background: var(--notary);
  padding: 5px 12px;
  flex-shrink: 0;
  font-weight: 600;
}
.oversight p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.oversight strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   FOOTNOTES — bottom of section / pleading-paper style
   ========================================================================= */
.footnotes {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 13px; line-height: 1.55; color: var(--ink-soft);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
@media (max-width: 800px) { .footnotes { grid-template-columns: 1fr; } }
.footnotes .note { padding-left: 24px; position: relative; }
.footnotes .note::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0;
  font-family: var(--display);
  color: var(--notary);
  font-weight: 600;
  font-variation-settings: "opsz" 24, "SOFT" 0, "wght" 600;
  font-size: 16px;
}

/* =========================================================================
   CTA BLOCK
   ========================================================================= */
.cta-block {
  padding: var(--space-7) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta-block h2 { margin: 0 auto var(--space-3); max-width: 720px; }
.cta-block .lede { margin: 0 auto var(--space-4); }
.cta-block .cta-row { justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.7);
  padding: var(--space-5) 0;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.05em;
}
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  align-items: center;
}
footer .wordmark {
  font-family: var(--display); font-size: 22px; color: var(--vellum);
  font-variation-settings: "opsz" 24, "SOFT" 0, "wght" 600;
  letter-spacing: -0.02em;
}
footer .wordmark .dot { color: var(--notary); }
footer a { color: rgba(244, 241, 234, 0.7); transition: color .15s; }
footer a:hover { color: var(--foil); }

/* =========================================================================
   PAGE LOAD ANIMATION — single choreographed reveal
   ========================================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: rise .8s ease-out backwards; }
.hero .kicker { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .sub { animation-delay: .35s; }
.hero .cta-row { animation-delay: .5s; }
.hero .meta-strip { animation-delay: .65s; }
.hero .evidence { animation-delay: .75s; }

.js .reveal-ready {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.js .reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-action-bar { display: none; }

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

/* =========================================================================
   RESPONSIVE — Tablet (iPad portrait/landscape: 721–1024px)
   ========================================================================= */
@media (min-width: 721px) and (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  nav.primary .wrap { padding: 14px 24px; gap: 14px; flex-wrap: wrap; }
  nav.primary .wordmark { margin-right: auto; }
  nav.primary ul {
    display: none;
    order: 4;
    flex-basis: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 4px;
  }
  nav.primary.is-open ul { display: grid; }
  nav.primary ul li { background: var(--vellum); }
  nav.primary ul a {
    display: block;
    padding: 12px;
    color: var(--ink);
  }
  .nav-toggle { display: inline-flex; order: 2; }
  nav.primary .cta { order: 3; }
  .folio-wrap { padding: 10px 24px; }

  .hero { padding: 80px 0 64px; }
  h1 { font-size: clamp(48px, 7vw, 76px); }
  h2 { font-size: clamp(32px, 5vw, 48px); }

  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-band { grid-template-columns: 1fr; }
  .visual-copy-split,
  .cta-conversion {
    grid-template-columns: 1fr;
  }

  /* Tablet — collapse 4-col inline grids to 2 columns */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Tablet — collapse 3-tier insurability into 1 col, then offer page reads tier-by-tier */
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================================
   RESPONSIVE — Mobile (iPhone portrait & landscape: ≤720px)
   ========================================================================= */
@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  /* Container padding */
  .wrap { padding: 0 18px; }

  /* Folio bar — compact stack */
  .folio { font-size: 9px; letter-spacing: 0.05em; }
  .folio-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 18px;
  }
  .folio-left, .folio-center, .folio-right { gap: 8px; flex-wrap: wrap; }
  .folio-center { display: none; }   /* hide middle "VERDICT №…" on phones */

  /* Nav — wordmark + persistent email CTA only (hide internal menu) */
  nav.primary { top: 50px; }
  nav.primary .wrap { padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
  nav.primary .wordmark { font-size: 22px; margin-right: auto; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-toggle__label { display: none; }
  nav.primary ul {
    display: none;
    order: 4;
    flex-basis: 100%;
    background: var(--vellum-warm);
    border: 1px solid var(--rule);
    margin-top: 4px;
    padding: 0;
    gap: 0;
  }
  nav.primary.is-open ul { display: block; }
  nav.primary ul li { border-bottom: 1px solid var(--rule); }
  nav.primary ul li:last-child { border-bottom: 0; }
  nav.primary ul a {
    display: block;
    padding: 13px 14px;
    color: var(--ink);
    font-size: 13px;
  }
  nav.primary .cta { order: 3; padding: 9px 12px; font-size: 11px; gap: 6px; }
  nav.primary .cta .full { display: none; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .hero .sub { font-size: 17px; line-height: 1.4; }
  .hero .kicker { font-size: 11px; letter-spacing: 0.12em; }
  .hero .cta-row .btn { width: 100%; justify-content: center; padding: 14px 16px; }
  .meta-strip {
    gap: 12px 20px;
    font-size: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Sections — tighter padding */
  .section { padding: 56px 0; }

  /* Headings */
  h2 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
  }
  h3 { font-size: clamp(22px, 6vw, 30px); }
  h4 { font-size: 18px; }
  .lede { font-size: 17px; line-height: 1.4; margin-bottom: 32px; }

  /* Section eyebrows */
  .eyebrow { font-size: 10px; gap: 10px; }
  .eyebrow .sigil { font-size: 16px; }

  /* Drop cap — smaller, lighter */
  .dropcap > p:first-of-type::first-letter {
    font-size: 3.4em;
    line-height: 0.85;
    padding: 4px 8px 0 0;
  }

  /* Evidence / verdict table — stack rows */
  .evidence-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .evidence-row .sig { font-size: 10px; }
  .evidence-row .pill { font-size: 9px; padding: 2px 8px; }
  .evidence-row .desc { font-size: 13px; line-height: 1.4; }
  .evidence-head {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
  }
  .evidence,
  .feat-mock,
  .app,
  .offer,
  .trust-card,
  .marginalia {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Pipeline & apps & trust strip — single column */
  .pipeline,
  .apps,
  .trust-strip,
  .offers,
  .spread,
  .benefit-grid,
  .outcome-band,
  .visual-copy-split,
  .cta-conversion {
    grid-template-columns: 1fr !important;
  }
  .benefit-card,
  .outcome-band {
    padding: var(--space-3);
  }
  .benefit-card h3 { font-size: 22px; }
  .benefit-card p,
  .outcome-copy p,
  .outcome-list li {
    font-size: 14px;
  }
  .content-visual--wide,
  .visual-copy-split {
    margin: var(--space-4) 0;
  }
  .lead-card { padding: var(--space-3); }
  .lead-card .btn { width: 100%; justify-content: center; }
  .cta-conversion { text-align: center; }
  .cta-conversion h2,
  .cta-conversion .lede {
    text-align: center;
  }
  .cta-conversion .cta-row {
    justify-content: center;
  }
  .step { padding: var(--space-3); }
  .step h4 { font-size: 18px; }
  .app { padding: var(--space-3); }
  .app h3 { font-size: 22px; }
  .trust-card { padding: var(--space-3); }

  /* Offer cards */
  .offer { padding: var(--space-3); }
  .offer h4 { font-size: 22px; padding-right: 0; margin-top: 36px; }
  .offer::before { font-size: 10px; padding: 5px 10px; }
  .offer .meta { font-size: 10px; gap: 8px; }

  /* Featured callout (dark) */
  .feat {
    padding: var(--space-4);
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .feat h3 { font-size: 24px; line-height: 1.1; }
  .feat p { font-size: 15px; }
  .feat-mock {
    padding: 16px;
    font-size: 10px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Force inline 2-col / 3-col / 4-col grids to stack on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Marginalia callouts — reduce padding */
  .marginalia {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  /* Human-oversight bar */
  .oversight {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--space-3);
  }
  .oversight p { font-size: 14px; }

  /* Hairline rules — smaller margins */
  .hairline-rule { margin: var(--space-3) 0; }

  /* Inline tables (substitutes, exchange, etc.) — tighter rows */
  ul[style*="list-style: none"] li { font-size: 14px; }

  /* Pricing inline tables (insurability 3-tier) — force readable single column */
  div[style*="display: grid"][style*="border: 1px solid var(--rule)"] {
    grid-template-columns: 1fr !important;
  }

  /* Buttons */
  .btn { font-size: 11px; padding: 12px 16px; }

  /* FAQ summary */
  details > summary {
    font-size: 17px !important;
    line-height: 1.25;
    padding: 12px 0 !important;
  }
  details p { font-size: 14px !important; }

  /* CTA block centering */
  .cta-block { padding: 64px 0; }
  .cta-block .cta-row { flex-direction: column; }
  .cta-block .btn { width: 100%; }

  /* Footer — stack */
  footer { padding: var(--space-4) 0; font-size: 11px; }
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 18px;
  }
  footer .wordmark { font-size: 20px; }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 17, 22, 0.96);
    border-top: 1px solid rgba(244, 241, 234, 0.18);
    transform: translateY(110%);
    transition: transform .2s ease;
    pointer-events: none;
  }
  .mobile-action-bar--visible {
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-action-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-action-bar__primary {
    background: var(--notary);
    color: var(--vellum);
  }
  .mobile-action-bar__secondary {
    border: 1px solid rgba(244, 241, 234, 0.35);
    color: var(--vellum);
  }

  /* Pre/code blocks inside JSON examples — horizontal scroll, not wrap */
  pre {
    font-size: 10px !important;
    overflow-x: auto !important;
    white-space: pre !important;
  }

  /* Witness seal SVG — smaller on mobile */
  .section--ink svg[viewBox="0 0 240 240"] {
    max-width: 140px;
    margin: 0 auto;
    display: block;
  }
}

/* =========================================================================
   RESPONSIVE — Very small (≤380px, iPhone SE / mini)
   ========================================================================= */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero .sub { font-size: 16px; }
  nav.primary .wordmark { font-size: 19px; }
  nav.primary .cta { font-size: 10px; padding: 8px 10px; }
  nav.primary .cta .arrow { display: none; }
  .nav-toggle { padding: 8px; }
  .folio-wrap { padding: 6px 14px; }
}
