/* --- 0. TEMA E CONFIGURAÇÃO "CÓDIGO VERMELHO" UNIFICADO --- */
:root {
    --primary-color: #D32F2F; /* Vermelho Alerta */
    --accent-color: #212121;  /* Cinza Escuro/Preto */
    --success-color: #4CAF50; /* Verde para garantia/sucesso */
    --text-color-dark: #212121;
    --text-color-light: #FFFFFF;
    --background-color-body: #f4f4f4;
    --card-background: #FFFFFF;
    --border-color: #ffcdd2;
}

/* --- 1. ESTILOS GLOBAIS E RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--background-color-body);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color-dark);
}
h1, h2 { font-weight: 900; text-transform: uppercase; text-align: center; line-height: 1.3; }
h1 { font-size: 1.8em; color: var(--primary-color); margin-bottom: 1rem; }
h2 { font-size: 1.5em; color: var(--primary-color); margin-bottom: 1.2rem; }
h4 { color: var(--success-color); font-weight: 900; text-decoration: underline; }
p { font-size: 1.1em; line-height: 1.7; text-align: center; margin-bottom: 1.5rem; }

/* --- 2. LAYOUT E COMPONENTES GERAIS DO QUIZ --- */
#game-container {
    background-color: var(--card-background);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    border: 3px solid var(--accent-color);
}
#game-header {
    width: 100%; padding: 10px 20px; background-color: var(--accent-color);
    position: sticky; top: 0; z-index: 1000;
}
#progress-bar-container { width: 100%; height: 8px; background-color: #424242; border-radius: 50px; overflow: hidden; }
#progress-bar { height: 100%; width: 0%; background-color: var(--primary-color); border-radius: 50px; transition: width 0.5s ease-out; }

.game-phase-section {
    padding: 25px; display: none; flex-direction: column; align-items: center; flex-grow: 1;
}
.game-phase-section.active { display: flex; animation: fadeIn 0.7s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- 3. ESTILOS DAS FASES DO QUIZ (0-5) --- */
.card {
    background-color: var(--card-background);
    padding: 20px;
    width: 100%;
}
.quiz-phase .quiz-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
}
.quiz-phase h2 {
    font-size: 1.1em;
    color: var(--text-color-dark);
    text-transform: none;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.fase-image { max-width: 100%; height: auto; border-radius: 15px; margin-bottom: 1.5rem; }
.options-container { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 500px; margin: 0 auto; }
.feedback-card p { font-size: 1.2em; max-width: 550px; }

/* Barra de Carregamento (Fase 5) */
.loading-bar-container { width: 100%; max-width: 400px; height: 25px; background-color: #e0e0e0; border-radius: 50px; margin: 1rem auto; }
#diagnosis-loading-bar { width: 0%; height: 100%; background-color: var(--primary-color); border-radius: 50px; }
.loading-text { font-weight: 700; color: #757575; }

/* --- 4. ESTILOS DA FASE DE DIAGNÓSTICO (FASE 6) --- */
.sales-phase .diagnosis-card {
    color: var(--text-color-light);
    text-align: center;
    background-color: var(--accent-color);
    padding: 25px;
    border-radius: 10px;
}
.diagnosis-card h1 { color: var(--primary-color); }
.diagnosis-card p { color: #f5f5f5; max-width: 600px; margin-left: auto; margin-right: auto;}
.diagnosis-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}
.pie-chart-container { position: relative; display: inline-block; margin: 0; }
.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0% 80%, var(--success-color) 80% 100%);
}
.pie-chart-center-label {
    position: absolute; top: 50%; left: 75%; transform: translate(-50%, -50%);
    width: 150px; color: white; font-weight: 900;
    font-size: 1.3em; text-align: center; line-height: 1.1;
}
.chart-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-color-light);
}
.legend-color-red, .legend-color-green {
    width: 15px; height: 15px; display: inline-block;
    margin-right: 8px; vertical-align: middle;
}
.legend-color-red { background-color: var(--primary-color); }
.legend-color-green { background-color: var(--success-color); }
.final-warning { font-size: 1.3em; font-weight: 900; color: var(--primary-color); }

/* --- 5. BOTÕES GERAIS E INTERATIVOS --- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 18px 25px; border-radius: 8px; font-size: 1.1em;
    font-weight: 700; text-align: center; cursor: pointer;
    transition: all 0.3s ease; border: none; text-decoration: none;
    line-height: 1.4; text-transform: uppercase;
}
.button:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.button--primary, .final-cta {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    margin-top: 1.5rem;
}
.button--option { background-color: #f0f0f0; color: var(--text-color-dark); border: 2px solid #ddd; }
.button--option:hover { background-color: #ddd; }

/* --- 6. ESTILOS DA PÁGINA DE VENDAS (FASE 7) --- */
.sales-headline { font-size: 2em; font-weight: 1000; }
.sales-page-card section { padding: 3rem 1.5rem; border-bottom: 1px solid #eee; }
.sales-page-card section:last-of-type { border-bottom: none; }
.section-subtitle { font-size: 1.2em; font-weight: 700; margin-top: -1rem; margin-bottom: 2rem; color: #757575; text-transform: none; }

/* Hero Section (Layout de Cards) */
.hero-section { background-color: var(--background-color-body); }
.hero-section h1 { color: var(--primary-color); }
.pain-list {
    list-style: none; padding: 0; margin-top: 2.5rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}

.solution-section {background-color: #E8F5E9;}
.pain-list li {
    background-color: var(--card-background); border: 1px solid var(--border-color);
    padding: 2rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 1rem;
}
.pain-icon { border-radius: 1.5em; width: 100%; max-width: 250px; height: auto; }
.pain-list span { color: var(--text-color-dark); }

/* Benefits Section */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.benefit-card { background-color: #fff; border: 1px solid #eee; padding: 1.5rem; text-align: center; }
.benefit-image { width: 100%; max-width: 250px; height: auto; margin-bottom: 1rem; border-radius: 1.5em; }
.description-benefit { font-size: 1em; margin-top: 0.6rem; }

/* Expert Section */
.expert-section { background-color: #f9f9f9; }
.expert-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary-color); margin: 0 auto 1.5rem auto; display: block; }
.expert-bio { max-width: 650px; margin: 0 auto; font-size: 1em; text-align: justify; }

/* Proof Section */
/* Este estilo se aplica a AMBOS os vídeos */

.section-subtitle-proof { font-size: 1em; font-weight: 700; margin-top: -1rem; margin-bottom: 2rem; color: #757575; text-transform: none; }
.video-title {
    text-align: center;
    font-size: 1.3em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 1rem; /* Adiciona um espaço entre o título e o vídeo */
}
/* --- Estilos para os Cards de Vídeo --- */

/* 1. Transformamos o container em um "card" completo */
.video-container {
    background-color: var(--card-background);  /* Adiciona o fundo branco */
    padding: 1.5rem;                            /* Adiciona espaçamento INTERNO */
    border-radius: 15px;                        /* Mantém as bordas arredondadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Mantém a sombra */
    margin: 2.5rem auto;                        /* Mantém o espaçamento EXTERNO */
    overflow: hidden;                           /* Garante que o vídeo não "vaze" das bordas arredondadas */
    max-width: 700px;                           /* Mantém a largura máxima */
}

/* 2. Simplificamos o título para se ajustar ao novo card */
.video-title {
    text-align: center;
    font-size: 1.2em;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem; /* Aumenta o espaço entre o título e o vídeo */
    /* Removemos a borda e o padding superior que não são mais necessários */
}

/* Offer Section */
.offer-section { background: var(--accent-color); padding: 2rem 1.5rem; }
.price-box {
    background-color: #fff; text-align: center; max-width: 500px;
    margin: 0 auto; border-radius: 8px; overflow: hidden;
    border: 3px solid var(--primary-color);
}
.price-box-attention {
    background-color: var(--primary-color); color: var(--text-color-light);
    font-weight: 900; text-transform: uppercase; padding: 15px;
    font-size: 1em; line-height: 1.4; margin: 0;
}
.price-box-content { padding: 2rem; }
.old-price { font-size: 2em; font-weight: 900; text-decoration: line-through; color: var(--primary-color); }
.price-intro { text-transform: uppercase; font-weight: 700; margin-top: 1em; margin-bottom: 0; }
.main-price { font-size: 4em; font-weight: 900; color: var(--success-color); line-height: 1; margin: 0; }
.installments { font-size: 1.5em; font-weight: 500; margin-top: 0; }
.countdown-timer { font-size: 1.2em; color: var(--primary-color); padding: 10px; margin: 1rem 0; font-weight: 900; }
.guarantee-seal-final { display: block; max-width: 280px; height: auto; margin: 0 auto 1.5rem; }
.guarantee-text { margin-top: 0rem; font-size: 0.9em; }

/* Objection & FAQ Section */
.objection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.objection-card { background-color: #f9f9f9; padding: 1.5rem; }
.objection-card h3 { font-size: 1.1em; font-weight: 900; color: var(--primary-color); text-align: left; }
.objection-card p { text-align: left; font-size: 1em; }
.faq-container { max-width: 700px; margin: 2rem auto 0 auto; }
.faq-item { border-bottom: 1px solid #eee; margin-bottom: 1rem; }
.faq-question { display: block; width: 100%; padding: 1rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; position: relative; text-align: left; }
.faq-question::after { content: '+'; position: absolute; right: 1rem; font-size: 1.5em; }
.faq-item[open] > .faq-question::after { content: '−'; }
.faq-answer { background: #f9f9f9; padding: 1.5rem; }
.faq-answer p { text-align: left; margin-bottom: 0; }

/* --- 7. BOTÃO DE CHECKOUT FINAL (CTA) --- */
.cta-button-final {
    background-color: var(--success-color);
    background-image: linear-gradient(145deg, var(--success-color), #3fad43);
    color: #FFFFFF;
    padding: 18px 10px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 95%;
    margin: 1rem 0 0 0;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- 8. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    body { padding: 0; }
    #game-container { margin: 0; border-radius: 0; min-height: 100vh; border: none; }
    .game-phase-section { padding: 15px; }
    h1 { font-size: 1.5em; } h2 { font-size: 1.3em; } p { font-size: 1em; }
    .button { padding: 15px; font-size: 1em; }
}

/* --- MODO DE EDIÇÃO VISUAL --- */
/* Cole este código no final do seu style.css para ver todas as fases de uma vez. */
/* 
.game-phase-section {
    display: flex !important;          /* Força TODAS as seções a aparecerem */
    opacity: 1 !important;              /* Garante que não fiquem transparentes */
    border-bottom: 4px dashed #D32F2F;  /* Adiciona uma linha vermelha para separar as fases */
    padding-bottom: 2rem;               /* Adiciona um espaço extra no final de cada fase */
    margin-bottom: 2rem;                /* Adiciona uma margem entre as fases */
}

