/* ================================== */
/* VARIÁVEIS GLOBAIS (CORES E FONTES) */
/* ================================== */
:root {
    --cor-primaria: #007bff; /* Azul vibrante (o mesmo do app) */
    --cor-primaria-hover: #0056b3;
    --cor-secundaria: #6c757d;
    --cor-texto-principal: #212529; /* Quase preto */
    --cor-texto-secundario: #495057;
    --cor-texto-claro: #ffffff;
    --cor-fundo: #ffffff;
    --cor-fundo-alt: #f8f9fa; /* Cinza bem claro para seções alternadas */
    --cor-borda: #e0e6ed;
    --cor-destaque: #ffc107; /* Amarelo para o "Mais Popular" */
    
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.05);
    --sombra-media: 0 6px 16px rgba(0, 0, 0, 0.08);

    --fonte-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ================================== */
/* RESET E PADRÕES GLOBAIS          */
/* ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para 'rem' */
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--cor-texto-secundario);
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--cor-primaria-hover);
}

/* ================================== */
/* COMPONENTES REUTILIZÁVEIS        */
/* ================================== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primario {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    border-color: var(--cor-primaria);
}
.btn-primario:hover {
    background-color: var(--cor-primaria-hover);
    border-color: var(--cor-primaria-hover);
    color: var(--cor-texto-claro);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.btn-secundario {
    background-color: transparent;
    color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}
.btn-secundario:hover {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    transform: translateY(-2px);
    box-shadow: var(--sombra-suave);
}

.btn-grande {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: var(--cor-texto-principal);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--cor-texto-secundario);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.section-title-left {
    text-align: left;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cor-texto-principal);
}
.eyebrow-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cor-primaria);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Placeholders de Imagem */
.hero-image-placeholder,
.solution-image-placeholder,
.feature-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cor-fundo-alt);
    border: 0px dashed var(--cor-borda);
    border-radius: 12px;
    color: var(--cor-texto-secundario);
    font-weight: 500;
    min-height: 300px;
    padding: 2rem;
    text-align: center;
    width: 100%;
}


/* ================================== */
/* NAVBAR (HEADER)                    */
/* ================================== */
.navbar {
    width: 100%;
    padding: 1rem 0;
    background-color: var(--cor-fundo);
    border-bottom: 1px solid var(--cor-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-texto-principal);
}
.nav-logo:hover {
    color: var(--cor-texto-principal);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-texto-secundario);
}
.nav-menu a:hover,
.nav-menu a.nav-login:hover {
    color: var(--cor-primaria);
}

.nav-menu a.nav-login {
    color: var(--cor-texto-secundario);
    background: none;
    border: none;
    padding: 0;
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    margin-left: 1rem;
}

.nav-toggle {
    display: none; /* Escondido no desktop */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--cor-texto-principal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ================================== */
/* SEÇÃO: HERO                      */
/* ================================== */
.hero-section {
    padding: 4rem 0;
    background-color: var(--cor-fundo-alt);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-image-placeholder {
    min-height: 450px;
}

/* ================================== */
/* SEÇÃO: PROBLEMA                  */
/* ================================== */
.problem-section {
    padding: 4rem 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.problem-card .problem-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* ================================== */
/* SEÇÃO: SOLUÇÃO (USP)             */
/* ================================== */
.solution-section {
    padding: 4rem 0;
    background-color: var(--cor-fundo-alt);
}

.solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.solution-benefits {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}
.solution-benefits li {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--cor-texto-secundario);
}
.solution-benefits li::before {
    content: '✅';
    margin-right: 0.75rem;
}

/* ================================== */
/* SEÇÃO: COMO FUNCIONA             */
/* ================================== */
.how-it-works-section {
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.step-card {
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--cor-fundo);
}

.step-card h3 {
    margin-top: 1.5rem; /* Para dar espaço ao número */
}

/* ================================== */
/* SEÇÃO: RECURSOS                  */
/* ================================== */
.features-section {
    padding: 4rem 0;
    background-color: var(--cor-fundo-alt);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}
.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    grid-template-columns: 1fr 1fr;
}

/* Inverte a ordem no grid */
.feature-row.reverse .feature-content {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.feature-row.reverse .feature-image-placeholder {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.feature-image-placeholder {
    min-height: 400px;
}

/* ================================== */
/* SEÇÃO: DEPOIMENTOS               */
/* ================================== */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--cor-fundo); /* Fundo branco, alternando com #recursos */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--cor-fundo-alt); /* Card com fundo cinza claro */
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column; /* Para alinhar o autor no rodapé */
    position: relative;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.testimonial-quote-icon {
    font-size: 5rem; /* Tamanho do ícone de aspas */
    font-weight: 800;
    color: var(--cor-primaria);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
    z-index: 1;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: var(--cor-texto-principal);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empurra o autor para baixo */
    position: relative;
    z-index: 2; /* Fica na frente do ícone */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Garante que fique no rodapé */
    border-top: 1px solid var(--cor-borda);
    padding-top: 1.5rem;
    z-index: 2;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    font-weight: 700;
    color: var(--cor-texto-principal);
}

.testimonial-title {
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
}

/* Responsividade para Depoimentos */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* 1 coluna em tablets */
        gap: 1.5rem;
        max-width: 700px; /* Limita a largura no tablet */
        margin: 0 auto; /* Centraliza a coluna única */
    }
}


/* ================================== */
/* SEÇÃO: PLANOS (PRICING)          */
/* ================================== */
.pricing-section {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.plan-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    position: relative;
}
.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.plan-card.popular {
    border-color: var(--cor-primaria);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cor-destaque);
    color: var(--cor-texto-principal);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    border-bottom: 1px solid var(--cor-borda);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.plan-header p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cor-texto-principal);
    text-align: center;
    margin-bottom: 1.5rem;
}
.plan-price .price-suffix {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cor-texto-secundario);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1; /* Empurra o botão para baixo */
}
.plan-features li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--cor-primaria);
}

/* ================================== */
/* SEÇÃO: CTA FINAL                 */
/* ================================== */
.cta-section {
    padding-top: 0rem;
    padding-bottom: 3rem;
    background-color: var(--cor-fundo-sidebar); /* Reutilizando a cor do app */
    color: var(--cor-texto-claro);
}

.cta-container {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cor-texto-claro);
}
.cta-subtitle {
    font-size: 1.125rem;
    color: var(--cor-texto-sidebar); /* Reutilizando a cor do app */
    margin-bottom: 2.5rem;
}

/* ================================== */
/* RODAPÉ                           */
/* ================================== */
.footer {
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid var(--cor-borda);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
    color: var(--cor-texto-secundario);
}

.footer-links a {
    color: var(--cor-texto-secundario);
    font-weight: 500;
    margin-left: 1.5rem;
}
.footer-links a:hover {
    color: var(--cor-primaria);
}


/* ================================== */
/* RESPONSIVIDADE (MOBILE)          */
/* ================================== */

@media (max-width: 992px) {
    .hero-container,
    .solution-container,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        order: 1; /* Conteúdo vem antes da imagem no mobile */
    }
    .hero-image-placeholder {
        order: 2;
        min-height: 300px;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }
    .feature-row.reverse .feature-content,
    .feature-row.reverse .feature-image-placeholder {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .feature-row .feature-image-placeholder {
        order: 1; /* Imagem sempre vem primeiro no mobile */
    }
    .feature-row .feature-content {
        order: 2;
        text-align: center;
    }
    .section-title-left {
        text-align: center;
    }
    .solution-content {
        order: 1;
    }
    .solution-image-placeholder {
        order: 2;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }

    /* --- Menu Mobile --- */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 69px; /* Altura do navbar */
        left: 0;
        width: 100%;
        background-color: var(--cor-fundo);
        border-bottom: 1px solid var(--cor-borda);
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        display: block;
        padding: 1rem;
    }
    .nav-btn {
        display: none; /* Esconde o botão do desktop */
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    
    /* --- Grids de 1 coluna --- */
    .problem-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        gap: 3.5rem; /* Mais espaço para o "número" */
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links a {
        margin: 0 0.5rem;
    }
}
