@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #0053b3;
    --primary-hover-color: #00428f;
    --secondary-color: #f0f8ff;
    --text-color: #333;
    --accent-color: #ffc107;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Merriweather', serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); line-height: 1.7; color: var(--text-color); margin: 0; padding: 0; background-color: #f8f9fa; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.skip-link { position: absolute; top: -999px; left: 0; background: var(--primary-color); color: white; padding: 8px; z-index: 1000; transition: top 0.3s; }
.skip-link:focus { top: 0; }

.main-header { background-color: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--heading-font);
    padding: 1.5rem 1em;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav a::after { content: ''; position: absolute; bottom: 1rem; left: 1em; right: 1em; height: 3px; background-color: var(--accent-color); transform: scaleX(0); transition: transform 0.3s ease; }
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] { color: var(--primary-color); }
.main-nav a:hover::after, .main-nav a:focus::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.mobile-nav-toggle { display: none; }


section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 3em; color: var(--primary-color); font-size: 2.2em; }

.cta-button, .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-family: var(--heading-font);
    font-weight: 700;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 83, 179, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.cta-button:hover, .cta-button:focus, .btn:hover, .btn:focus {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 83, 179, 0.3);
    color: #fff !important;
    outline: none;
}

/* Botão secundário (Google, etc.) */
.btn-secondary {
    background-color: #fff;
    color: #555 !important;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #f8f8f8;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: #333 !important;
}
.btn-secondary img {
    height: 18px;
    width: 18px;
}

/* --- Estilo base do botão de login no menu (GLOBAL) --- */
.btn-nav-login {
    border: 2px solid #0056b3;
    padding: 6px 16px;
    border-radius: 50px;
    color: #0056b3 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px; /* Espaço extra no desktop */
}

.btn-nav-login:hover {
    background-color: #0056b3;
    color: white !important;
    text-decoration: none;
}

/* Estilo quando o usuário está logado (Opcional: Cor Verde) */
.btn-nav-login.logged-in {
    border-color: #28a745;
    color: #28a745 !important;
}

.btn-nav-login.logged-in:hover {
    background-color: #28a745;
    color: white !important;
}

.hero { background-color: var(--secondary-color); text-align: center; padding: 80px 20px; border-bottom: 1px solid #eee; }
.hero h1 { color: var(--primary-color); font-size: 3em; margin-bottom: 0.8em; }
.hero p { font-size: 1.3em; max-width: 750px; margin: 0 auto 3em auto; }
.hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 25px; }

.page-header {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
}
.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
.page-header p {
    font-size: 1.2em;
    max-width: 750px;
    margin: 0 auto;
}

.cta-secondary { display: inline-block; padding: 10px; color: #004b9c; font-weight: 700; font-family: var(--heading-font); text-decoration: underline; transition: transform 0.3s ease; }
.cta-secondary:hover, .cta-secondary:focus { transform: scale(1.05); }

.feature-icon { display: flex; justify-content: center; align-items: center; margin-bottom: 1em; color: var(--primary-color); }
.feature-icon svg { width: 48px; height: 48px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: center; }
.feature-card { background: #fff; padding: 2.5em; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }


.pro-badge { background: var(--accent-color); color: #333; padding: 0.3em 0.7em; border-radius: 5px; font-size: 0.8em; font-weight: 700; margin-left: 0.5em; }
.pro-comparison { display: flex; justify-content: center; align-items: center; gap: 2em; flex-wrap: wrap; }
.pro-comparison-text { flex-basis: 50%; min-width: 300px; }
.pro-comparison-text ul { list-style: '✔ '; padding-left: 1.5em; }

.pricing-card.highlighted {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 83, 179, 0.2);
}

.main-footer { background-color: #2c2c2c; color: #ddd; padding: 3em 0; text-align: center; margin-top: 60px; }
.footer-nav ul { margin: 0 0 1.5em 0; padding: 0; list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; }
.footer-nav a { color: #fff; text-decoration: none; font-family: var(--heading-font); font-weight: 700; transition: color 0.3s ease; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--accent-color); text-decoration: none; }

.contact-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 2.5em; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-family: var(--heading-font); color: #555; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 83, 179, 0.2);
}
.form-button { width: 100%; }
#form-status { margin-top: 1.5em; text-align: center; font-weight: bold; }


/* ========================================================== */
/* --- NOVOS ESTILOS PARA A PÁGINA DE UPGRADE (upgrade.html) --- */
/* ========================================================== */
.auth-section { padding: 40px 0; }
.auth-card {
    max-width: 500px;
    margin: 2em auto;
    padding: 2.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}
.auth-form h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5em;
    color: var(--primary-color);
}
.auth-form .input-group { margin-bottom: 1.5rem; }
.auth-form .input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--heading-font);
    color: #555;
}
.auth-form .input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-form .input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 83, 179, 0.2);
}
.auth-form .btn {
    width: 100%;
    margin-top: 1em;
    padding: 15px;
}
.form-footer-link {
    margin-top: 1.5em;
    text-align: center;
    font-size: 0.9em;
}
.form-footer-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}
.hidden { display: none; }
.message-container {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
    border: 1px solid transparent;
}
.message-container[style*="color: red"] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.message-container[style*="color: green"] {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
#loading-container { text-align: center; padding: 2em; font-style: italic; color: #666; }

.auth-card .features-promo {
    background-color: var(--secondary-color);
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
    border: 1px solid #d1e7ff;
}
.auth-card .features-promo p { margin-top: 0; font-weight: bold; }
.auth-card .features-promo ul { margin-bottom: 0; }
.auth-card .features-promo li { font-size: 0.95em; }


/* ========================================================== */
/* --- NOVOS ESTILOS PARA A PÁGINA DE NOVIDADES (changelog) --- */
/* ========================================================== */

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1em;
}

.price-update-box {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: #e6f7e9;
}

.price-update-box h3 {
    color: #28a745;
    margin-top: 0;
}

.price-highlight {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}

.changelog-list {
    list-style-type: none;
    padding: 0;
}

.changelog-list li {
    background: #e9ecef;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.badge-pro {
    background-color: #ffc107;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 5px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5em;
}

.call-to-action-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 3em;
    border: 1px solid #eee;
}

.call-to-action-box h2 {
    color: var(--primary-color);
    margin-top: 0;
}
.call-to-action-box a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}
.call-to-action-box a:hover {
    text-decoration: none;
}

/* ========================================================== */
/* --- NOVOS ESTILOS PARA A SEÇÃO DE FAQ (HOME PAGE) --- */
/* ========================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-container details {
    margin-bottom: 1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
    background: #fff;
    padding: 1.5em;
    border-radius: 8px;
    border: 1px solid #eee;
}
.faq-container summary {
    font-weight: 700;
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 1.1em;
    color: var(--primary-color);
    position: relative;
    padding-right: 20px;
}

.faq-container summary::after {
    content: '+';
    color: var(--primary-color);
    position: absolute;
    right: 5px;
    font-size: 1.3em;
}
.faq-container details[open] summary::after {
    content: '−';
}

.faq-container details[open] > p {
    margin-top: 1em;
}


/* --- Lógica do Menu Mobile (Hambúrguer) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1.1em; }
    .section-title { font-size: 1.8em; }
    .page-header h1 { font-size: 2em; }
    .page-header p { font-size: 1.1em; }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav li { width: 100%; border-bottom: 1px solid #eee; }
    .main-nav li:last-child { border-bottom: none; }

    .main-nav a {
        padding: 1.2em 1.5em;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav a::after { display: none; }
    
    /* CORREÇÃO: Adicionado o fechamento da chave aqui */
    .main-nav a:hover, .main-nav a:focus { 
        background-color: var(--secondary-color);
    }

    /* Ajuste específico para o botão de login no mobile */
    .btn-nav-login {
        display: inline-block;
        margin: 15px; /* Margem para separar da borda no mobile */
        text-align: center;
        width: calc(100% - 30px); /* Largura total menos margem */
    }
}