/* Dinheiro Devolvido: padrão visual do layout aprovado (marinho, verde nos botões, âmbar só para prazo). */
:root {
  --fundo: #EEF1F4;
  --cartao: #FFFFFF;
  --tinta: #13233A;
  --suave: #51607A;
  --linha: #C9D2DC;
  --linha2: #E1E7ED;
  --verde: #0A6B43;
  --verde-fundo: #E2F1E9;
  --ambar: #8A4600;
  --ambar-fundo: #FBEED8;
  --marinho2: #0C1829;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.5; }
a { color: var(--verde); }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.12; text-wrap: balance; }
h2.rotulo { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--fundo); }
.barra { background: var(--tinta); color: #fff; }
.barra-linha { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.barra-linha a { color: #fff; text-decoration: none; }
.marca { flex: 1; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.codigo { font-family: var(--mono); font-size: 0.78rem; color: #B9C6D6; }
.faixa { padding: 6px 16px; background: var(--marinho2); font-size: 0.72rem; color: #B9C6D6; }
.conteudo { flex: 1; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
.bloco { display: flex; flex-direction: column; gap: 10px; }
.sub { color: var(--suave); }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: 6px; }
.cartao.pad { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.linhas > * { border-bottom: 1px solid var(--linha2); }
.linhas > *:last-child { border-bottom: 0; }
.btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 10px 16px; border-radius: 6px; border: 0; background: var(--verde); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; width: 100%; }
.btn.marinho { background: var(--tinta); }
.btn.contorno { background: #fff; color: var(--tinta); border: 2px solid var(--tinta); }
.btn.opcao { justify-content: flex-start; background: #fff; color: var(--tinta); border: 2px solid var(--tinta); min-height: 60px; font-size: 1.05rem; }
.btn.oficial { flex-direction: column; gap: 2px; min-height: 64px; }
.btn.oficial small { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; }
.link-discreto { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; color: var(--suave); background: none; border: 0; font-family: inherit; text-decoration: underline; cursor: pointer; width: 100%; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
label.campo { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--suave); }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea { min-height: 50px; padding: 0 12px; border: 1px solid #9AA8B6; border-radius: 6px; background: #fff; font: inherit; font-size: 1rem; color: var(--tinta); width: 100%; }
input.mono { font-family: var(--mono); font-size: 0.9rem; }
.erro { background: #FBE3E0; border: 1px solid #C0392B; color: #7A1B12; border-radius: 6px; padding: 12px 14px; font-size: 0.92rem; }
.aviso { background: var(--verde-fundo); border-radius: 6px; padding: 14px 16px; font-size: 0.9rem; }
.alerta { background: var(--ambar-fundo); border: 1px solid #D9B26A; border-radius: 6px; padding: 12px 14px; color: #4A2600; font-size: 0.9rem; }
.alerta.forte { border: 2px solid var(--ambar); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.alerta.forte strong { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #6B3600; }
a.alerta { display: block; text-decoration: none; }
.chip { flex: none; font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.chip.neutro { color: var(--suave); border: 1px solid var(--linha); padding: 3px 8px; background: #fff; }
.chip.andamento { color: var(--tinta); background: #E3E9F2; }
.chip.ok { color: var(--verde); background: var(--verde-fundo); }
.chip.prazo { color: var(--ambar); background: var(--ambar-fundo); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resumo div { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--linha2); }
.resumo div:last-child { border-right: 0; }
.resumo span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); }
.resumo b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ficha-linha { padding: 14px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--tinta); }
.ficha-topo { display: flex; align-items: center; gap: 12px; }
.num { flex: none; font-family: var(--mono); font-size: 0.78rem; color: var(--suave); background: var(--fundo); border-radius: 4px; padding: 4px 6px; }
.ficha-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ficha-texto strong { font-size: 0.97rem; line-height: 1.25; }
.ficha-texto span { font-size: 0.8rem; color: var(--suave); }
.ficha-texto span.prazo { color: var(--ambar); font-weight: 600; }
.etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.etapas i { height: 4px; border-radius: 2px; background: #D5DCE4; }
.etapas i.feito { background: var(--verde); }
.etapas-rotulos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.etapas-rotulos div { display: flex; flex-direction: column; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--suave); }
.etapas-rotulos div.atual { color: var(--tinta); }
.etapas-rotulos i { height: 4px; border-radius: 2px; background: #D5DCE4; }
.etapas-rotulos div.feito i { background: var(--verde); }
.etapas-rotulos div.atual i { background: var(--tinta); }
.dado { padding: 12px 14px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 0.9rem; }
.dado span:first-child { color: var(--suave); }
.dado span:last-child { font-weight: 600; }
.passo { padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.passo div { display: flex; flex-direction: column; gap: 2px; }
.passo strong { font-size: 0.95rem; }
.passo span.t { font-size: 0.84rem; color: var(--suave); line-height: 1.4; }
.video { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--tinta); color: #D5DEE9; display: flex; align-items: center; justify-content: center; font-size: 0.84rem; text-align: center; padding: 16px; }
.trilho { height: 8px; border-radius: 4px; background: #D5DCE4; overflow: hidden; }
.trilho i { display: block; height: 100%; background: var(--verde); border-radius: 4px; }
.bloqueado { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.cadeado { flex: none; width: 22px; height: 22px; color: var(--suave); }
.contador { flex: none; width: 56px; height: 56px; border-radius: 6px; background: #fff; color: var(--ambar); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contador b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.contador span { font-size: 0.66rem; font-weight: 700; }
.lado { display: flex; gap: 14px; align-items: center; }
.aceite { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.aceite input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--verde); }
.nav { height: 68px; background: #fff; border-top: 1px solid var(--linha); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; bottom: 0; }
.nav a, .nav button { display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--suave); background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; height: 100%; }
.nav a.ativo { color: var(--verde); box-shadow: inset 0 3px 0 var(--verde); }
.nav form { display: contents; }
/* Página de entrada */
.heroi { background: var(--tinta); color: #fff; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.heroi h1 { font-size: 2rem; line-height: 1.08; }
.heroi p { color: #D5DEE9; }
.heroi .btn { background: #2FB67C; color: #0B1F16; }
.selo { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta); background: #F5C66B; padding: 5px 10px; border-radius: 4px; }
.lugar { min-height: 52px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.rodape { font-size: 0.76rem; line-height: 1.5; color: var(--suave); }
h2.titulo { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; }
/* Modelos, vídeo e painel de vendas */
iframe.video { width: 100%; border: 0; padding: 0; }
.modelo-texto { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.94rem; line-height: 1.55; }
.modelo-assunto { padding: 12px 16px; font-size: 0.9rem; }
.tabela { overflow-x: auto; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.tabela th, .tabela td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linha2); white-space: nowrap; }
.tabela th { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); }
.tabela td.n { text-align: right; font-variant-numeric: tabular-nums; }
.app.larga { max-width: 960px; }
.resumo.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resumo.quatro div { border-bottom: 1px solid var(--linha2); }
@media (min-width: 720px) { .resumo.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.linha-form { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.linha-form .btn { min-height: 44px; font-size: 0.9rem; }
