/* Concrestats - site institucional
   Sistema: fonte do Windows (Segoe UI), cinzas neutros, um azul. Cantos 4 (botões, campos) e 8 (painéis e telas).
   Espaços em múltiplos de 8. Seções alternam branco e cinza #f5f5f5. */

:root {
  --marinho: #1b1b1b;
  --texto: #242424;
  --texto2: #424242;
  --tinta3: #616161;
  --regra: #e0e0e0;
  --borda: #d1d1d1;
  --fundo2: #f5f5f5;
  --fundo3: #fafafa;
  --azul: #2457d6;
  --azul-escuro: #1b45b0;
  --azul-forte: #163a94;
  --azul-suave: #ebf1fd;
  --ruim: #c2412d;
  --ruim-suave: #fdeeeb;
  --bom: #18794e;
  --bom-suave: #e7f5ee;
  --s2: 0 0 2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .14);
  --s4: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14);
  --s16: 0 0 2px rgba(0, 0, 0, .12), 0 8px 16px rgba(0, 0, 0, .14);
  --s28: 0 0 8px rgba(0, 0, 0, .12), 0 14px 28px rgba(0, 0, 0, .14);
  --sombra: var(--s16);
  --sombra-p: var(--s4);
  --curva: cubic-bezier(.33, 0, .1, 1);
  --fonte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --fonte-t: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--texto); font: 400 16px/1.5 var(--fonte); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--fonte-t); }
p, dd { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; border-radius: 4px; }
section[id] { scroll-margin-top: 56px; }
::selection { background: #cfdcfb; color: var(--marinho); }
/* com a tela ampliada aberta, a página de trás não rola */
html:has(.tela-grande[open]) { overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.caixa { width: min(1200px, 100% - 48px); margin-inline: auto; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; background: #fff; border: 1px solid var(--borda); border-radius: 4px; }
.pular:focus { top: 8px; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px;
  border: 1px solid var(--azul); border-radius: 4px; background: var(--azul); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.botao:hover { background: var(--azul-escuro); border-color: var(--azul-escuro); }
.botao:active { background: var(--azul-forte); border-color: var(--azul-forte); }
.botao-linha { background: #fff; border-color: var(--borda); color: var(--texto); }
.botao-linha:hover { background: var(--fundo2); border-color: #c7c7c7; }
.botao-linha:active { background: #e0e0e0; border-color: #b3b3b3; }
.botao-g { height: 48px; padding: 0 24px; font-size: 16px; }
.botao-p { height: 32px; padding: 0 14px; font-size: 14px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--regra); }
.topo.rolou { box-shadow: 0 2px 4px rgba(0, 0, 0, .04); }
.topo-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--marinho); font-weight: 600; font-size: 18px; text-decoration: none; }
.marca img { width: 28px; height: 28px; border-radius: 6px; }
.menu { display: flex; align-items: center; flex: 1; gap: 4px; padding-left: 24px; border-left: 1px solid var(--regra); height: 24px; }
.menu a:not(.botao) { display: inline-flex; align-items: center; height: 56px; padding: 0 10px; color: var(--texto2); font-size: 14.5px; text-decoration: none; transition: color .15s; }
.menu a:not(.botao):hover { color: var(--texto); text-decoration: underline; text-underline-offset: 6px; }
.menu a[aria-current]:not(.botao) { color: var(--marinho); box-shadow: inset 0 -2px 0 var(--azul); }
.menu .menu-contato { margin-left: auto; }
.menu .botao { margin-left: 8px; }
.menu-abre { display: none; margin-left: auto; height: 36px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 4px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }

/* Abertura */
.abertura { background: #fff; }
.abertura-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 80px 0 88px; }
.produto { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--texto); }
.produto img { border-radius: 5px; }
.abertura h1 { margin-top: 20px; font-size: clamp(2.25rem, 3.3vw, 3rem); line-height: 1.15; font-weight: 600; letter-spacing: -.012em; color: var(--marinho); text-wrap: balance; }
.abertura-lead { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--texto2); max-width: 30em; }
.abertura-acoes { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.abertura-obs { margin-top: 16px; font-size: 14px; color: var(--tinta3); }

/* Faixa de dados logo abaixo da abertura */
.fatos { background: var(--fundo2); border-block: 1px solid var(--regra); }
.fatos-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; }
.fatos li { display: grid; gap: 4px; padding: 28px 24px; border-left: 1px solid var(--regra); }
.fatos li:first-child { padding-left: 0; border-left: 0; }
.fatos b { font-size: 16px; font-weight: 600; color: var(--marinho); }
.fatos span { font-size: 14.5px; line-height: 1.45; color: var(--tinta3); }

/* Réplica da planilha do programa (cores e fonte do Concrestats) */
.app {
  --app-preto: #1c1a19; --app-papel: #f8f7f3; --app-barra: #f1efea; --app-linha: #e3dfd8; --app-txt: #2b2724; --app-cinza: #8a857e;
  --mono-app: "IBM Plex Mono", Consolas, "Courier New", monospace;
  position: relative; border-radius: 8px; overflow: hidden; background: var(--app-papel); box-shadow: var(--s28);
}
.app-topo { display: flex; align-items: center; gap: 20px; height: 42px; padding: 0 14px; background: var(--app-preto); color: #fff; }
.app-marca { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono-app); letter-spacing: .16em; }
.app-marca img { border-radius: 3px; }
.app-abas { display: flex; gap: 2px; font-size: 12.5px; color: #b6b1ab; }
.app-abas span { padding: 4px 9px; border-radius: 4px; }
.app-abas .ativa { background: #26324b; color: #8fb0ff; }
.app-lic { margin-left: auto; padding: 1px 10px; border: 1px solid #3d6b4b; border-radius: 999px; background: #1e2a21; color: #86d49f; font: 500 11px var(--mono-app); }
.app-legenda { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 14px; background: var(--app-barra); border-bottom: 1px solid #dcd8d0; font-size: 12px; color: #6b665f; }
.lg-baixo { color: var(--app-txt); }
.lg-baixo i { font-style: normal; font-size: 10px; color: #c0392b; }
.app-formula { display: flex; align-items: center; height: 34px; background: #fbfaf7; border-bottom: 1px solid #dcd8d0; font: 13px var(--mono-app); }
.app-ref { display: grid; place-items: center; align-self: stretch; width: 52px; border-right: 1px solid #dcd8d0; color: #2a5bd7; font-weight: 600; }
.app-fx { padding-left: 12px; color: var(--app-txt); white-space: nowrap; overflow: hidden; }
.app-fx:empty::before { content: "= Valor ou fórmula"; color: #a9a49c; }
.app-grade-wrap { height: 322px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfcac2 transparent; }
.app-grade { width: 100%; border-collapse: separate; border-spacing: 0; font: 13px var(--mono-app); font-variant-numeric: tabular-nums; }
.app-grade th { position: sticky; top: 0; z-index: 1; height: 32px; padding: 0 10px; background: var(--app-preto); color: #fff; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-align: center; white-space: nowrap; border-right: 1px solid #38342f; }
.app-grade th:last-child { border-right: 0; }
.app-grade td { height: 32px; padding: 0 10px; background: var(--app-papel); border-right: 1px solid var(--app-linha); border-bottom: 1px solid var(--app-linha); color: var(--app-txt); white-space: nowrap; }
.app-grade td:last-child { border-right: 0; }
.app-grade td.num { width: 40px; padding: 0; text-align: center; background: var(--app-barra); color: #6f6a63; }
.app-grade td.v28 { position: relative; padding: 0; }
.app-grade td.v28 input { width: 100%; min-width: 64px; height: 31px; padding: 0 10px; border: 0; background: transparent; color: inherit; font: inherit; cursor: cell; }
.app-grade td.v28 input:hover { background: #fff; }
.app-grade td.v28 input:focus { outline: 2px solid #2a5bd7; outline-offset: -2px; background: #fff; }
.app-grade td.v28.baixo input { padding-left: 24px; color: #a3261b; font-weight: 600; }
.app-grade td.v28.baixo::before { content: "▼"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 9px; color: #c0392b; pointer-events: none; }
.app-grade td.digitando { background: #fff; box-shadow: inset 0 0 0 2px #2a5bd7; }
.app-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 46px; padding: 8px 14px; background: var(--app-barra); border-top: 1px solid #dcd8d0; font-size: 13px; color: #6b665f; }
.app-status b { font: 600 13px var(--mono-app); color: var(--app-txt); }
.app-receita select { margin-left: 6px; height: 28px; padding: 0 6px; border: 1px solid #cfcac2; border-radius: 4px; background: #fff; font: 500 12.5px var(--mono-app); color: var(--app-txt); cursor: pointer; }
.app-est { margin-left: auto; }
.app-est b { font-size: 15px; }
.app-est em { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--bom); }
.app-est.nao em { color: var(--ruim); }
.app-bolha {
  position: absolute; z-index: 3; padding: 8px 12px; border-radius: 4px; background: #2a5bd7; color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .3s; box-shadow: var(--s16);
}
.app-bolha::after { content: ""; position: absolute; right: 40px; bottom: -5px; width: 10px; height: 10px; background: #2a5bd7; transform: rotate(45deg); }
.app-bolha.some { opacity: 0; }
.av-nota { margin-top: 16px; font-size: 13.5px; color: var(--tinta3); }

/* Seções */
.secao { padding: 96px 0; }
.secao-cinza { background: var(--fundo2); }
.sec-cab { max-width: 720px; margin-bottom: 48px; }
.sec-cab-centro { margin-inline: auto; text-align: center; }
.sec-cab h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--marinho); text-wrap: balance; }
.sec-cab p { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--texto2); }

/* Recursos: lista de abas à esquerda, tela do programa à direita */
.recursos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: 48px; align-items: start; }
.recursos-lista { display: grid; border-top: 1px solid var(--regra); }
.recursos-lista [role=tab] {
  position: relative; display: grid; gap: 8px; width: 100%; padding: 20px 0 20px 20px; border: 0; border-bottom: 1px solid var(--regra);
  background: none; text-align: left; cursor: pointer;
}
.recursos-lista [role=tab]::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 2px; background: transparent; transition: background-color .2s; }
.recursos-lista [role=tab][aria-selected=true]::before { background: var(--azul); }
.r-tit { font-size: 18px; font-weight: 600; color: var(--tinta3); transition: color .15s; }
.recursos-lista [role=tab]:hover .r-tit, .recursos-lista [role=tab][aria-selected=true] .r-tit { color: var(--marinho); }
.r-txt { font-size: 15.5px; line-height: 1.55; color: var(--texto2); }
.recursos-lista [role=tab][aria-selected=false] .r-txt { display: none; }
.recursos-lista [role=tab]:focus-visible { outline-offset: -2px; }
.recursos-palco { padding: 32px; border-radius: 8px; background: var(--fundo2); }
/* todas as telas ocupam a mesma caixa: trocar de aba não empurra a página */
.r-painel { aspect-ratio: 1800 / 1058; }
.r-painel .amplia { display: flex; align-items: center; justify-content: center; height: 100%; }
.r-painel[hidden] { display: none; }
.r-painel:not([hidden]) { animation: surge .35s var(--curva); }
.r-painel img { width: auto; max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: var(--s16); background: #fff; }
.recursos-lista [role=tab]:hover { background: linear-gradient(to right, var(--fundo3), transparent); }
.recursos-nota { margin-top: 20px; font-size: 13.5px; color: var(--tinta3); }
.amplia { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.amplia:focus-visible { outline-offset: 4px; }
.tela-grande { width: min(1600px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: #fff; overflow: auto; box-shadow: var(--s28); }
.tela-grande::backdrop { background: rgba(0, 0, 0, .6); }
.tela-grande img { width: 100%; cursor: zoom-out; }
.tela-grande-fecha { position: sticky; top: 0; float: right; margin: 8px 8px -48px 0; height: 36px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 4px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }

/* botões segmentados (fck da demonstração completa) */
.av-seg { display: inline-flex; padding: 2px; border: 1px solid var(--borda); border-radius: 4px; background: #fff; }
.av-seg button { height: 30px; min-width: 48px; padding: 0 12px; border: 0; border-radius: 3px; background: none; font-size: 14px; font-weight: 600; color: var(--texto2); cursor: pointer; transition: background-color .15s, color .15s; }
.av-seg button:hover { background: var(--fundo2); color: var(--texto); }
.av-seg button[aria-pressed="true"] { background: var(--azul); color: #fff; }

/* Régua: controle deslizante com a parte cheia na cor do estado */
.regua { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 4px 0 0; background: transparent; cursor: pointer; --p: 50%; --cor: var(--azul); }
.regua:focus-visible { outline: none; }
.regua::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--cor) var(--p), #d1d1d1 var(--p)); }
.regua::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 5px solid var(--cor); box-shadow: 0 0 0 1px #fff, var(--s2); transition: border-width .15s;
}
.regua:hover::-webkit-slider-thumb, .regua:active::-webkit-slider-thumb { border-width: 4px; }
.regua:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--texto); }
.regua::-moz-range-track { height: 4px; border-radius: 999px; background: #d1d1d1; }
.regua::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--cor); }
.regua::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--cor); }
.regua-rot { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--tinta3); }

/* Demonstração completa */
.demo { background: #fff; border-radius: 8px; box-shadow: var(--s4); }
.abas { position: relative; display: flex; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--regra); overflow-x: auto; scrollbar-width: none; }
.abas button { height: 52px; padding: 0 12px; border: 0; background: none; color: var(--texto2); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: color .15s; }
.abas button:hover, .abas button[aria-selected="true"] { color: var(--marinho); }
.abas-marca { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--azul); border-radius: 2px; transition: transform .35s var(--curva), width .35s var(--curva); }
.demo-corpo { padding: 24px; }
.demo-corpo[hidden] { display: none; }
.demo-corpo:not([hidden]) { animation: surge .35s var(--curva); }
@keyframes surge { from { opacity: 0; transform: translateY(4px); } }

.ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ctrl-rot { font-size: 14px; font-weight: 600; color: var(--texto2); margin-right: 4px; }
.ctrl-esp { flex: 1; }
.botao-demo { height: 36px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 4px; background: #fff; color: var(--texto); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.botao-demo:hover { background: var(--fundo2); border-color: #c7c7c7; }
#d-estragar { color: var(--ruim); }
#d-estragar:hover { background: var(--ruim-suave); border-color: #e7b3aa; }

.demo-grade { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tab-wrap { max-height: 528px; overflow: auto; border: 1px solid #d6d1c9; border-radius: 4px; }
.tab { width: 100%; border-collapse: collapse; font: 13.5px "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.tab th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #1c1a19; color: #fff; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-align: right; white-space: nowrap; }
.tab th:nth-child(-n+2), .tab td:nth-child(-n+2) { text-align: left; }
.tab td { height: 36px; padding: 0 12px; background: #f8f7f3; border-bottom: 1px solid #e3dfd8; border-right: 1px solid #e3dfd8; text-align: right; color: #2b2724; white-space: nowrap; }
.tab td:last-child { border-right: 0; }
.tab tr:last-child td { border-bottom: 0; }
.tab td.ed { padding: 0; }
.tab td.ed input { width: 100%; min-width: 60px; height: 35px; padding: 0 12px; border: 0; background: transparent; color: var(--texto); text-align: right; font-variant-numeric: tabular-nums; }
.tab td.ed input:hover { background: var(--azul-suave); }
.tab td.ed input:focus { outline: 2px solid var(--azul); outline-offset: -2px; background: #fff; }
.tab td.menor input { color: var(--tinta3); }
.tab td.ex { font-weight: 700; color: var(--texto); }
.tab td.ex.baixo { color: #a3261b; }
.app-grade td.v28 input[aria-invalid="true"], .tab td.ed input[aria-invalid="true"] { color: #a3261b; text-decoration: line-through; }
/* sem JavaScript: a tela real do programa no lugar da planilha ao vivo, e a simulação some */
html:not(.js) #ao-vivo, html:not(.js) .av-nota, html:not(.js) #app-demo { display: none; }
.sem-js-tela { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--s28); }
.sem-js-aviso { padding: 24px; border: 1px solid var(--regra); border-radius: 8px; background: #fff; color: var(--texto2); }
.tab td.ex.baixo::before { content: "▼ "; font-size: 9px; color: #c0392b; vertical-align: 1px; }
.tab tr.pisca td { animation: pisca .9s ease; }
@keyframes pisca { 30% { background: var(--azul-suave); } }

.resumo { display: grid; gap: 16px; }
.veredito { display: grid; gap: 2px; padding: 16px 20px; border-radius: 4px; background: var(--bom-suave); border-left: 4px solid var(--bom); transition: background-color .4s, border-color .4s; }
.veredito.nao { background: var(--ruim-suave); border-left-color: var(--ruim); }
.veredito.neutro { background: var(--fundo3); border: 1px solid var(--regra); border-left: 4px solid var(--azul); }
.rot { font-size: 13.5px; font-weight: 600; color: var(--texto2); }
.grande { font-size: 17px; color: var(--texto2); }
.grande b { font-size: 42px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--marinho); font-variant-numeric: tabular-nums; }
.ver-txt { font-size: 15px; font-weight: 600; color: var(--bom); }
.veredito.nao .ver-txt, .ver-txt.nao { color: var(--ruim); }
.ver-txt.ok { color: var(--bom); }
.numeros { width: 100%; border-collapse: collapse; font-size: 15px; }
.numeros th, .numeros td { padding: 8px 0; border-bottom: 1px solid var(--regra); }
.numeros th { text-align: left; font-weight: 400; color: var(--texto2); }
.numeros td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.grafico { width: 100%; padding: 12px; border: 1px solid var(--regra); border-radius: 4px; background: #fff; overflow: visible; }
.grafico .barra { transition: y .45s var(--curva), height .45s var(--curva), fill .3s; }
.grafico .linha-ref { transition: transform .45s var(--curva); }
.grafico text { font-family: var(--fonte); font-size: 9px; font-weight: 600; }
.formula { font: 13.5px Consolas, "Courier New", monospace; color: var(--tinta3); }
.dica { margin-top: 16px; font-size: 14px; color: var(--tinta3); }
.nota { margin-top: 16px; font-size: 13.5px; color: var(--tinta3); }

.prever { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px; align-items: start; }
.campo { display: grid; gap: 8px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--texto2); }
.campo input:not(.regua) { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--borda); border-bottom-color: #8a8a8a; border-radius: 4px; background: #fff; font-size: 17px; }
.campo .regua { margin-top: 8px; }
.campo input:not(.regua):focus { outline: none; border-bottom: 2px solid var(--azul); }
.campo-un { position: relative; }
.campo-un input { padding-right: 56px; }
.campo-un span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--tinta3); font-size: 14px; pointer-events: none; }
.ajuda { font-size: 14px; color: var(--tinta3); }
.prev-faixa { font-size: 14.5px; color: var(--texto2); }
.ag-lista { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ag-lista li { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--regra); border-radius: 4px; background: #fff; animation: surge .45s var(--curva) both; }
.ag-lista li:nth-child(2) { animation-delay: .05s; } .ag-lista li:nth-child(3) { animation-delay: .1s; }
.ag-lista li:nth-child(4) { animation-delay: .15s; } .ag-lista li:nth-child(5) { animation-delay: .2s; }
.ag-idade { font-size: 13px; font-weight: 600; color: var(--azul); }
.ag-data { font-size: 20px; font-weight: 600; color: var(--marinho); font-variant-numeric: tabular-nums; }
.ag-dia { font-size: 14px; color: var(--texto2); }
.ag-lista li.fds { border-color: #ecc0b8; }
.ag-lista li.fds .ag-dia { color: var(--ruim); }

/* Planos */
.planos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
.plano { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--regra); border-radius: 8px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.plano:hover { border-color: var(--borda); box-shadow: var(--s16); }
.plano-destaque { border: 2px solid var(--azul); padding: 31px; }
.plano-destaque:hover { border-color: var(--azul); }
.plano-selo { position: absolute; top: -12px; left: 31px; padding: 2px 10px; border-radius: 4px; background: var(--azul); color: #fff; font-size: 12.5px; font-weight: 600; }
.plano h3 { font-size: 22px; font-weight: 600; color: var(--marinho); }
.plano-desc { margin-top: 8px; min-height: 3.2em; font-size: 15px; color: var(--texto2); }
.plano-preco { margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--regra); font-family: var(--fonte-t); font-size: 28px; font-weight: 600; color: var(--marinho); }
.plano-rs { margin-right: 4px; font-size: 16px; font-weight: 600; color: var(--texto2); }
.plano-mes { margin-left: 2px; font-size: 15px; font-weight: 400; color: var(--tinta3); }
.plano-preco:has(+ .plano-obs) { margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; }
.plano-obs { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--regra); font-size: 13.5px; color: var(--tinta3); }
.plano-itens { flex: 1; display: grid; align-content: start; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 15px; }
.plano-itens li { display: flex; gap: 10px; align-items: flex-start; }
.plano-itens li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%232457d6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plano .botao { width: 100%; }

/* Ficha técnica */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.ficha .sec-cab { margin-bottom: 0; position: sticky; top: 96px; }
.ficha-tab { padding: 8px 32px; border-radius: 8px; background: #fff; box-shadow: var(--s4); }
.ficha-tab table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ficha-tab th, .ficha-tab td { padding: 16px 0; border-bottom: 1px solid var(--regra); vertical-align: top; text-align: left; }
.ficha-tab tr:last-child > * { border-bottom: 0; }
.ficha-tab th { width: 30%; padding-right: 24px; font-weight: 600; color: var(--marinho); }
.ficha-tab td { color: var(--texto2); }

/* Perguntas */
.perguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.perguntas > div { padding: 24px 0 28px; border-top: 1px solid var(--regra); }
.perguntas dt { font-size: 17px; font-weight: 600; color: var(--marinho); }
.perguntas dd { margin-top: 8px; color: var(--texto2); }

/* Contato */
.contato { padding: 0 0 96px; }
.contato-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 56px; border-radius: 8px; background: var(--azul-suave); }
.contato h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 600; color: var(--marinho); text-wrap: balance; }
.contato p { margin-top: 12px; max-width: 34em; font-size: 17px; color: var(--texto2); }
.contato-acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.contato-end { display: inline-block; padding: 6px 0; color: var(--texto2); font-size: 15px; text-underline-offset: 4px; }
.contato-end:hover { color: var(--azul); }
#ct-whats[hidden] { display: none; }

/* Rodapé em colunas */
.rodape { background: var(--fundo2); color: var(--tinta3); font-size: 14px; border-top: 1px solid var(--regra); }
.rodape-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 40px; }
.rodape-marca p { margin-top: 12px; max-width: 22em; }
.rodape .marca { font-size: 16px; }
.rodape .marca img { width: 24px; height: 24px; border-radius: 5px; }
.rodape nav { display: grid; align-content: start; gap: 6px; }
.rodape nav h2 { margin-bottom: 4px; font-family: var(--fonte); font-size: 14px; font-weight: 600; color: var(--texto); }
.rodape nav a { padding: 4px 0; text-decoration: none; }
.rodape nav a:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 4px; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid var(--regra); font-size: 13px; }

/* Movimento (só na tela: na impressão os blocos que ainda não apareceram sairiam em branco) */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .entra { animation: entra .7s var(--curva) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
  @keyframes entra { from { opacity: 0; transform: translateY(12px); } }
  .js .sobe { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--curva), transform .7s var(--curva); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .sobe.visto { opacity: 1; transform: none; }
  .app-bolha:not(.some) { animation: balao 2.4s ease-in-out infinite; }
  @keyframes balao { 50% { transform: translateY(-4px); } }
}

/* Responsivo */
@media (max-width: 1100px) {
  .abertura-in { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 72px; }
  .abertura-txt { max-width: 680px; }
  .fatos-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fatos li:nth-child(3) { padding-left: 0; border-left: 0; }
  .fatos li:nth-child(n+3) { border-top: 1px solid var(--regra); }
  .recursos { grid-template-columns: 1fr; gap: 24px; }
  .recursos-palco { order: -1; scroll-margin-top: 72px; }
  .demo-grade { grid-template-columns: 1fr; }
  .prever { grid-template-columns: 1fr 1fr; }
  .prever .grafico-disp { grid-column: 1 / -1; }
  .ficha { grid-template-columns: 1fr; gap: 40px; }
  .planos { grid-template-columns: 1fr; max-width: 560px; gap: 32px; }
  .plano-desc { min-height: 0; }
  .contato-in { grid-template-columns: 1fr; gap: 24px; }
  .contato-acoes { justify-content: flex-start; }
  .rodape-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rodape-marca { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-abre { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 56px; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-left: 0; background: #fff; border-bottom: 1px solid var(--regra); box-shadow: var(--s16); }
  .menu.aberto { display: flex; }
  .menu a[aria-current]:not(.botao) { box-shadow: none; font-weight: 600; }
  .menu a:not(.botao) { height: auto; padding: 14px 0; border-bottom: 1px solid var(--regra); font-size: 16px; }
  .menu .menu-contato { margin-left: 0; }
  .menu .botao { margin: 16px 0 0; height: 44px; }
  .perguntas { grid-template-columns: 1fr; }
  .ag-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .caixa { width: calc(100% - 32px); }
  .abertura-in { padding: 40px 0 56px; gap: 40px; }
  .abertura-lead { font-size: 17px; }
  .abertura-acoes .botao { flex: 1 1 100%; }
  .fatos-in { grid-template-columns: 1fr; }
  .fatos li, .fatos li:nth-child(3) { padding: 18px 0; border-left: 0; }
  .fatos li + li { border-top: 1px solid var(--regra); }
  .secao { padding: 64px 0; }
  .sec-cab { margin-bottom: 32px; }
  .sec-cab p { font-size: 17px; }
  .recursos-palco { padding: 16px; margin-inline: -16px; border-radius: 0; }
  .r-tit { font-size: 17px; }
  .app-abas { display: none; }
  .app-grade th:nth-child(2), .app-grade td:nth-child(2), .app-grade th:nth-child(3), .app-grade td:nth-child(3) { display: none; }
  .app-est { margin-left: 0; width: 100%; }
  .demo-corpo { padding: 16px; }
  .ctrl-esp { display: none; }
  .tab-wrap { max-height: 400px; }
  .tab { font-size: 12.5px; }
  .tab th:nth-child(2), .tab td:nth-child(2) { display: none; }
  .tab th { padding: 8px; white-space: normal; line-height: 1.3; vertical-align: bottom; }
  .tab td { padding-inline: 8px; }
  .tab td.ed input { min-width: 0; padding: 0 8px; }
  .abas { gap: 0; padding: 0 4px; }
  .abas button { padding: 0 9px; font-size: 14.5px; }
  .prever, .agenda { grid-template-columns: 1fr; }
  .grande b { font-size: 36px; }
  .grafico text { font-size: 11px; }
  .ficha-tab { padding: 4px 20px; }
  .ficha-tab th { width: 40%; }
  .contato { padding-bottom: 64px; }
  .contato-in { padding: 32px 24px; }
  .contato-acoes .botao { flex: 1 1 100%; }
  .rodape-cols { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .rodape-cols nav:last-child { grid-column: 1 / -1; }
  .produto { display: none; }
  .abertura h1 { margin-top: 0; }
  .ficha .sec-cab { position: static; }
}
/* alto contraste do Windows: fundo e sombra somem, então seleção e contornos passam a usar as cores do sistema */
@media (forced-colors: active) {
  .av-seg button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .abas-marca, .recursos-lista [role=tab][aria-selected=true]::before { forced-color-adjust: none; background: Highlight; }
  .plano, .demo, .ficha-tab, .contato-in { border: 1px solid CanvasText; }
  .plano-destaque { border: 3px solid Highlight; }
  .plano-selo, .app-bolha { border: 1px solid CanvasText; }
  .app-bolha::after { display: none; }
}
/* impressão: topo não se repete sobre o texto e blocos não se partem entre páginas */
@media print {
  .topo { position: static; }
  .recursos-lista [role=tab] .r-txt { display: block; }
  .r-painel[hidden] { display: block; margin-top: 24px; }
  .recursos-nota { display: none; }
  .plano, figure, .ficha-tab tr, .tab tr, .app-grade tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
/* celulares de 320 px: as três abas da demonstração cabem sem cortar "Agenda" */
@media (max-width: 359px) {
  .abas button { padding: 0 6px; font-size: 13.5px; }
}
