:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --text: #1b1f1c;
  --muted: #5d665f;
  --line: #e3e6e1;
  --accent: #1f7a4d;
  --accent-soft: #e6f3ec;
  --code: #f1f3ef;
  --radius: 12px;
  --max: 960px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --surface: #1a1e1b;
    --text: #e8ece8;
    --muted: #9aa49c;
    --line: #2a302c;
    --accent: #4cc38a;
    --accent-soft: #1b2e24;
    --code: #222824;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); margin-left: 8px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

section { padding: 36px 0; }
section h2 { font-size: 24px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }

.price { font-size: 32px; font-weight: 700; margin: 6px 0; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.card ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); }
.card.featured { border-color: var(--accent); }

code { background: var(--code); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

.legal { padding: 40px 0 60px; max-width: 760px; }
.legal h1 { font-size: 32px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 560px) {
  nav a { margin-left: 12px; font-size: 14px; }
  .btn.secondary { margin: 10px 0 0; }
}
