/* --- CONFIGURAÇÕES GLOBAIS E FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Oswald:wght@700&display=swap');

:root {
    --color-dark-bg: #0a0a0a;
    --color-dark-card: #1a1a1a;
    --color-dark-text: #e0e0e0;
    --color-red-alert: #e50914;
    --color-red-dark: #b20710;
    --color-border: #333;

    --font-advertorial: 'Inter', sans-serif;
    --font-quiz: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5; /* Fundo padrão para o advertorial */
    font-family: var(--font-advertorial);
    color: #1c1e21;
    transition: background-color 0.5s ease;
}

/* Quando o quiz estiver ativo, o fundo do body escurece */
body.quiz-active {
    background-color: var(--color-dark-bg);
}


/* =============================================== */
/* PARTE 1: ESTILOS DO ADVERTORIAL (Layout de Notícia) */
/* =============================================== */

#advertorial-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #606770;
    margin-bottom: 20px;
}

.headline-section h1 {
    font-family: var(--font-advertorial);
    font-weight: 600;
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #121212;
}

/* --- ESTILO DO LOGO "FINANÇAS BRASIL" --- */

.brand {
    /* Alinha o ícone e o texto verticalmente */
    display: inline-flex;
    align-items: center;
    
    /* Estilo da fonte */
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #333333; /* Cor escura para o texto */
}

/* Cria o ícone de gráfico ANTES do texto */
.brand::before {
    content: ''; /* Essencial para o pseudo-elemento aparecer */
    display: inline-block;
    
    /* Tamanho do ícone */
    width: 28px;
    height: 28px;
    
    /* Espaço entre o ícone e o texto */
    margin-right: 8px; 
    
    /* O ícone SVG (gráfico verde) embutido diretamente no CSS */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z'/%3E%3C/svg%3E");
    
    /* Garante que o ícone se ajuste ao tamanho definido */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- ESTILO DA BARRA DE ALERTA FINANCEIRO --- */

.alert-title {
    /* Layout da barra */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Cores */
    background-color: #d93025; /* Vermelho do alerta, fiel à imagem */
    color: #ffffff; /* Texto branco */

    /* Espaçamento e Tamanho */
    padding: 12px 20px;
    margin-bottom: 25px; /* Espaço abaixo da barra */
    
    /* Texto */
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* --- EFEITO DE LARGURA TOTAL --- */
    /* Anula o padding lateral de 40px do container principal */
    margin-left: -40px;
    margin-right: -40px;
    
    /* (Opcional) Anula o padding do topo para colar a barra na borda de cima */
    margin-top: -20px;

    /* Mantém o espaçamento inferior */
    margin-bottom: 25px;
    
    /* Remove as bordas arredondadas para um encaixe perfeito */
    border-radius: 0;
}


/* Adiciona o ícone de alerta ANTES do texto */
.alert-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Adiciona o ícone de alerta DEPOIS do texto */
.alert-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- ESTILO DA TAG "URGENTE" --- */

.urgent-tag {
    display: inline-block; /* Permite aplicar padding e margin sem quebrar a linha */
    
    /* Cores */
    background-color: #d93025; /* Vermelho fiel à imagem */
    color: #ffffff; /* Texto branco */

    /* Formato */
    padding: 4px 12px; /* Espaçamento interno (vertical e horizontal) */
    border-radius: 16px; /* Bordas arredondadas para o formato de "pílula" */
    
    /* Fonte */
    font-size: 0.8em;
    font-weight: 700; /* Negrito */
    text-transform: uppercase; /* Caixa alta */
    letter-spacing: 0.5px;
    
    /* Espaçamento */
    margin-bottom: 10px; /* Distância entre a tag e o título abaixo */
}

.author {
    font-size: 1em;
    color: #606770;
    margin-bottom: 20px;
}

/* --- ESTILO DO PARÁGRAFO DE INTRODUÇÃO (Fiel à Imagem) --- */

/* Estiliza o parágrafo em si */
.intro-section p {
    font-size: 1.1em;
    color: #333 !important; /* Cor do texto um pouco mais suave que o preto puro */
    line-height: 1.6;
    margin-bottom: 25px; /* Espaço entre o parágrafo e o bloco de dados */
}

/* Estiliza o texto destacado dentro do parágrafo */
.intro-section strong {
    color:#d93025 !important; /* Cor vermelha */
    font-weight: 700 !important; /* Negrito */
}

.quote-section {
    border-left: 4px solid var(--color-red-alert);
    padding-left: 20px;
    font-style: italic;
    /* --- CONTROLE DE ESPAÇAMENTO VERTICAL --- */
    margin-top: 30px;    /* Espaço entre a seção de estatísticas e a citação */
    margin-bottom: 30px; /* Espaço entre a citação e a seção dos vilões */
}

/* --- ESTILO DO BLOCO "DADOS ALARMANTES" (Fiel à Imagem) --- */

/* O container principal do bloco */
.stats-section {
    background-color: #fef6f6; /* Fundo rosa bem claro */
    border: 1px solid #f5c6cb; /* Borda vermelha clara */
    border-radius: 8px; /* Bordas arredondadas */
    padding: 25px;
    margin: 30px 0; /* Espaçamento acima e abaixo */
}

/* O título "Dados Alarmantes da Pesquisa" */
.stats-section .section-title {
    display: flex; /* Para alinhar o ícone com o texto */
    align-items: center;
    text-align: left;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-red-alert); /* Usa a variável de vermelho que já definimos */
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none; /* Remove a linha que existia antes */
}

/* Adiciona o ícone de alerta amarelo ANTES do título */
.stats-section .section-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    /* Ícone de alerta amarelo embutido no CSS */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f8bb86'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* A grade que segura os 3 dados */
.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    margin: 0;
}

/* O valor em porcentagem (ex: 73%) */
.stats-section .stat-value {
    font-size: 1.8em !important;
    font-weight: 600 !important;
    line-height: 1.1;
    color: var(--color-alert-red);
}

/* O texto descritivo (ex: "Não sabem onde gastam") */
.stats-section .stat-label {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Cinza para textos de apoio */
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin: 20px 0;
}

.stat-item .stat-value {
    font-size: 3em;
    font-weight: 900;
    color: var(--color-red-alert);
}

.stat-item .stat-label {
    font-size: 1em;
    color: #333;
}

/* --- Garante o alinhamento vertical dos itens de estatística --- */

/* Transforma o número e o texto em blocos para que fiquem um sobre o outro */
.stats-section .stat-value,
.stats-section .stat-label {
    display: block; /* Força cada elemento a ocupar sua própria linha */
    width: 100%;    /* Garante que o alinhamento central funcione corretamente */
}

/* --- Adiciona espaço APENAS abaixo do título dos Vilões --- */
.villains-section .section-title {
    margin-bottom: 5px;
    font-size: 1.4em;
}

.villain-card {
    /* Cores de Atenção */
    background-color: #fffdf7;  /* Fundo amarelo bem claro */
    border: 1px solid #ffe58f;      /* Borda amarela um pouco mais escura */
    
    /* Estilos que já existiam */
    border-radius: 4px; /* Adiciona cantos arredondados */
    padding: 15px;
    margin-bottom: 15px; /* Aumentei um pouco a margem para separar melhor */
}

.villain-card h4 {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--color-dark-card);

}

.villain-card p {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #606770;

}  

.symptoms-section .section-title {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--color-red-alert);
}

.symptoms-section li{
    margin-bottom: 5px;
    
}

.symptoms-section ul {
    background-color: #FEF6F6;  /* Fundo vermelho bem claro */
    border: 1px solid #ec8282;      /* Borda vermelha clara */
   /* Formato */
    border-radius: 8px;           /* Cantos arredondados para consistência */
    padding: 20px;
    padding-left: 40px;           /* Espaço interno para os marcadores da lista */

     /* Estilos que já existiam */
    margin-bottom: 10px;
    list-style-position: inside;
  
}

.cta-section {
    text-align: center;
    background-color: #1c1e21;
    color: #fff;
    padding: 30px;
    margin-top: 30px;
}

.cta-section h4 {
    font-size: 1.8em;
    margin: 10px 0;
}

.cta-button {
    background-color: var(--color-red-alert);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--color-red-dark);
}

#level-indicator {
    display: none;
}

/* =============================================== */
/* PARTE 2: ESTILOS DO QUIZ (Tema Agressivo)       */
/* =============================================== */

#quiz-section {
    display: none; /* Começa escondido, controlado por JS */
    
    /* --- CÓDIGO DE CENTRALIZAÇÃO --- */
    position: fixed; /* Fixa o container na tela */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa 100% da largura da tela */
    height: 100%; /* Ocupa 100% da altura da tela */
    
    /* Alinha o conteúdo (o quiz em si) no centro */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Garante que o quiz apareça sobre qualquer outro conteúdo */
    z-index: 100;

    /* Estilos que já tínhamos */
    font-family: var(--font-quiz);
    text-transform: uppercase;
    
    /* Adiciona um overflow para o caso de o conteúdo ser muito grande para a tela */
    overflow-y: auto;
}

#quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 10;
}

#progress-container {
    background-color: var(--color-border);
    height: 8px;
}

#progress-bar {
    width: 0%; /* Controlado por JS */
    height: 100%;
    background-color: var(--color-red-alert);
    transition: width 0.5s ease-out;
}

#level-indicator {
    position: absolute;
    top: 25px;
    right: 20px;
    color: #888;
    font-size: 0.9em;
}

#quiz-container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    text-align: center;
}

.quiz-phase {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-card, .diagnosis-card, .sales-page {
    background-color: var(--color-dark-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    color: var(--color-dark-text);
}

.quiz-card h2, .diagnosis-card h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

.quiz-card p {
    font-family: var(--font-advertorial);
    text-transform: none;
    color: #aaa;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.quiz-card h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--color-dark-text);
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-button {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-dark-text);
    font-family: var(--font-advertorial);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.answer-button:hover {
    background-color: var(--color-red-alert);
    border-color: var(--color-red-alert);
    color: #fff;
}

.feedback-message {
    margin-top: 20px;
    color: var(--color-red-alert);
    font-size: 1.2em;
}

/* --- FASE 4: DIAGNÓSTICO --- */
#calculating-animation span {
    font-size: 2em;
}

.diagnosis-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    text-align: left;
}
.chart-container {
    flex-shrink: 0;
    position: relative;
    width: 180px;
    height: 180px;
}
.diagnostic-chart {
    transform: rotate(-90deg);
}
.chart-bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 3.8;
}
.chart-bar {
    fill: none;
    stroke: var(--color-red-alert);
    stroke-width: 4;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}
@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.chart-text-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-advertorial);
    font-size: 0.9em;
    text-transform: none;
    line-height: 1.4;
    color: #aaa;
}
.chart-text-label span {
    display: block;
    font-family: var(--font-quiz);
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.diagnosis-line { margin-bottom: 10px; font-size: 1.2em; }
.diagnosis-line-alert { color: var(--color-red-alert); font-size: 1.4em; margin-top: 15px; }
.diagnosis-summary { font-family: var(--font-advertorial); text-transform: none; }
.diagnosis-card .cta-button { margin-top: 30px; }

/* --- FASE 5: PÁGINA DE VENDAS --- */
.offer-title { font-size: 2.2em; color: var(--color-red-alert); }
.sales-content { margin: 30px 0; }
.vsl-placeholder, .product-image-placeholder {
    background-color: #000;
    border: 1px solid var(--color-border);
    padding: 50px 20px;
    margin-bottom: 20px;
}

.benefit-list {
    font-family: var(--font-advertorial);
    text-transform: none;
    list-style: none;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
}

.price-block {
    background-color: #000;
    border: 2px solid var(--color-red-alert);
    padding: 20px;
    margin: 20px 0;
}
.price-old { color: #888; text-decoration: line-through; }
.price-new { font-size: 2.5em; color: #fff; }
.price-new strong { color: var(--color-red-alert); }
.price-insult { text-transform: none; font-family: var(--font-advertorial); color: #888; }

#countdown-timer { font-size: 2.5em; letter-spacing: 5px; margin: 20px 0; }

.guarantee-block {
    border: 1px solid var(--color-border);
    padding: 20px;
    margin: 30px 0;
}
.guarantee-block h3 { color: var(--color-red-alert); font-size: 1.5em; }
.guarantee-block p { font-family: var(--font-advertorial); text-transform: none; font-size: 1em; color: #aaa; line-height: 1.6; margin-top: 10px; }

.cta-button-sales {
    display: inline-block;
    background-color: var(--color-red-alert);
    color: #fff;
    padding: 20px 40px;
    font-family: var(--font-quiz);
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.cta-button-sales:hover { transform: scale(1.05); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 820px) {
    #advertorial-section { padding: 15px; }
    .headline-section h1 { font-size: 2em; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .diagnosis-layout { flex-direction: column; text-align: center; }
    .chart-container { margin-bottom: 20px; }
    .quiz-card, .diagnosis-card, .sales-page { padding: 20px; }
    .quiz-card h2 { font-size: 1.8em; }
    .price-new, #countdown-timer { font-size: 2em; }
}

/* ========================================================== */
/* --- FASE 5: PÁGINA DE VENDAS (CSS PARA NOVA ESTRUTURA) --- */
/* ========================================================== */

/* --- Estilos Gerais da Página de Vendas --- */
.sales-page {
    text-align: left; /* Alinha o texto à esquerda por padrão */
    padding: 40px !important;
}

/* --- Cabeçalho (Headline e Subheadline) --- */
.sales-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-headline {
    font-family: var(--font-quiz);
    font-size: 2.4em;
    line-height: 1.3;
    text-transform: uppercase;
    
    /* --- NOVA ESTILIZAÇÃO EM BLOCO --- */
    background-color: var(--color-red-alert); /* Fundo vermelho sólido */
    color: #ffffff;                         /* Texto branco */
    padding: 20px;                          /* Espaçamento interno para criar o bloco */
    border-radius: 8px;                     /* (Opcional) Cantos levemente arredondados */
}

.subheadline {
    font-family: var(--font-advertorial);
    font-size: 1.1em;
    color: #b0b0b0;
    max-width: 800px;
    margin: 15px auto 0 auto;
    line-height: 1.6;
    text-transform: none !important; /* Garante que não fique uppercase */
}

/* --- Título Padrão para as Seções da PV --- */
.section-title-pv {
    font-family: var(--font-quiz);
    font-size: 1.8em;
    color: var(--color-red-alert);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* --- Seções de Listas (Dores e Soluções) --- */
.pain-points-section,
.solution-methods-section,
.author-section,
.social-proof-section,
.objections-section,
.faq-section {
    margin-top: 50px;
}

.custom-bullet-list {
    list-style: none;
    padding-left: 0;
}

.custom-bullet-list li {
    font-family: var(--font-advertorial);
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--color-dark-text);
    margin-bottom: 15px;
    text-transform: none !important;
}

/* --- Seção da Autora (Dra. Bruna) --- */
.author-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.author-image-placeholder {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background-color: #000;
    border-radius: 50%; /* Deixa a imagem redonda */
    border: 3px solid var(--color-border);
}

.author-text p {
    font-family: var(--font-advertorial);
    text-transform: none !important;
    font-size: 1.1em;
    color: #b0b0b0;
    line-height: 1.6;
}

/* --- Seção de Prova Social --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial-card {
    background-color: #000;
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    font-family: var(--font-advertorial);
    text-transform: none !important;
    font-style: italic;
    color: #b0b0b0;
    flex-grow: 1; /* Faz o texto ocupar o espaço disponível */
}

.testimonial-author {
    font-family: var(--font-advertorial);
    text-transform: none !important;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
    text-align: right;
}

/* --- Seções de Objeções e FAQ --- */
.objection-item,
.faq-item {
    background-color: #000;
    border-left: 4px solid var(--color-red-alert);
    padding: 20px;
    margin-bottom: 15px;
}

.objection-item h4,
.faq-item h4 {
    font-family: var(--font-quiz);
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 8px;
}

.objection-item p,
.faq-item p {
    font-family: var(--font-advertorial);
    text-transform: none !important;
    color: #b0b0b0;
    line-height: 1.6;
}

/* --- AJUSTES DE RESPONSIVIDADE PARA A PV --- */
@media (max-width: 768px) {
    .sales-page {
        padding: 20px !important;
    }
    .main-headline {
        font-size: 1.8em;
    }
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    .testimonials-grid {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }
}

/* --- MODO DE VISUALIZAÇÃO TOTAL (ADVERTORIAL + QUIZ) --- */
/* Lembre-se de apagar este código e descomentar o <script> para o site voltar a funcionar! */

/* Garante que o advertorial esteja visível */
#advertorial-section {
    display: block !important;
}

/* Força o container principal do quiz a aparecer e se comportar como um bloco normal na página */
#quiz-section {
    display: block !important;
    position: relative !important;     /* Reseta o 'position: fixed' do modo normal */
    height: auto !important;          /* Deixa a altura se ajustar ao conteúdo */
    overflow-y: visible !important;   /* Remove a barra de rolagem interna */
    padding-top: 5rem;                /* Adiciona um bom espaço para separar do advertorial */
    background-color: var(--color-dark-bg); /* Aplica o fundo escuro do quiz */
}

/* Esconde o header fixo do quiz, que não faz sentido nesta visualização */
#quiz-header {
    display: none !important;
}

/* Força TODAS as fases do quiz a aparecerem uma embaixo da outra */
.quiz-phase {
    display: block !important;
    opacity: 1 !important;
    border-bottom: 4px dashed #D32F2F;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

