:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #17161a;
  --muted: #5d5b66;
  --line: #e7e4dc;
  --accent: #0f6fb8;
  --accent-soft: #e3f0fb;
  --ok: #1d7a4f;
  --ok-soft: #e4f4ec;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f13;
    --surface: #17171d;
    --text: #ecebf2;
    --muted: #a3a1ae;
    --line: #2a2a33;
    --accent: #6cb8f0;
    --accent-soft: #102a40;
    --ok: #5fd39a;
    --ok-soft: #13301f;
    --warn: #f0c060;
    --warn-soft: #332810;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav.main { display: flex; gap: 22px; font-size: 15px; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 20px 0 18px; max-width: 16ch; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f0f13; } }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
section p.sub { color: var(--muted); margin: 0 0 40px; max-width: 64ch; }

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin: 4px 0; }
.card .links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; font-size: 15px; }

.badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }

.price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }

.about { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* Legal pages */
.legal { padding-top: 64px; padding-bottom: 80px; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }

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

@media (max-width: 640px) {
  nav.main { gap: 14px; font-size: 14px; }
  nav.main .hide-sm { display: none; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  section { padding: 56px 0; }
}
