:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --surface: #ffffff;
  --text: #0f1222;
  --muted: #5a6078;
  --line: #e6e8f0;
  --accent: #5b4cf0;
  --accent-2: #a23cf0;
  --accent-soft: #eeecff;
  --on-accent: #ffffff;
  --hero-bg: #0d0b24;
  --hero-text: #f4f3ff;
  --hero-muted: #b9b5dc;
  --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 8px 24px rgba(15, 18, 34, .06);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b14; --bg-soft: #11111d; --surface: #161625; --text: #ecebf7; --muted: #a3a2bd;
    --line: #262638; --accent: #8a7dff; --accent-2: #c77dff; --accent-soft: #1f1c3d; --on-accent: #0b0b14;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; }
.menu { display: none; align-items: center; gap: 4px; }
.menu a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--text); background: var(--bg-soft); }
.menu a[aria-current="page"] { color: var(--text); }
.menu .btn { margin-left: 8px; color: var(--on-accent); }
.menu .btn:hover { background: var(--accent); filter: brightness(1.08); }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (min-width: 960px) { .menu { display: flex; } .burger, .drawer, .drawer.open { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; text-decoration: none; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .9; }
.btn.light { background: #fff; color: #17133a; }
.play-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #3a3a3a; border-radius: 12px; padding: 8px 16px; text-decoration: none; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.play-badge strong { display: block; font-size: 17px; line-height: 1.2; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text); background: var(--hero-bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(162, 60, 240, .45), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(91, 76, 240, .45), transparent 60%);
}
.hero .wrap { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 88px; padding-bottom: 96px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--hero-text); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #b6a9ff, #f0a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--hero-muted); max-width: 540px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--hero-muted); font-size: 14px; }
.hero .ticks li { display: flex; align-items: center; gap: 6px; color: var(--hero-muted); }
.hero .ticks svg { color: #4ade80; }

/* phone mockup */
.phone {
  width: min(300px, 80vw); aspect-ratio: 9 / 19; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2b2850, #14122c); box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12);
}
.screen { height: 100%; border-radius: 34px; background: #f6f5ff; color: #17133a; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; }
.screen .bar { display: flex; justify-content: center; padding: 10px 0 4px; }
.screen .notch { width: 90px; height: 22px; border-radius: 999px; background: #14122c; }
.screen .head { padding: 14px 18px 18px; background: linear-gradient(135deg, #5b4cf0, #a23cf0); color: #fff; margin: 0 10px; border-radius: 22px; }
.screen .head small { opacity: .8; }
.screen .head b { display: block; font-size: 18px; margin-top: 2px; }
.screen .head .pill { display: inline-block; margin-top: 10px; font-size: 11px; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
.screen .rows { padding: 12px 10px; display: grid; gap: 8px; }
.screen .row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(23,19,58,.06); }
.screen .row .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #eeecff; color: #5b4cf0; flex: none; }
.screen .row b { display: block; font-size: 13px; }
.screen .row span { color: #6b6890; font-size: 11px; }
.screen .row .chev { margin-left: auto; color: #b3b0d1; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.soft { background: var(--bg-soft); }
.sec-head { max-width: 680px; margin: 0 0 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { color: var(--accent); flex: none; margin-top: 3px; }

.cta {
  border-radius: 24px; padding: 48px 28px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #5b4cf0, #a23cf0);
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 24px; font-size: 17px; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 8px 0 12px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* long-form text (legal, help) */
.prose { max-width: 760px; padding: 48px 0 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); font-size: 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* help topics */
.toc { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0 8px; }
.toc a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; background: var(--surface); }
.toc a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
footer.site { background: var(--hero-bg); color: var(--hero-muted); padding: 56px 0 28px; font-size: 15px; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
footer.site .brand { color: #fff; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--hero-muted); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
