/* Variáveis de Cores e Fontes */
:root {
    /* Paleta Sol */
    --sol-light: #FFD45E;
    --sol-main: #F1B13B;

    /* Paleta Terra */
    --terra-main: #D95300;
    --terra-dark: #5F2604;
    --terra-gold: #605E26;

    /* Neutros */
    --bg-main: #FFFDF8; /* Tom de areia muito claro */
    --bg-alt: #F4EBE1; /* Fundo secundário suave */
    --text-dark: #2B1607;
    --white: #FFFFFF;

    /* Tipografia */
    --font-heading: 'Barriecito', cursive;
    --font-body: 'Lora', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--terra-dark);
    line-height: 1.2;
}

/* Utilidades */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-alt); }
.bg-earth { background-color: var(--terra-dark); color: var(--bg-main); }
.text-sol { color: var(--sol-light); }

/* Botões */
button {
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--terra-main);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--sol-main);
    color: var(--terra-dark);
}

.btn-large {
    font-size: 1.125rem;
    padding: 16px 32px;
}

.btn-full {
    width: 100%;
}

.btn-text {
    background: transparent;
    color: var(--terra-dark);
    padding: 12px;
}

.btn-text:hover {
    color: var(--terra-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(95, 38, 4, 0.1);
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    font-size: 2rem;
    color: var(--terra-main);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, var(--bg-alt) 0%, var(--bg-main) 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    color: var(--terra-dark);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--terra-dark);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.subtext {
    font-size: 0.9rem;
    color: var(--terra-gold);
    font-weight: 500;
}

/* Sobre (About) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.mockup-placeholder {
    background: var(--bg-main);
    border: 2px dashed var(--sol-main);
    border-radius: 16px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--terra-gold);
    font-size: 1.2rem;
}

.mockup-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--terra-main);
}

/* Cards de Benefícios */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(95, 38, 4, 0.05);
    border-top: 4px solid var(--sol-main);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon i {
    font-size: 3rem;
    color: var(--terra-main);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Para Quem É / Diferenciais */
.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.split-grid h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list i {
    color: var(--sol-light);
    font-size: 1.5rem;
}

/* Preço */
.pricing-card {
    background: var(--white);
    max-width: 450px;
    margin: 40px auto 0;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(95, 38, 4, 0.1);
    border: 2px solid var(--sol-light);
}

.plan-name {
    font-family: var(--font-heading);
    color: var(--terra-main);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--terra-dark);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--terra-gold);
}

.pricing-card p {
    margin-bottom: 30px;
    color: var(--terra-gold);
}

/* Rodapé */
.footer {
    background-color: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(95, 38, 4, 0.1);
}

.footer p {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--terra-dark);
    margin-bottom: 20px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--terra-main), var(--sol-main));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.btn-instagram:hover {
    opacity: 0.9;
}

/* Modais de Autenticação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 22, 7, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    font-size: 1.5rem;
    color: var(--terra-dark);
}

.modal-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-alt);
}

.tab-btn {
    flex: 1;
    background: none;
    padding: 10px;
    font-size: 1.1rem;
    color: var(--terra-gold);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--terra-main);
    border-bottom-color: var(--terra-main);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--terra-dark);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--sol-main);
    box-shadow: 0 0 0 3px rgba(241, 177, 59, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividade (Desktop) */
@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .split-grid { grid-template-columns: 1fr 1fr; }
}

/* Estilos do Modal Simplificado e Botão do Google */
.modal-header {
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--terra-dark);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--terra-gold);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: var(--white);
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Roboto', var(--font-body);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.modal-footer-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 20px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px; /* Ajuste conforme a altura do seu Hero */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider img.active {
    opacity: 1;
}

/* Para telas menores que 768px (Celulares e Tablets) */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column; /* Coloca as ferramentas em cima/baixo do canvas */
    }

    .toolbar {
        width: 100%;
        display: flex;
        overflow-x: auto; /* Permite rolar as cores horizontalmente */
        padding: 10px;
        gap: 15px;
    }

    canvas {
        width: 100% !important; /* Faz o grid ocupar a largura total do celular */
        height: auto !important;
        touch-action: none; /* Desativa gestos padrão do navegador sobre o desenho */
    }

    .logo { font-size: 1.2rem; }
}