:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1d1d2b;
  --muted: #5d5d73;
  --line: #e4e4ee;
  --accent: #6157e6;
  --accent-dark: #4d43cf;
  --accent-soft: #eeedfd;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.links a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--text); }

.hero { text-align: center; padding: 72px 0 40px; }
.hero img.mark { width: 84px; height: 84px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 18px 0 10px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 auto 32px; max-width: 560px; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.btn small { font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.btn:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(97, 87, 230, .12); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary small { color: rgba(255, 255, 255, .8); }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }

.note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px auto 0; max-width: 600px; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; margin: 40px auto; }
.doc h1 { font-size: 30px; margin-top: 0; letter-spacing: -0.01em; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--accent-soft); }
.doc ol li, .doc ul li { margin: 6px 0; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.placeholder { background: #fff6d6; border: 1px dashed #d9b84a; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
code { background: #f0f0f6; padding: 1px 6px; border-radius: 5px; font-size: 14px; }

footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 40px; margin-top: 40px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer.bottom a { color: var(--muted); margin-right: 16px; }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 30px; }
  .doc { padding: 24px 20px; }
  nav.links a { margin-left: 12px; }
}
