/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #009EE3;
    --primary-dark: #007fb7;
    --accent: #00A650;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(0, 158, 227, 0.15);
    --gold: #FFD700;
}

/* IMPORTANTE: Removemos scroll-behavior daqui para permitir o infinito do JS */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

/* Apenas os links âncora devem ter rolagem suave global */
html { scroll-behavior: smooth; }

body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Títulos de Seção */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; color: var(--text-dark); letter-spacing: -0.5px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--text-gray); font-weight: 400; }

/* --- HERO SECTION --- */
header {
    background: radial-gradient(circle at top right, #005f96 0%, #009EE3 100%);
    color: white;
    padding: 60px 0 140px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.brand-logo { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.brand-logo svg { width: 48px; height: 48px; color: white; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.brand-logo span { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(to bottom, #ffffff, #dbeafe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sub-headline { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 40px; font-weight: 400; }

.btn-cta {
    display: inline-block; background-color: var(--accent); color: white;
    padding: 16px 40px; border-radius: 100px; font-weight: 700; font-size: 1.1rem;
    text-decoration: none; box-shadow: 0 10px 25px rgba(0, 166, 80, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 166, 80, 0.5); }

/* --- CELULAR FLUTUANTE --- */
.demo-container { 
    margin-top: -100px; 
    margin-bottom: 80px; 
    position: relative; 
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
}

.phone-mockup {
    width: 324px; 
    height: 664px; 
    margin: 0 auto; 
    background: #fff;
    border-radius: 45px; 
    border: 12px solid #111;
    box-shadow: 0 40px 80px -20px rgba(0, 48, 87, 0.5);
    overflow: hidden; 
    position: relative;
    transform: rotateX(5deg); 
    transition: transform 0.5s;
    display: block; 
}

.phone-mockup:hover { transform: rotateX(0deg) scale(1.02); }

.notch { 
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); 
    width: 140px; height: 28px; background: #111; 
    border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; 
    z-index: 20; 
}

.app-frame {
    width: 375px; 
    height: 800px; 
    border: none;
    background: white;
    display: block;
    transform: scale(0.8);
    transform-origin: 0 0; 
    scrollbar-width: none;
}
.app-frame::-webkit-scrollbar { display: none; }

/* --- BENEFÍCIOS --- */
.benefits { padding: 80px 0; background-color: var(--white); }
.grid-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

.benefit-card { padding: 30px; border-radius: 24px; background: var(--white); transition: 0.3s; border: 1px solid #f0f0f0; box-shadow: var(--shadow-sm); }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: rgba(0, 158, 227, 0.3); }

.icon-box { 
    width: 64px; height: 64px; background: rgba(0, 158, 227, 0.08); 
    border-radius: 18px; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 24px; color: var(--primary); 
}
.benefit-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--text-dark); }
.benefit-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; }

/* --- PROVA SOCIAL (CARROSSEL) --- */
.testimonials { padding: 100px 0; background-color: var(--bg-light); border-top: 1px solid #eee; border-bottom: 1px solid #eee; overflow: hidden; }
.testimonials-header { text-align: center; margin-bottom: 50px; }
.header-stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 2px; display: block; margin-bottom: 10px; }

.carousel-wrapper { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.carousel-track {
    display: flex; gap: 20px; overflow-x: auto; 
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* scroll-snap REMOVIDO para evitar conflito */
}
.carousel-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    background: white; padding: 30px; border-radius: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid #eee;
    flex: 0 0 100%; transition: transform 0.3s;
}

/* INDICADORES (BOLINHAS) */
.carousel-indicators { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.dot { width: 10px; height: 10px; background-color: #d1d5db; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { background-color: var(--primary); transform: scale(1.2); width: 12px; }

.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: white; border: 1px solid #eee; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; z-index: 10;
    color: var(--primary); font-size: 1.2rem; transition: 0.2s;
}
.nav-btn:hover { background: var(--primary); color: white; }
.nav-btn.prev { left: 0; }
.nav-btn.next { right: 0; }

.user-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.user-avatar { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 15px; display: block; letter-spacing: 2px; }
.review-text { font-style: italic; color: #4b5563; font-size: 1rem; line-height: 1.6; }

/* --- PREÇOS --- */
.pricing-section { padding: 100px 0; background-color: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; align-items: stretch; }

.plan-card {
    background: white; border-radius: 30px; padding: 40px 30px;
    border: 1px solid #eee; box-shadow: var(--shadow-card);
    transition: all 0.3s ease; position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.plan-card.featured { border: 2px solid var(--primary); background: #ffffff; box-shadow: 0 20px 60px rgba(0, 158, 227, 0.15); z-index: 10; }
.best-value { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,158,227,0.3); }

.plan-header { text-align: center; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.plan-name { font-size: 1.2rem; font-weight: 700; color: var(--text-gray); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 3.5rem; font-weight: 900; color: var(--text-dark); line-height: 1; }
.plan-price small { font-size: 1.2rem; color: var(--text-gray); font-weight: 400; }
.plan-period { font-size: 0.9rem; color: var(--primary); font-weight: 600; margin-top: 10px; display: block; }

.features-list { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.features-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--text-gray); font-size: 0.95rem; }
.features-list svg { color: var(--accent); width: 22px; height: 22px; flex-shrink: 0; }

.btn-plan { display: block; width: 100%; padding: 18px; border-radius: 16px; text-align: center; font-weight: 700; text-decoration: none; transition: 0.2s; font-size: 1rem; }
.btn-plan.primary { background: var(--primary); color: white; box-shadow: 0 8px 25px rgba(0, 158, 227, 0.25); }
.btn-plan.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-plan.outline { background: transparent; border: 2px solid #e5e7eb; color: var(--text-dark); }
.btn-plan.outline:hover { border-color: var(--text-dark); background: var(--bg-light); }

/* --- GARANTIA --- */
.guarantee-wrapper { margin-top: 60px; display: flex; justify-content: center; }
.guarantee-card { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 20px; padding: 30px 40px; max-width: 800px; display: flex; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.guarantee-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.guarantee-icon svg { width: 80px; height: 80px; flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(0, 166, 80, 0.2)); }
.guarantee-text h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.guarantee-text p { font-size: 1rem; color: #4b5563; line-height: 1.6; margin: 0; }
.guarantee-text strong { color: var(--accent); font-weight: 700; }

/* --- FAQ --- */
.faq { padding: 80px 0; background-color: var(--bg-light); }
.faq-item { background: white; border-radius: 16px; margin-bottom: 15px; border: 1px solid #eee; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: #ddd; }
.faq-question { padding: 25px; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.faq-answer { display: none; padding: 0 25px 25px 25px; color: #666; font-size: 1rem; line-height: 1.6; border-top: 1px solid #f9f9f9; }
.faq-item.active .faq-answer { display: block; }
.faq-icon { transition: 0.3s; color: var(--primary); font-size: 1.5rem; font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- FOOTER --- */
footer { padding: 50px 0; text-align: center; color: var(--text-gray); font-size: 0.85rem; background: white; border-top: 1px solid #eee; }

/* --- ANIMAÇÕES DE ALTA PERFORMANCE (MOBILE FIRST) --- */

/* 1. Base */
[data-anime] {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* 2. Direções */
[data-anime="up"] { transform: translateY(40px); }
[data-anime="down"] { transform: translateY(-40px); }
[data-anime="left"] { transform: translateX(-30px); }
[data-anime="scale"] { transform: scale(0.9); }

/* 3. Estado Final */
[data-anime].animate {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* 4. Cascata para Grid de Benefícios */
.grid-benefits .benefit-card:nth-child(1) { transition-delay: 0.1s; }
.grid-benefits .benefit-card:nth-child(2) { transition-delay: 0.2s; }
.grid-benefits .benefit-card:nth-child(3) { transition-delay: 0.3s; }
.grid-benefits .benefit-card:nth-child(4) { transition-delay: 0.4s; }
.grid-benefits .benefit-card:nth-child(5) { transition-delay: 0.5s; }
.grid-benefits .benefit-card:nth-child(6) { transition-delay: 0.6s; }

/* 5. CTA Pulsante */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 166, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 166, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 166, 80, 0); }
}
.btn-cta { animation: pulse-green 2s infinite; }

/* 6. Feedback de Toque */
.btn-cta:active, .benefit-card:active, .plan-card:active, .faq-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

/* 7. Celular Flutuante */
@keyframes floatPhone {
    0% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
    100% { transform: translateY(0) rotateX(5deg); }
}
.phone-mockup { animation: floatPhone 6s ease-in-out infinite; }

/* Mobile */
@media(max-width: 768px) {
    h1 { font-size: 1.8rem; line-height: 1.2; }
    .pricing-grid { gap: 40px; }
    .phone-mockup { width: 324px; transform: scale(0.85); margin: -30px auto 0 auto; }
    .section-title { font-size: 1.8rem; }
    .nav-btn { display: none; }
    
    /* Configuração Carrossel Mobile */
    .carousel-track { gap: 15px; padding: 0 20px 30px 20px; }
    .testimonial-card { flex: 0 0 85%; min-width: 85%; }

    /* Garantia Mobile */
    .guarantee-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .guarantee-icon svg { width: 60px; height: 60px; margin-bottom: 10px; }
    .guarantee-text h3 { font-size: 1.1rem; }
}
@media(min-width: 769px) { .testimonial-card { flex: 0 0 calc(33.333% - 20px); } }