:root {
  --bg: #ffffff;
  --surface: #f7f5f7;
  --card: #ffffff;
  --text: #080607;
  --muted: rgba(8, 6, 7, 0.6);
  --border: rgba(0, 0, 0, 0.08);
  --accent: #cd3782;
  --accent-hover: #b62d73;
  --accent-muted: rgba(205, 55, 130, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141214;
    --surface: #171417;
    --card: #252025;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --accent-hover: #d94f92;
    --accent-muted: rgba(205, 55, 130, 0.16);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Roboto, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.top nav { display: flex; gap: 4px; }

.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
}

.top nav a[aria-current="page"] { color: var(--text); background: var(--accent-muted); }

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero { text-align: center; padding: 32px 0 16px; }
.small-hero { padding-top: 16px; }

.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.12em; font-size: 13px; margin: 0; }

h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 8px 0 12px; font-weight: 600; }
h2 { font-size: 22px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }

.lead { color: var(--muted); font-size: 18px; margin: 0 auto 20px; max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  padding: 12px 20px;
}

.btn:hover { background: var(--accent-hover); }
.btn.big { font-size: 18px; padding: 16px 32px; border-radius: 16px; }

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

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}

.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.tile ol { margin: 0; padding-left: 20px; }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

kbd {
  font: 500 13px/1 ui-monospace, Consolas, monospace;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 3px 6px;
}

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.toc a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 9999px;
  background: var(--accent-muted);
  font-size: 14px;
}

details { border-top: 1px solid var(--border); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 500; }
details p { color: var(--muted); margin: 8px 0 0; }

:target { scroll-margin-top: 80px; }

.foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; font-size: 14px; }
