/* The app's palette (src/index.css), so the site and the app read as one thing */
:root {
  color-scheme: light dark;
  --bg: #f5f3ec;
  --surface: #ffffff;
  --surface-2: #ebe8dd;
  --ink: #1f2a22;
  --muted: #5d675e;
  --line: #ddd9cb;
  --brand: #2f5d3a;
  --brand-ink: #ffffff;
  --brand-soft: #dfeadb;
  --done: #2f8f4e;
  --todo: #98a09a;
  --sky-top: #dce8ef;
  --sky-bottom: #f1efe4;
  --fell-far: #a9bca5;
  --fell-mid: #6f8f6c;
  --fell-near: #2f5d3a;
  --path: #f5f3ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814;
    --surface: #1b231e;
    --surface-2: #26312a;
    --ink: #e8ece6;
    --muted: #9aa69c;
    --line: #2f3b33;
    --brand: #6dbb85;
    --brand-ink: #0f1a12;
    --brand-soft: #23382a;
    --done: #4cc074;
    --todo: #6b756e;
    --sky-top: #1c2a33;
    --sky-bottom: #26312a;
    --fell-far: #34463a;
    --fell-mid: #2a3a2f;
    --fell-near: #1b2a20;
    --path: #9aa69c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.top, main > section, footer { width: min(1080px, 100% - 32px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 850; }
h1 span { color: var(--brand); }
.lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.hero-art { position: relative; margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 28px; filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.12)); }
.peaks circle { stroke: #fff; stroke-width: 3; }
.peaks .done { fill: var(--done); }
.peaks .todo { fill: var(--todo); }
.tally {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
}
.tally strong { color: var(--done); }

.features { padding: 56px 0; border-top: 1px solid var(--line); }
.features h2, .early h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.grid h3 { font-size: 19px; margin: 16px 0 8px; }
.grid p { color: var(--muted); font-size: 16px; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }

.install {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-block: 32px; padding: 36px; border-radius: 24px;
  background: var(--brand); color: var(--brand-ink);
}
.install h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.install p, .install li { opacity: 0.92; }
.install ul { margin: 14px 0 0; padding-left: 20px; }
.install .btn { background: var(--brand-ink); color: var(--brand); }

.early { padding: 48px 0 24px; }
.early p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }

footer { padding: 48px 0 40px; margin-top: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
footer a { color: inherit; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .install { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}
