/* ───────────────────────────────────────────────────────────────────────────
   worth. — homepage (the campaign site, design section 8a)
   Builds on style.css tokens. Argument first, tool one click away.
─────────────────────────────────────────────────────────────────────────── */

body.home { background: var(--surface); }
/* style.css boxes <main> for the checker; the homepage runs full-bleed. */
main.home-main { max-width: none; padding: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.h-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.home-header { gap: 28px; padding: 18px 40px; justify-content: flex-start; }
.home-nav { gap: 24px; font-size: 15px; font-weight: 600; }
.home-nav a { color: var(--purple); }
.home-nav a:hover { color: var(--black); }
.header-actions { margin-left: auto; display: flex; gap: 12px; }
.header-actions .btn { text-decoration: none; }

.logo-tile--sm { font-size: 14px; padding: 4px 8px 5px; border-radius: 6px; }
.logo-tile--light { background: #fff; border-color: #fff; color: var(--black); font-size: 20px; }
.dot--purple { color: var(--purple); }

.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 12px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }
a.btn-primary, a.btn-primary:hover { color: #fff; }
a.btn-ghost:hover { color: var(--black); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.h-hero {
  background: var(--blue-light);
  border-bottom: 2px solid var(--border);
  padding: 76px 0 68px;
}
.h-hero-inner { max-width: 1200px; }
.pill {
  display: inline-flex;
  padding: 7px 15px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.h-hero-title {
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-hero-sub {
  margin-top: 24px;
  max-width: 680px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}
.h-hero-form {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  max-width: 720px;
}
.h-hero-input {
  font-size: 17px;
  padding: 15px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
}
.h-hero-alt { margin-top: 14px; font-size: 15px; }
.h-hero-alt a { color: var(--black); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--border);
}
.h-stat { padding: 28px 32px; border-right: 2px solid var(--border); }
.h-stat:last-child { border-right: 0; }
.h-stat strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.h-stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text-secondary); }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.h-section { padding: 72px 0; border-bottom: 2px solid var(--border); }
.h-section--dim { background: var(--surface-dim); }
.h-section--dark { background: var(--black); color: #fff; }
.h-section--yellow { background: var(--yellow); }

.h-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.h-section--dark .h-kicker { color: #9A9AB0; }
.h-section--yellow .h-kicker { color: var(--text-secondary); }

.h-split { display: flex; gap: 64px; align-items: flex-start; }
.h-split > .h-kicker { width: 200px; flex: none; padding-top: 10px; }
.h-body { flex: 1; min-width: 0; }

.h-title {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 760px;
  text-wrap: pretty;
}
.h-wrap > .h-kicker + .h-title { margin-top: 12px; }
.h-title--sm { font-size: clamp(28px, 3vw, 34px); }

.h-prose { margin-top: 22px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.6; }
.h-prose p { text-wrap: pretty; }
.h-prose--single { display: block; font-size: 17px; max-width: 660px; }
.h-meta { margin-top: 28px; font-size: 14px; color: var(--text-muted); }

.h-lede { margin-top: 16px; max-width: 460px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.h-lede--wide { max-width: 580px; font-size: 17px; color: var(--text-primary); }
.h-cta { margin-top: 26px; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.h-steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-step {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px 28px;
}
.h-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-weight: 800;
  font-size: 15px;
}
.h-step h3 { margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.h-step p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

/* ─── Data ───────────────────────────────────────────────────────────────── */
.h-sources { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-source { border: 2px solid var(--border); border-radius: 16px; padding: 26px 28px; }
.h-source-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.h-source h3 { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.h-source p { margin-top: 12px; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.h-source .h-source-foot { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.h-note {
  margin-top: 20px;
  padding: 22px 26px;
  border: 2px dashed #9A9AB0;
  border-radius: 16px;
  background: #FBFBFD;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ─── What we won't do ───────────────────────────────────────────────────── */
.h-rules { margin-top: 30px; list-style: none; border-bottom: 1px solid #3A3A4A; }
.h-rules li {
  display: grid;
  grid-template-columns: 32px 300px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid #3A3A4A;
  align-items: baseline;
}
.h-rules span { font-size: 20px; font-weight: 800; color: var(--pink-soft); }
.h-rules strong { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.h-rules p { font-size: 16px; line-height: 1.55; color: #D8D8E2; text-wrap: pretty; }

/* ─── Extension ──────────────────────────────────────────────────────────── */
.h-extension { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h-soon {
  margin-top: 22px;
  display: inline-flex;
  padding: 10px 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.h-ext-card {
  max-width: 400px;
  justify-self: center;
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 8px 8px 0 var(--black);
}
.h-ext-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h-ext-top .logo-tile { background: #fff; color: var(--black); border-color: #fff; }
.h-ext-body { padding: 18px 18px 22px; background: var(--pink); }
.h-ext-badge {
  display: inline-flex;
  padding: 3px 8px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8E1655;
}
.h-ext-head { margin-top: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.h-ext-range { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.025em; }
.h-ext-sub { margin-top: 6px; font-size: 14px; line-height: 1.45; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.h-faq { max-width: 800px; border-bottom: 2px solid var(--border); }
.h-faq details { border-top: 2px solid var(--border); padding: 22px 0; }
.h-faq summary {
  display: flex; align-items: center; gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; margin-left: auto; color: var(--text-muted); }
.h-faq details[open] summary::after { content: "–"; color: var(--black); }
.h-faq details p { margin-top: 12px; max-width: 660px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.h-footer { background: var(--black); color: #D8D8E2; padding: 48px 0 40px; }
.h-footer-inner { display: flex; gap: 56px; flex-wrap: wrap; }
.h-footer-inner p { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.h-footer-links { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 2; }
.h-footer-links a { color: #D8D8E2; }
.h-footer-links a:hover { color: #fff; }
.h-footer-fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid #3A3A4A; font-size: 13px; color: #9A9AB0; }

/* ─── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .h-split { flex-direction: column; gap: 16px; }
  .h-split > .h-kicker { width: auto; padding-top: 0; }
  .h-steps, .h-sources, .h-extension { grid-template-columns: 1fr; }
  .h-extension { gap: 40px; }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stat:nth-child(2) { border-right: 0; }
  .h-stat:nth-child(-n+2) { border-bottom: 2px solid var(--border); }
  .h-rules li { grid-template-columns: 32px 1fr; }
  .h-rules li p { grid-column: 2; }
  .home-nav { display: none; }
}
@media (max-width: 600px) {
  .h-wrap { padding: 0 16px; }
  .home-header { padding: 14px 16px; }
  .header-actions .btn-ghost { display: none; }
  .h-hero { padding: 48px 0 44px; }
  .h-hero-form { flex-direction: column; }
  .h-section { padding: 52px 0; }
  .h-stat { padding: 22px 18px; }
  .h-stat strong { font-size: 30px; }
}

/* Live stats note */
.h-stats-note { text-align: center; font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }

/* Link to Andrew's site, under "Who's behind it" */
.h-creator { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 18px 10px 10px;
             border: 2px solid var(--black); border-radius: var(--radius-lg); background: #fff; color: var(--black); }
.h-creator:hover { color: var(--black); background: var(--yellow); }
.h-creator img { width: 48px; height: auto; image-rendering: pixelated; border-radius: 8px; background: var(--pink); }
.h-creator span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.h-creator strong { font-size: 15px; }
