:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #14181f;
  --muted: #566070;
  --border: #e2e6ec;
  --accent: #2f6df6;
  --accent-text: #ffffff;
  --accent-soft: #e8efff;
  --todo-bg: #fff3c4;
  --todo-text: #6b4e00;
  --radius: 12px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-soft: #171b23;
    --text: #e8ebf0;
    --muted: #a0a8b6;
    --border: #2a303b;
    --accent: #6b98ff;
    --accent-text: #0b0e13;
    --accent-soft: #1c2740;
    --todo-bg: #4a3b00;
    --todo-text: #ffe48a;
  }
}

* { box-sizing: border-box; }

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

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

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

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--accent); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 10px; letter-spacing: -0.01em; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent); margin-left: 4px;
}

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price { font-size: 2.2rem; font-weight: 700; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card ul { flex: 1; margin-bottom: 20px; }
.price-card .btn { text-align: center; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.doc { padding: 48px 0 64px; max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }

/* Placeholder to fill in before going live */
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
