:root {
  --bg: #fbf9f4; --surface: #ffffff; --fg: #1f2119; --muted: #646456; --line: #e4e0d3;
  --accent: #5a6b23; --accent-fg: #ffffff; --accent-soft: #eef1df; --warn: #9a4a1c;
  --radius: 10px; --max: 1080px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15160f; --surface: #1d1f16; --fg: #ecebe2; --muted: #a5a493; --line: #33352a;
          --accent: #b4c76a; --accent-fg: #15160f; --accent-soft: #2a2e1b; --warn: #e49261; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); margin-top: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 32px 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
header.top nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
header.top nav a.btn { color: var(--accent-fg); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px;
       padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.hero { padding: 56px 0 32px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
.grid3 { 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: 18px; }
.card h3 { font-size: 17px; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 0; }
.stats div b { display: block; font-size: 26px; }
.stats div span { color: var(--muted); font-size: 14px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 12px;
        font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); margin: 0 4px 4px 0; }
.due-soon { color: var(--warn); font-weight: 600; }

.price { font-size: 40px; font-weight: 700; }
.price span { font-size: 16px; color: var(--muted); font-weight: 400; }
ul.checks { padding-left: 0; list-style: none; }
ul.checks li { padding-left: 24px; position: relative; margin-bottom: 6px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

form.signup { display: grid; gap: 12px; max-width: 520px; }
form.signup label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
form.signup input[type=email], form.signup input[type=text], form.signup select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; }
form.signup fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; }
form.signup fieldset label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -10000px; }
.notice { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent-soft); }
.notice.err { border-color: var(--warn); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
