:root {
  --bg: #270e3b;
  --card: #fff;
  --muted: #59186d;
  --accent: #e92c43;
  --accent-2: #8a0f26;
  --glow: rgba(233,44,67,0.20);
  --white: #fff;
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
  --max-width: 980px;
}

/* RESET */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #431B64 120%) no-repeat fixed;
  color: var(--white);
  padding-bottom: 60px;
  line-height: 1.45;
}

/* HR com transparência */
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

.logo-footer {
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
}

.title {
  text-align: center;
  font-size: 20px; 
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px 0;
}

/* Banner Black Friday */
.oferta-banner {
  background: var(--accent);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.oferta-banner-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Container base */
.container {
  width: 94%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 28px 0 26px;
  display: grid;
  gap: 22px;
}
.hero-top {
  padding-top: 22px;
}
.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hero-image img {
  max-width: 100%;
  width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.headline {
  font-size: clamp(24px, 5vw, 32px);
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.hero-note {
  font-size: 13px;
  margin-bottom: 0;
  color: var(--white);
}

/* Section spacing and titles */
.section-spacing {
  margin-top: 18px;
}
.section-title {
  margin-top: 25px;
  font-size: clamp(18px, 4vw, 24px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

/* Text utilities */
.text-muted {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}
.text-center {
  text-align: center;
}
.text-spacing {
  margin-top: 10px;
}
.justify {
  text-align: justify;
}

/* Card gerais */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255, 0.827), rgba(255,255,255,0.708));
  border-radius: 18px;
  padding: 20px;
  color: var(--bg);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.03);
}
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 12px;
}

/* Botões */
.btn {
  background: var(--accent);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.btn:hover {
  background-color: #d3273c;
  box-shadow: 0 4px 15px rgba(233, 44, 67, 0.4);
  transform: translateY(-2px);
}
.btn.cta-primary {
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 14px;
  display: block;
  width: 100%;
}
.btn-wrapper {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.btn-full {
  width: 100%;
  max-width: 300px;
}
.btn-block {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Botão pulsante para oferta principal Completo (R$97) */
.pulse {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(233, 44, 67, 0.6);
  }
  50% {
    box-shadow: 0 0 10px 10px rgba(233, 44, 67, 0);
  }
}

/* Features grid responsivo */
.features {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  grid-template-columns: 1fr; /* Mobile: 1 por linha */
}
@media(min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 por linha */
  }
}
@media(min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr); /* PC: 3 por linha */
  }
}

/* Ilustração acima do título de cada feature */
.feature {
  position: relative;
  background: #ffffff50;
  padding: 30px 12px 12px 12px; /* espaço para a ilustração */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  overflow: visible;
}
.feature::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  /* Exemplo genérico - substituir em CSS individual */
  background-image: url('/icons/feature-illustration.svg');
}

/* Produto cards (ebooks e vídeos) */
.product-section {
  margin-top: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}
.product-content h3 {
  margin-top: 0;
  color: var(--bg);
}
.product-list {
  color: var(--muted);
  margin-top: 10px;
  padding-left: 20px;
}
.product-list li {
  margin-bottom: 8px;
}
.product-footer {
  margin-top: 8px;
}

/* Card da Teacher com imagem com tamanho limitado */
.teacher-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.teacher-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.teacher-image img {
  max-width: 470px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Pricing */
.pricing {
  margin: 24px 0;
}
.pricing-title {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(18px, 8vw, 20px);
  color: var(--white);
}
.pricing-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.plan-title {
  color: var(--bg);
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 22px;
}
.plan-features {
  color: var(--bg);
  background-color: rgba(39, 14, 59, 0.12);
  padding: 10px 15px;
  border-radius: 10px;
  margin-top: 10px;
  text-align: center;
}
.bullet {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 14px;
  margin: 8px 0;
}
.bullet-disabled {
  text-decoration: line-through;
  opacity: 0.5;
}
.plan-price {
  margin: 15px;
  text-align: center;
}
.price-label {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
}
.price-value {
  color: var(--bg);
  margin: 0;
  font-size: 28px;
}
.price-installment {
  color: var(--bg);
  margin: 0;
  font-size: 14px;
}
.card-best {
  border: 5px solid var(--accent);
}

/* Garantia */
.garantia-section {
  margin-top: 60px;
}
.garantia-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.garantia-img {
  max-width: 180px;
  display: block;
  margin-bottom: 12px;
}

/* CTA Final */
.cta-final-section {
  margin-top: 18px;
  text-align: center;
}
.cta-final-card {
  text-align: center;
}
.cta-final-title {
  margin-top: 0;
  color: var(--bg);
}

/* FAQ */
.faq {
  margin: 10px 0 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 16px 16px 8px 16px;
}
.faq-title {
  margin-top: 0;
  color: var(--white);
}
details {
  background: var(--glass);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.02);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}
.faq-answer {
  margin-top: 8px;
  color: var(--white);
}

/* Footer */
footer {
  margin-top: 26px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer-content {
  color: var(--white);
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

/* Responsive - Desktop */
@media(min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Produto cards lado a lado no desktop */
  .product-card {
    flex-direction: row;
    align-items: flex-start;
  }

  
  /* Teacher card lado a lado no desktop */
  .teacher-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .teacher-image {
    flex-shrink: 0;
    margin-right: 15px;
  }
  
  /* Ajustes nos títulos */
  .headline {
    font-size: 32px;
    white-space: normal;
  }
  .section-title {
    white-space: normal;
  }
}

@media(min-width: 1080px) {
  .headline {
    font-size: 36px;
  }
  .oferta-banner {
    padding: 22px 0;
  }
}

/* Container das 3 sessões lado a lado no desktop */
.product-section-wrapper {
  display: flex;
  flex-direction: column; /* padrão mobile: um embaixo do outro */
  gap: 24px;
  margin-top: 18px;
}

@media (min-width: 1024px) {
  /* Desktop: sessões lado a lado verticalmente (em coluna) */
  .product-section-wrapper {
    flex-direction: row; /* lado a lado */
    align-items: flex-start;
    gap: 24px;
  }

  /* Cada sessão com tamanho fixo para não ficar enorme */
  .product-section-wrapper > section {
    flex: 1 1 33%;
    display: flex;
    flex-direction: column;
  }

  /* Dentro de cada sessão, empilhar conteúdo verticalmente */
  .product-card {
    flex-direction: column !important;
  }
}
