:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #5b665f;
  --line: #dfe4e0;
  --accent: #0f7a55;
  --accent-ink: #ffffff;
  --accent-soft: #e3f3ec;
  --danger: #b42318;
  --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #171d1a;
    --text: #e8eeea;
    --muted: #9aa69f;
    --line: #2a332e;
    --accent: #3ccf95;
    --accent-ink: #062a1d;
    --accent-soft: #163428;
    --danger: #ff8a7a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .button's display would otherwise override the hidden attribute */
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }

.hero { padding-top: 64px; padding-bottom: 40px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 24px; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.05); }
.button:disabled { opacity: 0.6; cursor: wait; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1.1rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

section h2 { letter-spacing: -0.02em; }
.example, .pricing, .join { padding-top: 24px; padding-bottom: 32px; }
.example-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.example-head h2 { margin: 0; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 700; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.figures { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figures caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.figures th, .figures td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.figures td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures tr.total th, .figures tr.total td { font-weight: 800; }

.join form { display: grid; gap: 8px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.join label, .join legend { font-weight: 600; margin-top: 8px; }
.optional { color: var(--muted); font-weight: 400; }
input[type="email"], select {
  width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text);
}
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.choices label { font-weight: 400; margin: 0; }
.consent { font-weight: 400 !important; display: flex; gap: 8px; align-items: flex-start; }
.consent input { margin-top: 5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 4px 0 0; }
.status.error { color: var(--danger); }
.status.ok { color: var(--accent); font-weight: 600; }
.join .button { justify-self: start; margin-top: 8px; }

.legal { padding-top: 40px; padding-bottom: 40px; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.notice { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.notice h1 { margin-left: auto; margin-right: auto; }

.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 4px 0; }

/* Free calculator */
.calc-page { padding-top: 40px; padding-bottom: 40px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-form { display: grid; gap: 14px; }
.calc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.calc-form legend { font-weight: 800; margin-bottom: 4px; }
.calc-form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.calc-form small, .card small { color: var(--muted); font-weight: 400; }
.calc-form input, #tryPrice {
  width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font-variant-numeric: tabular-nums;
}
.calc-form input[aria-invalid="true"] { border-color: var(--danger); outline: 2px solid var(--danger); }
.calc-results { display: grid; gap: 14px; position: sticky; top: 16px; }
.calc-results.stale { opacity: 0.45; }
.card.big p { margin: 0; }
.card.accent { border-color: var(--accent); background: var(--accent-soft); }
.figure { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0 !important; }
.upsell { margin-top: 28px; }
.upsell h2 { margin-top: 0; }
@media (max-width: 760px) { .calc-results { position: static; } }
.text-link { display: inline-block; margin-left: 14px; font-weight: 600; }
@media (max-width: 480px) { .text-link { display: block; margin: 14px 0 0; } }
.card .figure { color: var(--text); }
.card.accent .figure { color: var(--accent); }
