:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #625d55;
  --line: #e6e1d8;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e4efeb;
  --danger: #a33a2c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614;
    --surface: #1d1f1c;
    --text: #ecebe6;
    --muted: #a5a39b;
    --line: #2e312c;
    --accent: #8cc7b3;
    --accent-ink: #10201b;
    --accent-soft: #22332d;
    --danger: #f08a7a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-block: 72px 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 18px 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.button { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 12px 20px; border: 0; border-radius: 10px; font-size: 16px; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* Sections */
section { padding-block: 40px; }
.section-intro { color: var(--muted); max-width: 640px; margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

table.costs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.costs th, .costs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.costs tr:last-child td { border-bottom: 0; }
.costs th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.costs td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.cta { background: var(--accent-soft); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta p { margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: var(--danger); }
.fine-print { font-size: 14px; color: var(--muted); margin: 0; }

/* Prose pages */
.prose { padding-block: 56px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .hero { padding-block: 48px 32px; }
  .cta { padding: 24px; }
  .costs th, .costs td { padding: 12px 14px; }
}
