/* --- VARIÁVEIS E RESET --- */
:root {
    --primary: #8e44ad;
    --primary-dark: #732d91;
    --bg-light: #f5f5f5;
    --bg-gray: #f0f0f0;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --radius: 8px;
    --green-check: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-section-left {
    text-align: left;
    margin-bottom: 40px;
}
.header-section-center {
    text-align: center;
    margin-bottom: 40px;
}

.section-padding { padding: 60px 0; }

/* --- BOTÕES GERAIS --- */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn-purple { background: var(--primary); color: var(--white); }
.btn-purple:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--text-main); border: 1px solid #ccc; }
.btn-white:hover { background: var(--bg-light); }

.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

/* --- HEADER (Ajustado para Mobile) --- */
.main-header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Espaço mínimo entre logo e botão */
}

.logo-img { 
    height: 38px; 
    width: auto; 
    display: block;
    max-width: 150px; /* Impede que o logo empurre o botão para fora */
}

.main-header .btn-white {
    padding: 8px 15px; 
    font-size: 14px;
    white-space: nowrap; /* Impede que o texto "Gerenciador" quebre linha */
    flex-shrink: 0; /* Impede que o botão seja esmagado */
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--bg-gray);
    padding: 60px 0;
    text-align: left;
}

.hero .plus {
    background: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span { color: var(--primary); }

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- SOBRE --- */
.section-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* --- FEATURES (Linhas de Funcionalidade) --- */
.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-row.row-reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; padding: 40px; }
.feature-text h3 { margin-bottom: 15px; font-size: 22px; }

.feature-img { 
    flex: 1; 
    background: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    min-height: 250px;
}

.feature-img img { 
    width: 100%; 
    height: auto; 
    max-height: 350px; 
    object-fit: contain; 
}

/* --- PRICING --- */
.pricing { text-align: center; }
.pricing-subtitle { color: var(--text-muted); margin-bottom: 40px; }

.pricing-grid {
    display: grid;
    /* Define o tamanho mínimo de 280px e o máximo de 350px por coluna */
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); 
    gap: 30px;
    justify-content: center; /* Centraliza os cards quando sobra espaço na tela */
    margin-top: 40px;
}

.card {
    max-width: 350px; /* Limite físico de largura */
    width: 100%;
    margin: 0 auto;  /* Garante centralização em telas menores */
    padding: 40px 30px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--white);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }
.card.special { border: 2px solid var(--primary); box-shadow: var(--shadow); }

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price { font-size: 36px; font-weight: 700; color: var(--primary); text-align: center; margin-top: 10px; }
.price span { font-size: 16px; }
.price-desc { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.features-list { list-style: none; margin-bottom: 25px; flex-grow: 1; }
.features-list li { margin-bottom: 12px; display: flex; align-items: center; }
.features-list li::before { content: "✓"; color: var(--green-check); margin-right: 10px; font-weight: bold; }

/* --- RECURSOS --- */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.check-item { display: flex; align-items: center; color: var(--text-muted); }
.check-item::before { content: "✓"; color: var(--green-check); margin-right: 10px; font-weight: bold; }

/* --- FAQ --- */
.faq-list { max-width: 1024px; margin: 0 auto; text-align: left; }
.faq-item { border: 1px solid #eee; margin-bottom: 10px; border-radius: 5px; overflow: hidden; }
.faq-question { padding: 18px 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-question::after { content: '+'; font-size: 20px; color: #ccc; }
.faq-question.active::after { content: '-'; color: var(--primary); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fcfcfc; }
.faq-answer p { padding: 20px; border-top: 1px solid #eee; color: var(--text-muted); font-size: 15px; }

/* --- FOOTER --- */
.main-footer { background: var(--primary); color: #fff; padding: 30px 0; text-align: center; }

/* --- MODAL VÍDEO --- */
.video-overlay {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center; align-items: center;
}
.video-container { width: 90%; max-width: 800px; aspect-ratio: 16/9; position: relative; }
.video-container iframe { width: 100%; height: 100%; }
.video-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 35px; cursor: pointer; }

/* --- RESPONSIVIDADE GERAL --- */
@media (max-width: 768px) {
    body { font-size: 14px; }
    .hero { text-align: center; padding: 40px 0; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .section-padding { padding: 30px 0; }
    
    .feature-row, .feature-row.row-reverse { flex-direction: column; }
    .feature-text { padding: 30px 20px 0px; text-align: center; }
    .feature-img { min-height: 200px; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .recursos-grid { grid-template-columns: 1fr; }
}

/* --- AJUSTES PARA TELAS MUITO PEQUENAS (Ex: iPhone SE / 320px) --- */
@media (max-width: 380px) {
    .container { padding: 0 12px; } /* Ganha espaço nas laterais */

    .logo-img { 
        max-width: 115px; /* Diminui o logo para caber o botão ao lado */
    }

    .main-header .btn-white {
        padding: 6px 12px;
        font-size: 12px; /* Diminui o texto do botão apenas em telas críticas */
    }

    .hero h1 { font-size: 1.6rem; }
}