:root {
  --bg: #ffffff;
  --bg-soft: #f4f4fb;
  --txt: #15151a;
  --mut: #5c5c6b;
  --line: #e4e4ee;
  --primary: #5b5bff;
  --primary-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --bg-soft: #18181d;
    --txt: #f2f2f5;
    --mut: #a0a0ad;
    --line: #2a2a32;
    --primary: #7b7bff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

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

.hero { padding: 72px 0 56px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(91, 91, 255, .3); }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin: 24px 0 12px; }
.hero p { color: var(--mut); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); text-decoration: none; font-weight: 600; }
.btn.ghost { background: var(--bg-soft); color: var(--txt); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.soon { display: block; margin-top: 12px; color: var(--mut); font-size: 14px; }

section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
h2 { font-size: 28px; margin: 0 0 24px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--mut); font-size: 15px; }

table { width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th:not(:first-child), td:not(:first-child) { text-align: center; }
th { color: var(--mut); font-weight: 600; font-size: 14px; }
td.p { color: var(--primary); font-weight: 700; }

.doc { max-width: 720px; padding: 48px 16px 64px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc .updated { color: var(--mut); margin: 0 0 32px; font-size: 14px; }
.doc h2 { text-align: left; font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--mut); }
.doc ol li { margin-bottom: 8px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--mut); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--mut); }

@media (max-width: 520px) {
  nav a { margin-left: 12px; font-size: 14px; }
  nav a.hide-sm { display: none; }
  .hero { padding: 48px 0 40px; }
}
