:root {
  --purple: #5b2d9e;
  --purple-deep: #3b146f;
  --purple-soft: #f4ebff;
  --orange: #e87b12;
  --lei: #ffb703;
  --pink: #e45b8a;
  --blue: #2b74d6;
  --green: #1f8f62;
  --ink: #241838;
  --muted: #5c536c;
  --paper: #fff7f1;
  --card: #ffffff;
  --line: #eadfd4;
  --shadow: 0 18px 50px rgba(61, 26, 120, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, #ffe7c2 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 0%, #efe2ff 0%, transparent 55%),
    var(--paper);
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--purple); }

a:hover { color: var(--purple-deep); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.45em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }

h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

h3 { font-size: 1.35rem; }

p { margin: 0 0 0.8em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  background: #fff7f1;
  border-bottom: 1px solid rgba(91, 45, 158, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section,
.page-hero {
  scroll-margin-top: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand small {
  display: block;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--purple); }

.nav-links .button { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button.secondary {
  background: white;
  color: var(--purple-deep);
  border: 1px solid #e4d4f5;
}

.button:hover { filter: brightness(1.05); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 54px 0 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stage {
  position: relative;
  min-height: 460px;
}

.mascot {
  position: absolute;
  left: -8px;
  bottom: 8px;
  width: 210px;
  filter: drop-shadow(0 16px 20px rgba(228, 91, 138, 0.25));
}

.phone {
  width: 270px;
  margin-left: auto;
  padding: 12px;
  border-radius: 36px;
  background: #2a1548;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #f7f4fb;
  min-height: 470px;
}

.phone-bar {
  padding: 28px 16px 18px;
  background: linear-gradient(135deg, #5b2d9e, #7c4dff);
  color: white;
  text-align: center;
  font-weight: 800;
}

.phone-child {
  margin-top: -14px;
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-weight: 800;
}

.phone-body { padding: 14px; }

.reward-row, .mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip, .tile, .continue-card {
  border-radius: 16px;
  background: white;
  padding: 10px;
}

.chip {
  font-size: 0.82rem;
  font-weight: 800;
}

.continue-card {
  margin: 8px 0;
  background: #5b2d9e;
  color: white;
}

.continue-card span, .tile span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
}

.tile { color: white; font-weight: 800; min-height: 72px; }
.tile.blue { background: #2b74d6; }
.tile.orange { background: #e87b12; }
.tile.pink { background: #e45b8a; }
.tile.green { background: #1f8f62; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 28px;
}

.trust article, .card, .faq details, .prose, .form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.trust article { padding: 18px 18px 6px; }

.trust strong { display: block; font-size: 1.05rem; }

.section { padding: 28px 0 10px; }

.section-head {
  max-width: 40rem;
  margin-bottom: 18px;
}

.steps, .features, .split {
  display: grid;
  gap: 14px;
}

.steps { grid-template-columns: repeat(3, 1fr); }

.features { grid-template-columns: repeat(3, 1fr); }

.card { padding: 22px; }

.card.wide { grid-column: 1 / -1; }

.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-weight: 800;
}

.levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.level-list {
  margin: 0;
  padding-left: 1.1rem;
}

.level-list li { margin: 0.25em 0; }

.split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }

.note {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff1d6;
  border: 1px solid #f3ddb0;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer nav { display: flex; gap: 16px; }

.prose, .form { padding: 28px; }

.prose h2 { margin-top: 1.3em; font-size: 1.7rem; }

.prose ul { margin-top: 0; }

.page-hero { padding: 36px 0 8px; }

.page-hero p { color: var(--muted); max-width: 42rem; }

.faq details { padding: 4px 18px; margin-bottom: 10px; }

.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
}

.faq details p:last-child { margin-bottom: 14px; }

label { display: block; font-weight: 800; margin: 12px 0 6px; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: #fffdfb;
}

textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fine { color: var(--muted); font-size: 0.95rem; }

:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero, .steps, .features, .levels, .split, .trust, .form-row {
    grid-template-columns: 1fr;
  }

  .card.wide { grid-column: auto; }

  .hero-stage { min-height: 0; display: grid; justify-items: center; }

  .mascot { position: static; width: 160px; margin-bottom: -30px; }

  .phone { margin: 0 auto; }

  .nav-burger { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
