:root {
  --background: 35 40% 98%;
  --foreground: 220 25% 20%;
  --card: 0 0% 100%;
  --muted: 35 30% 93%;
  --muted-foreground: 220 15% 45%;
  --border: 35 25% 88%;

  --coral: 12 76% 61%;
  --mint: 168 45% 55%;
  --mint-dark: 168 45% 40%;
  --sunny: 45 93% 67%;
  --sunny-dark: 45 93% 55%;
  --lavender: 262 50% 70%;
  --sky: 200 80% 65%;

  --gradient-hero: linear-gradient(135deg, hsl(var(--coral)) 0%, hsl(var(--sunny)) 100%);
  --shadow-soft: 0 4px 20px -4px hsl(var(--coral) / 0.15);
  --shadow-card: 0 8px 30px -8px hsl(220 25% 20% / 0.1);
  --shadow-glow: 0 0 40px hsl(var(--coral) / 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.gradient-hero {
  background: var(--gradient-hero);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.hover\:shadow-glow:hover {
  box-shadow: var(--shadow-glow);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.fill-current {
  fill: currentColor;
}

/* Animações (equivalentes a fadeInLeft, scaleIn e fadeInUp do Angular) */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out both;
}

.scale-in {
  animation: scaleIn 0.6s ease-out both;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-left,
  .scale-in {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Seções "Para a escola" / "Para os pais" */
.band {
  padding: 80px 1rem;
}

.band.alt {
  background: hsl(35 30% 93% / .3);
  border-block: 1px solid hsl(var(--border));
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin: 12px 0;
}

.split .sub {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 32rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--coral) / .1);
  color: hsl(var(--coral));
  padding: 8px 16px;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
}

.pill.lav {
  background: hsl(262 50% 70% / .15);
  color: hsl(262 40% 50%);
}

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: .95rem;
}

.checks li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: hsl(var(--mint));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .8rem;
  margin-top: 1px;
}

.pcard {
  background: hsl(var(--card));
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(35 25% 88% / .5);
}

.pcard h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stat {
  background: hsl(35 30% 93% / .5);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.stat span {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cal span {
  padding: 8px 0;
  border-radius: 8px;
  background: hsl(35 30% 93% / .6);
}

.cal .e1 { background: hsl(var(--coral) / .15); color: hsl(var(--coral)); }
.cal .e2 { background: hsl(var(--mint) / .18); color: hsl(var(--mint-dark)); }
.cal .e3 { background: hsl(var(--sunny) / .25); color: hsl(45 93% 35%); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
}

.bubble {
  padding: 12px;
  border-radius: 12px;
  background: hsl(35 30% 93% / .6);
  font-size: .9rem;
  margin-top: 10px;
}

.bubble small {
  display: block;
  font-size: .72rem;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
  margin-bottom: 2px;
}

.bubble.ok {
  background: hsl(var(--mint) / .15);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split h2 {
    font-size: 2.25rem;
  }

}

.split.flip .vis {
  order: 1;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform .2s;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / .25));
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Modal de solicitação de demonstração */
.demo-modal {
  margin: auto;
  border: 1px solid hsl(var(--border));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.demo-modal::backdrop {
  background: hsl(220 25% 20% / .55);
  backdrop-filter: blur(4px);
}

.demo-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--background));
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

select.demo-input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

select.demo-input:invalid {
  color: hsl(var(--muted-foreground));
}

.demo-input:focus {
  outline: none;
  border-color: hsl(var(--coral));
  box-shadow: 0 0 0 3px hsl(var(--coral) / .15);
}
