/* --- IDENTIDADE VISUAL APYRA (FULL GREEN) --- */
:root {
    --apyra-green: #008f4c; 
    --apyra-green-dark: #006b38;
    --white: #FFFFFF;
    --white-opacity: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--apyra-green);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* NAVBAR & LOGO */
nav { padding: 20px 0; position: absolute; width: 100%; top: 0; z-index: 10; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 900; color: var(--white); }
.logo .light { font-weight: 300; }
.logo-img { height: 40px; width: auto; margin-right: 15px; vertical-align: middle; }

.btn-nav {
    background: transparent; border: 1px solid var(--white); color: var(--white);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; transition: 0.3s;
}
.btn-nav:hover { background: var(--white); color: var(--apyra-green); }

/* HERO SECTION */
.hero {
    padding: 140px 0 80px 0; min-height: 85vh; display: flex; align-items: center;
    background: radial-gradient(circle at top right, #00a859 0%, #008f4c 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.badge { background: rgba(255,255,255,0.2); padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 3.5rem; margin: 25px 0; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.hero p { font-size: 1.2rem; color: var(--white-opacity); margin-bottom: 35px; }
.small-text { font-size: 0.9rem; margin-top: 15px; opacity: 0.8; }

.btn-main {
    background-color: var(--white); color: var(--apyra-green); border: none;
    padding: 18px 35px; border-radius: 8px; font-weight: 800; font-size: 1.1rem;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }

/* VISUAL HERO */
.card-float {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3); padding: 40px; border-radius: 25px;
    text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.icon-bg {
    font-size: 2.2rem; margin-bottom: 20px; background: var(--white); color: var(--apyra-green);
    width: 70px; height: 70px; line-height: 70px; border-radius: 50%; margin: 0 auto 20px auto;
}

/* SEÇÕES */
section { padding: 90px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.section-title { font-size: 2.5rem; margin-bottom: 60px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: rgba(255,255,255,0.08); padding: 35px; border-radius: 15px; border: 1px solid transparent; transition: 0.3s;
}
.card:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); transform: translateY(-5px); }
.icon-large { font-size: 2.5rem; margin-bottom: 20px; opacity: 1; }

.list-check li { margin-bottom: 25px; font-size: 1.2rem; display: flex; align-items: center; gap: 15px; }
.list-check i { font-size: 1.4rem; background: var(--white); color: var(--apyra-green); border-radius: 50%; padding: 2px; }

.table-box {
    background: var(--white); color: #333; border-radius: 15px; padding: 20px;
    overflow-x: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 25px; text-align: left; border-bottom: 1px solid #eee; }
th { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: #888; }
.opacity-50 { opacity: 0.6; }
.bold { font-weight: 800; color: var(--apyra-green); font-size: 1.1rem; }
.highlight { color: var(--apyra-green); font-size: 1.2rem; font-weight: 900; }

.btn-outline {
    background: transparent; border: 2px solid var(--white); color: var(--white);
    padding: 12px 25px; border-radius: 8px; font-weight: 700; font-size: 1rem;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline:hover { background: var(--white); color: var(--apyra-green); }

.footer { padding: 100px 0 50px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-large { font-size: 1.3rem; padding: 20px 60px; margin-top: 30px; margin-bottom: 60px; }
.copy { font-size: 0.9rem; opacity: 0.7; }

/* MODAIS */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0, 40, 20, 0.85);
    justify-content: center; align-items: center; backdrop-filter: blur(8px);
    overflow-y: auto;
}
.modal-content {
    background-color: var(--white); color: #333; padding: 40px; border-radius: 20px;
    width: 90%; max-width: 500px; position: relative; margin: 50px 0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); text-align: center; animation: slideUp 0.4s ease;
}
.modal-large { max-width: 650px !important; }

@keyframes slideUp { from {transform: translateY(50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #ccc; line-height: 20px; }
.close-btn:hover { color: var(--apyra-green); }

.modal-content h3 { color: var(--apyra-green); margin-bottom: 10px; font-size: 1.6rem; }
.modal-content p { font-size: 0.95rem; margin-bottom: 25px; color: #666; }

/* INPUTS */
input, .input-select {
    width: 100%; padding: 12px; margin-bottom: 10px;
    border: 2px solid #eee; border-radius: 10px; font-size: 1rem;
    background: #f8f8f8; color: #333; transition: 0.3s;
}
input:focus, .input-select:focus { border-color: var(--apyra-green); outline: none; background: #fff; }

.btn-submit {
    width: 100%; padding: 16px; background-color: var(--apyra-green); color: white;
    border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-submit:hover { background-color: var(--apyra-green-dark); transform: scale(1.02); }
.tiny-text { font-size: 0.8rem; margin-top: 15px; color: #aaa; }

.calc-box { text-align: left; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 0.85rem; color: #444; }

.resultado-box { margin-top: 20px; animation: fadeIn 0.5s; text-align: left; }

/* TABELA DETALHADA E RESUMO */
.apyra-summary {
    background: #fff; border: 1px solid #ddd; padding: 15px; border-radius: 8px;
    text-align: center; margin-bottom: 15px;
}
.apyra-summary p { margin: 5px 0; font-size: 1rem; color: #333; }

.btn-whatsapp-send {
    width: 100%; background-color: #25D366; color: white; padding: 12px; border: none;
    border-radius: 8px; font-weight: bold; font-size: 0.95rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.3s;
}
.btn-whatsapp-send:hover { background-color: #128c7e; transform: translateY(-2px); }

/* --- CORREÇÃO MOBILE PARA A TABELA (ESSENCIAL) --- */

/* 1. Container que permite rolagem horizontal se a tabela for grande */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iPhone */
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* 2. Estilos da Tabela dentro do Wrapper */
.table-detalhada {
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.9rem; 
    color: #333;
    min-width: 350px; /* Garante que a tabela não esmague demais */
}
.table-detalhada td { padding: 10px; border-bottom: 1px solid #eee; white-space: nowrap; /* Evita quebra de linha feia nos valores */ }
.table-detalhada tr:nth-child(even) { background-color: #f9f9f9; }
.table-detalhada td:last-child { text-align: right; color: #555; }
.row-total td {
    background-color: #e8f5e9; color: #008f4c; font-weight: bold; border-top: 2px solid #008f4c; font-size: 1.1rem;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVO AJUSTADO */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px; /* Reduz margem interna no celular */
        width: 95%; /* Usa mais largura da tela */
        margin: 20px auto;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .nav-content { flex-direction: column; gap: 15px; }
    .grid-3 { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; } /* Inputs um embaixo do outro no celular */
    
    /* Ajuste de fonte da tabela no celular */
    .table-detalhada { font-size: 0.85rem; }
    .row-total td { font-size: 1rem; }
}