:root {
  --primary: #6C5CE7;
  --primary-deep: #4834B8;
  --primary-light: #EDE9FE;
  --text: #1A1A2E;
  --text-strong: #4B5563;
  --text-muted: #6B7280;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --max: 720px;
}

* { box-sizing: border-box; }

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

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

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

/* ---- header ---- */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  margin-right: auto;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-left: 18px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--primary-deep); }

/* ---- type ---- */

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin: 40px 0 14px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 700;
  margin: 38px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; }

.lede {
  font-size: 19px;
  color: var(--text-strong);
  margin-bottom: 26px;
}

.muted { color: var(--text-muted); }

.small { font-size: 14.5px; color: var(--text-muted); }

a { color: var(--primary-deep); }

ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 7px; }

strong { font-weight: 700; }

/* ---- blocks ---- */

.steps { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: s; }

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

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.steps b { display: block; margin-bottom: 3px; }

.note {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 15px 17px;
  margin: 0 0 18px;
}

.note p:last-child { margin-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

dl { margin: 0 0 20px; }
dt { font-weight: 700; margin-top: 18px; }
dd { margin: 4px 0 0; color: var(--text-strong); }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 28px 0 44px;
  font-size: 14.5px;
  color: var(--text-muted);
  background: var(--surface);
}

footer a { color: var(--text-muted); margin-right: 16px; }
footer .links { margin-bottom: 14px; }
footer address { font-style: normal; line-height: 1.55; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; margin-top: 30px; }
  nav a { margin-left: 0; margin-right: 16px; }
  .bar { gap: 10px; }
  .brand { margin-right: 0; width: 100%; }
}
