:root {
  --lavender: #f2dcf9;
  --purple: #e07ffb;
  --purple-deep: #cb7ae5;
  --dark: #180a2b;
  --surface: #ffffff;
  --surface-alt: #fbf0fe;
  --border: #ead0f4;
  --text-muted: #7a6189;
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--lavender);
  color: var(--dark);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--nav-height);
  background: rgba(242, 220, 249, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: var(--surface-alt);
}

.nav-links a[aria-current="page"] {
  background: var(--purple);
  color: var(--dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - var(--nav-height) - 84px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c759;
}

.hero-title {
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero-title img.wordmark {
  height: clamp(48px, 7vw, 76px);
  width: auto;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 480px;
  margin: 22px 0 34px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
}

.hero-mascot {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(24, 10, 43, 0.1);
}

.hero-mascot img {
  width: min(420px, 100%);
  border-radius: 20px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-button {
  min-width: 210px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 20px;
  color: var(--surface);
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: 14px;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 10, 43, 0.22);
}

.store-icon {
  width: 27px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: var(--surface);
}

.store-icon svg {
  display: block;
  width: 27px;
  height: 30px;
}

.play-icon {
  width: 29px;
}

.play-icon svg {
  width: 29px;
}

.store-copy small {
  display: block;
  color: #c9b9d6;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  line-height: 1.2;
}

/* ---------- Sections ---------- */

.section {
  padding: 100px 0;
}

.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--purple-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.section-heading {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  text-align: center;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: center;
}

.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px 26px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 18px 34px rgba(224, 127, 251, 0.18);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: var(--surface);
  border-radius: 14px;
  font-size: 1.6rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.feature-card .badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--purple-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Protected flip band ---------- */

.protected-band {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  color: var(--dark);
}

.protected-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
}

.protected-mascot {
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(24, 10, 43, 0.08);
  border: 1px solid rgba(24, 10, 43, 0.14);
  border-radius: 32px;
}

.protected-mascot img {
  width: min(380px, 100%);
  border-radius: 20px;
  margin-inline: auto;
}

.protected-copy .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin-bottom: 22px;
  background: var(--dark);
  border-radius: 999px;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.protected-copy .status-pill .check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--purple);
  color: var(--dark);
  border-radius: 50%;
  font-size: 0.7rem;
}

.protected-heading {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

.protected-copy p {
  max-width: 460px;
  color: #3a1a54;
  font-size: 1.02rem;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 30px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.stat-number {
  display: block;
  color: var(--dark);
  font-size: clamp(2.4rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
}

.cta h2 {
  font-size: clamp(2.4rem, 5.6vw, 3.6rem);
  line-height: 1.05;
}

.cta p {
  max-width: 520px;
  margin: 18px auto 34px;
  color: var(--text-muted);
}

.cta .store-buttons {
  justify-content: center;
}

/* ---------- Legal pages ---------- */

.legal-page {
  min-height: calc(100vh - var(--nav-height));
  padding: 72px 0 120px;
}

.legal-content {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-title {
  font-size: clamp(2.6rem, 6.4vw, 3.6rem);
  line-height: 1.05;
}

.legal-content > p:first-of-type {
  margin-top: 18px;
  color: var(--text-muted);
}

.last-updated {
  display: inline-block;
  margin: 18px 0 32px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--purple-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-content section {
  margin-top: 22px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.legal-content h2 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.06rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin: 12px 0 0 22px;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content a {
  color: var(--purple-deep);
  font-weight: 600;
}

.support-card {
  margin-top: 30px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}

.support-card p {
  margin-bottom: 20px;
}

.legal-content a.email-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: var(--dark);
  background: var(--purple);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.legal-content a.email-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(224, 127, 251, 0.3);
}

.faq-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.faq-item:first-child {
  margin-top: 30px;
  padding-top: 0;
  border-top: none;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--purple-deep);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    padding-top: 20px;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
  }

  .hero-mascot img {
    width: min(320px, 78%);
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .protected-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .protected-copy p {
    margin-inline: auto;
  }

  .protected-mascot {
    order: -1;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .brand img {
    height: 24px;
  }

  .nav-inner {
    /* Lets .nav-links actually shrink/scroll instead of forcing the whole
       row wider than the viewport — flex items default to min-width:auto,
       which ignores overflow-x otherwise. */
    min-width: 0;
  }

  .nav-links {
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 36px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .store-button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .legal-content {
    width: min(100% - 32px, 760px);
  }

  .legal-content section {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
