/*
 * style.css
 * Funil de Vendas - Protocolo PDS™
 * Versão Reconstruída (Padrão Sênior)
 */

:root {
    --color-primary: #dc2626; /* Vermelho Principal */
    --color-primary-dark: #b91c1c;
    --color-secondary: #0284c7; /* Azul para detalhes */
    --color-success: #16a34a; /* Verde para sucesso */
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-bg-light: #f1f5f9;
    --color-bg-card: white;
    --max-width: 900px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Correção Definitiva do Bug de Rolagem */
html, body {
    height: 100%;
    overflow-x: hidden; /* Previne rolagem horizontal */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e2e8f0 100%);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    flex-grow: 1; /* Permite que o container principal ocupe o espaço restante */
}

/* Header Fixo e Responsivo */
.header {
    background: var(--color-bg-card);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text);
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Elementos Comuns */
.hidden {
    display: none !important;
}

.card {
    background: var(--color-bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.headline {
    text-align: center;
    margin-bottom: 2rem;
}

.headline h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--color-text);
}

.headline .highlight {
    color: var(--color-primary);
    font-weight: 700;
}

/* Botões */
.btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    text-transform: none;
}

/* Formulário */
.form-group input {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Progress Steps (Verificação) */
.progress-steps {
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), #0ea5e9);
    width: 0%;
    transition: width 0.5s ease;
}

.step-number.active {
    background: #3b82f6;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.step-number.completed {
    background: var(--color-success);
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--color-bg-card);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsividade Mobile */
@media (max-width: 640px) {
    .headline h1 {
        font-size: 1.75rem;
    }

    .headline p {
        font-size: 1.05rem;
    }

    .card {
        padding: 1.25rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Adicione mais estilos aqui, se necessário, mas o foco é a estrutura */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.guarantee-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid var(--color-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.guarantee-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .guarantee-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.protocol-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.deliverable {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deliverable::before {
    content: "✓";
    color: var(--color-success);
    font-size: 1.25rem;
    font-weight: 700;
}

.scarcity {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.testimonials {
    margin-bottom: 2rem;
}

.testimonial {
    background: var(--color-bg-card);
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0ea5e9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    font-style: italic;
}

.how-it-works {
    background: var(--color-bg-card);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.process-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0ea5e9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.process-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.pillars {
    margin-bottom: 1.5rem;
}

.pillar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--color-secondary);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.pillar p:first-child {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pillar p:last-child {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.cpf-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2em;
    margin: 2rem 0;
    transition: all 0.3s ease;
    color: var(--color-text);
}

.cpf-display.cleaning {
    color: var(--color-primary);
    opacity: 0.5;
    text-decoration: line-through;
}

.cpf-display.cleaned {
    color: var(--color-success);
    opacity: 1;
    text-decoration: none;
}

.cleaning-progress {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin: 2rem 0;
}

.cleaning-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ef4444, #f97316);
    width: 0%;
    animation: cleaning 8s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.cleaning-status {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: 1.5rem;
    font-weight: 600;
}

.cleaning-status.active {
    color: var(--color-primary);
    font-weight: 700;
}

.cleaning-status.complete {
    color: var(--color-success);
    font-weight: 700;
}

.modal-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #78350f;
    font-size: 1.1rem;
}

.modal-info {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-info strong {
    color: var(--color-text);
    font-weight: 700;
}

.modal-btn-accept {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.modal-btn-decline {
    background: #e2e8f0;
    color: var(--color-text);
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .modal-buttons {
        grid-template-columns: 1fr;
    }
}
