:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #10b981;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1c1c22;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #2e2e38;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--primary); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero img.app-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 18px 40px rgba(99, 102, 241, .35); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.15; margin: 28px 0 14px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none;
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 0 var(--primary-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--primary-dark); }
.btn.alt { background: var(--text); color: var(--bg); box-shadow: 0 6px 0 var(--muted); }
.btn.alt:hover { color: var(--bg); box-shadow: 0 4px 0 var(--muted); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 48px auto 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 8px; }
.stat b { display: block; font-size: 28px; color: var(--primary); line-height: 1.2; }
.stat small { color: var(--muted); font-size: 14px; }

/* Features */
section { padding: 48px 0; }
section h2 { font-size: clamp(26px, 4vw, 34px); text-align: center; margin: 0 0 8px; }
section p.sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 600px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .ico { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.premium { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: 26px; padding: 40px 28px; text-align: center; }
.premium h2 { color: #fff; }
.premium p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 auto; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.doc th { background: var(--surface); }
.note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .copy { margin-left: auto; }

@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 22px; }
  .site-footer .copy { margin-left: 0; }
}

/* Mascot */
.mascot-hero { width: 200px; height: 200px; filter: drop-shadow(0 18px 30px rgba(99, 102, 241, .3)); }
.mascot { display: block; margin: 0 auto 8px; height: auto; }
.premium .mascot { margin-top: -8px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .2)); }
@media (max-width: 640px) {
  .mascot-hero { width: 160px; height: 160px; }
}
