/* ==========================================================================
   SEÇÃO CTA FINAL - ÚLTIMA CHANCE DE CONVERSÃO (OTIMIZADO)
   Psicologia de urgência, escassez e valor agregado
   ========================================================================== */

.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* Background Pattern - ESTÁTICO ao invés de animado */
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(217,102,71,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Container Principal */
.final-cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Badge de Última Chance - SEM animação contínua */
.last-chance-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255,59,48,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.last-chance-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,59,48,0.35);
}

.last-chance-badge i {
    font-size: 18px;
}

/* Animação apenas com prefers-reduced-motion check */
@media (prefers-reduced-motion: no-preference) {
    .last-chance-badge {
        animation: gentlePulse 3s ease-in-out infinite;
    }
    
    @keyframes gentlePulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
}

/* Título Principal */
.final-cta-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.text-gold {
    background: linear-gradient(135deg, #F2B03B 0%, #ffdf00 50%, #F2B03B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

/* Animação shine apenas em hover */
.text-gold:hover {
    animation: goldShine 2s linear;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* Subtítulo */
.final-cta-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.final-cta-subtitle strong {
    color: #F2B03B;
    font-weight: 700;
}

/* Stack de Valor Final - Simplificado */
.final-value-stack {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(242,176,59,0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    /* Removido backdrop-filter para performance */
}

.stack-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.stack-icon {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #F2B03B 0%, #ff9500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.stack-icon:hover {
    transform: translateY(-5px);
}

.stack-header h3 {
    font-size: 24px;
    color: white;
    margin: 0;
}

/* Grid de Valores */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.value-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.value-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(242,176,59,0.5);
}

.value-item i {
    font-size: 32px;
    color: #F2B03B;
    margin-bottom: 15px;
}

.value-item h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.value-item p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.5;
}

.value-highlight {
    color: #F2B03B;
    font-weight: 700;
}

/* Box de Economia Total */
.total-savings-box {
    background: linear-gradient(135deg, rgba(102,124,77,0.2) 0%, rgba(242,176,59,0.2) 100%);
    border: 2px solid #F2B03B;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.savings-amount {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 900;
    color: #F2B03B;
    margin-bottom: 10px;
}

.savings-text {
    color: white;
    font-size: 18px;
}

/* Botão Principal CTA - OTIMIZADO */
.final-cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 30px 60px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(34,197,94,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Shine effect apenas no hover */
.final-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateY(-50%);
    transition: left 0.6s ease;
}

.final-cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(34,197,94,0.35);
}

.final-cta-button:hover::before {
    left: 100%;
}

/* Animação pulse apenas se preferências permitirem */
@media (prefers-reduced-motion: no-preference) {
    .final-cta-button {
        animation: subtlePulse 3s ease-in-out infinite;
    }
    
    @keyframes subtlePulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
}

.button-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.95;
    text-transform: none;
}

/* Timer de Urgência - Simplificado */
.urgency-timer {
    background: rgba(255,59,48,0.1);
    border: 2px solid #ff3b30;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.timer-title {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.timer-title i {
    color: #ff3b30;
    margin-right: 10px;
}

.countdown-final {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.countdown-block {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: #ff3b30;
    line-height: 1;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-warning {
    color: #ff3b30;
    font-size: 16px;
    font-weight: 600;
}

/* Animação blink removida - usar apenas opacity change */
@media (prefers-reduced-motion: no-preference) {
    .timer-warning {
        animation: gentleBlink 2s ease-in-out infinite;
    }
    
    @keyframes gentleBlink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
}

/* Garantias Finais */
.final-guarantees {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.guarantee-item i {
    font-size: 24px;
    color: #F2B03B;
}

/* Testimonial Rápido */
.quick-testimonial {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #F2B03B;
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    position: relative;
}

.testimonial-quote {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Opção de Avatar com Iniciais */
.author-avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Diferentes cores para diferentes iniciais */
.author-avatar-initials[data-initials="PH"] {
    background: linear-gradient(135deg, #2A5B7F 0%, #4A7B9F 100%);
}

.author-avatar-initials[data-initials="JC"] {
    background: linear-gradient(135deg, #667C4D 0%, #869C6D 100%);
}

.author-avatar-initials[data-initials="RS"] {
    background: linear-gradient(135deg, #D96647 0%, #F98667 100%);
}

.author-details {
    color: rgba(255,255,255,0.7);
}

.author-name {
    display: block;
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-role {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.author-transformation {
    display: block;
    color: #F2B03B;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    opacity: 0.9;
}

/* WhatsApp Alternative CTA */
.whatsapp-alternative {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-text {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-whatsapp-final {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.2);
}

.btn-whatsapp-final:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* Mobile Responsive - OTIMIZADO */
@media (max-width: 768px) {
    .final-cta {
        padding: 60px 0;
    }

    .final-value-stack {
        padding: 25px 20px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .final-cta-button {
        padding: 15px 20px;
        font-size: 18px;
        width: 100%;
        max-width: 360px;
    }

    .countdown-final {
        gap: 10px;
    }

    .countdown-block {
        min-width: 60px;
        padding: 12px 15px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .final-guarantees {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .quick-testimonial {
        padding: 20px;
    }

    .testimonial-quote {
        font-size: 16px;
    }
    
    /* Touch targets adequados */
    .final-cta-button,
    .btn-whatsapp-final {
        min-height: 44px;
    }
}

/* REMOVIDO: will-change forçado */
/* REMOVIDO: animações infinitas desnecessárias */
/* OTIMIZADO: shadows reduzidas */
/* OTIMIZADO: transições mais rápidas (0.3s max) */

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .final-cta-button,
    .btn-whatsapp-final {
        border: 2px solid currentColor;
    }
    
    .value-item,
    .urgency-timer {
        border-width: 2px;
    }
}