/* Fontes / cores base */
:root {
  --bg-color: #FFFFFF;
  --soft-bg-color: #FEF7F7; /* Rosa clarinho */
  --text-color: #4A4A4A;    /* Cinza escuro */
  --primary-accent: #F472B6;/* Rosa principal */
  --cta-color: #34D399;     /* Verde CTA */
  --cta-hover-color: #10B981;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

/* Pulse do CTA */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.cta-pulse { animation: pulse 2s infinite; }

/* Fade-in on scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper custom */
.swiper-button-next, .swiper-button-prev {
  color: var(--primary-accent);
  transition: color 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  color: var(--text-color);
}
.swiper-container { width: 100%; padding: 1rem 0; }

.modules-carousel .swiper-slide {
  transition: transform 0.3s ease;
  filter: blur(2px);
  transform: scale(0.85);
  opacity: 0.7;
}
.modules-carousel .swiper-slide-active {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* FAQ (accordion) */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: '+';
  float: right;
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-accent);
  transition: transform 0.3s ease;
}
details[open] > summary::after { transform: rotate(45deg); }

/* Destaque do plano anual */
.featured-plan {
  color: white;
  transform: scale(1.05);
  border: 2px solid transparent;
}
.featured-plan .text-gray-500 { color: rgba(255, 255, 255, 0.8); }
.featured-plan .cta-button {
  background-color: white;
  color: var(--primary-accent);
}
.featured-plan .cta-button:hover { background-color: #f0f0f0; }

/* Popup de Vendas */
.sales-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: var(--text-color);
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 280px;
}
.sales-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
.sales-popup-icon { font-size: 1.25rem; }

/* Mobile */
@media (max-width: 768px) {
  .sales-popup {
    bottom: auto;
    left: auto;
    top: 20px;
    right: 20px;
    background-color: var(--cta-color);
    color: white;
    padding: 0.5rem 1rem;
    max-width: none;
    width: auto;
    border-radius: 8px;
    gap: 0;
  }
  .sales-popup-icon { display: none; }

  .sales-popup p.font-bold {
    font-size: 0.8rem;
    line-height: 1;
  }
  .modules-carousel .swiper-button-next,
  .modules-carousel .swiper-button-prev {
    top: 45%;
  }
}

/* AJUSTES GERAIS */
.sales-popup{
  z-index: 20;              /* era 100, exagerado no mobile */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* MOBILE */
@media (max-width: 768px){
  .sales-popup{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--cta-color);
    color: #fff;
  }
}

/* Swiper: evita colapso/recortes no mobile */
.swiper-container{
  height: auto !important;
  overflow: visible;              /* em vez de hidden */
}

#modulos{
  overflow: visible;              /* remove o overflow-hidden do Tailwind via CSS */
}

.modules-carousel .swiper-slide img{
  width: 100%;
  height: auto;
  display: block;
}

section{
  contain: paint;                 /* melhora repintura em iOS */
}

@media (max-width: 768px){
  /* teste: comente a linha abaixo depois de testar */
  /* .sales-popup{ display:none !important; } */
}
/* Ajuste do tamanho da logo no mobile */
header img {
  max-width: 90%; /* Garante que não passe das bordas */
  height: auto;
}

/* Aumenta o tamanho específico no mobile */
@media (max-width: 768px) {
  header img {
    height: 180px !important; /* aumenta a altura da logo no mobile */
  }
}

/* No desktop mantém como está */
@media (min-width: 769px) {
  header img {
    height: 250px !important; /* opcional, só se quiser ajustar no desktop */
  }
}

/* AJUSTES GERAIS */
.sales-popup{
  z-index: 20;              /* era 100, exagerado no mobile */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* MOBILE */
@media (max-width: 768px){
  .sales-popup{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--cta-color);
    color: #fff;
  }
}

/* Swiper: evita colapso/recortes no mobile */
.swiper-container{
  height: auto !important;
  overflow: visible;              /* em vez de hidden */
}

#modulos{
  overflow: visible;              /* remove o overflow-hidden do Tailwind via CSS */
}

.modules-carousel .swiper-slide img{
  width: 100%;
  height: auto;
  display: block;
}

section{
  contain: paint;                 /* melhora repintura em iOS */
}

/* iOS/mobile: desativa o fade-in para evitar "área branca" até rolar mais */
@media (max-width: 768px) {
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Alvo específico para Safari iOS (caso o user-agent não caia no max-width) */
@supports (-webkit-touch-callout: none) {
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

