:root {
  --bg: #fff7e8;
  --bg-glow: #ffe3a3;
  --surface: #ffffff;
  --surface-2: #fffbf3;
  --ink: #1d2340;
  --muted: #5a6075;
  --line: #eadfcb;
  --sun: #ffb627;
  --sun-ink: #7a4b00;
  --sun-soft: #fff0c7;
  --consensus: #3e7cb1;
  --consensus-soft: #e6f0f9;
  --spread: #8a6fd1;
  --accent: #e8611a;
  --accent-ink: #ffffff;
  --error: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 35, 64, 0.06), 0 12px 32px rgba(29, 35, 64, 0.08);
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12162a;
    --bg-glow: #3a2f12;
    --surface: #1b2038;
    --surface-2: #20264a;
    --ink: #f4f1ea;
    --muted: #a9aec4;
    --line: #2c3252;
    --sun: #ffc247;
    --sun-ink: #ffd98a;
    --sun-soft: #3d3215;
    --consensus: #7fb2e5;
    --consensus-soft: #1f2d48;
    --spread: #b6a2f0;
    --accent: #ff8a4c;
    --accent-ink: #1a1206;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--bg-glow), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.top {
  max-width: 1120px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.top-cta {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.top-cta:hover { border-color: var(--accent); }
@media (max-width: 400px) {
  .brand { font-size: 1.05rem; gap: 8px; }
  .top-cta { font-size: 0.88rem; padding: 7px 12px; }
}

/* Hero */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero {
  display: grid; gap: 40px; align-items: center;
  padding: 32px 0 56px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 56px 0 88px; }
}
.eyebrow {
  margin: 0 0 14px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; color: var(--sun-ink);
  display: inline-block; background: var(--sun-soft); padding: 4px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.sub { font-size: 1.2rem; color: var(--muted); margin: 18px 0 28px; max-width: 34em; }

.button, .join-form button, .share button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1.05rem/1 var(--font-body);
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 15px 24px; min-height: 48px;
  text-decoration: none; cursor: pointer;
}
.button:hover, .join-form button:hover, .share button:hover { filter: brightness(1.06); }
.join-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Illustrative comparison card */
.demo {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.demo-day { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.tag {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px;
}
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "label note";
  gap: 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); align-items: center;
}
.row .label { grid-area: label; font-weight: 600; }
.row .val { grid-area: val; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .val .t { font-weight: 700; }
.row .note { grid-area: note; text-align: right; color: var(--muted); font-size: 0.85rem; }
.qual { font-weight: 500; font-style: normal; color: var(--muted); white-space: nowrap; }
.row.sunshine { background: var(--sun-soft); box-shadow: inset 4px 0 0 var(--sun); }
.row.sunshine .qual { color: var(--sun-ink); }
.row.consensus { background: var(--consensus-soft); box-shadow: inset 4px 0 0 var(--consensus); }

.spread { margin-top: 16px; padding: 12px 12px 4px; }
.spread-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.spread-head .label { font-weight: 600; }
.spread-text { color: var(--muted); }
.track { position: relative; height: 28px; margin: 10px 8px 4px; }
.track .range {
  position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--consensus), var(--spread), var(--sun));
  opacity: 0.55;
}
.pin {
  position: absolute; top: 6px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--muted);
}
.pin-c { left: 0%; }
.pin-b { left: 28.6%; }
.pin-a { left: 100%; }
.pin-consensus { border-color: var(--consensus); }
.pin-sun { border-color: var(--sun); background: var(--sun); }
.demo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Three views */
.views { padding: 24px 0 56px; }
.views h2, .join h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
.cards { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 10px 0 0; color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.swatch-sun { background: var(--sun); }
.swatch-consensus { background: var(--consensus); }
.swatch-spread { background: var(--spread); }
.positioning {
  margin: 28px 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-align: center;
}

/* Waitlist */
.join {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); padding: 32px 20px; margin-bottom: 56px; text-align: center;
}
@media (min-width: 640px) { .join { padding: 48px 40px; } }
.join-lead { color: var(--muted); max-width: 34em; margin: 12px auto 24px; }
.join-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
@media (min-width: 560px) { .join-form { flex-direction: row; } }
.join-form input[type="email"], .share input {
  flex: 1; min-width: 0; min-height: 48px; font: 400 1.05rem var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-weight: 600; margin: 12px 0 0; }
.joined { max-width: 520px; margin: 0 auto; }
.joined .ok { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.share { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .share { flex-direction: row; } }
.fine { font-size: 0.9rem; color: var(--muted); margin: 18px 0 0; }

/* Footer */
.foot {
  max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.foot .severe { margin: 0 0 14px; max-width: 46em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .copy { margin: 14px 0 0; }

/* Text pages (privacy, joined, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; }
.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; margin: 16px 0 6px; }
.page h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 24px; }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.page .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
