/* Área do Parceiro Atticus — cores da landing page (navy + azul). */
:root {
  --navy: #0a1a38; --navy2: #152c57; --azul: #1f6fe0; --azul-cl: #4aa3ff;
  --fundo: #f3f6fb; --cartao: #fff; --texto: #14213d; --sutil: #5b6b86; --borda: #dbe3ef;
  --verde: #1a8a55; --vermelho: #c0392b; --amarelo: #b7791f;
  --raio: 10px;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--azul); }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1.25rem 0 .5rem; }
small, .pequeno { font-size: .82rem; }
.sutil { color: var(--sutil); }
.quebra { white-space: pre-wrap; }

/* topo */
.topo { background: linear-gradient(90deg, var(--navy), var(--navy2)); color: #e6ecf5; }
.topo-in { max-width: 1180px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: .75rem; color: #9fd0ff; text-decoration: none; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.marca img { height: 22px; width: auto; }
.menu { display: flex; gap: .25rem; flex: 1; }
.menu a { color: #c9d6ea; text-decoration: none; padding: .4rem .75rem; border-radius: 6px; }
.menu a:hover, .menu a.ativo { background: rgba(255,255,255,.1); color: #fff; }
.quem { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.quem small { color: #8ea3c2; }
.quem .link { color: #9fd0ff; }

.conteudo { max-width: 1180px; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; flex: 1; }
.rodape { text-align: center; color: var(--sutil); font-size: .8rem; padding: 1rem; }

/* blocos */
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.cartao.estreito { max-width: 420px; margin: 3rem auto; }
.cartao.medio { max-width: 720px; margin: 0 auto 1.25rem; }
.cartao.destaque { border-color: var(--azul-cl); background: #eef6ff; }
.cabeca { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cabeca h1 { margin: 0; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grade > .cartao { margin-bottom: 0; }
.grade + * { margin-top: 1.25rem; }
@media (max-width: 860px) { .grade { grid-template-columns: 1fr; } }

.faixa { border-radius: var(--raio); padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.faixa ul { margin: 0; padding-left: 1.1rem; }
.faixa.ok { background: #e8f6ee; border-color: #b6e2c8; color: #135e3b; }
.faixa.erro { background: #fdecea; border-color: #f5c2bc; color: #8a2a1f; }
.faixa.alerta { background: #fff7e6; border-color: #f3d79b; color: #7a5212; }

/* números do painel */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.numero { background: var(--cartao); border: 1px solid var(--borda); border-left: 4px solid var(--azul); border-radius: var(--raio); padding: .75rem 1rem; text-decoration: none; color: var(--texto); display: flex; flex-direction: column; }
.numero strong { font-size: 1.6rem; line-height: 1.1; }
.numero span { color: var(--sutil); font-size: .85rem; }
.numero:hover { border-color: var(--azul-cl); }

/* formulários */
.form { display: flex; flex-direction: column; gap: .9rem; }
.form.linha { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form.linha label { flex: 1 1 180px; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--sutil); }
label.check { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400; }
label.check input { margin-top: .25rem; }
input, select, textarea { font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid #c3cfe0; border-radius: 8px; background: #fff; color: var(--texto); width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul-cl); outline-offset: 0; border-color: var(--azul); }
input:disabled { background: #eef2f8; color: var(--sutil); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .duas { grid-template-columns: 1fr; } }
.acoes { display: flex; gap: .75rem; flex-wrap: wrap; }
.termo { background: #f6f8fc; border: 1px solid var(--borda); border-radius: 8px; padding: .6rem .9rem; font-size: .9rem; }
.termo summary { cursor: pointer; font-weight: 600; }

.botao { display: inline-block; background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.botao:hover { background: #1a5fc2; }
.botao.sec { background: #e6eefb; color: var(--azul); }
.botao.sec:hover { background: #d6e3f8; }
.botao.perigo { background: var(--vermelho); }
button.link { background: none; border: 0; padding: 0; color: var(--azul); font: inherit; cursor: pointer; text-decoration: underline; }
form { margin: 0; }

.filtros { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filtros input { flex: 1 1 260px; width: auto; }
.filtros select { flex: 0 1 200px; width: auto; }

.copiar { display: flex; gap: .5rem; }
.copiar input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* tabelas */
.rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th { text-align: left; color: var(--sutil); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: .5rem .6rem; border-bottom: 1px solid var(--borda); }
.tabela td { padding: .6rem; border-bottom: 1px solid #edf1f7; vertical-align: top; }
.tabela tr:last-child td { border-bottom: 0; }

dl.dados { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
dl.dados dt { color: var(--sutil); font-size: .88rem; }
dl.dados dd { margin: 0; }
ul.anexos, ul.simples { padding-left: 1.1rem; margin: 0; }

/* etiquetas de etapa */
.etiqueta { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e6eefb; color: var(--azul); white-space: nowrap; }
.st-recebida { background: #e6eefb; color: #1f4fa0; }
.st-em_contato { background: #e5f4fb; color: #0b6e94; }
.st-em_negociacao { background: #fff3dd; color: #8a5a00; }
.st-proposta_enviada { background: #efe8fd; color: #5b34b5; }
.st-fechada { background: #e3f5eb; color: var(--verde); }
.st-nao_convertida { background: #f1f2f4; color: #5d6470; }
.st-borda-fechada { border-left-color: var(--verde); }
.st-borda-nao_convertida { border-left-color: #9aa3b2; }
.st-borda-em_negociacao { border-left-color: #e0a100; }
.st-borda-proposta_enviada { border-left-color: #7a52d6; }
.etiqueta.dup { background: #fdecea; color: var(--vermelho); }
.par-aguardando_verificacao, .conv-pendente { background: #fff3dd; color: #8a5a00; }
.par-ativo, .conv-usado { background: #e3f5eb; color: var(--verde); }
.par-suspenso, .conv-cancelado, .conv-expirado { background: #f1f2f4; color: #5d6470; }

/* trilha de andamento */
.trilha { display: flex; list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: passo; }
.trilha li { flex: 1; position: relative; text-align: center; font-size: .8rem; color: var(--sutil); padding-top: 1.9rem; }
.trilha li::before { counter-increment: passo; content: counter(passo); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.5rem; height: 1.5rem; line-height: 1.5rem; border-radius: 50%; background: #dfe6f1; color: var(--sutil); font-weight: 700; z-index: 1; }
.trilha li::after { content: ""; position: absolute; top: .72rem; left: -50%; width: 100%; height: 3px; background: #dfe6f1; }
.trilha li:first-child::after { display: none; }
.trilha li.feito::before { content: "✓"; background: var(--azul); color: #fff; }
.trilha li.feito::after, .trilha li.atual::after { background: var(--azul); }
.trilha li.atual { color: var(--texto); font-weight: 700; }
.trilha li.atual::before { background: var(--azul); color: #fff; box-shadow: 0 0 0 4px #cfe1fb; }
.trilha li.fechada::before { background: var(--verde); content: "✓"; }
.trilha li.perdida::before { background: #8a93a3; content: "×"; }

ol.historico { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--borda); }
ol.historico li { padding: 0 0 .9rem 1rem; position: relative; }
ol.historico li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--azul-cl); }
ol.historico p { margin: .3rem 0 0; }

/* códigos de parceiro e pessoa (SPEC-0004) */
.codigo { font-family: ui-monospace, Consolas, monospace; font-size: .82em; background: #eef3fb; color: #1f4fa0; padding: .05rem .4rem; border-radius: 4px; white-space: nowrap; }
.topo .codigo { background: rgba(255,255,255,.12); color: #9fd0ff; }
.codigo.grande { font-size: .7em; vertical-align: middle; }
fieldset.docs { border: 1px solid var(--borda); border-radius: 8px; padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .9rem; }
fieldset.docs legend { font-weight: 700; padding: 0 .3rem; }

.cartao dl + h2 { margin-top: 1.5rem; }
.codigo-acesso { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .25rem .75rem; margin: .25rem 0 .5rem; }
