/* ================================================================
   Graft — Shared design system
   Used by /vs/*, /for/*, /mtd-explained, /404
   index.html / privacy.html / terms.html keep their own inline CSS.
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow: #F5A623;
  --yellow-bright: #FFC845;
  --orange: #E8711A;
  --orange-deep: #C45A0E;
  --cardboard: #C4955A;
  --warm-white: #FDF6EC;
  --paper: #FFFCF5;
  --sand: #F2E8DA;
  --charcoal: #1A1A1A;
  --jet: #0E0E0E;
  --ink: #050505;
  --line: rgba(255,255,255,0.10);
  --line-dark: rgba(26,26,26,0.10);

  --display: 'Oswald', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --container: 1240px;
  --gutter: 28px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================================================================
   NAV
   ================================================================ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.top .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link img { height: 44px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 120ms ease;
}
.nav-menu a:hover { color: var(--yellow); }
.nav-menu a.is-active { color: var(--yellow); }

.nav-back {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 120ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-back::before { content: '←'; color: var(--yellow); transition: transform 200ms ease; }
.nav-back:hover { color: var(--yellow); }
.nav-back:hover::before { transform: translateX(-3px); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
  border-radius: 0;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 4px 4px 0 var(--charcoal);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--charcoal);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--charcoal);
}
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--charcoal); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-yellow {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
}
.btn-yellow:hover { background: var(--orange); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--charcoal); }
.nav-cta { padding: 12px 22px; font-size: 0.88rem; box-shadow: 3px 3px 0 #000; }

/* ================================================================
   SECTION LABEL & HAZARD
   ================================================================ */
.section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--orange); }
.section-label.dark { color: var(--yellow); }
.section-label.dark::before { background: var(--yellow); }

.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--charcoal) 18px 36px);
}

/* ================================================================
   PAGE HERO (dark, with hazard tape bottom)
   ================================================================ */
.page-hero {
  background: var(--jet);
  color: #fff;
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 80% 30%, rgba(245,166,35,0.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 49px, rgba(255,255,255,0.025) 49px 50px);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--charcoal) 18px 36px);
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.page-hero .eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--yellow); }

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: #fff;
  margin-bottom: 22px;
  max-width: 880px;
}
.page-hero h1 span { color: var(--yellow); }
.page-hero h1 em { font-style: normal; color: var(--orange); }

.page-hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.page-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.page-hero .meta-row strong { color: var(--yellow); font-weight: 600; }

/* ================================================================
   VS HERO (head-to-head)
   ================================================================ */
.vs-hero {
  background: var(--jet);
  color: #fff;
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}
.vs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(245,166,35,0.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 49px, rgba(255,255,255,0.025) 49px 50px);
  pointer-events: none;
}
.vs-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--charcoal) 18px 36px);
}
.vs-hero .container { position: relative; z-index: 1; text-align: center; }

.vs-stack {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 44px;
}
.vs-name {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.vs-name.us { color: var(--yellow); text-align: right; }
.vs-name.them { color: rgba(255,255,255,0.65); text-align: left; }
.vs-divider {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--orange);
  padding: 6px 16px;
  border: 2px solid var(--orange);
}

/* ================================================================
   TLDR VERDICT BANNER
   ================================================================ */
.tldr {
  background: var(--paper);
  padding: 60px 0;
  border-bottom: 1px solid var(--line-dark);
}
.tldr-card {
  background: var(--charcoal);
  color: #fff;
  padding: 40px 48px;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  box-shadow: 8px 8px 0 var(--yellow);
}
.tldr-stamp {
  width: 88px;
  height: 88px;
  background: var(--yellow);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  line-height: 0.95;
}
.tldr-stamp .small { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.18em; }
.tldr-stamp .big { font-size: 1.5rem; padding: 4px 0; }
.tldr-content .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  display: block;
}
.tldr-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 12px;
}
.tldr-content p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}
.tldr-content p strong { color: var(--yellow); }

/* ================================================================
   COMPARE TABLE
   ================================================================ */
.compare-section { background: var(--paper); padding: 100px 0; }
.compare-section .lead {
  max-width: 720px;
  margin-bottom: 50px;
}
.compare-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}
.compare-section h2 span { color: var(--orange); }
.compare-section .lead p { color: rgba(26,26,26,0.7); font-size: 1.05rem; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 2px solid var(--charcoal);
  box-shadow: 8px 8px 0 var(--charcoal);
}
.compare-table thead th {
  padding: 22px 18px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-align: center;
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  border-bottom: 3px solid var(--yellow);
  vertical-align: middle;
}
.compare-table thead th.graft {
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 1.1rem;
}
.compare-table tbody td {
  padding: 18px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.7);
}
.compare-table tbody td:first-child {
  text-align: left;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.compare-table tbody td.graft-col { background: rgba(245,166,35,0.08); color: var(--charcoal); font-weight: 600; }
.compare-table .check { color: #16A34A; font-size: 1.4rem; font-weight: 700; }
.compare-table .cross { color: rgba(26,26,26,0.2); font-size: 1.3rem; }
.compare-table .partial { font-style: italic; font-size: 0.85rem; color: var(--cardboard); }
.compare-table .price-row td {
  font-family: var(--display);
  font-size: 1.05rem;
  padding: 22px 14px;
  color: var(--charcoal);
  background: var(--sand);
  border-top: 3px solid var(--charcoal);
}
.compare-table .price-row td.graft-col { background: var(--yellow); color: var(--charcoal); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================================================================
   SIDE-BY-SIDE WHEN-TO-CHOOSE
   ================================================================ */
.when-section {
  background: var(--charcoal);
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.when-section::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 99px, rgba(255,255,255,0.025) 99px 100px);
  pointer-events: none;
}
.when-section .container { position: relative; z-index: 1; }
.when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 30px;
}
.when-card {
  background: var(--jet);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}
.when-card.us { box-shadow: 8px 8px 0 var(--yellow); border-color: var(--yellow); }
.when-card.them { box-shadow: 8px 8px 0 var(--orange); }
.when-card .pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 22px;
}
.when-card.us .pill { background: var(--yellow); color: var(--charcoal); }
.when-card.them .pill { background: rgba(232,113,26,0.12); color: var(--orange); border: 1px solid var(--orange); }
.when-card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 18px;
}
.when-card ul { list-style: none; margin-top: 12px; }
.when-card li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.when-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 2px;
  background: var(--yellow);
}
.when-card.them li::before { background: var(--orange); }

/* ================================================================
   CTA BLOCK
   ================================================================ */
.cta-block {
  background: var(--jet);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--charcoal) 18px 36px);
}
.cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 500px at 50% 60%, rgba(245,166,35,0.18), transparent 60%);
  pointer-events: none;
}
.cta-block .container { position: relative; z-index: 1; }
.cta-block h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 22px;
}
.cta-block h2 span { color: var(--yellow); }
.cta-block p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-block .form-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* WAITLIST FORM */
.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 6px 6px 0 rgba(245,166,35,0.4);
  transition: box-shadow 200ms ease;
}
.waitlist-form:focus-within { box-shadow: 6px 6px 0 var(--yellow); }
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--body);
  border: 2px solid rgba(255,255,255,0.18);
  border-right: none;
  background: rgba(255,255,255,0.04);
  color: #fff;
  outline: none;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.waitlist-form input[type="email"]:focus { border-color: var(--yellow); }
.waitlist-form button {
  padding: 16px 26px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}
.waitlist-form button:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-success {
  display: none;
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
}
.form-success.show { display: block; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-section { background: var(--paper); padding: 100px 0; }
.faq-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 50px; max-width: 720px; }
.faq-section h2 span { color: var(--orange); }
.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid rgba(26,26,26,0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(26,26,26,0.12); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}
.faq-question:hover { color: var(--orange); }
.faq-question .icon {
  width: 32px; height: 32px;
  background: var(--charcoal);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  transition: transform 280ms ease, background 200ms ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 0 24px;
  font-size: 1rem;
  color: rgba(26,26,26,0.75);
  line-height: 1.65;
  max-width: 700px;
}

/* ================================================================
   TLDR / CALLOUT
   ================================================================ */
.callout {
  background: rgba(245,166,35,0.08);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  margin: 22px 0;
}
.callout p { margin: 0; }

/* ================================================================
   FEATURE STRIP — generic grid of 3-6 callouts
   ================================================================ */
.feature-strip {
  background: var(--paper);
  padding: 90px 0;
}
.feature-strip h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
  max-width: 720px;
}
.feature-strip h2 span { color: var(--orange); }
.feature-strip p.sub {
  font-size: 1.05rem;
  color: rgba(26,26,26,0.7);
  max-width: 620px;
  margin-bottom: 50px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1.5px solid rgba(26,26,26,0.08);
  padding: 32px 28px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 6px 6px 0 var(--charcoal); }
.feature-card .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.95rem;
  color: rgba(26,26,26,0.7);
  line-height: 1.6;
}

/* ================================================================
   PAIN POINTS (red-ish negative) — for trade pages
   ================================================================ */
.pain-section {
  background: var(--charcoal);
  color: #fff;
  padding: 100px 0;
  position: relative;
}
.pain-section .container { position: relative; z-index: 1; }
.pain-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 18px;
  max-width: 760px;
}
.pain-section h2 span { color: var(--yellow); }
.pain-section p.sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 50px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.pain-card {
  background: var(--jet);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
}
.pain-card .x {
  width: 32px; height: 32px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
}
.pain-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}
.pain-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ================================================================
   PRICING SUMMARY (used across pages)
   ================================================================ */
.pricing-strip {
  background: var(--sand);
  padding: 90px 0;
  text-align: center;
}
.pricing-strip h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.pricing-strip .price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
}
.pricing-strip .price {
  font-family: var(--display);
  font-size: 4.5rem;
  color: var(--orange);
  line-height: 0.9;
}
.pricing-strip .per {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.55);
}
.pricing-strip .perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.6);
}
.pricing-strip .perks span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-strip .perks span::before {
  content: '✓'; color: var(--orange); font-family: var(--display); font-weight: 700;
}

/* ================================================================
   DOC LAYOUT (for /mtd-explained.html)
   ================================================================ */
.doc-wrap { background: var(--paper); padding: 80px 0 100px; }
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 110px;
  align-self: start;
}
.toc-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--charcoal);
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: rgba(26,26,26,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 120ms ease;
  line-height: 1.35;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--orange);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.toc a:hover { color: var(--orange); }

.doc-content { max-width: 760px; counter-reset: section; }
.doc-content > .intro { padding-bottom: 32px; margin-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.doc-content > .intro p {
  font-size: 1.08rem;
  color: rgba(26,26,26,0.78);
  line-height: 1.7;
  margin-bottom: 14px;
}
.doc-content > .intro p:first-child::first-letter {
  font-family: var(--display);
  font-size: 4.6rem;
  font-weight: 700;
  color: var(--orange);
  float: left;
  line-height: 0.85;
  margin: 4px 12px 0 0;
}
.doc-content > .intro a { color: var(--orange); }

.doc-section { padding: 32px 0 28px; counter-increment: section; scroll-margin-top: 96px; }
.doc-section + .doc-section { border-top: 1px solid var(--line-dark); }
.doc-section h2 {
  font-size: 1.7rem;
  color: var(--charcoal);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  letter-spacing: -0.01em;
}
.doc-section h2::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.doc-section h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin: 28px 0 12px;
}
.doc-content p, .doc-content li {
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(26,26,26,0.78);
  margin-bottom: 12px;
}
.doc-content > .doc-section ul, .doc-content > .doc-section ol {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}
.doc-content > .doc-section ul li, .doc-content > .doc-section ol li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.doc-content > .doc-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78em;
  width: 14px; height: 2px;
  background: var(--orange);
}
.doc-content > .doc-section ol { counter-reset: ord; }
.doc-content > .doc-section ol li { counter-increment: ord; }
.doc-content > .doc-section ol li::before {
  content: counter(ord, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.05em;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 600;
}
.doc-content strong { color: var(--charcoal); font-weight: 600; }
.doc-content a { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.doc-cta {
  margin: 40px 0;
  padding: 32px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: 6px 6px 0 var(--yellow);
}
.doc-cta .label-mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.doc-cta h3 { font-size: 1.5rem; color: #fff; margin-bottom: 14px; }
.doc-cta p { color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.doc-cta .btn { display: inline-flex; }

/* ================================================================
   FOOTER
   ================================================================ */
footer.site-footer {
  background: #050505;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { margin-top: 18px; font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  font-weight: 500;
}
footer ul { list-style: none; display: grid; gap: 12px; }
footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 120ms ease;
}
footer a:hover { color: var(--yellow); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .vs-stack { grid-template-columns: 1fr; gap: 18px; }
  .vs-name.us, .vs-name.them { text-align: center; }
  .when-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tldr-card { grid-template-columns: 1fr; }
  .tldr-stamp { margin: 0 auto; }
}
@media (max-width: 640px) {
  .page-hero { padding: 130px 0 70px; }
  .doc-wrap { padding: 56px 0 80px; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .waitlist-form { flex-direction: column; box-shadow: 4px 4px 0 var(--yellow); }
  .waitlist-form input[type="email"], .waitlist-form button { width: 100%; border-right: 2px solid; }
  .doc-content > .intro p:first-child::first-letter { font-size: 3.4rem; margin: 4px 8px 0 0; }
  .compare-table thead th { font-size: 0.78rem; padding: 14px 6px; }
  .compare-table tbody td { padding: 12px 6px; font-size: 0.82rem; }
}
