:root {
    --primary: #635BFF;
    --primary-hover: #7C3AED;
    --text-main: #0F172A;
    --text-sec: #64748B;
    --bg-light: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --surface: #FFFFFF;
    --page-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.9);
    --badge-bg: #EEF2FF;
    --radius: 12px;
}

[data-theme="dark"] {
    --primary: #8B7FFF;
    --primary-hover: #A599FF;
    --text-main: #F1F5F9;
    --text-sec: #94A3B8;
    --bg-light: #171B2A;
    --border: #2A3244;
    --surface: #12151F;
    --page-bg: #0B0E17;
    --header-bg: rgba(11, 14, 23, 0.85);
    --badge-bg: rgba(139, 127, 255, 0.15);
}

body {
    background: var(--page-bg);
    transition: background 0.25s ease, color 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text-main); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* Evita que itens de grid/flex "estourem" a largura da tela quando o
   conteúdo (texto curto, números) não tem onde quebrar linha — sem isso,
   em telas pequenas o site inteiro passa a rolar na horizontal. */
.hero-grid > *, .simulator-grid > *, .plus-container > *, .reports-grid > *,
.problem-grid > *, .management-grid > *, .metric-grid-ui > *, .dash-stats > *,
.footer-grid > * {
    min-width: 0;
}
.hidden { display: none !important; }
body.nav-open { overflow: hidden; }

/* Botoes */
.btn { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-main); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* Header */
#main-header { position: sticky; top: 0; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 1000; padding: 15px 0; }
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.4rem; color: var(--primary); text-decoration: none; }
.nav-menu ul { display: flex; gap: 25px; list-style: none; }
.nav-menu a { color: var(--text-sec); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-mobile-cta { display: none; }

/* Botão hamburguer (some no desktop) */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu de navegação em painel, no mobile */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .header-cta-desktop { display: none; }

    .nav-menu {
        position: fixed;
        top: var(--header-h, 70px);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--header-h, 70px));
        overflow-y: auto;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 30px rgba(0,0,0,0.12);
        padding: 20px 24px 28px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
        z-index: 999;
    }
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-menu ul { flex-direction: column; gap: 0; }
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a { display: block; padding: 14px 4px; font-size: 1rem; }
    .nav-mobile-cta { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
}

/* Hero */
.hero { padding: 80px 0; background: radial-gradient(circle at top right, #f4f6fa 0%, #ffffff 100%); }
[data-theme="dark"] .hero { background: radial-gradient(circle at top right, #171B2A 0%, #0B0E17 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.badge { background: var(--badge-bg); color: var(--primary); padding: 5px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; display: inline-block; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; letter-spacing: -1px; }
.hero-highlight { font-size: 1.8rem; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.hero-description { font-size: 1.2rem; color: var(--text-sec); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }

/* Dashboard Mockup */
.dashboard-mockup { background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.status-pill { font-size: 0.7rem; padding: 4px 10px; border-radius: 50px; background: #DCFCE7; color: #166534; font-weight: 700; }
[data-theme="dark"] .status-pill { background: rgba(34, 197, 94, 0.18); color: #4ADE80; }
.dash-stats { display: flex; gap: 15px; margin: 20px 0; }
.stat-item { flex: 1; background: var(--bg-light); padding: 15px; border-radius: 8px; }
.stat-item label { font-size: 0.7rem; color: var(--text-sec); display: block; }
.stat-value { font-size: 1.4rem; font-weight: 800; }
.dash-graph { margin-top: 15px; height: 60px; }

/* Grid Comum */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* Problemas */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.problem-card { padding: 40px; background: var(--bg-light); border-radius: var(--radius); border: 1px solid transparent; transition: 0.3s; }
.problem-card:hover { background: var(--surface); border-color: var(--border); transform: translateY(-5px); box-shadow: var(--shadow); }
.icon-svg { color: var(--primary); margin-bottom: 20px; }

/* Timeline */
.steps-timeline { display: flex; justify-content: space-between; position: relative; margin-top: 40px; }
.steps-timeline::before { content: ''; position: absolute; top: 30px; left: 50px; right: 50px; height: 2px; background: var(--border); z-index: 1; }
.step-item { flex: 1; text-align: center; position: relative; z-index: 2; }
.step-icon-wrap { width: 60px; height: 60px; background: var(--surface); border: 2px solid var(--border); border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: 0.3s; }
.step-item:hover .step-icon-wrap { border-color: var(--primary); transform: scale(1.1); }
.step-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-item p { font-size: 0.9rem; color: var(--text-sec); padding: 0 10px; }

/* Simulador */
.simulator-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 60px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); position: relative; }
.simulator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.range-container { position: relative; }

/* Balão com o valor atual, acompanha o polegar enquanto arrasta — ajuda a
   "mirar" num número (ex: R$1.000) sem depender só da precisão do dedo. */
.range-bubble {
    position: absolute;
    bottom: 100%;
    left: var(--progress, 0%);
    transform: translateX(-50%);
    margin-bottom: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
}
.range-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary);
}
.range-container.show-bubble .range-bubble { opacity: 1; }

/* Atalhos de valores comuns — no touch é bem mais fácil acertar um valor
   redondo tocando aqui do que arrastando o slider com precisão. */
.investment-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset-chip {
    appearance: none;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.15s ease;
}
.preset-chip:hover { border-color: var(--primary); color: var(--primary); }
.preset-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.range-container input {
    width: 100%; height: 8px; appearance: none; border-radius: 5px; outline: none; margin: 25px 0;
    /* Preenche a trilha até a posição atual, acompanhando o arraste em tempo real */
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress, 0%), var(--border) var(--progress, 0%), var(--border) 100%);
    transition: background 0.05s linear;
    /* O arraste de precisão no toque (ver simulator.js) assume o controle
       completo do gesto — sem isso, a página poderia tentar rolar junto. */
    touch-action: none;
}
.range-container input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; background: var(--primary); border-radius: 50%; cursor: pointer; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.range-container input::-moz-range-thumb { width: 24px; height: 24px; background: var(--primary); border-radius: 50%; cursor: pointer; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.range-container input:hover::-webkit-slider-thumb,
.range-container input:focus-visible::-webkit-slider-thumb,
.range-container input:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 4px 14px rgba(99,91,255,0.4); }
.range-container input:hover::-moz-range-thumb,
.range-container input:focus-visible::-moz-range-thumb,
.range-container input:active::-moz-range-thumb { transform: scale(1.15); box-shadow: 0 4px 14px rgba(99,91,255,0.4); }

/* Pulsa suavemente até a pessoa perceber que o slider é arrastável;
   some assim que ocorre a primeira interação (ver simulator.js). */
@keyframes sliderPulseHint {
    0%, 100% { box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(99,91,255,0.35); }
    50% { box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 0 0 9px rgba(99,91,255,0); }
}
.range-container.pulse-hint input::-webkit-slider-thumb { animation: sliderPulseHint 1.8s ease-in-out infinite; }
.range-container.pulse-hint input::-moz-range-thumb { animation: sliderPulseHint 1.8s ease-in-out infinite; }

/* Pequeno "salto" no polegar a cada movimento do slider (ver simulator.js) */
@keyframes sliderThumbBump {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1.15); }
}
.range-container input.is-moving::-webkit-slider-thumb { animation: sliderThumbBump 0.2s ease-out; }
.range-container input.is-moving::-moz-range-thumb { animation: sliderThumbBump 0.2s ease-out; }

@media (prefers-reduced-motion: reduce) {
    .range-container.pulse-hint input::-webkit-slider-thumb,
    .range-container.pulse-hint input::-moz-range-thumb,
    .range-container input.is-moving::-webkit-slider-thumb,
    .range-container input.is-moving::-moz-range-thumb { animation: none; }
}

.range-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-sec); font-weight: 600; }
.input-number-wrapper { display: flex; align-items: center; background: var(--bg-light); border: 2px solid var(--border); border-radius: 8px; padding: 12px 24px; }
.input-number-wrapper input { background: transparent; border: none; font-size: 2.2rem; font-weight: 800; width: 100%; outline: none; color: var(--text-main); }
/* Remove as setinhas/spinner nativas do <input type="number"> — em alguns
   navegadores de celular (Brave/Chrome Android) elas aparecem por cima do
   valor, na borda direita da caixa, como um pequeno ícone solto. */
.input-number-wrapper input[type="number"] { -moz-appearance: textfield; }
.input-number-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-number-wrapper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.currency-prefix { font-weight: 800; margin-right: 10px; color: var(--text-sec); font-size: 1.2rem; }

/* Balão de desconto */
.discount-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.discount-bubble svg { flex-shrink: 0; }
.discount-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: var(--badge-bg);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    transform: rotate(45deg);
}
@media (max-width: 600px) {
    .discount-bubble { font-size: 0.75rem; padding: 8px 14px; text-align: left; }
}

.result-card { background: var(--bg-light); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.views-display { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 0.2em; row-gap: 4px; font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 900; color: var(--primary); margin: 20px 0; letter-spacing: -1px; }
.views-display span[id^="view-"] { white-space: nowrap; }
.views-display .views-max-group { white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0.2em; }
.views-display .views-sep { font-size: 0.55em; font-weight: 700; color: var(--text-sec); letter-spacing: 0; }
.label-views { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: var(--text-sec); letter-spacing: 1px; }

.btn svg { flex-shrink: 0; margin-right: 8px; }
.whatsapp-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.78rem; color: var(--text-sec); margin-top: 12px; }

/* Plus Toggle */
.plus-toggle-area { margin: 25px 0; padding: 15px; background: var(--badge-bg); border-radius: 10px; border: 1px dashed var(--primary); }
.plus-checkbox-label { display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.plus-box-text { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
#plus-checkbox { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }

.plus-info-text {
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    transform-origin: top center;
}
.plus-info-text.plus-info-animate {
    animation: plusInfoPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes plusInfoPop {
    0% { opacity: 0; transform: translateY(-8px) scale(0.92); }
    60% { opacity: 1; transform: translateY(2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Campanha Plus Secao */
.plus-section { background: var(--bg-light); }
.plus-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: var(--surface); border: 1px solid var(--border); padding: 60px; border-radius: 24px; }
.price-tag { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.plus-comparison { display: flex; flex-direction: column; gap: 20px; }
.comp-card { padding: 25px; background: var(--bg-light); border-radius: 15px; border: 1px solid var(--border); }
.highlight-plus { border-color: var(--primary); background: var(--badge-bg); }
.icon-sm { color: var(--primary); margin-bottom: 10px; }

/* Gestao */
.management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.mgmt-card { background: var(--surface); border: 1px solid var(--border); padding: 35px; border-radius: 20px; display: flex; gap: 20px; }
.mgmt-icon { color: var(--primary); flex-shrink: 0; }
.mgmt-info h3 { margin-bottom: 8px; font-size: 1.2rem; }
.mgmt-info p { font-size: 0.95rem; color: var(--text-sec); }

/* Relatorios */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.report-list-ui { list-style: none; margin-top: 30px; }
.report-list-ui li { margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.report-list-ui li::before { content: '✓'; color: var(--primary); font-weight: 900; }
.report-mockup-ui { background: var(--surface); border: 1px solid var(--border); padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.metric-grid-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.m-box-ui { background: var(--bg-light); padding: 20px; border-radius: 10px; text-align: center; }
.m-box-ui span { display: block; font-size: 0.7rem; color: var(--text-sec); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.m-box-ui strong { font-size: 1.4rem; }
.mockup-tag { display: block; text-align: center; font-size: 0.8rem; color: var(--text-sec); font-style: italic; }

/* FAQ */
.faq-section { background: var(--bg-light); }
.accordion { max-width: 850px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border); background: var(--surface); margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.accordion-header { width: 100%; padding: 25px; text-align: left; background: none; border: none; color: var(--text-main); font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; transition: 0.2s; }
.accordion-header:hover { color: var(--primary); }
.accordion-body { max-height: 0; overflow: hidden; transition: 0.3s ease-in-out; }
.accordion-body p { padding: 0 25px 25px; color: var(--text-sec); font-size: 0.95rem; }
.accordion-item.active .accordion-body { max-height: 300px; }

/* Footer */
.main-footer { background: #0F172A; color: white; padding: 100px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.logo-footer { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 25px; }
.footer-brand p { color: #94A3B8; font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { color: #64748B; margin-bottom: 25px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #CBD5E1; text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 40px; }
.company-info { display: flex; flex-direction: column; gap: 10px; color: #64748B; font-size: 0.85rem; }
.company-identification { font-size: 0.78rem; color: #64748B; }
.legal-disclaimer { font-size: 0.75rem; color: #475569; }

/* Responsivo */
@media (max-width: 1024px) {
    .hero-grid, .simulator-grid, .plus-container, .reports-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { justify-content: center; }
    .problem-grid, .management-grid { grid-template-columns: 1fr; }
    /* .steps-timeline usa flexbox, não grid — precisa de flex-direction pra empilhar */
    .steps-timeline { flex-direction: column; gap: 40px; }
    .steps-timeline::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .plus-left { margin-bottom: 40px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }

    /* Botões do hero: em vez de espremer os dois lado a lado, empilha e
       ocupa a largura toda — mais fácil de tocar no celular. */
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    /* Tipografia e espaçamentos grandes demais pra tela pequena */
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero-highlight { font-size: 1.4rem; }
    .hero-description { font-size: 1.05rem; }
    section { padding: 64px 0; }
    .section-header { margin: 0 auto 40px; }
    .section-header h2 { font-size: 1.9rem; }

    .simulator-wrapper { padding: 24px 20px; border-radius: 18px; }
    /* O título/subtítulo do simulador, sem tamanho próprio definido, herdava
       o tamanho padrão do navegador (h2 ~24px) e quebrava em 4 linhas antes
       de qualquer controle aparecer na tela — parte do "muito esticado".
       Aqui ganham um tamanho pensado pra tela pequena. */
    .simulator-header h2 { font-size: 1.3rem; line-height: 1.3; }
    .simulator-header p { font-size: 0.92rem; margin-top: 6px; }
    /* No mobile a grade empilha (regra de 1024px), mas o espaçamento de
       desktop (gap/margem grandes, pensados pra 2 colunas) continua ativo
       e deixa o card comprido demais — aqui é só pra uma coluna. */
    .simulator-grid { gap: 24px; margin-top: 18px; }
    .discount-bubble { margin-bottom: 14px; }
    .range-container input { margin: 16px 0; }
    /* Polegar maior no touch — alvo pequeno demais é a raiz do "difícil de
       acertar um valor" no celular. */
    .range-container input::-webkit-slider-thumb { width: 30px; height: 30px; }
    .range-container input::-moz-range-thumb { width: 30px; height: 30px; }
    .investment-presets { margin-top: 12px; gap: 6px; }
    .preset-chip { padding: 9px 12px; font-size: 0.78rem; }
    .input-number-wrapper { padding: 10px 18px; }
    .input-number-wrapper input { font-size: 1.8rem; }
    .result-card { padding: 22px 20px; }
    .result-card h3 { font-size: 1.05rem; }
    .views-display { margin: 12px 0; }
    .plus-toggle-area { margin: 14px 0; padding: 12px; }
    /* "label-views" e o disclaimer também herdavam tamanho padrão do corpo
       do site (16px) sem nenhuma regra própria — grande demais pra um texto
       de apoio/legal, e um dos maiores contribuintes da altura total do
       card no celular. */
    .disclaimer-sim { font-size: 0.78rem; line-height: 1.45; color: var(--text-sec); margin-top: 8px; }
    .whatsapp-hint { margin-top: 10px; }
    .plus-container { padding: 32px 20px; gap: 40px; border-radius: 18px; }
    .problem-card { padding: 28px; }
    .mgmt-card { padding: 22px; gap: 16px; }
    .report-mockup-ui { padding: 24px; }
    .dashboard-mockup { padding: 18px; }

    .main-footer { padding: 64px 0 32px; }
    .footer-grid { gap: 36px; margin-bottom: 36px; }
}

/* Mascote */
.veena-mascot {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.veena-mascot--hide {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
.veena-mascot--gone {
    display: none;
}
.mascot-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}
.mascot-avatar:hover { transform: translateY(-2px); }
#mascot-sprite {
    width: 84%;
    height: 84%;
    object-fit: contain;
    image-rendering: pixelated;
}
.veena-mascot--walking .mascot-avatar {
    animation: mascotWalkBob 0.26s ease-in-out infinite;
}
@keyframes mascotWalkBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.mascot-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mascot-close:hover { color: var(--text-main); }
.mascot-bubble {
    order: -1;
    max-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
}
.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 22px;
    width: 14px;
    height: 14px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}
.mascot-bubble-animate {
    animation: mascotBubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes mascotBubblePop {
    0% { opacity: 0; transform: translateY(8px) scale(0.9); }
    60% { opacity: 1; transform: translateY(-2px) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .veena-mascot { left: 14px; bottom: 14px; }
    .mascot-avatar { width: 54px; height: 54px; }
    .mascot-bubble { max-width: 65vw; font-size: 0.78rem; }
}
/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 1200;
    padding: 18px 24px;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-inner p { font-size: 0.85rem; color: var(--text-sec); flex: 1; min-width: 260px; }
.cookie-banner-inner a { color: var(--primary); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ===== Cookie preferences modal ===== */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cookie-modal-header h3 { font-size: 1.1rem; }
.cookie-modal-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text-sec); }
.cookie-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.cookie-pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-pref-row strong { font-size: 0.95rem; }
.cookie-pref-row p { font-size: 0.82rem; color: var(--text-sec); margin-top: 4px; }
.cookie-pref-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.cookie-modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

@media (max-width: 600px) {
    .cookie-banner { padding: 16px 18px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-banner-inner p { font-size: 0.8rem; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ===== Páginas jurídicas ===== */
.legal-page-header { position: sticky; top: 0; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 1000; padding: 15px 0; }
.legal-page-header .container { display: flex; align-items: center; justify-content: space-between; }
.legal-back { font-size: 0.9rem; font-weight: 600; color: var(--text-sec); text-decoration: none; }
.legal-back:hover { color: var(--primary); }

.legal-shell { padding: 60px 0 100px; background: var(--bg-light); min-height: 60vh; }

/* Página 404 */
.notfound-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.notfound-mascot { margin-bottom: 8px; }
.notfound-code { font-size: 4rem; font-weight: 900; color: var(--primary); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.notfound-wrap h1 { font-size: 1.7rem; margin-bottom: 14px; }
.notfound-text { color: var(--text-sec); margin-bottom: 28px; }
@media (max-width: 600px) {
    .notfound-code { font-size: 3rem; }
    .notfound-wrap h1 { font-size: 1.4rem; }
}
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; max-width: 980px; margin: 0 auto; padding: 0 24px; }
.legal-toc { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.legal-toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-sec); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.legal-toc a { font-size: 0.85rem; color: var(--text-main); text-decoration: none; line-height: 1.4; display: block; }
.legal-toc a:hover { color: var(--primary); }

.legal-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 50px; }
.legal-doc h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-updated { font-size: 0.82rem; color: var(--text-sec); margin-bottom: 36px; }
.legal-doc h2 { font-size: 1.25rem; margin: 40px 0 14px; scroll-margin-top: 100px; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p { color: var(--text-main); margin-bottom: 14px; font-size: 0.95rem; }
.legal-doc ul, .legal-doc ol.legal-list { margin: 0 0 14px 22px; font-size: 0.95rem; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--primary); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 0.85rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.legal-doc th { background: var(--bg-light); font-weight: 700; }
.legal-note { background: var(--badge-bg); border: 1px solid var(--primary); border-radius: 8px; padding: 14px 16px; font-size: 0.85rem; color: var(--text-main); margin: 16px 0; }

.legal-doc-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-doc-links a { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.legal-doc-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-doc { padding: 30px 24px; }
}


/* ===== Alternância de tema ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.legal-page-header .container { gap: 14px; }
.legal-header-actions { display: flex; align-items: center; gap: 14px; }

/* ===== Transição de eclipse ao trocar de tema ===== */
#eclipse-stage {
    position: fixed;
    top: 84px;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3000;
}
#eclipse-sun, #eclipse-moon {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}
#eclipse-sun {
    width: 104px;
    height: 104px;
    left: -52px;
    top: -52px;
    background: radial-gradient(circle, #ffffff 0%, #fff4d6 22%, #ffdb8a 40%, #ffb74d 58%, rgba(255,183,77,0) 76%);
}
#eclipse-moon {
    width: 64px;
    height: 64px;
    left: -32px;
    top: -32px;
    background: radial-gradient(circle at 35% 32%, #4b5166, #14121f 72%);
}

@keyframes eclipseSunToDark {
    0% { opacity: 0; transform: scale(0.8); }
    12% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes eclipseMoonToDark {
    0%   { opacity: 0; transform: translate(72vw, 42vh) scale(0.7); box-shadow: 0 0 0 0 rgba(255,200,120,0); }
    10%  { opacity: 1; }
    55%  { opacity: 1; transform: translate(0,0) scale(1); box-shadow: 0 0 34px 10px rgba(255,200,120,0.55); }
    88%  { opacity: 1; transform: translate(0,0) scale(1); box-shadow: 0 0 22px 6px rgba(255,200,120,0.3); }
    100% { opacity: 0; transform: translate(0,0) scale(1); box-shadow: 0 0 0 0 rgba(255,200,120,0); }
}
@keyframes eclipseSunToLight {
    0% { opacity: 0; transform: scale(0.85); }
    15% { opacity: 1; transform: scale(1); }
    72% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes eclipseMoonToLight {
    0%   { opacity: 0; transform: translate(0,0) scale(0.85); box-shadow: 0 0 0 0 rgba(255,200,120,0); }
    15%  { opacity: 1; transform: translate(0,0) scale(1); box-shadow: 0 0 34px 10px rgba(255,200,120,0.55); }
    45%  { opacity: 1; transform: translate(0,0) scale(1); box-shadow: 0 0 20px 6px rgba(255,200,120,0.3); }
    100% { opacity: 0; transform: translate(-72vw, 42vh) scale(0.7); box-shadow: 0 0 0 0 rgba(255,200,120,0); }
}

#eclipse-sun.eclipse-to-dark { animation: eclipseSunToDark 1300ms ease-in-out forwards; }
#eclipse-moon.eclipse-to-dark { animation: eclipseMoonToDark 1300ms cubic-bezier(0.3, 0, 0.2, 1) forwards; }
#eclipse-sun.eclipse-to-light { animation: eclipseSunToLight 1300ms ease-in-out forwards; }
#eclipse-moon.eclipse-to-light { animation: eclipseMoonToLight 1300ms cubic-bezier(0.3, 0, 0.2, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
    #eclipse-sun, #eclipse-moon { animation: none !important; opacity: 0 !important; }
}

@media (max-width: 600px) {
    #eclipse-stage { top: 62px; }
    #eclipse-sun { width: 76px; height: 76px; left: -38px; top: -38px; }
    #eclipse-moon { width: 48px; height: 48px; left: -24px; top: -24px; }
}
