/**
 * =====================================================
 * FLUXUSBI - HOME PÚBLICA V2 (ETAPA 1)
 * Arquivo: /assets/css/home-fluxusbi-v2.css
 * =====================================================
 * Este arquivo é carregado DEPOIS do <style> do index.php
 * e do public-navbar.css, então ele "vence" os estilos antigos.
 * Para voltar ao visual antigo, basta remover a linha <link>
 * deste arquivo no index.php.
 * =====================================================
 */

/* ---------- 1. FONTES (Manrope nos títulos, Inter no texto) ---------- */
:root {
    --fonte-titulo: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --fonte-corpo: 'Inter', 'Segoe UI', Arial, sans-serif;
    --fx-azul-escuro: #0b2545;
    --fx-azul: #1d4ed8;
    --fx-texto: #1e293b;
    --fx-texto-suave: #5b6b80;
}

body {
    font-family: var(--fonte-corpo);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fx-texto);
    -webkit-font-smoothing: antialiased;
}

/* Menu do topo (o public-navbar.css usa DM Sans) */
.navbar-fluxus,
.navbar-fluxus .nav-link-pub,
.navbar-fluxus .nav-solutions-menu a,
.navbar-fluxus .btn-nav-login,
.navbar-fluxus .fluxusbi-install-app {
    font-family: var(--fonte-corpo) !important;
}

/* Títulos de seção: mais sóbrios e com melhor leitura */
.section-titulo,
.cta-final h2,
.home-promo-card h2 {
    font-family: var(--fonte-titulo);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.section-badge {
    font-family: var(--fonte-corpo);
    font-weight: 600;
    letter-spacing: .04em;
}

/* ---------- 2. TOPO DA PÁGINA (HERO) ---------- */
.hero-titulo {
    font-family: var(--fonte-titulo);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    font-weight: 400;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Faixa de provas (substitui "1 Plataforma / 100% Web") */
.hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .9rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    max-width: 560px;
}

.hero-proof li {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-proof i {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    color: #67e8f9;
    font-size: 1rem;
}

/* Vitrine do produto (tela real + celular) */
.hv-wrap {
    position: relative;
    padding: 0 0 2.5rem;
}

.hv-browser {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px rgba(2, 20, 42, .35);
    border: 1px solid rgba(255, 255, 255, .25);
}

.hv-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    background: #eef2f9;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.hv-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hv-bar span:nth-child(1) { background: #f87171; }
.hv-bar span:nth-child(2) { background: #fbbf24; }
.hv-bar span:nth-child(3) { background: #4ade80; }

.hv-bar em {
    margin-left: .6rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: .72rem;
    font-style: normal;
}

.hv-shot {
    display: block;
    width: 100%;
    height: auto;
}

.hv-phone {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 27%;
    min-width: 108px;
    border-radius: 22px;
    border: 5px solid #0b2545;
    background: #0b2545;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(2, 20, 42, .45);
}

.hv-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.hv-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: #fff;
    color: #0b2545;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(2, 20, 42, .28);
    white-space: nowrap;
}

.hv-chip i { color: #16a34a; font-size: 1rem; }
.hv-chip-1 { left: -14px; top: 38%; }
.hv-chip-2 { left: 8%; bottom: 0; }
.hv-chip-2 i { color: #2563eb; }

@media (max-width: 991.98px) {
    .hero-section { padding: 4.5rem 0 3.5rem; }
    .hv-wrap { margin-top: 1rem; }
    .hv-chip-1 { left: 6px; }
}

@media (max-width: 575.98px) {
    .hero-proof { grid-template-columns: 1fr; }
    .hv-chip { font-size: .72rem; padding: .4rem .65rem; }
    .hv-chip-1 { top: 30%; }
}

/* ---------- 3. PLANOS (preços sem estourar o cartão) ---------- */
.plano-nome,
#planos .plano-nome {
    font-family: var(--fonte-titulo);
    font-weight: 800;
    letter-spacing: .02em;
}

#planos .plano-preco .valor {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.8rem, 2vw + .7rem, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ---------- 4. TESTE GRÁTIS FLUTUANTE ---------- */
.trial-float,
.trial-float-card,
.trial-float-title strong {
    font-family: var(--fonte-corpo);
}

@media (max-width: 767.98px) {
    /* Botão pequeno no canto esquerdo: não cobre mais os botões da página */
    .trial-float.is-collapsed {
        left: 12px;
        right: auto;
        bottom: 14px;
        width: auto;
    }

    .trial-float.is-collapsed .trial-float-trigger {
        width: auto;
        padding: .62rem .95rem;
        font-size: .82rem;
    }

    /* Formulário aberto: ocupa a largura, acima do WhatsApp */
    .trial-float:not(.is-collapsed) {
        left: 12px;
        right: 12px;
        bottom: 78px;
        width: auto;
    }

    /* Espaço no fim da página para o botão não cobrir o rodapé */
    body { padding-bottom: 72px; }
}

/* ---------- 5. ACESSIBILIDADE ---------- */
@media (prefers-reduced-motion: reduce) {
    .hv-chip, .hv-phone, .hv-browser { transition: none; animation: none; }
}
