:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --green: #2e9e5b;
  --ink: #1b1f27;
  --muted: #535b6b;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #dde3ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #8ab4f8;
    --blue-dark: #aecbfa;
    --green: #6dd58c;
    --ink: #e6e8ee;
    --muted: #a3a9b6;
    --bg: #111318;
    --card: #1c1e24;
    --line: #2e323c;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

nav.links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
}

.button:hover { color: #fff; background: var(--blue-dark); }

@media (prefers-color-scheme: dark) {
  .button, .button:hover { color: #0b1b33; }
}

.note { font-size: 14px; color: var(--muted); margin-top: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 40px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 48px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b1b33; } }
.steps li b { display: block; }
.steps li span { color: var(--muted); font-size: 15px; }

article.doc { padding: 24px 0 48px; }
article.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; }
article.doc h2 { margin-top: 36px; font-size: 22px; }
article.doc li { margin-bottom: 6px; }

.placeholder {
  background: #fff3cd;
  color: #5c4400;
  border-radius: 4px;
  padding: 0 4px;
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

footer.bottom nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
