/* ==========================================================================
   ZapiCash — refinamentos (menu, responsividade, acabamento)
   ========================================================================== */

/* --- nenhum link com sublinhado, em lugar nenhum --- */
a, a:hover, a:focus, a:visited { text-decoration: none; }

/* ================= MENU FIXO ================= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background-color: rgba(10, 22, 40, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background-color .3s, box-shadow .3s;
}
.site-nav.rolou {
    background-color: rgba(10, 22, 40, .97);
    box-shadow: 0 6px 28px rgba(0,0,0,.34);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; height: 78px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2em; letter-spacing: -.02em;
    color: #fff; flex-shrink: 0;
}
.nav-brand img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--color-light-gray);
    font-size: .94em; font-weight: 500;
    padding: 6px 0;
    transition: color .22s;
}
.nav-links a:hover, .nav-links a.ativo { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-login {
    color: var(--color-light-gray); font-size: .94em; font-weight: 500;
    transition: color .22s;
}
.nav-login:hover { color: var(--color-light-green); }
.btn-sm { padding: 11px 22px; font-size: .9em; border-radius: 9px; }

/* botão hambúrguer */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 42px; height: 42px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background-color: #fff; transition: transform .28s, opacity .2s;
}
.nav-toggle.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.aberto span:nth-child(2) { opacity: 0; }
.nav-toggle.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= BOTÕES ================= */
.btn {
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    transition: transform .18s, box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(126,217,87,.32); }
.btn-primary:active, .btn-secondary:active, .btn-dark:active { transform: translateY(0); }

/* ================= HERO ================= */
.hero { padding-top: 78px; }
.hero .container { position: relative; }
.hero h1 { letter-spacing: -.025em; text-wrap: balance; }
.hero p { max-width: 560px; }
.hero-mascot {
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
    animation: flutua 5s ease-in-out infinite;
}
@keyframes flutua {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ================= CARTÕES ================= */
.problem-card, .comparison-card, .plan-card {
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .28s, border-color .28s, box-shadow .28s;
}
.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(126,217,87,.28);
    box-shadow: 0 14px 34px rgba(0,0,0,.26);
}
.problem-card .icon {
    font-size: 1.9em; color: var(--color-light-green); margin-bottom: 16px;
}
.plan-card.highlight { box-shadow: 0 16px 44px rgba(126,217,87,.14); }
.how-it-works-card { transition: transform .28s; }
.how-it-works-card:hover { transform: translateY(-5px); }

/* ================= FAQ ================= */
.faq-question { transition: color .22s; }
.faq-question:hover { color: var(--color-light-green); }
.faq-question i { transition: transform .3s; color: var(--color-light-green); font-size: .8em; }
.faq-item { border-bottom-color: rgba(255,255,255,.08); }

/* ================= RODAPÉ ================= */
.footer-links a { transition: color .22s; }
.footer-logo img { border-radius: 8px; }

/* rolagem suave respeitando o menu fixo */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-mascot { animation: none; }
    .btn:hover, .problem-card:hover, .how-it-works-card:hover { transform: none; }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-links { gap: 22px; }
    .nav-links a { font-size: .88em; }
    .hero h1 { font-size: 3.2em; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 78px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #0d1b2e;
        border-bottom: 1px solid rgba(255,255,255,.09);
        padding: 6px 0 14px;
        transform: translateY(-130%);
        transition: transform .32s cubic-bezier(.4,0,.2,1);
        box-shadow: 0 16px 34px rgba(0,0,0,.4);
    }
    .nav-links.aberto { transform: translateY(0); }
    .nav-links a {
        padding: 16px 24px;
        font-size: 1em;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }
    .nav-login { display: none; }
    .hero-mascot { animation: none; }
}

@media (max-width: 768px) {
    .nav-inner { height: 68px; }
    .hero { padding-top: 68px; }
    .nav-links { top: 68px; }
    .nav-brand img { height: 34px; }
    .nav-brand { font-size: 1.05em; }
    .btn-sm { padding: 10px 16px; font-size: .84em; }

    .hero h1 { font-size: 2.6em; }
    .hero p { font-size: 1em; margin-left: auto; margin-right: auto; }
    .section-title { font-size: 1.9em; }
    .section-subtitle { font-size: .96em; }
    .comparison-card, .plan-card { padding: 28px 22px; }
    .problem-card { padding: 24px; min-height: auto; }
    .plan-card .price { font-size: 2.4em; }
    .cta-final { padding: 60px 0; }
    .cta-final p { font-size: 1.05em; }
    .dashboard-content { gap: 30px; }
    .faq-question { font-size: 1em; gap: 14px; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .nav-brand span { display: none; }
    .hero h1 { font-size: 2.15em; }
    .hero-badge { font-size: .8em; }
    .hero-mascot { width: 200px; }
    .section-title { font-size: 1.6em; }
    section { padding: 48px 0; }
    .cta-final h2 { font-size: 1.65em; }
    .plan-card .price { font-size: 2.1em; }
    .comparison-card h3 { font-size: 1.25em; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
    .footer-links a { margin: 0; }
}

/* telas grandes */
@media (min-width: 1400px) {
    .container { max-width: 1280px; }
}

/* ==========================================================================
   LEGIBILIDADE — degradê no hero e textos mais claros
   ========================================================================== */

/* degradê: escuro onde fica o texto, aberto onde fica o mascote */
.hero::before {
    background-color: transparent !important;
    background-image: linear-gradient(
        100deg,
        rgba(6, 14, 26, .95)  0%,
        rgba(6, 14, 26, .90) 30%,
        rgba(6, 14, 26, .68) 55%,
        rgba(6, 14, 26, .38) 78%,
        rgba(6, 14, 26, .30) 100%
    );
}

/* reforço na base, pra separar do resto da página */
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42%;
    background-image: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, .96) 100%);
    z-index: 3;
    pointer-events: none;
}

/* textos do hero em branco */
.hero-content { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero p {
    color: #f1f5f9;
    font-weight: 400;
}
.hero .small-text {
    color: #cbd5e1;
}
.hero-badge {
    background-color: rgba(126, 217, 87, .16);
    border: 1px solid rgba(126, 217, 87, .38);
    color: #a7ea7f;
    font-weight: 600;
}

/* cinza geral um pouco mais claro, sem perder a hierarquia */
.section-subtitle,
.problem-card p,
.how-it-works-card p,
.comparison-card li,
.plan-card li,
.faq-answer,
.footer-links a,
.footer-copyright,
.plan-info {
    color: #b9c5d4;
}

.dashboard-text li p { color: #b9c5d4; }
.plan-card h4 { color: #cbd5e1; }

/* no celular o mascote fica embaixo: escurece por igual */
@media (max-width: 768px) {
    .hero::before {
        background-image: linear-gradient(
            180deg,
            rgba(6, 14, 26, .90) 0%,
            rgba(6, 14, 26, .93) 60%,
            rgba(6, 14, 26, .97) 100%
        );
    }
    .hero::after { height: 26%; }
    .hero-mascot { position: relative; z-index: 6; }
}
/* ==========================================================================
   ACABAMENTO MOBILE — fonte legivel e area de toque confortavel
   ========================================================================== */

/* nada estoura, nunca */
* { min-width: 0; }
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, li, a, span { overflow-wrap: break-word; word-break: break-word; }

/* area de toque do rodape (era 26px de altura) */
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
}

/* logo do menu com area de toque decente (era 34x34) */
.nav-brand {
    min-height: 44px;
    padding: 4px 0;
}

/* botoes: fonte legivel e altura confortavel no dedo */
@media (max-width: 768px) {
    .btn {
        font-size: 15px;
        min-height: 50px;
        padding: 14px 24px;
    }
    .btn-sm {
        font-size: 14px;
        min-height: 42px;
        padding: 10px 18px;
    }
    .hero-badge { font-size: 13px; padding: 7px 16px; }
    .plan-card .badge { font-size: 12px; padding: 6px 14px; }

    /* respiro entre blocos */
    .problem-grid, .how-it-works-grid { gap: 18px; }
    .comparison-grid, .plans-grid { gap: 20px; }
    .section-subtitle { margin-bottom: 34px; }
    .hero-actions { margin-bottom: 26px; }
    .hero .small-text { font-size: 14px; }

    /* itens de lista com mais folga pra leitura */
    .comparison-card li, .plan-card li { margin-bottom: 13px; line-height: 1.5; }
    .dashboard-text li { margin-bottom: 24px; align-items: flex-start; }
    .dashboard-text li .icon { margin-top: 3px; }

    /* FAQ: area de toque grande */
    .faq-question { padding: 6px 0; min-height: 48px; }
    .faq-item { padding: 14px 0; }
}

@media (max-width: 520px) {
    .btn { width: 100%; }
    .how-it-works-section .btn, .cta-final .btn { width: auto; min-width: 240px; }
    .hero-badge { font-size: 12.5px; }
    .footer-links { gap: 6px 18px; }
    .plan-card, .comparison-card { padding: 26px 20px; }
    .plan-card .badge { top: -12px; right: 16px; }
}

/* toque sem aquele flash cinza do Android */
a, button { -webkit-tap-highlight-color: rgba(126,217,87,.18); }

/* foco visivel pra quem navega por teclado */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-light-green);
    outline-offset: 3px;
    border-radius: 6px;
}
/* ==========================================================================
   HERO — layout de 2 colunas no desktop (texto a esquerda, mascote a direita)
   Corrige a sobreposicao do mascote sobre o texto e os botoes.
   ========================================================================== */

@media (min-width: 901px) {
    .hero .container {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        align-items: center;
        gap: 48px;
        text-align: left;
        position: relative;
        z-index: 10;
    }
    .hero-content {
        max-width: 100%;
        text-align: left;
    }
    .hero p { margin-left: 0; margin-right: 0; }
    .hero-actions { justify-content: flex-start; }

    /* mascote sai do absolute e vira coluna de verdade */
    .hero-mascot {
        position: static;
        right: auto; bottom: auto;
        width: 100%;
        max-width: 430px;
        justify-self: center;
        z-index: 5;
    }
    .hero-mascot img { width: 100%; height: auto; }
}

@media (min-width: 1200px) {
    .hero-mascot { max-width: 470px; }
    .hero h1 { font-size: 4.1em; }
}

@media (min-width: 1600px) {
    .hero-mascot { max-width: 520px; }
}

/* entre 901 e 1100 o texto aperta: reduz um pouco o titulo */
@media (min-width: 901px) and (max-width: 1100px) {
    .hero h1 { font-size: 3.1em; }
    .hero-mascot { max-width: 340px; }
    .hero .container { gap: 32px; }
}

/* no celular volta a empilhar, centralizado */
@media (max-width: 900px) {
    .hero .container { display: block; text-align: center; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-mascot {
        position: static;
        margin: 34px auto 0;
        width: 240px;
        max-width: 62%;
    }
    .hero-actions { justify-content: center; }
}
/* ==========================================================================
   CORRECOES VISUAIS
   ========================================================================== */

/* 1) icone duplicado: o CSS antigo criava um ::before alem do simbolo do HTML */
.icon-check::before, .icon-x::before, .icon-whatsapp::before,
.icon-lightning::before, .icon-grid::before, .icon-shield::before,
.icon-arrow-right::before, .icon-doc::before, .icon-chart::before,
.icon-money::before {
    content: none !important;
    display: none !important;
}
.icon-check, .icon-x {
    font-family: inherit !important;
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
    display: inline-block;
    text-align: center;
}

/* 2) espaco entre secoes: estava dobrado (100px + 100px) */
section { padding: 74px 0; }
.comparison-section { padding-top: 20px; }
.dashboard-section  { padding-top: 60px; }
.faq-section        { padding-top: 70px; }

/* 3) respiro do icone dentro dos botoes */
.btn { gap: 9px; }
.btn i { font-size: .88em; }

/* 4) titulos e blocos mais alinhados */
.section-title { text-wrap: balance; }
.section-subtitle { max-width: 620px; margin-left: auto; margin-right: auto; }
.problem-card, .comparison-card { display: flex; flex-direction: column; }
.problem-card h3 { margin-bottom: 12px; }
.comparison-card ul { display: flex; flex-direction: column; gap: 2px; }

/* 5) cartoes da mesma altura, alinhados */
.problem-grid { align-items: stretch; }
.plans-grid, .comparison-grid { align-items: stretch; }
.plan-card { display: flex; flex-direction: column; }
.plan-card ul { flex: 1; }

/* 6) linha divisoria sutil entre blocos claros e escuros */
.comparison-section .container,
.dashboard-section .container { position: relative; }

@media (max-width: 768px) {
    section { padding: 52px 0; }
    .comparison-section { padding-top: 10px; }
    .dashboard-section  { padding-top: 44px; }
}
/* ==========================================================================
   HERO NO CELULAR — mascote acima do titulo, tudo visivel sem rolar
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 92px;
        padding-bottom: 44px;
    }
    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* mascote primeiro, compacto e claro */
    .hero-mascot {
        order: -1;
        position: static;
        width: 148px;
        max-width: 42%;
        margin: 0 auto 16px;
        filter: drop-shadow(0 12px 26px rgba(0,0,0,.5));
    }

    .hero-content { order: 1; width: 100%; }
    .hero-badge { margin-bottom: 16px; }
    .hero h1 { font-size: 2.35em; margin-bottom: 14px; line-height: 1.12; }
    .hero p {
        font-size: .97em;
        line-height: 1.55;
        margin-bottom: 22px;
        max-width: 480px;
        margin-left: auto; margin-right: auto;
    }
    .hero-actions { gap: 11px; margin-bottom: 16px; }
    .hero-actions .btn { min-height: 52px; }
    .hero .small-text { margin-bottom: 0; }

    /* clareia o fundo atras do mascote pra ele nao sumir */
    .hero::after { height: 18%; }
}

@media (max-width: 520px) {
    .hero { padding-top: 84px; padding-bottom: 36px; }
    .hero-mascot { width: 126px; margin-bottom: 13px; }
    .hero h1 { font-size: 2.05em; }
    .hero p { font-size: .93em; margin-bottom: 20px; }
    .hero-actions .btn { min-height: 50px; font-size: 14.5px; }
    .hero .small-text { font-size: 13px; }
}

/* telas baixinhas (iPhone SE e afins): comprime mais pra caber tudo */
@media (max-width: 900px) and (max-height: 700px) {
    .hero { padding-top: 78px; padding-bottom: 28px; }
    .hero-mascot { width: 104px; margin-bottom: 10px; }
    .hero h1 { font-size: 1.85em; }
    .hero p { font-size: .88em; margin-bottom: 16px; }
    .hero-badge { margin-bottom: 12px; font-size: 12px; }
    .hero-actions { gap: 9px; }
    .hero-actions .btn { min-height: 46px; }
}
/* ==========================================================================
   EFEITOS PREMIUM — entrada ao rolar, brilho nos cartoes, profundidade
   ========================================================================== */

/* ---- entrada suave ao rolar ---- */
.revelar {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s cubic-bezier(.22,.61,.36,1),
                transform .75s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}
.revelar.visivel { opacity: 1; transform: none; }
.revelar.d1 { transition-delay: .09s; }
.revelar.d2 { transition-delay: .18s; }
.revelar.d3 { transition-delay: .27s; }
.revelar.d4 { transition-delay: .36s; }

/* ---- cartoes: brilho que segue o mouse + elevacao ---- */
.problem-card, .how-it-works-card, .comparison-card, .plan-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.problem-card::before,
.how-it-works-card::before,
.comparison-card::before,
.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity .45s;
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(126, 217, 87, .13),
        transparent 62%
    );
}
.problem-card:hover::before,
.how-it-works-card:hover::before,
.comparison-card:hover::before,
.plan-card:hover::before { opacity: 1; }

.problem-card, .how-it-works-card, .comparison-card, .plan-card {
    transition: transform .38s cubic-bezier(.22,.61,.36,1),
                border-color .38s, box-shadow .38s, background-color .38s;
}
.problem-card:hover, .comparison-card:hover {
    transform: translateY(-7px);
    border-color: rgba(126,217,87,.34);
    box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(126,217,87,.1);
}
.how-it-works-card:hover { transform: translateY(-7px) scale(1.015); }
.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(126,217,87,.42);
    box-shadow: 0 22px 54px rgba(0,0,0,.4);
}
.plan-card.highlight:hover {
    box-shadow: 0 22px 60px rgba(126,217,87,.2), 0 0 0 1px rgba(126,217,87,.3);
}

/* icone do cartao reage junto */
.problem-card .icon, .how-it-works-card .icon {
    transition: transform .38s cubic-bezier(.34,1.56,.64,1), color .3s;
    display: inline-block;
}
.problem-card:hover .icon, .how-it-works-card:hover .icon {
    transform: translateY(-4px) scale(1.14);
}

/* ---- plano em destaque com brilho pulsante suave ---- */
.plan-card.highlight { position: relative; }
.plan-card.highlight .badge {
    box-shadow: 0 4px 16px rgba(126,217,87,.4);
    animation: pulsaBadge 2.8s ease-in-out infinite;
}
@keyframes pulsaBadge {
    0%, 100% { box-shadow: 0 4px 16px rgba(126,217,87,.4); }
    50%      { box-shadow: 0 4px 26px rgba(126,217,87,.7); }
}

/* ---- botoes com brilho que atravessa ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
    transform: skewX(-22deg);
    transition: left .62s cubic-bezier(.22,.61,.36,1);
}
.btn-primary:hover::after { left: 130%; }
.btn i { transition: transform .3s; }
.btn:hover i { transform: translateX(4px); }

/* ---- FAQ mais vivo ---- */
.faq-item {
    transition: background-color .3s, padding-left .3s;
    border-radius: 8px;
}
.faq-item:hover { background-color: rgba(255,255,255,.025); padding-left: 12px; }

/* ---- imagem do dashboard com moldura ---- */
.dashboard-image img {
    transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s;
    border: 1px solid rgba(255,255,255,.09);
}
.dashboard-image img:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 28px 62px rgba(0,0,0,.46);
}

/* ---- CTA final com textura ---- */
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 45%),
                radial-gradient(circle at 82% 78%, rgba(255,255,255,.16), transparent 42%);
    pointer-events: none;
}
.cta-final .container { position: relative; z-index: 2; }

/* ---- linha de luz separando as seções ---- */
.problem-section, .how-it-works-section, .plans-section {
    position: relative;
}
.problem-section::before, .how-it-works-section::before, .plans-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(560px, 72%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126,217,87,.32), transparent);
}

/* ---- barra de rolagem discreta ---- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb {
    background: #24384f; border-radius: 6px; border: 2px solid #0a1628;
}
::-webkit-scrollbar-thumb:hover { background: #35506d; }

/* respeita quem prefere menos animacao */
@media (prefers-reduced-motion: reduce) {
    .revelar { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn-primary::after, .plan-card.highlight .badge { animation: none; transition: none; }
    .problem-card:hover, .comparison-card:hover, .plan-card:hover,
    .how-it-works-card:hover, .dashboard-image img:hover { transform: none; }
}

/* no celular sem hover: mantem leve */
@media (hover: none) {
    .problem-card::before, .how-it-works-card::before,
    .comparison-card::before, .plan-card::before { display: none; }
}
/* ==========================================================================
   RESPIRO DO HERO NO DESKTOP — o badge estava colado no menu
   ========================================================================== */
@media (min-width: 901px) {
    .hero {
        padding-top: 148px;
        padding-bottom: 80px;
        min-height: 100vh;
    }
    .hero-badge { margin-bottom: 26px; }
}
@media (min-width: 901px) and (max-height: 820px) {
    .hero { padding-top: 124px; padding-bottom: 56px; min-height: auto; }
}

/* ==========================================================================
   PAGINAS LEGAIS (privacidade / termos)
   ========================================================================== */
.pagina-legal {
    padding: 150px 0 90px;
    text-align: left;
    background-color: var(--color-dark-blue);
    min-height: 100vh;
}
.pagina-legal .container { max-width: 860px; }
.legal-topo { margin-bottom: 44px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.legal-topo h1 { font-size: 2.6em; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.legal-topo p { color: var(--color-light-gray); font-size: .95em; }

.pagina-legal h2 {
    font-size: 1.4em; font-weight: 700; margin: 42px 0 14px;
    color: var(--color-light-green);
}
.pagina-legal h3 { font-size: 1.08em; font-weight: 650; margin: 24px 0 8px; }
.pagina-legal p, .pagina-legal li { color: #c3cedb; line-height: 1.75; margin-bottom: 13px; }
.pagina-legal ul { list-style: none; padding-left: 0; margin-bottom: 18px; }
.pagina-legal ul li { position: relative; padding-left: 22px; }
.pagina-legal ul li::before {
    content: '•'; position: absolute; left: 4px;
    color: var(--color-light-green); font-weight: 700;
}
.pagina-legal strong { color: #fff; font-weight: 650; }
.pagina-legal a { color: var(--color-light-green); }
.pagina-legal a:hover { text-decoration: underline; }

.caixa-aviso {
    background-color: rgba(126,217,87,.07);
    border: 1px solid rgba(126,217,87,.24);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 26px 0;
}
.caixa-aviso p:last-child { margin-bottom: 0; }

.legal-voltar {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 46px; padding: 13px 26px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
    color: #fff; font-weight: 600; transition: .25s;
}
.legal-voltar:hover { border-color: var(--color-light-green); color: var(--color-light-green); }

@media (max-width: 768px) {
    .pagina-legal { padding: 108px 0 60px; }
    .legal-topo h1 { font-size: 1.85em; }
    .pagina-legal h2 { font-size: 1.2em; margin-top: 34px; }
    .caixa-aviso { padding: 18px; }
}

/* === ajustes ZapiCash 04/08/2026 === */

/* --- o selo dos planos estava sendo cortado pelo overflow:hidden do card.
       Devolve o transbordo ao card e arredonda o brilho no lugar dele. --- */
.plan-card { overflow: visible; }
.plan-card::before { border-radius: 15px; }
.plan-card .badge { z-index: 3; }

/* --- três planos lado a lado sem espremer nem estourar a largura --- */
.plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.plans-grid .plan-card {
    width: 340px;
    max-width: 100%;
    padding: 34px 30px;
}
.plan-card .cota {
    display: inline-block;
    background: rgba(126, 217, 87, .12);
    border: 1px solid rgba(126, 217, 87, .3);
    color: #a7ea7f;
    font-size: .78em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.plan-anual {
    text-align: center;
    color: #b9c5d4;
    font-size: .92em;
    margin-top: 26px;
}
.plan-anual b { color: #7ed957; }

/* --- seção nova: o que o agente faz --- */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}
.recurso-card {
    background-color: var(--color-card-bg-dark);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;
    padding: 30px 26px;
    text-align: left;
    transition: transform .3s, border-color .3s;
}
.recurso-card:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 217, 87, .42);
}
.recurso-card .ic {
    font-size: 1.7em;
    color: #7ed957;
    margin-bottom: 14px;
}
.recurso-card h4 {
    font-size: 1.12em;
    margin-bottom: 8px;
    color: #cbd5e1;
}
.recurso-card p {
    color: #b9c5d4;
    font-size: .93em;
    line-height: 1.65;
}

@media (max-width: 1140px) {
    .plans-grid .plan-card { width: 400px; }
}
@media (max-width: 768px) {
    .plans-grid .plan-card { width: 100%; padding: 30px 24px; }
    .recursos-grid { margin-top: 34px; }
}


/* === chave mensal/anual 04/08/2026 === */
/* --- O menu é fixo e tem 69px. Sem isto, clicar em "FAQ" leva o título
       para debaixo da barra. Empurra o ponto de parada para baixo. --- */
section[id], div[id] { scroll-margin-top: 88px; }

/* --- 8 recursos em vez de 6: fecha 4+4 no desktop e não sobra buraco --- */
.recursos-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 1000px) {
    .recursos-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 999px) and (min-width: 620px) {
    .recursos-grid { grid-template-columns: repeat(2, 1fr); }
}
.plans-chave { display: flex; justify-content: center; margin-top: 34px; }
.chave-caixa {
    display: inline-flex; gap: 4px; padding: 5px;
    background: var(--color-card-bg-dark);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
}
.chave-caixa button {
    background: none; border: none; color: #b9c5d4;
    font-family: inherit; font-size: .95em; font-weight: 700;
    padding: 11px 26px; border-radius: 10px; cursor: pointer;
    transition: background .22s, color .22s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
}
.chave-caixa button.on { background: #7ed957; color: #0a1628; }
.chave-caixa button:not(.on):hover { color: #fff; }
.off33 {
    font-size: .74em; font-weight: 800; padding: 2px 8px; border-radius: 20px;
    background: rgba(126,217,87,.16); color: #7ed957;
}
.chave-caixa button.on .off33 { background: rgba(10,22,40,.16); color: #0a1628; }

.plan-card .cobranca {
    color: #8b9aad; font-size: .86em; margin: -14px 0 18px;
    min-height: 1.4em;
}
#recado-anual { transition: color .25s; }

@media (max-width: 480px) {
    .chave-caixa button { padding: 10px 18px; font-size: .88em; }
    .plans-chave { margin-top: 26px; }
}
