:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #17191c;
  --ink-2: #4a4f57;
  --line: #e3e1da;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e2efe9;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1a1d20;
    --ink: #eceae4;
    --ink-2: #a7aab0;
    --line: #2c3035;
    --accent: #5cc3a5;
    --accent-ink: #0d1f1a;
    --accent-soft: #1c2f29;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
nav { display: flex; gap: 22px; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow {
  margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0; font-size: clamp(40px, 7vw, 68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch;
}
.lede { margin: 22px 0 0; font-size: 20px; color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* Progress */
.checklist { padding: 8px 0 64px; }
.progress-card {
  position: sticky; top: 72px; z-index: 4;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 40px;
  box-shadow: 0 6px 24px -16px rgb(0 0 0 / 0.25);
}
.progress-text { display: flex; flex-direction: column; line-height: 1.3; }
.progress-text .muted { font-size: 13px; }
.progress-bar { height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit;
  transition: width 0.3s ease;
}
.link-btn {
  background: none; border: 0; padding: 4px; font: inherit; font-size: 14px; color: var(--ink-2);
  text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

/* Groups */
.group { margin-bottom: 48px; }
.group-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.group-head p { margin: 6px 0 18px; color: var(--ink-2); max-width: 65ch; }

.items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; flex: 1; min-width: 0; }
.item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  border: 2px solid var(--ink-2); display: grid; place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.box::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink);
  transform: rotate(-45deg) scale(0); transition: transform 0.15s;
}
.item input:checked + .box { background: var(--accent); border-color: var(--accent); }
.item input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.item input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }

.item-body { display: flex; flex-direction: column; }
.item-title { font-weight: 600; }
.item-desc { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.item.done .item-title { text-decoration: line-through; text-decoration-color: var(--ink-2); color: var(--ink-2); }

.go {
  flex: none; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.go::after { content: " ↗"; }
.go:hover { background: var(--accent); color: var(--accent-ink); }

.note {
  margin: 0; padding: 16px 18px; border-radius: var(--radius); font-size: 15px;
  background: var(--accent-soft); color: var(--ink);
}

/* How */
.how { padding: 72px 0; border-top: 1px solid var(--line); }
.how h2, .faq h2 { margin: 0 0 28px; font-size: 32px; letter-spacing: -0.02em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.steps h3 { margin: 14px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { padding: 72px 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }

/* Small screens */
@media (max-width: 720px) {
  body { font-size: 16px; }
  nav { gap: 14px; }
  nav a:nth-child(2) { display: none; }
  .hero { padding: 56px 0 40px; }
  .lede { font-size: 18px; }
  .progress-card { grid-template-columns: 1fr auto; gap: 10px 16px; top: 68px; }
  .progress-bar { grid-column: 1 / -1; grid-row: 2; }
  .item { flex-direction: column; align-items: stretch; gap: 10px; }
  .go { align-self: flex-start; margin-left: 36px; }
  .steps { grid-template-columns: 1fr; }
}
