/* ============ TOKENS ============ */
:root {
  --ink: #14202e;
  --ink-2: #0d1622;
  --ink-3: #1c2b3d;
  --paper: #f6f1e7;
  --paper-2: #efe8d9;
  --paper-3: #fdfbf6;
  --accent: #1e7a5f;
  --accent-deep: #155c47;
  --rust: #a43e2c;
  --amber: #a8741a;
  --line: rgba(20, 32, 46, 0.16);
  --line-soft: rgba(20, 32, 46, 0.09);
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2.2rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-weight: 900; font-size: 1.25rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.mark { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  opacity: 0.75; transition: opacity 0.15s;
}
.nav nav a:hover { opacity: 1; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--paper-3);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.5rem; border: none; border-radius: 4px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(13, 22, 34, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { font-size: 0.88rem; padding: 0.55rem 1.1rem; }

/* ============ HERO ============ */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  align-items: center;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.2rem, 4vw, 3rem) 5rem;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; color: var(--accent-deep);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--accent-deep); }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 900; margin-bottom: 1.3rem;
  font-variation-settings: "opsz" 144;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.lede {
  font-size: 1.13rem; max-width: 34rem; margin-bottom: 2.2rem;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

/* ============ CAPTURE FORM ============ */
.capture { position: relative; max-width: 30rem; }
.capture .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.capture input[type="email"] {
  font-family: var(--mono); font-size: 0.95rem;
  padding: 0.8rem 1rem; width: calc(100% - 11.5rem);
  border: 1.5px solid var(--ink); border-radius: 4px 0 0 4px; border-right: none;
  background: var(--paper-3); color: var(--ink); outline: none;
}
.capture input[type="email"]:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.capture .btn { border-radius: 0 4px 4px 0; }
.capture input[type="email"], .capture .btn { vertical-align: top; height: 3.15rem; }
.form-note {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  margin-top: 0.7rem; color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.form-status { font-weight: 600; font-size: 0.92rem; margin-top: 0.6rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: var(--rust); }

/* ============ HERO VISUAL ============ */
.hero-visual { position: relative; min-height: 420px; }
.evidence-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(13, 22, 34, 0.12), 0 2px 6px rgba(13, 22, 34, 0.08);
  width: min(400px, 100%);
}
.card-front { position: relative; z-index: 2; transform: rotate(-1.6deg); }
.card-back {
  position: absolute; top: -26px; left: 42px; z-index: 1;
  transform: rotate(2.4deg); opacity: 0.85; width: min(380px, 92%);
}
.ec-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft);
}
.ec-code {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  background: var(--ink); color: var(--paper);
  padding: 0.2rem 0.5rem; border-radius: 3px; letter-spacing: 0.06em;
}
.ec-due {
  margin-left: auto; font-family: var(--mono); font-size: 0.7rem;
  color: #75500f; font-weight: 600; letter-spacing: 0.04em;
}
.ec-list { list-style: none; padding: 0.4rem 0; }
.ec-list li {
  display: flex; align-items: baseline; gap: 0.65rem;
  font-size: 0.9rem; padding: 0.55rem 1.1rem;
  border-bottom: 1px dotted var(--line-soft);
}
.ec-list li:last-child { border-bottom: none; }
.ec-list em {
  margin-left: auto; font-style: normal; font-family: var(--mono);
  font-size: 0.68rem; color: var(--ink-3);
  text-align: right;
}
.tick {
  font-size: 0.75rem; font-weight: 700; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; top: 0.12em;
}
.have .tick { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-deep); }
.miss .tick { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.miss { color: #45515e; }
.ec-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em;
  padding: 0.75rem 1.1rem; border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
}
.ec-ready { color: var(--accent-deep); font-weight: 600; }
.stamp {
  position: absolute; z-index: 3; right: -1%; top: 76%;
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.18em; text-align: center; line-height: 1.5;
  color: var(--rust); border: 3px double var(--rust);
  padding: 0.55rem 1rem; border-radius: 6px;
  transform: rotate(-11deg);
  opacity: 0.82; mix-blend-mode: multiply;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0.28'/%3E%3C/filter%3E%3Crect width='120' height='120' fill='white' filter='url(%23g)'/%3E%3C/svg%3E");
}
.receipt {
  position: absolute; z-index: 2; bottom: -8px; left: 8%;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  background: var(--paper-2); border: 1px dashed var(--line);
  padding: 0.45rem 0.9rem; color: color-mix(in srgb, var(--ink) 68%, transparent);
  transform: rotate(0.8deg);
}

/* ============ FACT STRIP ============ */
.fact-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.4rem 1rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-align: center;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: var(--paper-2);
}
.fact-strip i { font-style: normal; color: var(--accent); }

/* ============ EXHIBIT SECTIONS ============ */
.exhibit, .closing {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.2rem, 4vw, 3rem);
}
.exhibit-label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.24em; color: var(--accent-deep);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.3rem;
}
.exhibit-label::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.exhibit h1, .exhibit h2, .closing h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 900;
  margin-bottom: 1.2rem; max-width: 46rem;
  font-variation-settings: "opsz" 100;
}
.section-lede { font-size: 1.08rem; max-width: 44rem; color: color-mix(in srgb, currentColor 84%, transparent); margin-bottom: 2.8rem; }
.section-close {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 400;
  max-width: 42rem; margin-top: 2.8rem; line-height: 1.6;
  padding-left: 1.4rem; border-left: 2px solid var(--accent);
}
.source-note {
  max-width: 42rem; margin-top: 1rem;
  font-family: var(--mono); font-size: 0.7rem; line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
.section-close a, .source-note a, .quotes cite a, .foot-legal a {
  color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
}

/* dark sections */
.exhibit-dark {
  max-width: none;
  background: var(--ink); color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.exhibit-dark > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.exhibit-dark .exhibit-label { color: #6fbfa4; }
.exhibit-dark h2 { margin-bottom: 3rem; }
.exhibit-paper { background: var(--paper-2); max-width: none; }
.exhibit-paper > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* ============ QUOTES ============ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quotes blockquote {
  background: var(--paper-3); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 2.6rem 1.6rem 1.6rem; position: relative;
  box-shadow: 0 2px 10px rgba(13, 22, 34, 0.05);
}
.quotes blockquote::before {
  content: "\201C";
  position: absolute; top: 0.4rem; left: 1.2rem;
  font-family: var(--serif); font-weight: 900; font-size: 3.2rem;
  color: var(--rust); opacity: 0.55; line-height: 1;
}
.quotes p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; line-height: 1.5; }
.quotes cite {
  display: block; margin-top: 1.1rem;
  font-family: var(--mono); font-style: normal; font-size: 0.7rem;
  letter-spacing: 0.08em; color: var(--ink-3);
}

/* ============ STEPS ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.steps li { border-top: 1px solid rgba(246, 241, 231, 0.22); padding-top: 1.6rem; }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 2.6rem; color: #6fbfa4; display: block; margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.28rem; margin-bottom: 0.7rem; }
.steps p { font-size: 0.96rem; color: rgba(246, 241, 231, 0.78); }

/* ============ CODE CARDS ============ */
.code-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 56rem; }
.evidence-card.static { width: 100%; transform: none; }

/* ============ CALCULATOR ============ */
.calc {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: 0 14px 40px rgba(13, 22, 34, 0.08);
}
.calc-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.4rem; }
.calc-inputs label { font-size: 0.9rem; font-weight: 600; display: block; }
.calc-inputs output {
  float: right; font-family: var(--mono); font-weight: 600; color: var(--accent-deep);
}
.calc input[type="range"] {
  width: 100%; margin-top: 0.8rem; appearance: none; height: 4px;
  background: var(--line); border-radius: 2px; outline: none; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper-3);
  box-shadow: 0 1px 4px rgba(13, 22, 34, 0.35);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper-3);
  box-shadow: 0 1px 4px rgba(13, 22, 34, 0.35);
}
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.calc-col { border: 1px solid var(--line-soft); border-radius: 6px; padding: 1.5rem 1.6rem; }
.calc-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.6rem; }
.calc-them .calc-label { color: var(--rust); }
.calc-us .calc-label { color: var(--accent-deep); }
.calc-us { border-color: var(--accent); border-width: 1.5px; background: color-mix(in srgb, var(--accent) 5%, var(--paper-3)); }
.calc-big { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.calc-them .calc-big { color: var(--rust); }
.calc-us .calc-big { color: var(--accent-deep); }
.calc-big span { font-family: var(--mono); font-weight: 400; font-size: 1rem; margin-left: 0.2rem; }
.calc-col p { font-family: var(--mono); font-size: 0.72rem; margin-top: 0.7rem; color: var(--ink-3); }
.calc-verdict {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; margin-top: 2rem;
}
.calc-verdict strong { color: var(--accent-deep); font-style: normal; }

/* ============ PRICING ============ */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.tier {
  background: var(--paper-3); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 1.7rem 1.5rem; position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(13, 22, 34, 0.09); }
.tier-flag { border: 1.5px solid var(--accent); }
.flag {
  position: absolute; top: -0.7rem; left: 1.2rem;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  background: var(--accent); color: var(--paper-3);
  padding: 0.22rem 0.6rem; border-radius: 3px;
}
.tier h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.tier-price { font-family: var(--serif); font-weight: 900; font-size: 2.5rem; line-height: 1; }
.tier-price span { font-family: var(--mono); font-weight: 400; font-size: 0.85rem; }
.tier-vol {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--accent-deep); margin: 0.8rem 0 0.6rem;
  padding-bottom: 0.8rem; border-bottom: 1px dotted var(--line);
}
.tier-note { font-size: 0.87rem; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.tiers-foot {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-align: center; margin-top: 2.2rem;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

/* ============ GUIDES ============ */
.guide-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem; gap: 0.8rem;
}
.guide-links a {
  border: 1px solid var(--line-soft); border-radius: 5px;
  background: var(--paper-3); color: var(--ink);
  padding: 1rem 1.1rem; text-decoration: none; font-weight: 600;
}
.guide-links a:hover { border-color: var(--accent); color: var(--accent-deep); }
.guide {
  max-width: 760px; margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.2rem, 4vw, 3rem);
}
.guide h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02;
  margin: 0.8rem 0 1.3rem;
}
.guide h2 { font-size: 1.45rem; margin: 2.6rem 0 0.9rem; }
.guide p, .guide li { font-size: 1rem; line-height: 1.75; }
.guide ul, .guide ol { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.guide-note {
  margin: 2rem 0; padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent); background: var(--paper-2);
}
.guide-source {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px dotted var(--line);
  font-family: var(--mono); font-size: 0.72rem;
}
.guide-source a { color: var(--accent-deep); }
.guide-next { margin-top: 2.5rem; }
.guide-next a { color: var(--accent-deep); font-weight: 600; }

/* ============ FAQ ============ */
.faq-list { max-width: 46rem; }
.faq-list details { border-bottom: 1px solid rgba(246, 241, 231, 0.18); }
.faq-list summary {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem;
  padding: 1.3rem 2.4rem 1.3rem 0; cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: #6fbfa4; transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 0 1.5rem; max-width: 42rem;
  font-size: 0.98rem; color: rgba(246, 241, 231, 0.8);
}

/* ============ CLOSING ============ */
.closing { text-align: center; }
.closing .exhibit-label { justify-content: center; }
.closing .exhibit-label::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.closing h2, .closing .section-lede { margin-left: auto; margin-right: auto; }
.capture-center { margin: 0 auto; }

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line-soft);
  max-width: 1080px; margin: 0 auto;
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 2.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
  font-size: 0.9rem;
}
.wordmark-foot { font-family: var(--serif); font-weight: 900; font-size: 1.1rem; }
.foot p { color: color-mix(in srgb, var(--ink) 65%, transparent); }
.foot-links a { font-size: 0.88rem; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.foot-links { display: flex; gap: 1rem; }
.foot-legal {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.7; letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--ink) 48%, transparent) !important;
  border-top: 1px dotted var(--line-soft); padding-top: 1.4rem; margin-top: 0.6rem;
}

/* ============ PROSE (privacy) ============ */
.prose { max-width: 44rem; display: grid; gap: 1.1rem; margin-top: 2rem; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tier, .btn { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-visual { min-height: 380px; margin-top: 1.5rem; }
  .quotes, .steps, .calc-inputs { grid-template-columns: 1fr; }
  .code-cards { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
  .capture input[type="email"] { width: 100%; border-radius: 4px; border-right: 1.5px solid var(--ink); margin-bottom: 0.6rem; }
  .capture .btn { border-radius: 4px; width: 100%; }
  .card-back { display: none; }
  .stamp { right: 0; }
  .guide-links { grid-template-columns: 1fr; }
}
