* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero / Cabeçalho */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #6366f1;
  font-weight: 800;
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: #475569;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Planos */
.pricing {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 4rem;
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); /* largura máxima confortável por card */
  gap: 2rem; /* reduzido de 2.5rem para ficar mais compacto e bonito */
  width: 100%;
  max-width: 1180px; /* ideal para 3 cards de ~380px + gap */
  justify-content: center;
  margin: 0 auto;
}

/* Força exatamente 3 colunas no desktop (telas grandes) */
@media (min-width: 1025px) {
  .plans-container {
    grid-template-columns: repeat(3, 380px); /* fixa largura para consistência visual */
    gap: 2.5rem;
  }
}

/* Cartão genérico */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* transição mais suave */
  padding: 2.5rem 1.8rem;
  text-align: center;
}

.card:hover {
  transform: translateY(-14px);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.16);
}

/* Faixa "Mais Popular" */
.popular .ribbon {
  position: absolute;
  top: 18px;
  right: -40px;
  background: #6366f1;
  color: white;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.4rem 4rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* Cabeçalho do plano */
.plan-header {
  margin-bottom: 2rem;
}

.plan-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-header .price {
  font-size: 2.1rem;
  font-weight: 700;
  color: #0f172a;
}

.plan-header .price .period {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
}

/* Lista de funcionalidades */
.features {
  list-style: none;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: #475569;
  line-height: 2.1;
  text-align: left;
  padding-left: 0.5rem;
}

.features li {
  margin-bottom: 0.9rem;
}

.features li::before {
  content: "✓";
  color: #10b981;
  margin-right: 12px;
  font-weight: bold;
}

/* Botões */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: #6b7280;
  color: white;
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.25);
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 1024px) {
  .plans-container {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }

  .subtitle {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
  }

  .pricing {
    padding: 1rem 1rem 4rem;
  }

  .plans-container {
    grid-template-columns: 1fr; /* 1 coluna no mobile */
    gap: 1.8rem;
    max-width: 420px;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .plan-header h2 {
    font-size: 2.1rem;
  }

  .plan-header .price {
    font-size: 1.9rem;
  }

  .features {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.9rem 2rem;
    width: 100%; /* botão full width no mobile */
  }

  .popular .ribbon {
    font-size: 0.65rem;
    padding: 0.3rem 3.2rem;
    top: 15px;
    right: -32px;
  }
}

@media (max-width: 480px) {
  .plans-container {
    gap: 1.5rem;
  }

  .card {
    padding: 1.8rem 1.2rem;
  }

  .btn {
    padding: 1rem;
  }
}