/* ————— Metergraph brand tokens (from the promo composition) ————— */
:root {
  --paper: #e8edf3;
  --paper-deep: #dfe6ee;
  --card: #fbfcfe;
  --ink: #0b1220;
  --ink-70: rgba(11, 18, 32, 0.72);
  --ink-45: rgba(11, 18, 32, 0.45);
  --ink-12: rgba(11, 18, 32, 0.12);
  --ink-08: rgba(11, 18, 32, 0.08);
  --emerald: #10b981;
  --emerald-deep: #0b9a6d;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --red: #dd4444;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* Dot grid on a fixed layer — background-attachment: fixed is broken on iOS Safari. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--ink-12) 1px, transparent 1.4px);
  background-size: 40px 40px;
  pointer-events: none;
}

::selection { background: var(--emerald); color: #fff; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; }

.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 20px;
}

.delta-good { color: var(--emerald-deep); }
.delta-warn { color: var(--amber); }

/* ————— Buttons ————— */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #1c2740; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink-12); color: var(--ink); background: transparent; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ————— Nav ————— */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.wordmark-sm { font-size: 20px; }
.wm-graph { color: var(--emerald); }
.wm-spike { color: var(--amber); font-size: 0.55em; vertical-align: super; margin-left: 1px; }
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-70);
  text-decoration: none;
  font-size: 15.5px;
}
.nav-links a:hover { color: var(--ink); }

/* ————— Hero ————— */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--emerald-deep);
}
.lede {
  font-size: 19.5px;
  color: var(--ink-70);
  max-width: 34em;
  margin-bottom: 30px;
}

/* entrance */
.hero-copy, .hero .video-card { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .video-card { animation-delay: 0.15s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ————— Waitlist form ————— */
.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist input[type="email"], .waitlist select {
  font-family: var(--display);
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink-12);
  background: var(--card);
  color: var(--ink);
  min-width: 0;
}
.waitlist input[type="email"] { flex: 1 1 220px; }
.waitlist select {
  flex: 0 1 auto;
  color: var(--ink-70);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230b1220' stroke-opacity='0.55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note {
  font-size: 14px;
  color: var(--ink-45);
  margin-top: 12px;
  max-width: 36em;
}
.form-status { font-family: var(--mono); font-size: 14.5px; margin-top: 8px; min-height: 1.4em; }
.form-status.ok { color: var(--emerald-deep); }
.form-status.err { color: var(--red); }
.waitlist.done .waitlist-row, .waitlist.done .form-note { display: none; }
.waitlist.done .form-status { font-size: 17px; }

/* ————— Route ledger marquee ————— */
.ledger {
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  background: rgba(251, 252, 254, 0.6);
  overflow: hidden;
  padding: 13px 0;
}
.ledger-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-45);
  animation: ledger 55s linear infinite;
  will-change: transform;
}
.ledger-track b { color: var(--ink-70); font-weight: 500; }
.ledger-track b.delta-good { color: var(--emerald-deep); }
.ledger-track b.delta-warn { color: var(--amber); }
.lg-spike { color: var(--amber); font-size: 11px; }
@keyframes ledger {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ————— Video card ————— */
.video-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(11, 18, 32, 0.05),
    0 16px 40px -18px rgba(11, 18, 32, 0.25);
}
.vc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 12px;
  color: var(--ink-45);
  background: var(--paper);
  border-bottom: 1px solid var(--ink-08);
}
.vc-dots { display: inline-flex; gap: 5px; }
.vc-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-12);
}
.vc-meta { margin-left: auto; }
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

/* ————— Sections ————— */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  max-width: 21em;
}
.section-lede {
  font-size: 18.5px;
  color: var(--ink-70);
  max-width: 40em;
  margin-bottom: 40px;
}
.section-alt {
  max-width: none;
  background: var(--paper-deep);
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-alt > .kicker, .section-alt > h2, .section-alt > .section-lede { padding: 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ————— Problem cards ————— */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 20px; }
.card p { font-size: 15.5px; color: var(--ink-70); }
.card blockquote {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--ink);
}
.attrib { font-size: 12.5px; color: var(--ink-45); margin-top: 22px; }

/* ————— The loop ————— */
.loop {
  list-style: none;
  margin: 40px auto 56px;
  padding: 0;
  position: relative;
}
.loop-step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--ink-08);
}
.loop-step:last-child { border-bottom: 1px solid var(--ink-08); }
.loop-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald-deep);
  padding-top: 5px;
}
.loop-step h3 { font-size: 21px; margin-bottom: 6px; }
.loop-step p { font-size: 16px; color: var(--ink-70); max-width: 44em; margin: 0; }
.loop-step b { font-weight: 600; }

/* ————— Scorecard mock ————— */
.scorecard {
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(11, 18, 32, 0.25);
}
.sc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px;
  font-size: 13px;
  color: var(--ink-70);
  background: var(--paper);
  border-bottom: 1px solid var(--ink-08);
}
.sc-verdict { color: var(--emerald-deep); font-weight: 600; }
.sc-body { padding: 18px 22px 8px; }
.sc-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-45);
  margin: 0 0 6px 190px;
  max-width: calc(100% - 250px);
}
.sc-row {
  display: grid;
  grid-template-columns: 174px 1fr 56px;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
}
.sc-label { font-size: 14.5px; color: var(--ink-70); }
.sc-val { font-size: 13px; text-align: right; }
.sc-track {
  position: relative;
  height: 22px;
  background: var(--paper);
  border-radius: 6px;
}
.sc-margin {
  position: absolute;
  left: 25%; top: -2px; bottom: -2px;
  border-left: 2px dashed rgba(245, 158, 11, 0.65);
}
.sc-zero {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  border-left: 1px solid var(--ink-12);
}
.sc-ci {
  position: absolute;
  top: 8px;
  height: 6px;
  background: rgba(16, 185, 129, 0.35);
  border-radius: 3px;
}
.sc-ci i {
  position: absolute;
  top: -3px;
  width: 12px; height: 12px;
  margin-left: -6px;
  background: var(--emerald);
  border-radius: 50%;
}
.sc-foot {
  padding: 12px 22px 16px;
  font-size: 12px;
  color: var(--ink-45);
  border-top: 1px solid var(--ink-08);
  margin: 10px 0 0;
}

/* ————— Positioning band ————— */
.band {
  background: var(--ink);
  color: rgba(232, 237, 243, 0.75);
  padding: 56px 24px;
}
.band p {
  max-width: 46em;
  margin: 0 auto;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.band b { color: #fff; font-weight: 500; }
.band b, .band p { text-wrap: pretty; }

/* ————— Catalog ————— */
.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cat-item {
  background: var(--card);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -16px rgba(11, 18, 32, 0.3);
}
.cat-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.cat-item p { font-size: 13.8px; color: var(--ink-70); margin: 0; }

/* ————— Trust ————— */
.trust {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
}
.trust li {
  padding: 20px 0;
  border-top: 1px solid var(--ink-08);
}
.trust h3 { font-size: 18.5px; margin-bottom: 6px; }
.trust h3::before { content: "\2733\00a0\00a0"; color: var(--amber); font-size: 0.75em; }
.trust p { font-size: 15px; color: var(--ink-70); margin: 0; }

/* ————— FAQ ————— */
.faq { max-width: 780px; }
.faq details {
  border-top: 1px solid var(--ink-08);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--ink-08); }
.faq summary {
  font-size: 18px;
  font-weight: 500;
  padding: 16px 32px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 14px;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--emerald-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  font-size: 15.5px;
  color: var(--ink-70);
  margin: 0 0 18px;
  max-width: 42em;
}

/* ————— Closer ————— */
.closer { text-align: center; padding-bottom: 120px; }
.closer h2, .closer .section-lede { margin-left: auto; margin-right: auto; }
.closer .waitlist { max-width: 620px; margin: 0 auto; }
.closer .waitlist-row { justify-content: center; }
.closer .form-note { margin-left: auto; margin-right: auto; }

/* ————— Footer ————— */
.footer {
  border-top: 1px solid var(--ink-08);
  padding: 32px 24px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p { font-size: 12.5px; color: var(--ink-45); margin: 0; }
.footer .wordmark { text-decoration: none; }

/* ————— Responsive ————— */
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 40px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .nav { gap: 16px; padding: 20px; }
  .nav-links { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .sc-row { grid-template-columns: 110px 1fr 44px; gap: 10px; }
  .sc-label { font-size: 12.5px; }
  .sc-axis { margin-left: 120px; max-width: calc(100% - 174px); }
  .sc-head, .sc-body { padding-left: 16px; padding-right: 16px; }
  .sc-foot { padding: 12px 16px 16px; }
  .loop-step { grid-template-columns: 48px 1fr; gap: 14px; }
  .section { padding: 64px 20px; }
  .hero { padding: 28px 20px 56px; }
  .waitlist select { flex: 1 1 auto; }
  .waitlist-row .btn { flex: 1 1 100%; padding: 15px 24px; }
  .pr-card { padding: 20px 18px; }
  .pr-diff { font-size: 12px; padding: 12px 14px; }
  .band { padding: 44px 20px; }
  .lede { font-size: 18px; }
  .vc-bar { font-size: 10.5px; gap: 8px; padding: 10px 12px; }
  .vc-dots i { width: 7px; height: 7px; }
}

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .pr-card { animation: none; }
  .ledger-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pr-evidence li::before, .pr-evidence li::after { transition: none; }
  .cat-item, .btn { transition: none; }
}
