:root {
  --bg: #f7f4fb;
  --surface: #ffffff;
  --text: #1d1530;
  --muted: #5d5470;
  --border: #e4ddef;
  --accent: #6b3fd1;
  --accent-text: #ffffff;
  --gold: #c27a00;
  --hero-from: #2a1656;
  --hero-to: #4b2591;
  --hero-text: #fdf8ff;
  --hero-muted: #d9cdf2;
  --radius: 18px;
  --max: 920px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c20;
    --surface: #1c142f;
    --text: #f1ecfa;
    --muted: #b3a8c9;
    --border: #2f2548;
    --accent: #a985ff;
    --accent-text: #160d2a;
    --gold: #ffbf47;
    --hero-from: #1a0e36;
    --hero-to: #33196b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: var(--hero-text); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { color: var(--hero-muted); font-size: 19px; margin: 0 0 26px; max-width: 34em; }
.hero-icon { width: 220px; height: 220px; border-radius: 48px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.badge {
  display: inline-block; padding: 14px 24px; border-radius: 14px; background: #ffbf47; color: #1d1200;
  font-weight: 800; text-decoration: none; letter-spacing: 0.01em;
}
.badge:hover { filter: brightness(1.05); }
.note { font-size: 14px; color: var(--hero-muted); margin-top: 12px; }

/* Sections */
main { padding: 48px 0 64px; }
section + section { margin-top: 48px; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 18px; margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 15px; margin-bottom: 10px;
}

.privacy-callout { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; }
.privacy-callout p { margin: 0 0 8px; }
.privacy-callout p:last-child { margin: 0; }

/* Documents (privacy, support) */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.summary ul { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }

@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 44px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-icon { width: 150px; height: 150px; border-radius: 34px; grid-row: 1; margin: 0 auto; }
  main { padding-top: 36px; }
}
