:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --fg: #12141a;
  --fg-muted: #5b6072;
  --border: #e3e6ef;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(18, 20, 26, .06), 0 8px 24px rgba(18, 20, 26, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg-alt: #14171f;
    --fg: #f2f4f8;
    --fg-muted: #a0a6b8;
    --border: #242835;
    --accent: #8b83ff;
    --accent-fg: #0d0f14;
    --card: #141821;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--fg); }

@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 72px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 26px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.hero p.lede {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--fg-muted);
}

/* ---------- store badges ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--fg);
  transition: transform .12s ease, opacity .12s ease;
}

.badge:hover { transform: translateY(-2px); }

.badge .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge .small { font-size: 11px; opacity: .75; }
.badge .big { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* ---------- sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.028em;
  line-height: 1.15;
  font-weight: 750;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { margin: 0; color: var(--fg-muted); font-size: 17.5px; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  letter-spacing: -.015em;
  font-weight: 650;
}

.card p { margin: 0; color: var(--fg-muted); font-size: 15.5px; }

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--fg-muted); font-size: 15.5px; }

/* ---------- faq ---------- */

.faq { max-width: 720px; margin: 0 auto; }

details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after { content: "\2212"; }

details p { margin: 12px 0 0; color: var(--fg-muted); font-size: 16px; }

/* ---------- cta ---------- */

.cta {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px 32px;
  box-shadow: var(--shadow);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--fg-muted);
  font-size: 14.5px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--fg-muted); font-size: 14.5px; margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg-muted); font-size: 16.5px; }
.legal ul { padding-left: 22px; }
