/* =========================================
   1. VARIÁVEIS E RESET GLOBAL
   ========================================= */
:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --dark-bg: #0b1120;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --text-color: #334155;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. ANIMAÇÃO DE FUNDO (ONDAS)
   ========================================= */
.waves-container {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.2);
    opacity: 0;
    animation: wavePulse 8s infinite linear;
}

.w1 { width: 40vw; height: 40vw; animation-delay: 0s; }
.w2 { width: 60vw; height: 60vw; animation-delay: 2s; }
.w3 { width: 80vw; height: 80vw; animation-delay: 4s; }

@keyframes wavePulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* =========================================
   3. ESTRUTURA GERAL (Desktop First)
   ========================================= */
.main-header {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    position: relative;
}

.logo {
    width: 100%;
    max-width: 280px; 
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .main-header { padding: 15px 0; }
    .logo { 
        height: auto !important;
        max-width: 240px !important;
        width: 80% !important;
    }
}

.main-container {
    width: 100%;
    max-width: 650px;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 40px;
    z-index: 5;
}

.screen {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-box, .vsl-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

p.subtitle { font-size: 1rem; color: #475569; margin-bottom: 25px; }
.divider { height: 1px; background: #e2e8f0; margin: 25px 0; }
.highlight-red { color: var(--danger); text-decoration: underline; text-decoration-thickness: 3px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s;
    text-transform: uppercase;
}

.btn-primary:active { transform: scale(0.96); }

/* =========================================
   4. ESTILOS DO QUIZ
   ========================================= */
.quiz-option {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    color: #334155;
    width: 100%;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quiz-option:hover { border-color: var(--primary-blue); background: #eff6ff; }
.quiz-option.selected { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

.progress-bar { height: 6px; background: #e2e8f0; border-radius: 10px; margin: 10px 0 30px 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-blue); width: 0%; transition: width 0.4s; }

#question-text {
    margin-bottom: 30px !important;
    display: block;
}

/* =========================================
   5. AUDIO PLAYER (SÓ O QUE IMPORTA)
   ========================================= */
.audio-wrapper {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.visualizer-container {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 45px;
    margin-bottom: 5px;
    width: 100%;
}

.bar {
    width: 6px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 10px;
    opacity: 0.3;
}

/* Animação das Escadinhas */
.playing .bar {
    opacity: 1;
    animation: soundWaveAnim 1s infinite ease-in-out;
}

.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.playing .bar:nth-child(2) { animation-delay: 0.3s; }
.playing .bar:nth-child(3) { animation-delay: 0.5s; }
.playing .bar:nth-child(4) { animation-delay: 0.2s; }
.playing .bar:nth-child(5) { animation-delay: 0.4s; }
.playing .bar:nth-child(6) { animation-delay: 0.6s; }
.playing .bar:nth-child(7) { animation-delay: 0.1s; }

@keyframes soundWaveAnim {
    0%, 100% { height: 8px; }
    50% { height: 35px; }
}

.audio-btn {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-on-button {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent !important;
    display: block;
}

.playing .audio-btn {
    animation: logoPulseGlow 1.5s infinite alternate;
}

@keyframes logoPulseGlow {
    from { transform: scale(1); box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }
    to { transform: scale(1.1); box-shadow: 0 0 35px rgba(37, 99, 235, 0.8); }
}

.overlay-pause {
    position: absolute;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.playing .overlay-pause {
    display: flex;
}

.freq-label {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   6. VSL, COMENTÁRIOS E NOTIFICAÇÕES
   ========================================= */
.vsl-header { padding-bottom: 20px; }
.tag-alert {
    background: #fee2e2; color: #991b1b;
    padding: 6px 12px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 800;
    display: inline-block; margin-bottom: 15px;
}

.video-wrapper {
    margin: 10px 0 25px 0; background: #000;
    border-radius: 12px; overflow: hidden;
    position: relative; padding-bottom: 56.25%; height: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: white;
}

.comments-section { text-align: left; margin-top: 30px; background: #fff; padding: 20px; border-top: 1px solid #e9ebee; }
.fb-comment { display: flex; gap: 8px; margin-bottom: 15px; }
.fb-comment img { width: 32px; height: 32px; border-radius: 50%; }
.fb-text-box { background-color: #f0f2f5; padding: 8px 12px; border-radius: 18px; }
.fb-name { color: #050505; font-weight: 700; font-size: 13px; }
.fb-text { color: #050505; font-size: 14px; line-height: 1.3; }

.main-footer { padding: 40px 20px 80px 20px; text-align: center; color: #64748b; font-size: 0.8rem; }
.footer-links a { color: #94a3b8; text-decoration: none; margin: 0 8px; }

.sales-notification {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(200%);
    background: white; padding: 12px 20px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 12px;
    z-index: 9999; width: 90%; max-width: 320px; transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #10b981;
}
.sales-notification.show { transform: translateX(-50%) translateY(0); }

.sales-notification { opacity: 0; pointer-events: none; }
.sales-notification.show { opacity: 1; pointer-events: auto; }

.hero-image-container { width: 100%; display: flex; justify-content: center; margin: 10px 0 25px 0; }
.hero-woman-img { width: 100%; max-width: 450px; height: auto; border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); object-fit: cover; }

.hidden { display: none !important; }
.spinner {
    width: 55px; 
    height: 55px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 30px auto; /* Aumenta distância do texto */
}

/* Organiza o bloco onde as frases aparecem */
.loading-steps { 
    text-align: center; /* Centraliza o texto da análise */
    margin: 20px 0;
    min-height: 60px; /* Evita que o card fique "pulando" de tamanho */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Formata cada frase que surge */
.step { 
    font-size: 1.05rem; 
    color: #10b981; /* Verde de sucesso/análise */
    margin-bottom: 10px; 
    font-weight: 600; 
    line-height: 1.4;
    animation: fadeIn 0.4s ease-in forwards; 
}

/* Ajuste fino para mobile */
@media (max-width: 768px) {
    .step {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Garante que o container do CTA apareça quando a classe .hidden sair */
#cta-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin-top: 25px !important;
}

/* Regra absoluta para esconder apenas quando tiver a classe hidden */
#cta-wrapper.hidden {
    display: none !important;
}