:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5a6577;
  --line: #e2e6ee;
  --brand: #1f5fd6;
  --brand-ink: #ffffff;
  --accent-bg: #eaf1ff;
  --warn-bg: #fff6e5;
  --warn-line: #f0d9a8;
  --radius: 14px;
  --max: 1040px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c;
    --surface: #171e29;
    --text: #e8edf5;
    --muted: #9ba7b9;
    --line: #273142;
    --brand: #6ea0ff;
    --brand-ink: #0b1220;
    --accent-bg: #17243b;
    --warn-bg: #2a2416;
    --warn-line: #54462a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--text); }

.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 180px; height: 180px; border-radius: 36px; box-shadow: 0 18px 50px rgba(20, 40, 90, 0.18); }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

section { padding: 48px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 42em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-bg); color: var(--brand); font-weight: 700; margin-bottom: 10px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.honest ul { margin: 0; padding-left: 20px; }
.honest li { margin: 6px 0; }

.callout {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 20px 22px;
}
.callout h3 { margin: 0 0 6px; font-size: 17px; }
.callout p { margin: 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Long-form pages (privacy) */
.doc { max-width: 760px; padding: 40px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--accent-bg); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

@media (max-width: 820px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 96px; height: 96px; border-radius: 22px; }
  .grid, .steps, .honest { grid-template-columns: 1fr; }
  section { padding: 32px 0; }
}
