/* --- 1. Variáveis Globais e Reset --- */
:root {
    --brand-green: #0faa63;
    --brand-green-700: #0a8a50;
    --brand-yellow: #f5a019;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #f6f7f8;
    --card: #ffffff;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 20px 45px rgba(0, 0, 0, .07);
    --logo-h: 40px;
    --logo-h-mobile: 34px;
    --logo-h-footer: 64px; /* Mantido o seu ajuste de 64px */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; border-radius: 4px; }

/* --- 2. Componentes Reutilizáveis (Botões, Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: var(--brand-green);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(15, 170, 99, .25);
    transition: transform .18s, background-color .18s;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-green-700); }
.btn.secondary { background: #fff; color: var(--brand-green); border: 2px solid var(--brand-green); box-shadow: none; }
.btn.block { width: 100%; }
.badge { display: inline-block; background: var(--brand-yellow); color: #1c1917; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .8rem; }
.lead { font-size: 1.06rem; color: #374151; }

/* --- 3. Header --- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border); backdrop-filter: saturate(140%) blur(6px); }
.header .wrap { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding-top: 12px; 
    padding-bottom: 12px; 
}
.brand .logo { height: var(--logo-h); width: auto; }

/* --- 4. Seções Principais --- */
.section { padding: 72px 0; }
.section h2 { font-family: 'Montserrat', Poppins, sans-serif; margin: 0 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }

/* Hero */
.hero { background: var(--card); color: var(--text); padding: 56px 0 22px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -35% -10% auto -10%; height: 80%; background: radial-gradient(ellipse at top left, rgba(0, 0, 0, .05), transparent 60%); pointer-events: none; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { margin: 10px 0; font-family: 'Montserrat', Poppins, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: .5px; }
.hero p { color: var(--muted); opacity: 1; } 
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero .cover { 
    border-radius: 22px; 
    box-shadow: 0 35px 60px rgba(0, 0, 0, .25); 
    overflow: hidden; 
    aspect-ratio: 3/4;
    max-width: 400px; 
    margin-left: auto; 
    margin-right: auto; 
}
.hero .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Trust Bar */
.trust { background: var(--brand-green); border-bottom: 1px solid rgba(255,255,255,0.2); color: #fff; }
.trust .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 14px 0; }
.pill { border: 1px dashed rgba(255,255,255,0.4); padding: 8px 12px; border-radius: 999px; font-size: .9rem; background: rgba(255,255,255,0.1); color: #fff; }

/* Sobre / Aprender */
.glass { background: linear-gradient(180deg, #ffffff, #fbfdfc); border: 1px solid #eaf3ee; border-radius: 18px; box-shadow: var(--shadow); padding: 22px 22px 18px; position: relative; }
.glass::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-top-left-radius: 18px; border-top-right-radius: 18px; background: linear-gradient(90deg, rgba(15, 170, 99, .8), rgba(15, 170, 99, .35)); }
.glass p:not(:last-child) { margin-bottom: 10px; }

/* * *** CORREÇÃO AQUI ***
 * Adicionado position: relative e z-index: 1 para corrigir o bug de sobreposição
 * no hover em telas de celular.
 */
.benefits { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 14px; 
    position: relative; /* << CORREÇÃO */
    z-index: 1;       /* << CORREÇÃO */
}
.benefit { background: #fff; border: 1px solid #eceff1; border-radius: 14px; padding: 14px 14px 14px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 10px 24px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s; }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .06); }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--brand-yellow); margin-top: 7px; flex-shrink: 0; }

/* Divisor Curvo */
.curve { position: relative; margin-top: 56px; }
.curve svg { display: block; width: 100%; height: auto; }
.curve .fade { position: absolute; inset: auto 0 0 0; height: 140px; background: radial-gradient(1200px 220px at 50% 0, rgba(10, 138, 80, .08), transparent 70%); }

/* Pricing */
.pricing { position: relative; }
.pricing .container { position: relative; z-index: 1; }
.pricing .grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 720px; margin: 0 auto; }
.pricing h2, .pricing .lead { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing .lead { margin-top: 8px; margin-bottom: 28px; }
.price-card { border: 1px solid #e7eee9; background: #fff; border-radius: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .08); overflow: hidden; }
.price-card .top { padding: 26px 26px 18px; background: radial-gradient(140% 120% at 0% 0%, #ffffff 0%, #f7fdfa 100%); }
.price-badge { display: inline-flex; align-items: center; gap: 8px; background: #f0fff6; border: 1px solid #d3f2e0; color: #065f46; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: .85rem; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price-row .currency { font-size: 1.2rem; font-weight: 800; letter-spacing: .2px; }
.price-row .amount { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.installments { margin-top: 6px; color: var(--muted); font-size: .98rem; }
.guarantee { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text); background: #f6fffb; border: 1px dashed #bfe9d3; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, #e9f3ee, transparent); margin: 14px 0 0; }
.price-feats { padding: 18px 26px 0; margin: 0; list-style: none; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--text); }
.price-feats svg { flex-shrink: 0; margin-top: 3px; }
.buy { padding: 14px 26px 24px; }
.subnote { color: var(--muted); font-size: .9rem; margin-top: 10px; text-align: center;}
.secure { display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-top: 1px solid #e9f3ee; background: #fcfffe; color: #0a8a50; font-weight: 700; }
.payment-icons { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.pay-tag { font-size: .78rem; padding: 4px 8px; border: 1px solid #e3eee8; border-radius: 999px; background: #fff; }

/* Author */
.author .bio { max-width: 68ch; }
.author .media { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.author .avatar { width: 180px; height: 180px; border-radius: 999px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 15px 35px rgba(0, 0, 0, .15); aspect-ratio: 1/1; }
.author .handle { font-weight: 700; color: #374151; }

/* FAQ */
.faq .item { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary { width: 100%; text-align: left; padding: 16px 18px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; /* Remove a seta padrão */ }
.faq summary::-webkit-details-marker { display: none; } /* Safari */
.faq summary::after { content: '▼'; font-size: 0.8em; transition: transform 0.2s; }
.faq .item[open] summary { background: #f8fafb; }
.faq .item[open] summary::after { transform: rotate(180deg); }
.faq .content { padding: 0 18px 16px; color: #374151; }

/* Final CTA */
.final-cta { background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-700) 100%); color: #fff; text-align: center; padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.final-cta h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); font-family: 'Montserrat'; }

/* --- 5. Footer --- */
.footer { 
    background: radial-gradient(1200px 280px at 50% -60px, rgba(255, 255, 255, .06), transparent 60%), #0a0f14; 
    color: #cbd5e1; 
    border-top: 1px solid rgba(255, 255, 255, .06); 
}
.footer .top { 
    padding: 28px 0; 
    display: grid; 
    grid-template-columns: auto 1fr auto; 
    align-items: center; 
    gap: 18px; 
}
.footer .brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.footer .brand .logo-wrap { 
    display: block; 
    line-height: 0;
}
.footer .brand .logo { 
    height: var(--logo-h-footer); 
    width: auto;
    opacity: 0.9; /* Suaviza o logo branco */
    transition: opacity 0.2s;
}
.footer .brand:hover .logo {
    opacity: 1; /* Restaura opacidade total no hover */
}
.footer .links { 
    display: flex; 
    gap: 18px; 
    justify-content: center; 
    flex-wrap: wrap; 
    font-size: .95rem; 
    color: #9fb0c2; 
}
.footer .links a { 
    color: #dbe7f3; 
    opacity: .88; 
    transition: opacity 0.2s; 
}
.footer .links a:hover { 
    opacity: 1; 
    text-decoration: underline; 
}
.footer .contact { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    font-size: .92rem; 
    color: #a7bacb; 
}
.footer .bottom { 
    padding: 14px 0 26px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    flex-wrap: wrap; 
    border-top: 1px solid rgba(255, 255, 255, .06); 
}
.footer small { opacity: .85; }
.badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge-chip { 
    font-size: .78rem; 
    padding: 6px 10px; 
    border: 1px solid rgba(255, 255, 255, .12); 
    border-radius: 999px; 
    background: rgba(255, 255, 255, .03); 
    color: #d5e2ef; 
}

/* --- 6. Media Queries (Responsividade) --- */

/* Breakpoint para Tablets e Desktops Pequenos */
@media (max-width: 1080px) {
    .hero .grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
    }
    .hero .ctas { 
        justify-content: center; 
    }
    .split { 
        grid-template-columns: 1fr; 
    }
    .benefits { 
        grid-template-columns: 1fr; 
    }
    .brand .logo { 
        height: var(--logo-h-mobile); 
    }
    .author .media { 
        margin-bottom: 2rem; 
    }
}

/* Breakpoint para o Rodapé em Telas Médias */
@media (max-width: 900px) {
    .footer .top { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .footer .brand, .footer .contact { 
        justify-content: center; 
    }
    .footer .bottom { 
        justify-content: center; 
        text-align: center; 
    }
}

/* --- 7. NOVO BLOCO: Polimento fino para Celulares --- */
@media (max-width: 640px) {
    
    /* -- Ajustes Gerais de Espaçamento -- */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .header .wrap {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .split {
         gap: 28px; /* Reduz o gap do grid 'Sobre' e 'Autor' */
    }

    /* -- Hero Mobile -- */
    .hero {
        padding-top: 40px;
        padding-bottom: 32px; 
    }
    .hero h1 {
        font-size: 1.8rem; 
        line-height: 1.2;
    }
    .hero p.lead {
        font-size: 1rem; 
    }
    .hero .ctas {
        flex-direction: column; 
        align-items: center; 
        gap: 14px;
        margin-top: 28px; 
    }
    .hero .ctas .btn {
        width: 100%; 
        max-width: 350px; 
    }

    /* -- Benefícios Mobile -- */
    .benefits {
        gap: 10px;
    }

    /* -- Card de Preço Mobile -- */
    .price-card .top, 
    .price-feats, 
    .buy {
        padding-left: 20px;
        padding-right: 20px;
    }
    .price-row .amount {
        font-size: 2.4rem; 
    }
    .secure {
        flex-direction: column; 
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .payment-icons {
        margin-left: 0;
        justify-content: center; 
        gap: 8px;
    }

    /* -- Rodapé Mobile -- */
    .footer .bottom {
        flex-direction: column; 
        gap: 16px;
    }
    .badges {
        justify-content: center; 
    }

    /* -- Botões Gerais Mobile -- */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem; 
    }
}