/* ZYLOS Contabilidade Digital — site institucional */
:root {
    --marca: #0b2a4a;
    --marca-escura: #071d34;
    --marca-media: #163f6b;
    --marca-clara: #e8eef5;
    --dourado: #b8893b;
    --dourado-escuro: #8f6a2c;
    --texto: #1b2733;
    --texto-2: #3c4856;
    --muted: #5f6b7a;
    --line: #dde3ea;
    --bg: #ffffff;
    --bg-2: #f5f7f9;
    --link: #1a5596;
    --ok: #107c41;
    --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --largura: 1180px;
    --r: 8px;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--texto); font: 400 16px/1.6 var(--fonte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { color: var(--marca); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid #4b8ad6; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 16px; top: -60px; background: var(--marca); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 100; }
.pular:focus { top: 12px; }

.envoltorio { width: 100%; max-width: calc(var(--largura) + 48px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font: 600 15px/1 var(--fonte); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primario { background: var(--marca); color: #fff; }
.btn-primario:hover { background: var(--marca-media); }
.btn-whats { background: #128c4a; color: #fff; }
.btn-whats:hover { background: #0e743d; }
.btn-contorno { border-color: #b9c4d0; color: var(--marca); background: #fff; }
.btn-contorno:hover { border-color: var(--marca); }
.btn-claro { background: #fff; color: var(--marca); }
.btn-claro:hover { background: var(--marca-clara); }
.btn-pequeno { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.topo .envoltorio { display: flex; align-items: center; gap: 20px; height: 76px; }
.topo-logo img { height: 46px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { white-space: nowrap; padding: 8px 10px; border-radius: 4px; color: var(--texto-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--marca); background: var(--bg-2); }
.topo-acoes { display: flex; gap: 10px; }
.botao-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.botao-menu svg { width: 22px; height: 22px; margin: auto; }

/* Herói */
.heroi { padding: 72px 0 80px; background: linear-gradient(180deg, var(--bg-2), #fff); border-bottom: 1px solid var(--line); }
.heroi .envoltorio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.rotulo { display: inline-block; font-size: 14px; font-weight: 600; color: var(--dourado-escuro); margin-bottom: 14px; }
.heroi h1 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.heroi .lead { margin-top: 18px; font-size: 19px; color: var(--texto-2); max-width: 34em; }
.heroi .acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.selos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: 14px; color: var(--texto-2); }
.selos li { display: flex; align-items: center; gap: 8px; }
.selos svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.tela { border-radius: 10px; border: 1px solid #cfd8e2; background: #fff; box-shadow: 0 24px 60px -24px rgba(11,42,74,.35); overflow: hidden; }
.tela-barra { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f5; border-bottom: 1px solid #dde3ea; }
.tela-barra i { width: 9px; height: 9px; border-radius: 50%; background: #c9d1db; }
.tela-barra span { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.legenda { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: right; }

/* Seções */
.secao { padding: 88px 0; }
.secao-cinza { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.secao-topo { max-width: 720px; margin-bottom: 44px; }
.secao-topo h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.secao-topo p { margin-top: 14px; font-size: 18px; color: var(--texto-2); }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

.grade { display: grid; gap: 20px; }
.grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cartao { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.cartao:hover { border-color: #9fb2c7; box-shadow: 0 8px 24px -14px rgba(11,42,74,.35); }
.cartao h3 { font-size: 19px; font-weight: 600; }
.cartao p { color: var(--texto-2); font-size: 15.5px; }
.cartao .mais { margin-top: auto; padding-top: 6px; color: var(--link); font-weight: 600; font-size: 15px; }
.icone { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--marca-clara); color: var(--marca); }
.icone svg { width: 24px; height: 24px; }

/* Público */
.publico { padding: 26px; border-left: 3px solid var(--dourado); background: #fff; }
.publico h3 { font-size: 18px; }
.publico p { margin-top: 8px; color: var(--texto-2); font-size: 15.5px; }

/* Passos */
.passos { counter-reset: passo; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.passos li { position: relative; padding-top: 58px; }
.passos li::before { counter-increment: passo; content: counter(passo); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); color: #fff; font-weight: 700; }
.passos li::after { content: ""; position: absolute; top: 21px; left: 54px; right: -12px; height: 1px; background: #c3ccd6; }
.passos li:last-child::after { display: none; }
.passos h3 { font-size: 18px; }
.passos p { margin-top: 8px; color: var(--texto-2); font-size: 15.5px; }

/* Faixa do portal */
.faixa-portal { background: var(--marca); color: #dbe4ef; }
.faixa-portal h2, .faixa-portal h3 { color: #fff; }
.faixa-portal .secao-topo p { color: #c3d0df; }
.faixa-portal .envoltorio > .duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.lista-check li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.lista-check svg { width: 22px; height: 22px; color: #6fd39b; margin-top: 2px; }
.lista-check strong { color: #fff; font-weight: 600; display: block; }
.faixa-portal .tela { border-color: rgba(255,255,255,.2); }
.faixa-portal .legenda { color: #9fb0c4; }

/* Destaque reforma */
.destaque { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.destaque h2 { font-size: 30px; }
.destaque p { margin-top: 14px; color: var(--texto-2); font-size: 17px; }
.linha-tempo { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.linha-tempo li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo b { color: var(--marca); font-size: 17px; }
.linha-tempo span { color: var(--texto-2); font-size: 15px; }

/* Perguntas */
.perguntas { max-width: 860px; margin: 0 auto; }
.perguntas details { border-bottom: 1px solid var(--line); }
.perguntas summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17.5px; font-weight: 600; color: var(--marca); }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--muted); }
.perguntas details[open] summary::after { content: "–"; }
.perguntas details p { padding: 0 0 22px; color: var(--texto-2); }

/* Chamada final */
.chamada { background: var(--marca-escura); color: #c9d5e3; padding: 72px 0; }
.chamada .envoltorio { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.chamada h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.chamada p { margin-top: 10px; font-size: 18px; }
.chamada .acoes { display: flex; gap: 12px; flex-wrap: wrap; }

/* Páginas internas */
.cabecalho-pagina { padding: 56px 0 48px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.trilha { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.trilha a { color: var(--muted); }
.cabecalho-pagina h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.015em; max-width: 22em; }
.cabecalho-pagina .lead { margin-top: 16px; font-size: 19px; color: var(--texto-2); max-width: 44em; }
.cabecalho-pagina .acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.conteudo-pagina { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.texto { max-width: 720px; }
.texto h2 { font-size: 26px; margin: 44px 0 14px; }
.texto h2:first-child { margin-top: 0; }
.texto h3 { font-size: 20px; margin: 28px 0 10px; }
.texto p { margin: 0 0 16px; color: var(--texto-2); font-size: 17px; }
.texto ul, .texto ol { margin: 0 0 18px; padding-left: 22px; color: var(--texto-2); font-size: 17px; }
.texto li { margin-bottom: 8px; }
.texto strong { color: var(--texto); }
.texto table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15.5px; }
.texto th, .texto td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.texto th { background: var(--bg-2); color: var(--marca); font-weight: 600; }
.tabela-rolagem { overflow-x: auto; }
.nota { padding: 16px 18px; border-left: 3px solid var(--dourado); background: var(--bg-2); font-size: 15.5px; color: var(--texto-2); margin: 0 0 20px; }
.lateral { position: sticky; top: 100px; display: grid; gap: 16px; }
.caixa-contato { padding: 26px; border-radius: var(--r); background: var(--marca); color: #c9d5e3; }
.caixa-contato h3 { color: #fff; font-size: 20px; }
.caixa-contato p { margin: 10px 0 18px; font-size: 15.5px; }
.caixa-contato .btn { width: 100%; }
.caixa-contato .btn + .btn { margin-top: 10px; }
.caixa-lista { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); }
.caixa-lista h3 { font-size: 16px; margin-bottom: 10px; }
.caixa-lista ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.caixa-lista a { text-decoration: none; }
.caixa-lista a:hover { text-decoration: underline; }

/* Artigos */
.artigo-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.cartao .data { font-size: 13.5px; color: var(--muted); }

/* Contato */
.formulario { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14.5px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c4d0; border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: var(--texto); }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.duas-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aviso-form { font-size: 13.5px; color: var(--muted); }
.dados-contato { display: grid; gap: 20px; }
.dado { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.dado strong { display: block; color: var(--marca); }
.dado span, .dado a { color: var(--texto-2); overflow-wrap: anywhere; }

/* Rodapé */
.rodape { background: #06182c; color: #9fb0c4; padding: 64px 0 28px; font-size: 15px; }
.rodape .colunas { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.rodape img { height: 52px; width: auto; }
.rodape h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.rodape ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rodape a { color: #c3d0df; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape .institucional { margin-top: 18px; line-height: 1.7; }
.rodape .base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* WhatsApp flutuante */
.whats-flutuante { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #128c4a; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.whats-flutuante svg { width: 30px; height: 30px; }
.whats-flutuante:hover { background: #0e743d; }

/* Aviso de cookies */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 640px; margin: 0 auto; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14.5px; color: var(--texto-2); }
.cookies p { flex: 1 1 260px; }
.cookies div { display: flex; gap: 8px; }

/* Responsivo */
@media (max-width: 1180px) {
    .menu, .topo-acoes .btn-contorno { display: none; }
    .botao-menu { display: grid; }
    .topo-acoes { margin-left: 0; }
    .topo.aberto .menu { display: grid; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
    .topo.aberto .menu a { padding: 12px; font-size: 16px; }
    .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .passos li:nth-child(2)::after { display: none; }
    .rodape .colunas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .heroi .envoltorio, .faixa-portal .envoltorio > .duas, .destaque, .conteudo-pagina { grid-template-columns: minmax(0, 1fr); }
    .heroi { padding: 48px 0 56px; }
    .grade-3 { grid-template-columns: minmax(0, 1fr); }
    .secao { padding: 64px 0; }
    .lateral { position: static; }
    .destaque { padding: 28px; }
}
@media (max-width: 640px) {
    .topo .envoltorio { height: 64px; gap: 12px; }
    .topo-logo img { height: 36px; }
    .topo.aberto .menu { top: 64px; }
    .topo-acoes .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
    .topo-acoes .texto-longo { display: none; }
    .grade-4, .grade-2, .passos, .duas-colunas { grid-template-columns: minmax(0, 1fr); }
    .passos li::after { display: none; }
    .heroi .lead, .cabecalho-pagina .lead { font-size: 17px; }
    .heroi .acoes .btn, .cabecalho-pagina .acoes .btn, .chamada .btn { width: 100%; }
    .rodape .colunas { grid-template-columns: minmax(0, 1fr); }
    .formulario { padding: 20px; }
}
.espaco-topo { margin-top: 28px !important; }
figure { margin: 0; }
