/* ============================================================
   Mais Território — páginas públicas (apresentação e manuais)
   Mesmo DNA visual do app: índigo, cartões suaves e ONDAS.
   ============================================================ */
:root {
    --i-950: #1e1b4b;
    --i-900: #312e81;
    --i-800: #3730a3;
    --i-700: #4338ca;
    --i-600: #4f46e5;
    --i-500: #6366f1;
    --i-100: #e0e7ff;
    --i-50: #eef2ff;
    --cinza-900: #0f172a;
    --cinza-700: #334155;
    --cinza-500: #64748b;
    --cinza-100: #f1f5f9;
    --ok: #16a34a;
    --ok-100: #dcfce7;
    --err: #dc2626;
    --err-100: #fee2e2;
    --ambar: #d97706;
    --ambar-100: #fef3c7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--cinza-900);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--i-700); }

.ct { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; }

/* ===== Hero ondulado (mesma linguagem do login do app) ===== */
.hero {
    position: relative;
    background: linear-gradient(140deg, var(--i-950) 0%, var(--i-800) 45%, #2563eb 115%);
    color: #fff;
    padding: 2.2rem 0 7.5rem;
    overflow: hidden;
}
.hero::before {
    /* brilho suave */
    content: "";
    position: absolute; inset: -40% -20% auto;
    height: 130%;
    background: radial-gradient(ellipse at 25% 20%, rgba(129, 140, 248, .35), transparent 55%),
                radial-gradient(ellipse at 85% 10%, rgba(37, 99, 235, .45), transparent 50%);
    pointer-events: none;
}
.hero > .ct { position: relative; z-index: 2; }
.hero-onda {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
    width: 100%; height: 90px; display: block;
}
.topo {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 2.6rem; flex-wrap: wrap;
}
.marca { display: flex; align-items: center; gap: .7rem; }
.marca img { width: 190px; height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.topo-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.topo-links a {
    color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem;
    padding: .5rem 1rem; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
    transition: background .2s;
}
.topo-links a:hover { background: rgba(255,255,255,.12); }

.hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 2.5rem; align-items: center;
}
.hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.15; font-weight: 800; letter-spacing: -.5px;
    margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: #a5b4fc; }
.hero p.sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #dbe1ff; max-width: 34rem; margin-bottom: 1.8rem;
}
.chips-hero { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chips-hero span {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.cta-linha { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.7rem; border-radius: 999px; text-decoration: none;
    font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-claro { background: #fff; color: var(--i-800); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.btn-vazado { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-indigo { background: linear-gradient(120deg, var(--i-700), var(--i-500)); color: #fff; box-shadow: 0 12px 30px rgba(67,56,202,.35); }

/* ===== Celular (mockup) ===== */
.fone {
    width: min(300px, 78vw);
    border-radius: 38px;
    background: #0b1020;
    padding: 10px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, .45), 0 4px 16px rgba(2, 6, 23, .3);
    position: relative;
    margin: 0 auto;
}
.fone::after {
    content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 86px; height: 22px; background: #0b1020; border-radius: 12px; z-index: 3;
}
.fone img { border-radius: 28px; width: 100%; }
.fone.mini { width: min(250px, 74vw); border-radius: 32px; padding: 8px; }
.fone.mini::after { width: 70px; height: 18px; top: 15px; }
.fone.mini img { border-radius: 24px; }
.fone-flutua { animation: flutua 7s ease-in-out infinite; }
@keyframes flutua { 0%,100% { transform: translateY(0) rotate(-1.2deg);} 50% { transform: translateY(-14px) rotate(1.2deg);} }

/* ===== Ondas divisórias ===== */
.onda { display: block; width: 100%; height: 70px; }
.onda.baixa { height: 46px; }

/* ===== Seções ===== */
section.bloco { padding: 4rem 0 4.5rem; position: relative; }
.bloco.claro { background: #fff; }
.bloco.cinza { background: var(--cinza-100); }
.bloco.indigo {
    background: linear-gradient(135deg, var(--i-950), var(--i-800) 70%, var(--i-700));
    color: #fff;
}
.bloco.indigo-suave { background: var(--i-50); }
.rotulo {
    display: inline-block; background: var(--i-100); color: var(--i-800);
    font-weight: 700; font-size: .78rem; letter-spacing: .8px; text-transform: uppercase;
    padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.bloco.indigo .rotulo { background: rgba(255,255,255,.15); color: #c7d2fe; }
h2.titulo {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.4px;
    line-height: 1.2; margin-bottom: .8rem; max-width: 46rem;
}
p.descr { color: var(--cinza-500); max-width: 44rem; font-size: 1.05rem; }
.bloco.indigo p.descr { color: #c7d2fe; }
.centro { text-align: center; }
.centro h2.titulo, .centro p.descr { margin-left: auto; margin-right: auto; }

/* ===== Números ===== */
.numeros {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-top: 2.4rem;
}
.num-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px; padding: 1.3rem 1.1rem; text-align: center;
}
.num-card .v { font-size: 2rem; font-weight: 800; color: #fff; }
.num-card .l { color: #c7d2fe; font-size: .88rem; }

/* ===== Feature em duas colunas ===== */
.feat {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: center; padding: 2.6rem 0;
}
.feat.invertida .feat-texto { order: 2; }
.feat.invertida .feat-fone { order: 1; }
.feat h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .7rem; letter-spacing: -.3px; }
.feat p { color: var(--cinza-500); margin-bottom: .9rem; }
.feat ul { list-style: none; display: grid; gap: .55rem; }
.feat ul li { position: relative; padding-left: 32px; color: var(--cinza-700); }
.feat ul li::before {
    content: "✓"; position: absolute; left: 0; top: .1rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ok-100); color: var(--ok); font-weight: 800; font-size: .8rem;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Cards de dor / recurso ===== */
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.cartao {
    background: #fff; border-radius: 20px; padding: 1.5rem 1.4rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    border: 1px solid #e8edf5;
}
.cartao .ic {
    width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 1.35rem; margin-bottom: .9rem;
    background: var(--i-100);
}
.cartao h4 { font-size: 1.05rem; margin-bottom: .4rem; font-weight: 700; }
.cartao p { color: var(--cinza-500); font-size: .93rem; }
.cartao.alerta .ic { background: var(--err-100); }
.cartao.ambar .ic { background: var(--ambar-100); }
.cartao.ok .ic { background: var(--ok-100); }

/* ===== Tabela comparativa ===== */
.compara-wrap { overflow-x: auto; margin-top: 2.2rem; border-radius: 20px; box-shadow: 0 14px 40px rgba(15,23,42,.08); }
table.compara { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }
.compara th, .compara td { padding: .95rem 1.1rem; text-align: center; font-size: .95rem; }
.compara thead th { background: var(--i-900); color: #fff; font-size: .95rem; }
.compara thead th:first-child { text-align: left; border-top-left-radius: 20px; }
.compara thead th:last-child { border-top-right-radius: 20px; }
.compara tbody th { text-align: left; font-weight: 600; color: var(--cinza-700); }
.compara tbody tr:nth-child(odd) { background: #f8fafc; }
.compara td.sim { color: var(--ok); font-weight: 800; }
.compara td.nao { color: #cbd5e1; font-weight: 800; }
.compara td .mini { display: block; font-size: .72rem; color: var(--cinza-500); font-weight: 500; }
.compara .col-mt { background: var(--i-50); }
.compara thead th.col-mt { background: var(--i-700); }

/* ===== Leis de incentivo ===== */
.leis { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.lei {
    background: #fff; border-radius: 20px; padding: 1.5rem;
    border-top: 5px solid var(--i-600);
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
}
.lei .cidade { font-weight: 800; font-size: 1.05rem; }
.lei .norma { color: var(--i-700); font-weight: 700; font-size: .85rem; margin-bottom: .5rem; }
.lei p { color: var(--cinza-500); font-size: .92rem; }
.lei .valor { display: inline-block; margin-top: .7rem; background: var(--ok-100); color: #166534; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; }
.lei a { font-size: .8rem; }
.fonte-nota { color: var(--cinza-500); font-size: .8rem; margin-top: 1.2rem; }
.fonte-nota a { color: var(--i-700); }

/* ===== Fluxo de integração ===== */
.fluxo { display: flex; align-items: stretch; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 2.4rem; }
.fluxo .no {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    padding: 1rem 1.2rem; border-radius: 16px; text-align: center; min-width: 150px; flex: 1 1 150px; max-width: 210px;
}
.fluxo .no .t { font-weight: 800; }
.fluxo .no .d { font-size: .8rem; color: #c7d2fe; }
.fluxo .seta { align-self: center; font-size: 1.4rem; color: #a5b4fc; font-weight: 800; }

/* ===== Manual (passos) ===== */
.passo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem;
    align-items: center; padding: 2.8rem 0; border-bottom: 1px dashed #e2e8f0;
}
.passo:last-of-type { border-bottom: 0; }
.passo.invertido .passo-texto { order: 2; }
.passo-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--i-700), var(--i-500));
    color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem;
    box-shadow: 0 8px 20px rgba(67,56,202,.35);
}
.passo h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; letter-spacing: -.3px; }
.passo p { color: var(--cinza-500); margin-bottom: .8rem; }
.dica {
    background: var(--i-50); border-left: 4px solid var(--i-500);
    padding: .8rem 1rem; border-radius: 0 12px 12px 0; font-size: .9rem; color: var(--cinza-700);
}
.dica.verde { background: var(--ok-100); border-color: var(--ok); }
.dica.ambar { background: var(--ambar-100); border-color: var(--ambar); }

/* ===== Footer ===== */
footer.rodape {
    background: var(--i-950); color: #c7d2fe; padding: 2.6rem 0 5rem;
    position: relative; text-align: center; font-size: .9rem;
}
footer.rodape a { color: #fff; }
footer .links-rodape { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }

/* ===== Revelação ao rolar (progressiva: sem JS, tudo visível) ===== */
html.anima .rev { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.anima .rev.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.anima .rev { opacity: 1; transform: none; transition: none; } .fone-flutua { animation: none; } }

/* ===== Responsivo ===== */
@media (max-width: 840px) {
    .hero-grid, .feat, .passo { grid-template-columns: 1fr; gap: 2rem; }
    .feat.invertida .feat-texto, .passo.invertido .passo-texto { order: 0; }
    .feat.invertida .feat-fone { order: 1; }
    .hero { padding-bottom: 6rem; }
    .fone-hero-wrap { margin-top: 1rem; }
}

/* ===== Trio de celulares (rankings) ===== */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.4rem; align-items: start; }
.trio figure { margin: 0; text-align: center; }
.trio figcaption { margin-top: .9rem; font-weight: 700; color: var(--cinza-700); }
.trio figcaption small { display: block; font-weight: 500; color: var(--cinza-500); font-size: .82rem; }
@media (max-width: 840px) { .trio { grid-template-columns: 1fr; } }

/* ===== Janela do sistema (ilustração da tela do gestor) ===== */
.janela {
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
    border: 1px solid #e2e8f0;
}
.janela .barra {
    display: flex; align-items: center; gap: .45rem;
    background: #f1f5f9; padding: .6rem .9rem; border-bottom: 1px solid #e2e8f0;
}
.janela .barra i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.janela .barra i:nth-child(1) { background: #f87171; }
.janela .barra i:nth-child(2) { background: #fbbf24; }
.janela .barra i:nth-child(3) { background: #34d399; }
.janela .barra span {
    flex: 1; text-align: center; font-size: .72rem; color: var(--cinza-500);
    background: #fff; border-radius: 6px; padding: .15rem .6rem; margin-left: .5rem;
    border: 1px solid #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.janela .corpo { padding: 1.2rem; }
.mig-titulo { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.mig-titulo strong { font-size: .95rem; }
.mig-titulo small { color: var(--cinza-500); }
.mig-barra { display: flex; height: 22px; border-radius: 8px; overflow: hidden; font-size: .68rem; color: #fff; font-weight: 700; }
.mig-barra .m { background: #16a34a; display: flex; align-items: center; justify-content: center; }
.mig-barra .t { background: #f59e0b; display: flex; align-items: center; justify-content: center; }
.mig-barra .a { background: #dc2626; display: flex; align-items: center; justify-content: center; }
.mig-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1rem; }
.mig-cards .mc { background: #f8fafc; border: 1px solid #e8edf5; border-radius: 12px; padding: .7rem .5rem; text-align: center; }
.mig-cards .mc .v { font-weight: 800; font-size: 1.15rem; }
.mig-cards .mc .l { font-size: .68rem; color: var(--cinza-500); }
.mig-tab { margin-top: 1rem; display: grid; gap: .45rem; }
.mig-tab .linha { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: .6rem; align-items: center; }
.mig-tab .sk { height: 12px; border-radius: 6px; background: #e2e8f0; }
.mig-tab .tag { height: 18px; border-radius: 999px; font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mig-tab .tag.ok { background: var(--ok-100); color: #166534; }
.mig-tab .tag.meio { background: var(--ambar-100); color: #92400e; }
.mig-tab .tag.ruim { background: var(--err-100); color: #991b1b; }
@media (max-width: 840px) { .mig-cards { grid-template-columns: repeat(2, 1fr); } .mig-tab .linha { grid-template-columns: 2fr 1fr 1fr; } .mig-tab .linha > :nth-child(2) { display: none; } }


/* ===== Grade fixa de 4 (cards da dor) ===== */
.grade.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grade.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grade.g4 { grid-template-columns: 1fr; } }

/* ===== Logos no cabeçalho do comparativo ===== */
.compara thead th .th-logo { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.compara thead th .th-logo img { height: 40px; width: auto; }
.compara thead th .th-logo img.redondo { height: 44px; border-radius: 12px; background: #fff; padding: 3px; }
.compara thead th .th-logo small { font-size: .72rem; font-weight: 600; color: #c7d2fe; }

/* ===== Botão flutuante do WhatsApp ===== */
.zap-flutuante {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    display: flex; align-items: center; gap: .55rem;
    background: #25d366; color: #fff; text-decoration: none;
    padding: .8rem 1.15rem; border-radius: 999px; font-weight: 800; font-size: .92rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45), 0 4px 10px rgba(15, 23, 42, .25);
    transition: transform .15s;
}
.zap-flutuante:hover { transform: translateY(-2px) scale(1.02); }
.zap-flutuante svg { width: 24px; height: 24px; flex: 0 0 24px; }
.zap-flutuante::before {
    content: ""; position: absolute; inset: -6px; border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, .5); animation: zapPulso 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes zapPulso { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@media (max-width: 560px) { .zap-flutuante span { display: none; } .zap-flutuante { padding: .9rem; } }
