/* Landing page — animações e utilitários (compatível dark/light via tokens TailAdmin) */

/* Critical CSS — hero LCP antes do Tailwind CDN */
#hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  #hero-title { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  #hero-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  #hero-title { font-size: 3.75rem; }
}

.landing-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.landing-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.landing-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.45);
}

/* Navbar — botão compacto verde */
.landing-cta-primary--green.ta-btn-sm-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: auto;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.landing-cta-primary--green.ta-btn-sm-nav:hover {
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Variante verde — hero (alto contraste no gradiente roxo; padrão WhatsApp) */
.landing-cta-primary--green {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.landing-cta-primary--green:hover {
  background: #20bd5a;
  color: #ffffff;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Variante branca — CTA final, fundos escuros (não hero) */
.landing-cta-primary--on-dark {
  background: #ffffff;
  color: #6d28d9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.landing-cta-primary--on-dark:hover {
  background: #f5f3ff;
  color: #5b21b6;
}

/* Variante marca — pricing, modal, ações principais */
.landing-cta-primary--brand {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.landing-cta-primary--brand:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  color: #ffffff;
}

/* Variante contorno — plano free */
.landing-cta-primary--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: none;
}
.landing-cta-primary--outline:hover {
  border-color: var(--color-primary-400);
  color: var(--color-primary-700);
  background: var(--color-primary-50);
  box-shadow: none;
  transform: none;
}

/* Grupo de CTAs — empilha no mobile, linha no desktop */
.landing-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}
.landing-cta-row .landing-cta-primary {
  width: 100%;
}
.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 0.75rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.landing-cta-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .landing-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .landing-cta-row .landing-cta-primary {
    width: auto;
    min-width: 14rem;
  }
  .landing-cta-secondary {
    width: auto;
    padding: 1rem 1.25rem;
  }
}

/* Mobile: CTAs largura total */
@media (max-width: 639px) {
  .landing-cta-primary {
    width: 100%;
    max-width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1.25rem;
  }
  #transcricao-email .text-left {
    text-align: center;
  }
  #transcricao-email .landing-cta-primary {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero — texto antes do demo no mobile */
.landing-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .landing-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.landing-hero-copy {
  order: 1;
}
.landing-hero-media {
  order: 2;
}
@media (max-width: 1023px) {
  .landing-hero-copy {
    text-align: center;
  }
  .landing-hero-copy .landing-hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .landing-hero-copy > p.max-w-xl {
    margin-left: auto;
    margin-right: auto;
  }
  .landing-hero-copy .text-sm.inline-flex {
    justify-content: center;
  }
}

/* Pricing — card destacado sem estourar layout no mobile */
.landing-pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .landing-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.landing-pricing-featured {
  position: relative;
  border: 2px solid #7c3aed !important;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18);
}
@media (min-width: 768px) {
  .landing-pricing-featured {
    transform: scale(1.04);
    z-index: 2;
  }
}

/* CTA final — botão centralizado e full width no mobile */
.landing-cta-final-wrap .landing-cta-primary {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 639px) {
  .landing-cta-final-wrap .landing-cta-primary {
    display: flex;
    width: 100%;
    max-width: 22rem;
  }
}

.landing-section {
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  .landing-section {
    padding: 5rem 1.5rem;
  }
}

.landing-wrap {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 24rem;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* Ícones flat — tokens de tema */
.landing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.landing-icon i {
  font-size: 1rem;
  line-height: 1;
}
.landing-icon--sm { width: 2rem; height: 2rem; }
.landing-icon--sm i { font-size: 0.875rem; }
.landing-icon--md { width: 2.5rem; height: 2.5rem; }
.landing-icon--lg { width: 3rem; height: 3rem; }
.landing-icon--lg i { font-size: 1.25rem; }
.landing-icon--xl { width: 3.5rem; height: 3.5rem; }
.landing-icon--xl i { font-size: 1.375rem; }

.landing-icon--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}

.landing-icon--purple {
  background: var(--color-primary-50);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--color-primary-700);
}
[data-theme="dark"] .landing-icon--purple {
  color: var(--color-primary-400);
  border-color: rgba(139, 92, 246, 0.25);
}

.landing-icon--block {
  display: flex;
  margin-bottom: 0.75rem;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.landing-cta-arrow {
  font-size: 0.75rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.landing-cta-primary:hover .landing-cta-arrow {
  transform: translateX(3px);
}

.landing-trust-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.landing-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.landing-trust-line .landing-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.landing-trust-line .landing-icon i {
  font-size: 0.75rem;
}

/* Cards de depoimento gerados via JS */
.landing-testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
