/* ====================================================== */
/* 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS (DESIGN SYSTEM)   */
/* ====================================================== */
:root {
    /* Cores */
    --primary-color: #1a2a4c; /* Azul escuro para textos e fundos */
    --secondary-color: #f4f7fc; /* Cinza claro para seções alternadas */
    --accent-color: #ffffff; /* Branco */
    --text-color-primary: #1a2a4c;
    --text-color-secondary: #5c6a87;
    --cta-color: #00c853; /* Verde vibrante para botões de ação */
    --cta-hover-color: #00b34a;

    /* Tipografia */
    --font-family-primary: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Outros */
    --border-radius: 8px;
    --container-width: 1140px;
    --transition-speed: 0.3s ease;
}

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color-primary);
    background-color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; }
p { margin-bottom: 1.5rem; color: var(--text-color-secondary); }

section {
    padding: 80px 0;
}

/* ====================================================== */
/* 2. BOTÕES (CTA)                                        */
/* ====================================================== */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    background-color: var(--cta-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--cta-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.cta-button--large {
    font-size: 1.2rem;
    padding: 20px 40px;
}

.cta-button--full-width {
    width: 100%;
    text-align: center;
}

/* ====================================================== */
/* 3. ESTILOS DAS SEÇÕES                                  */
/* ====================================================== */

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-content .sub-headline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-image {
    margin-top: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- PROBLEM SECTION --- */
.problem-section {
    background-color: var(--secondary-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem-card {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-card .problem-icon {
    font-size: 2.5rem;
    color: var(--cta-color);
    margin-bottom: 1rem;
}

.problem-card p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* --- FEATURE SECTIONS (ASSISTENTE & PAYPIX) --- */
.feature-section {
    text-align: center;
}

.feature-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.timeline-step {
    text-align: center;
}

.timeline-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-section--split .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.feature-visuals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-visuals img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* --- OFFER SECTION --- */
.offer-section {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.offer-section h2 {
    color: var(--accent-color);
}

.offer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.offer-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 600px;
    margin: 3rem auto 0 auto;
    text-align: center;
}

.offer-price {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-price del {
    opacity: 0.7;
    margin-right: 1rem;
}

.offer-price span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cta-color);
}

.offer-features {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 2rem 0;
}

.offer-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.offer-features .fa-check-circle {
    color: var(--cta-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.offer-guarantee {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0;
}

/* ====================================================== */
/* 4. MODAL                                               */
/* ====================================================== */
.modal {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
}

.modal-close-button {
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color-secondary);
}

.modal h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* ====================================================== */
/* 5. RESPONSIVIDADE (MOBILE-FIRST)                       */
/* ====================================================== */

/* --- TABLETS (768px e acima) --- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        position: relative;
    }

    /* Linha da timeline */
    .timeline::before {
        content: '';
        position: absolute;
        top: 25%;
        left: 5%;
        right: 5%;
        height: 2px;
        background-color: #e0e0e0;
        z-index: -1;
    }

    .feature-section--split .container {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
}

/* --- DESKTOPS (1024px e acima) --- */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }

    .hero-section {
        text-align: left;
    }

    .hero-section .container {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .hero-content {
        flex: 1;
    }
    
    .hero-content .sub-headline {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-image {
        flex: 1;
        margin-top: 0;
    }

    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}