:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --alt: #f1ebe0;
  --ink: #17231d;
  --muted: #55625a;
  --primary: #1d5c43;
  --primary-ink: #ffffff;
  --accent: #f2a33a;
  --line: #e2d9ca;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #18221c;
    --alt: #152019;
    --ink: #eef2ee;
    --muted: #a8b5ad;
    --primary: #4fb487;
    --primary-ink: #0d1611;
    --accent: #f2a33a;
    --line: #2a372f;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.button-secondary {
  border-color: var(--primary);
  color: var(--primary);
}

.button-ghost {
  min-height: 40px;
  padding: 0 18px;
  border-color: var(--line);
  color: var(--ink);
}

.button-block {
  width: 100%;
}

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 0.9rem;
  font-weight: 600;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}

.steps p,
.download p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

.download {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download > p:first-of-type {
  margin-bottom: 20px;
}

.download .meta {
  margin: 10px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details ol {
  padding-left: 20px;
  color: var(--muted);
}

details p {
  font-size: 0.95rem;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 40px;
  }

  .actions .button {
    width: 100%;
  }
}

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

  .button {
    transition: none;
  }
}
