/* /public/vendas.css */
:root {
  --cor-primaria: #1DB954;
  /* Verde Spotify-like */
  --cor-secundaria: #F0B429;
  /* Amarelo-mostarda para destaque */
  --cor-fundo: #000000;
  --cor-fundo-sec: #121212;
  --cor-fundo-carrosel: #0c0b0b;
  --cor-card: #1e1e1e;
  --cor-texto: #ffffff;
  --cor-texto-sec: #b3b3b3;
  --cor-enterprise: #007BFF;
  /* Azul para o plano Enterprise */
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cor-texto);
  text-decoration: none;
}

/* --- ESTILOS DO HEADER --- */
header {
  color: var(--cor-texto);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 30px;
  width: 30px;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: var(--cor-texto-sec);
}

.nav-link:hover {
  color: var(--cor-texto);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--cor-primaria);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.login-btn {
  font-weight: 600;
  padding: 8px 16px;
  background-color: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #24df69;
  border-color: #24df69;
}

/* --- BOTÕES PRINCIPAIS (CALL TO ACTION) --- */
.cta-button {
  display: inline-block;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
  background-color: var(--cor-primaria);
  color: var(--cor-fundo);
}

.cta-button.primary:hover {
  background-color: #24df69;
}

.cta-button.secondary {
  background-color: var(--cor-secundaria);
  color: var(--cor-fundo);
}

.cta-button.secondary:hover {
  background-color: #ffc745;
}

.cta-button.dark {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

.cta-button.dark:hover {
  background-color: #1e1e1e;
}

/* --- ESTILOS DOS CARDS --- */
.feature-card {
  background-color: var(--cor-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pricing-card {
  background-color: #ffffff;
  color: #1e1e1e;
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;

  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  /* centraliza horizontalmente título, preço e botão */
}

.pricing-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card h3,
.pricing-card p {
  color: #1e1e1e;
  text-align: left;
  width: 100%;
}

.pricing-card ul {
  color: #555555;
  text-align: left;
  /* mantém a lista alinhada à esquerda */
  width: 100%;
  /* faz a lista ocupar toda a largura do card */
  flex-grow: 1;
}

.pricing-card.featured {
  background-color: var(--cor-secundaria);
  color: var(--cor-fundo);
  /* transform: scale(1.05); */
  border-color: var(--cor-secundaria);

}

.pricing-card.featured:hover {
  transform: scale(1.08);
}

.pricing-card.featured .cta-button {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured ul {
  color: var(--cor-fundo);
}

.pricing-card.featured .cta-button {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

.pricing-card.featured .cta-button:hover {
  background-color: #1e1e1e;
}

.pricing-card.enterprise-card {
  background-color: var(--cor-enterprise);
  color: var(--cor-texto);
}

.pricing-card.enterprise-card h3,
.pricing-card.enterprise-card p,
.pricing-card.enterprise-card ul,
.pricing-card.enterprise-card .cta-button {
  color: var(--cor-texto);
}

.pricing-card.enterprise-card .cta-button {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

.pricing-card.enterprise-card .cta-button:hover {
  background-color: var(--cor-card);
}

.price-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c2c2c
}


/* --- CARROSSEL --- */
.carousel-container {
  max-width: 800px;
  max-height: 450px;
  margin: 40px auto 0 auto;
  /* Espaço acima do carrossel */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  background-color: var(--cor-fundo-carrosel);
  /* Fundo para imagens pequenas */
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: center;
  /* Centraliza imagens verticalmente */
}

.carousel-image {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 12px;
}

.carousel-image.vertical-image {
  max-height: 450px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
}

.carousel-nav-btn.prev {
  left: 10px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.carousel-nav-btn.next {
  right: 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: var(--cor-primaria);
}

/* --- ANIMAÇÕES DE SCROLL --- */
[data-animation] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animation="fade-in-up"] {
  transform: translateY(30px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MENU MOBILE --- */
.login-btn-mobile {
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 9999px;
  background-color: var(--cor-primaria);
  color: var(--cor-fundo);
}

/* --- NOVA SEÇÃO DE FAQ --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* 16px */
  text-align: left;
}

.faq-item {
  background-color: var(--cor-card);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #2c2c2c;
}

.faq-question {
  padding: 1.25rem;
  /* 20px */
  font-weight: 600;
  font-size: 1.125rem;
  /* 18px */
  cursor: pointer;
  list-style: none;
  /* Remove o marcador padrão */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.faq-question::-webkit-details-marker {
  display: none;
  /* Remove o marcador no Chrome/Safari */
}

/* Ícone de '+' e '-' */
.faq-question::after {
  content: '+';
  font-size: 1.75rem;
  /* 28px */
  color: var(--cor-primaria);
  transition: transform 0.3s ease;
}

.faq-item[open]>.faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--cor-texto-sec);
  line-height: 1.6;
  border-top: 1px solid #2a2a2a;
  margin-top: -1px;
  /* Evita borda dupla */
}


/* --- TOGGLE MENSAL / ANUAL --- */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  /* cor neutra */
  transition: 0.4s;
  border-radius: 50px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Quando ativo (anual) → verde */
.toggle-switch input:checked+.slider {
  background-color: var(--cor-primaria);
}

.toggle-switch input:checked+.slider:before {
  transform: translateX(28px);
}

/* --- Labels do toggle --- */
.pricing-toggle label {
  font-weight: 600;
  color: var(--cor-texto-sec);
  cursor: pointer;
  transition: color 0.3s ease;
}

.pricing-toggle .active-label {
  color: var(--cor-primaria);
  font-weight: 700;
}

/* Estilo para o selo de desconto dos planos anuais */
.discount-badge {
  display: none;
  /* Escondido por padrão */
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 9999px;
  /* Formato de pílula */
  background-color: #1DB954;
  /* Fundo verde transparente */
  color: #FFFFFF;
  /* Cor do texto verde (cor de destaque do seu site) */
  font-size: 0.75rem;
  /* Fonte menor (12px) */
  font-weight: 700;
  /* Negrito */
  vertical-align: middle;
  /* Alinha verticalmente com o texto do preço */
}

/* Classe para tornar o selo visível */
.discount-badge.visible {
  display: inline-block;
}


/* Estilo para o selo de desconto dos planos anuais */
.discount-badge-basic {
  display: none;
  /* Escondido por padrão */
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 9999px;
  /* Formato de pílula */
  background-color: #e71b3d;
  /* Fundo verde transparente */
  color: #FFFFFF;
  /* Cor do texto verde (cor de destaque do seu site) */
  font-size: 0.75rem;
  /* Fonte menor (12px) */
  font-weight: 700;
  /* Negrito */
  vertical-align: middle;
  /* Alinha verticalmente com o texto do preço */
}

/* Classe para tornar o selo visível */
.discount-badge-basic.visible {
  display: inline-block;
}



/* ================================================== */
/* ESTILOS PARA O MODAL DE CADASTRO GRATUITO          */
/* ================================================== */

/* Animação de entrada do modal */
#free-trial-modal.visible #modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Estilo do botão de fechar */
#close-modal-btn {
  font-size: 2.5rem;
  /* 40px */
  line-height: 1;
  font-weight: 300;
}

/* Estilo padrão dos inputs do modal */
.modal-input {
  width: 100%;
  padding: 10px 15px;
  background-color: #282828;
  color: var(--cor-texto);
  border: 1px solid #404040;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-input:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.3);
}

/* Estilos para as mensagens de feedback do formulário */
#form-message.success {
  color: var(--cor-primaria);
  font-weight: 600;
}

#form-message.error {
  color: #e74c3c;
  /* Vermelho para erros */
  font-weight: 600;
}

/* Estilo para o botão de submit quando estiver carregando */
#submit-trial-btn:disabled {
  background-color: #159a43;
  /* Um verde um pouco mais escuro */
  cursor: not-allowed;
}


/* ========================================================== */
/* NOVO: RESPONSIVIDADE PARA FAQ EM DISPOSITIVOS MÓVEIS */
/* ========================================================== */
@media (max-width: 768px) {
  .faq-question {
    padding: 1rem;
    /* 16px */
    font-size: 1rem;
    /* 16px */
  }

  .faq-question::after {
    font-size: 1.5rem;
    /* 24px */
  }

  .faq-answer {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    /* Um pouco menor para melhor leitura */
  }

  /* Mantém o fundo ocupando a tela toda */
  #free-trial-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 0;
  }

  /* Ajusta o conteúdo do modal para telas pequenas */
  #modal-content {
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    border: none;
    /* --- MUDANÇA: Diminui o espaçamento vertical geral --- */
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* --- MUDANÇA: Reduz o tamanho e a margem do título --- */
  #modal-content h2 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 4px;
  }

  /* --- MUDANÇA: Reduz a margem do subtítulo --- */
  #modal-content p {
    font-size: 0.9rem; /* 14.4px */
    margin-bottom: 24px;
  }

  /* --- MUDANÇA: Reduz o espaçamento entre os campos do formulário --- */
  #free-trial-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Era 16px */
  }

  /* --- MUDANÇA: Remove a margem extra do label para compactar --- */
  #free-trial-form label {
    margin-bottom: 0px; /* Puxa o input para mais perto do label */
  }
  
  /* --- MUDANÇA: Diminui a margem acima do botão principal --- */
  #submit-trial-btn {
    margin-top: 10px;
  }
}