:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #0e1526;
  --muted: #5b6478;
  --line: #e3e7ef;
  --accent: #1440b8;
  --accent-strong: #0b2470;
  --accent-soft: #e8eeff;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d15;
    --surface: #121827;
    --text: #edf1fa;
    --muted: #9aa4ba;
    --line: #232b3d;
    --accent: #5b8cff;
    --accent-strong: #3d7bff;
    --accent-soft: #16213d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
header.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
header.top .brand img { width: 32px; height: 32px; }
header.top nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }

.hero { text-align: center; padding: 56px 0 40px; }
.hero img.icon { width: 128px; height: 128px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 30px 0; }
.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); font-size: 15px; }

section.steps { padding: 30px 0 10px; }
section.steps h2, section.faq h2 { font-size: 28px; letter-spacing: -0.01em; }
ol.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
ol.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative;
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}

section.faq { padding: 20px 0 40px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 2px; }

article.doc { max-width: 720px; padding: 30px 0 60px; }
article.doc h1 { font-size: 36px; letter-spacing: -0.01em; margin-bottom: 4px; }
article.doc .updated { color: var(--muted); margin-top: 0; }
article.doc h2 { font-size: 21px; margin-top: 32px; }
article.doc li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }
