/* =========================================
   REFINAMENTOS UX/UI - CONTRASTE E LEGIBILIDADE
   ========================================= */

:root {
    /* Cores de texto otimizadas para alto contraste */
    --text-white: #FFFFFF;
    --text-light: #F5F7FA;
    --text-secondary-light: #C7D2E0;
    --text-auxiliary: #9FB0C7;
    
    /* Espaçamentos padronizados */
    --spacing-section-desktop: 80px;
    --spacing-section-mobile: 48px;
    --spacing-title-text: 20px;
}

/* =========================================
   CONTRASTE EM FUNDOS ESCUROS
   ========================================= */

/* Hero Section */
.hero-content {
    color: var(--text-white);
}

.hero-title {
    color: var(--text-white);
}

.hero-subtitle {
    color: var(--text-light);
    opacity: 1;
}

.benefit-item {
    color: var(--text-light);
}

.cta-subtitle {
    color: var(--text-secondary-light);
    opacity: 1;
}

/* Solution Section */
.solution-section {
    color: var(--text-light);
}

.solution-section .section-subtitle,
.solution-section .lead {
    color: var(--text-secondary-light);
    opacity: 1;
}

.pillar-content h4 {
    color: var(--text-white);
}

.pillar-content p {
    color: var(--text-secondary-light);
    opacity: 1;
}

/* Book Mockup - Agora usa imagem real */

/* Benefits Section (fundo escuro) */
.benefits-section {
    background: var(--gradient-dark);
}

.benefits-section .section-header h2 {
    color: var(--text-white);
}

.benefits-section .section-subtitle {
    color: var(--text-secondary-light);
}

/* Pricing Section */
.pricing-section .section-header h2 {
    color: var(--text-white);
}

.pricing-section .section-subtitle {
    color: var(--text-secondary-light);
}

.trust-item {
    color: var(--text-light);
}

/* CTA Final Section */
.cta-final-section h2 {
    color: var(--text-white);
}

.cta-final-text {
    color: var(--text-light);
    opacity: 1;
}

.cta-final-guarantee {
    color: var(--text-secondary-light);
    opacity: 1;
}

/* Footer */
.footer {
    color: var(--text-secondary-light);
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
}

/* =========================================
   LOGOS DE CLIENTES - PADRONIZAÇÃO
   ========================================= */

.clients-section {
    padding: var(--spacing-section-desktop) 0;
}

.clients-header h2 {
    color: var(--text-white);
}

.clients-subtitle {
    color: var(--text-secondary-light);
    opacity: 1;
}

/* Logos com altura fixa padronizada */
.logo-item {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
}

.logo-item img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: all 0.4s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* =========================================
   ESPAÇAMENTOS PADRONIZADOS
   ========================================= */

/* Seções principais */
.hero {
    padding: 120px 0 80px;
    padding-top: 32px;
}

.alert-section {
    margin-bottom: var(--spacing-section-desktop);
}

.problem-section,
.solution-section,
.contents-section,
.benefits-section,
.forwho-section,
.pricing-section,
.faq-section,
.cta-final-section {
    padding: var(--spacing-section-desktop) 0;
}

/* Espaçamento entre título e subtítulo */
.section-header h2 {
    margin-bottom: var(--spacing-title-text);
}

.section-subtitle {
    margin-top: 12px;
}

/* =========================================
   CORREÇÃO DO DADO DE CAC
   ========================================= */

.metric-item.positive .metric-value {
    font-size: 1.8rem;
}

/* Destaque especial para métrica de CAC */
.metric-highlight {
    position: relative;
    background: linear-gradient(135deg, #E5FFE5 0%, #FFF 100%);
    border: 2px solid #00CC66;
    box-shadow: 0 4px 16px rgba(0, 204, 102, 0.2);
}

.metric-highlight::after {
    content: '✓ Comprovado';
    position: absolute;
    top: -12px;
    right: 12px;
    background: #00CC66;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   OTIMIZAÇÃO MOBILE
   ========================================= */

@media (max-width: 768px) {
    /* Espaçamentos mobile */
    :root {
        --spacing-section-desktop: 48px;
        --spacing-title-text: 16px;
    }
    
    .hero {
        padding: 80px 0 48px;
    }
    
    .problem-section,
    .solution-section,
    .contents-section,
    .benefits-section,
    .forwho-section,
    .pricing-section,
    .faq-section,
    .cta-final-section {
        padding: var(--spacing-section-mobile) 0;
    }
    
    /* Fontes mínimas mobile */
    .section-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .section-subtitle,
    .problem-card p,
    .benefit-card p,
    .chapter-card p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Botões full-width mobile */
    .cta-button {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 18px 24px;
    }
    
    .cta-button i {
        font-size: 16px;
    }
    
    /* Hero mobile */
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .benefit-item {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
    
    /* Alert box mobile */
    .alert-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .alert-box i {
        font-size: 2rem;
    }
    
    .alert-content h3 {
        font-size: 20px;
    }
    
    .alert-content p {
        font-size: 15px;
    }
    
    /* Infográfico mobile - coluna única */
    .infographic-comparison {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comparison-divider {
        order: 2;
        height: 48px;
    }
    
    .comparison-column.cold-lead {
        order: 1;
    }
    
    .comparison-column.warm-lead {
        order: 3;
    }
    
    /* Logos mobile */
    .clients-section {
        padding: var(--spacing-section-mobile) 0;
    }
    
    .logo-item {
        height: 52px;
        padding: 6px 16px;
    }
    
    .logo-item img {
        height: 36px;
        max-width: 160px;
    }
    
    /* Cards mobile */
    .problem-card,
    .benefit-card,
    .chapter-card {
        padding: 28px 20px;
    }
    
    /* Solution Section mobile */
    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .solution-image {
        order: -1;
    }
    
    .pillar-item {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .pillar-icon {
        margin: 0 auto 16px;
    }
    
    /* Book mockup mobile */
    .book-cover {
        max-width: 280px;
        width: 100%;
        height: auto;
    }
    
    /* Pricing mobile */
    .pricing-card {
        margin: 0 -8px;
    }
    
    .pricing-header h3 {
        font-size: 22px;
    }
    
    .value {
        font-size: 4rem;
    }
    
    .pricing-features {
        padding: 24px 20px;
    }
    
    .pricing-feature {
        font-size: 15px;
    }
    
    /* FAQ mobile */
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
    
    /* CTA Final mobile */
    .cta-final-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-links ul {
        padding: 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes extras para telas muito pequenas */
    .section-header h2 {
        font-size: 22px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .cta-button {
        font-size: 13px;
        padding: 16px 20px;
    }
    
    .logo-item {
        height: 48px;
    }
    
    .logo-item img {
        height: 32px;
        max-width: 140px;
    }
    
    .book-cover {
        max-width: 240px;
        width: 100%;
        height: auto;
    }
    
    .value {
        font-size: 3.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* =========================================
   SUPORTE A TOUCH NO CARROSSEL
   ========================================= */

.logos-carousel-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .logos-carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        cursor: grab;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .logos-carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .logos-carousel-container.grabbing {
        cursor: grabbing;
    }
    
    .logos-carousel-track {
        animation: none;
        padding: 0 24px;
    }
}

/* =========================================
   AJUSTES DE PERFORMANCE
   ========================================= */

/* Otimizar animações para performance */
.logo-item img,
.problem-card,
.benefit-card,
.chapter-card {
    will-change: auto;
}

/* Reduzir motion para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logos-carousel-track {
        animation: none;
    }
}

/* =========================================
   CONTRASTE ADICIONAL EM ELEMENTOS ESPECÍFICOS
   ========================================= */

/* Garantir contraste em badges */
.badge {
    background: rgba(255, 107, 0, 0.3);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* Section tags em fundos escuros */
.section-tag.light {
    background: rgba(255, 107, 0, 0.25);
    color: var(--text-white);
}

/* Garantir legibilidade em todos os cards */
.forwho-card p,
.pricing-feature span {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Melhorar contraste de links no footer */
.footer-links a {
    color: var(--text-secondary-light);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* Garantir visibilidade de ícones */
.benefit-item i,
.trust-item i,
.cta-subtitle i {
    opacity: 1;
}