/* TalePOP brand palette — sourced from flutter_taptales/lib/app/theme/app_colors.dart */
:root {
  --brand-primary: #6c5ce7;
  --brand-primary-2: #8b7cf0;
  --brand-secondary: #00cec9;
  --brand-accent: #fdcb6e;
  --brand-ink: #2d3436;
  --brand-muted: #636e72;
  --brand-surface: #f8f7ff;
  --brand-surface-2: #ffffff;
  --brand-border: rgba(108, 92, 231, 0.18);
  --brand-shadow: 0 10px 30px rgba(108, 92, 231, 0.18);
}

/* Materialize overrides — keep specificity low, rely on load order */
nav.brand-primary,
footer.brand-primary {
  background-color: var(--brand-primary);
  box-shadow: none;
}

.brand-text {
  color: var(--brand-primary) !important;
}

body {
  background-color: var(--brand-surface);
  color: var(--brand-ink);
}

/* Hero */
.hero {
  padding: 48px 0 24px;
}
.hero h1 {
  color: var(--brand-primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  font-size: 3rem;
}
.hero .tagline {
  color: var(--brand-ink);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 0 0 24px;
}
.hero .age-chip {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--brand-ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.hero .store-badge img {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(108, 92, 231, 0.25));
  transition: transform 0.2s ease;
}
.hero .store-badge:hover img {
  transform: translateY(-2px);
}
.hero .hero-art {
  text-align: center;
}
.hero .hero-art img {
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 28px;
  box-shadow: var(--brand-shadow);
}

/* Feature cards */
.features {
  padding: 24px 0 48px;
}
.features h2.section-title {
  text-align: center;
  color: var(--brand-ink);
  font-weight: 800;
  margin-bottom: 32px;
  font-size: 2rem;
}
.card-feature {
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 28px 24px;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow);
}
.card-feature .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(0, 206, 201, 0.14);
  color: var(--brand-secondary);
  margin-bottom: 16px;
}
.card-feature .feature-icon i {
  font-size: 34px;
}
.card-feature h5 {
  color: var(--brand-ink);
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.card-feature p {
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.55;
}

/* Nav */
nav.brand-primary a,
nav.brand-primary .brand-logo {
  color: #ffffff;
}
nav.brand-primary .lang-switch a {
  opacity: 0.75;
  font-weight: 600;
  padding: 0 10px;
}
nav.brand-primary .lang-switch a.active,
nav.brand-primary .lang-switch a:hover {
  opacity: 1;
}

/* Footer */
footer.brand-primary .white-text {
  color: #ffffff !important;
}
footer.brand-primary .footer-copyright {
  background-color: rgba(0, 0, 0, 0.15);
}

/* Responsive hero */
@media (max-width: 600px) {
  .hero {
    padding: 24px 0 8px;
  }
  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
  }
  .hero .tagline,
  .hero .age-chip,
  .hero .store-badge {
    text-align: center;
  }
  .hero .hero-copy {
    text-align: center;
  }
  .hero .hero-art {
    margin-top: 24px;
  }
}
