:root {
  --primary: #AD9FD1;
  --link: #5F4E96;
  --ink: #211D2E;
  --muted: #665F76;
  --paper: #FBFAFD;
  --line: #E7E1F2;
  --soft: #F2EEF8;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 8px;
}

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 253, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}

.brand img { width: 44px; height: 44px; }

.brand__text {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.brand__text span { color: var(--primary); }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--link);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover { background: var(--white); }

header.page-head { padding: 48px 0 8px; }

h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.14;
  font-weight: 900;
  margin: 16px 0 12px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--link);
  font-size: 13px;
  font-weight: 900;
}

.updated {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-weight: 600;
  max-width: 68ch;
}

nav.toc {
  margin: 32px 0 8px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

nav.toc h2 { font-size: 18px; font-weight: 900; margin: 0 0 14px; }

nav.toc ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

nav.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

nav.toc a:hover { background: var(--white); color: var(--link); }

main { padding-bottom: 24px; }

section.card {
  margin: 20px 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  scroll-margin-top: 96px;
}

section.card h2 {
  font-size: clamp(20px, 3.4vw, 25px);
  font-weight: 900;
  margin: 0 0 14px;
}

section.card h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 22px 0 6px;
}

section.card p {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
}

section.card p:last-child,
section.card ul:last-child,
section.card ol:last-child { margin-bottom: 0; }

section.card ul,
section.card ol {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
  padding-left: 22px;
}

section.card li { margin-bottom: 6px; }

.callout {
  display: block;
  padding: 20px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: 18px;
  color: var(--ink);
  font-weight: 700;
}

.path {
  display: inline-block;
  padding: 8px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.mail-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--link);
  border-radius: 999px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.mail-button:hover { background: var(--ink); }

.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  min-height: 32px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--link);
  font-weight: 900;
  font-size: 15px;
}

footer.page-foot {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 32px 0;
  margin-top: 24px;
}

footer.page-foot p {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 600px) {
  section.card { padding: 22px 20px; border-radius: 22px; }
  nav.toc { padding: 20px; border-radius: 22px; }
  header.page-head { padding-top: 32px; }
}
