/* ===== MOBILE-FIRST RESPONSIVE STYLES ===== */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PULSE ANIMATION FOR CTAs ===== */
@keyframes pulse-cta {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px -5px rgba(252, 212, 0, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 15px 35px -5px rgba(252, 212, 0, 0.6); }
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 15px 35px -5px rgba(34, 197, 94, 0.6); }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STICKY MOBILE CTA BAR ===== */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-cta a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    background: #fcd400;
    color: #1a1c1c;
    font-weight: 900;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: pulse-cta 2.5s ease-in-out infinite;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-sticky-cta .sticky-subtext {
    display: block;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== MOBILE RESPONSIVE - max-width:768px ===== */
@media (max-width: 768px) {

    /* Show sticky CTA on mobile */
    .mobile-sticky-cta {
        display: block;
    }

    /* Add bottom padding for sticky CTA */
    body {
        padding-bottom: 90px;
    }

    /* --- ANNOUNCEMENT BAR --- */
    .announcement-bar {
        font-size: 10px;
        padding: 10px 12px;
        line-height: 1.4;
    }

    /* --- HERO SECTION --- */
    header.hero-bg {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    header.hero-bg .badge-tag {
        font-size: 9px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    header.hero-bg h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin-bottom: 16px;
        padding: 0 4px;
    }

    header.hero-bg p {
        font-size: 14px !important;
        line-height: 1.6;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    header.hero-bg .hero-cta-btn {
        padding: 18px 32px;
        font-size: 15px;
        border-radius: 12px;
        width: 100%;
        max-width: 340px;
        animation: pulse-cta 2.5s ease-in-out infinite;
    }

    header.hero-bg .hero-trust-badges {
        flex-direction: column;
        gap: 8px;
    }

    /* --- COUNTDOWN BANNER --- */
    .countdown-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }

    .countdown-banner .timer {
        font-size: 20px;
    }

    /* --- PAIN SECTION --- */
    .pain-section {
        padding: 48px 0;
    }

    .pain-section h2 {
        font-size: 24px !important;
        padding: 0 16px;
    }

    .pain-section .pain-grid {
        gap: 32px;
    }

    .pain-section .pain-closing h3 {
        font-size: 28px !important;
    }

    /* --- FEATURES GRID --- */
    .features-grid {
        padding: 48px 0;
    }

    .features-grid .feature-card {
        padding: 24px;
    }

    .features-grid .feature-card h4 {
        font-size: 16px;
    }

    /* --- PRICING SECTION --- */
    .pricing-section {
        padding: 48px 0;
    }

    .pricing-section h2 {
        font-size: 24px !important;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .pricing-card .price {
        font-size: 36px !important;
    }

    .pricing-card button {
        padding: 18px;
        font-size: 13px;
        border-radius: 12px;
    }

    .pricing-card.premium button {
        animation: pulse-green 2.5s ease-in-out infinite;
    }

    /* --- TESTIMONIALS --- */
    .testimonials-section {
        padding: 48px 0;
    }

    .testimonials-section h2 {
        font-size: 24px !important;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-card p {
        font-size: 13px !important;
        line-height: 1.7;
    }

    /* --- DOMINE SECTION --- */
    .domine-section {
        padding: 48px 0;
    }

    .domine-section h2 {
        font-size: 26px !important;
    }

    .domine-section .premium-sidebar {
        margin-top: 32px;
    }

    .domine-section .green-cta {
        animation: pulse-green 2.5s ease-in-out infinite;
        padding: 18px;
        font-size: 13px;
        border-radius: 12px;
    }

    /* --- FAQ SECTION --- */
    .faq-section {
        padding: 48px 0;
    }

    .faq-section h2 {
        font-size: 24px !important;
    }

    .faq-section details summary {
        padding: 16px;
    }

    .faq-section details summary span:last-child {
        font-size: 13px;
    }

    .faq-section details .answer {
        padding: 0 16px 16px;
        font-size: 13px;
    }

    /* --- MIDDLE CTA --- */
    .middle-cta {
        padding: 56px 0;
    }

    .middle-cta h2 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    .middle-cta p {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .middle-cta .cta-btn {
        padding: 20px 32px;
        font-size: 14px;
        border-radius: 16px;
        width: 100%;
        max-width: 340px;
        display: block;
        margin: 0 auto;
    }

    /* --- FINAL TESTIMONIALS --- */
    .final-testimonials {
        padding: 48px 0;
    }

    .final-testimonials .testimonial-card-small {
        padding: 24px;
    }

    /* --- FOOTER --- */
    footer {
        padding: 40px 0 80px; /* Reduzido o padding para deixar mais compacto */
    }


    footer h2 {
        font-size: 24px !important;
        line-height: 1.2;
    }

    footer .cta-yellow {
        padding: 20px 32px;
        font-size: 13px;
        border-radius: 12px;
        width: 100%;
        max-width: 340px;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
}

/* ===== EXTRA SMALL SCREENS ===== */
@media (max-width: 380px) {
    header.hero-bg h1 {
        font-size: 24px !important;
    }

    header.hero-bg p {
        font-size: 13px !important;
    }

    .pricing-card .price {
        font-size: 32px !important;
    }

    .middle-cta h2 {
        font-size: 22px !important;
    }
}

/* ===== SCROLL-TRIGGERED FADE ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ENHANCED TOUCH TARGETS ===== */
@media (pointer: coarse) {
    button, a[href], summary {
        min-height: 44px;
        min-width: 44px;
    }

    details summary {
        min-height: 52px;
    }
}

/* ===== PURCHASE NOTIFICATIONS (SOCIAL PROOF) ===== */
.purchase-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99; /* Voltado para 99 para ser visível, mas será ocultado via JS ao abrir modais */
    max-width: 320px;
    transform: translateX(-120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
    opacity: 0;
}

.purchase-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.purchase-img {
    width: 44px;
    height: 44px;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purchase-img span {
    color: #22c55e;
    font-size: 24px;
}

.purchase-content {
    flex-grow: 1;
}

.purchase-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1a1c1c;
    line-height: 1.2;
    margin-bottom: 2px;
}

.purchase-desc {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

.purchase-time {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Position adjustment for mobile to avoid covering content or sticky CTA */
@media (max-width: 768px) {
    .purchase-notification {
        bottom: 115px; /* Ajustado para ficar um pouco acima do sticky CTA */
        transform: translateY(150%);
        max-width: calc(100% - 32px);
        margin: 0 auto;
        border-radius: 18px;
        width: 100%;
        left: 16px;
        right: 16px;
    }
    
    .purchase-notification.show {
        transform: translateY(0);
    }
}

