/* Colours match the app (client/src/index.css): primary hsl(220 70% 50%). */
:root {
  --bg: hsl(220 15% 97%);
  --surface: #fff;
  --text: hsl(220 20% 14%);
  --muted: hsl(220 10% 42%);
  --border: hsl(220 14% 88%);
  --primary: hsl(220 70% 50%);
  --primary-text: #fff;
  --primary-soft: hsl(220 70% 50% / 0.1);
  --radius: 10px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(220 15% 8%);
    --surface: hsl(220 15% 11%);
    --text: hsl(220 15% 92%);
    --muted: hsl(220 10% 64%);
    --border: hsl(220 12% 20%);
    --primary: hsl(220 70% 60%);
    --primary-soft: hsl(220 70% 60% / 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand svg { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.nav .btn-primary { color: var(--primary-text); }

/* Hero */
.hero { text-align: center; padding: 88px 0 64px; }
.pill {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 1.8rem; text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.step { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tag { font-size: 0.75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

.problem { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.example { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.example li { margin: 6px 0; }
.cta { text-align: center; }

/* Legal pages */
.doc { max-width: 760px; padding: 48px 16px 72px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; }
.doc .effective { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }
.doc h2 { text-align: left; font-size: 1.25rem; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-size: 0.9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
  .hero { padding: 56px 0 40px; }
}
