/* Tema do portal do cliente (17/10/2026) — claro, só aqui.
   O sistema interno é painel de trabalho e precisa gritar pendências; o portal é
   a vitrine de uma decisão de compra e precisa passar calma. Mesma família da
   marca (Inter, cantos, logo, azul #2563eb), fundo claro e texto escuro.
   Análise: doc "Portal do Cliente — Orçamento como Oportunidade". Carregado
   DEPOIS de estilo.css, só no portal.html: redefine os tokens e o que estava
   escrito com cor fixa de tema escuro. */

body.tema-portal {
  --bg: #f6f8fb;
  --card: #ffffff;
  --card-2: #f8fafc;
  --line: #e3e8ef;
  --line-2: #cbd5e1;
  --text: #0f172a;
  --soft: #334155;
  --muted: #475569;
  --ok: #047857;
  --ok-fundo: #ecfdf5;
  --alerta: #92400e;
  --alerta-fundo: #fffbeb;
  --erro: #b91c1c;
  --erro-fundo: #fef2f2;
  --azul-fundo: #eff6ff;
  color-scheme: light;
  scrollbar-color: #cbd5e1 #f6f8fb;
  background: var(--bg);
}

.tema-portal a { color: var(--blue); }
.tema-portal input, .tema-portal select, .tema-portal textarea { background: #fff; }
.tema-portal input::placeholder, .tema-portal textarea::placeholder { color: #94a3b8; }
.tema-portal select option { background: #fff; }
.tema-portal .cartao { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.tema-portal .cartao-titulo { color: var(--muted); }
.tema-portal .botao-primario { box-shadow: 0 6px 18px rgba(37, 99, 235, .22); }
.tema-portal .botao-neutro { color: var(--soft); background: #fff; }
.tema-portal .botao-neutro:hover:not(:disabled),
.tema-portal .botao-discreto:hover:not(:disabled) { background: #f1f5f9; color: var(--text); border-color: var(--line-2); }
.tema-portal .botao-discreto { color: var(--blue); }
.tema-portal .trava { color: var(--erro); }
.tema-portal .trava-alerta { color: var(--alerta); }
.tema-portal .modal { box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
.tema-portal .modal-fundo { background: rgba(15, 23, 42, .45); }
.tema-portal .aviso { background: #0f172a; color: #fff; }
.tema-portal .passo:not(.feito) { background: var(--line); }
.tema-portal .passo.feito { box-shadow: none; }
.tema-portal .canal:hover { background: var(--azul-fundo); }

/* Faixa navy de ponta a ponta com a logo: liga o portal ao site. O truque da
   sombra estende o fundo além da coluna de 700 px sem mexer no layout. */
.portal-faixa {
  background: var(--navy);
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
  margin: -1.5rem 0 0;
  padding: .85rem 0;
  display: flex; justify-content: center;
  border-bottom: 3px solid var(--cyan);
}

.portal-saudacao { text-align: center; padding: 1.6rem .25rem 1.1rem; }
.portal-saudacao h1 { font-size: 1.55rem; color: var(--text); }
.portal-saudacao .numero { font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* O cartão de decisão: tudo que o cliente precisa para decidir, sem rolar. */
.decisao { border-color: #bfdbfe; padding: 1.25rem; }
.decisao-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.decisao-total span:first-child { color: var(--muted); font-weight: 650; }
.decisao-total strong { font-size: 2rem; letter-spacing: -.03em; color: var(--text); }
.decisao-linhas { margin: .6rem 0 1rem; display: grid; gap: .3rem; font-size: .9rem; color: var(--soft); }
.decisao .botao-primario { width: 100%; padding: .85rem 1rem; font-size: 1rem; }

/* Informação tranquila: validade, próximos passos. */
.info-calma { background: var(--azul-fundo); border: 1px solid #bfdbfe; border-radius: var(--r-sm); padding: .6rem .75rem; font-size: .88rem; color: #1e3a8a; }

.passos-depois { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.passos-depois li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .65rem; align-items: start; }
.passos-depois .bola { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--azul-fundo); color: var(--blue); font-weight: 800; display: grid; place-items: center; }
.passos-depois strong { display: block; color: var(--text); }
.passos-depois span { font-size: .85rem; color: var(--muted); }

.depoimento { margin: 0 0 .75rem; padding: .75rem .9rem; border-left: 3px solid #bfdbfe; background: var(--card-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.depoimento:last-child { margin-bottom: 0; }
.depoimento .estrelas { color: #f5b301; letter-spacing: .08em; font-size: .9rem; }
.depoimento blockquote { margin: .25rem 0; font-size: .92rem; color: var(--soft); }
.depoimento figcaption { font-size: .8rem; color: var(--muted); }

/* Quadro do PIX: a área de pagamento destacada passa segurança. */
.pix-quadro { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 1rem; margin-top: .75rem; }
.pix-quadro .botao-primario { width: 100%; padding: .85rem 1rem; font-size: 1rem; white-space: normal; }
.pix-recebedor { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--soft); margin-top: .75rem; }
.pix-qr { display: flex; justify-content: center; padding: .75rem 0 .25rem; }

/* passo 44 (19/10/2026): escolha entre entrada e total no cartão de pagamento */
.opcoes-valor { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0 .85rem; }
.opcao-valor { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .75rem .85rem; border: 2px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.opcao-valor span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.opcao-valor strong { font-size: 1.15rem; }
.opcao-valor.ativa { border-color: var(--blue); background: var(--azul-fundo, rgba(37,99,235,.08)); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
/* passo 45: cobrança do Mercado Pago aberta, esperando o aviso de pagamento */
.mp-esperando { display: flex; align-items: center; gap: .5rem; margin: .75rem 0 0; }
.mp-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; animation: mp-pulso 1.4s ease-in-out infinite; }
@keyframes mp-pulso { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.pix-quadro a.botao { display: block; text-decoration: none; }
/* 21/10/2026: código PIX escrito, para copiar à mão quando o botão falhar */
.pix-codigo { margin-top: .5rem; padding: .5rem .6rem; font: .72rem/1.35 ui-monospace, Consolas, monospace; word-break: break-all; color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-sm); user-select: all; -webkit-user-select: all; }

/* passo 61 — três materiais para o cliente escolher (impressão digital). */
.tema-portal .materiais { display: grid; gap: .5rem; margin: .6rem 0 .2rem; }
.tema-portal .material {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .65rem .8rem;
}
.tema-portal .material:hover:not(:disabled) { border-color: var(--blue); }
.tema-portal .material:disabled { cursor: default; }
.tema-portal .material.recomendado { border-color: var(--blue); background: var(--azul-fundo); }
.tema-portal .material.escolhido { border: 2px solid var(--ok); background: var(--ok-fundo); }
.tema-portal .material .selo-rec {
  display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px;
  font-size: .72rem; font-weight: 650; color: #fff; background: var(--blue);
}
.tema-portal .material .preco { font-weight: 700; white-space: nowrap; }
.tema-portal .material-aviso { font-size: .85rem; color: var(--alerta); background: var(--alerta-fundo); border-radius: var(--r-sm); padding: .5rem .7rem; margin-top: .4rem; }
