/* ==========================================================================
   Calculadora "Quanto custa a equipe que a plataforma cobre?"
   Depende de bnp.css (tokens) e site.css (padrões de página). Nenhuma cor
   nova: só os tokens do design system.
   ========================================================================== */

.calc-intro { max-width: 68ch; }

.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Lista de funções ------------------------------------------------- */
.calc-funcoes { display: grid; gap: 16px; }

.calc-funcao {
  border: 1px solid var(--bnp-border-neutral);
  border-radius: var(--bnp-r-card);
  background: var(--bnp-card);
  padding: 22px 24px;
  transition: var(--bnp-t);
}
.calc-funcao:has(.calc-check:checked) {
  border-color: var(--bnp-orange);
  background: var(--bnp-card-hover);
}

.calc-funcao-topo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.calc-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--bnp-orange-cta);
  cursor: pointer;
}

.calc-funcao-nome { font-size: 16px; font-weight: 600; color: var(--bnp-text); }
.calc-funcao-desc { font-size: 13px; color: var(--bnp-muted); margin-top: 3px; line-height: 1.5; }

/* --- Controle deslizante de salário ------------------------------------ */
.calc-salario {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bnp-border-subtle);
  opacity: 0.45;
  transition: var(--bnp-t);
}
.calc-funcao:has(.calc-check:checked) .calc-salario { opacity: 1; }

.calc-salario-linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.calc-salario-linha label { font-size: 13px; color: var(--bnp-muted); font-weight: 500; }
.calc-salario-valor {
  font-family: var(--bnp-font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--bnp-orange-cta);
  white-space: nowrap;
}

/* Slider — trilha fina, polegar em laranja, o "LED aceso" da marca */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bnp-border-neutral);
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bnp-orange-cta);
  border: 2px solid var(--bnp-bg);
  box-shadow: 0 0 0 1px var(--bnp-orange-cta);
  cursor: pointer;
  transition: var(--bnp-t);
}
.calc-range::-webkit-slider-thumb:hover { background: var(--bnp-orange-hi); }
.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bnp-orange-cta);
  border: 2px solid var(--bnp-bg);
  box-shadow: 0 0 0 1px var(--bnp-orange-cta);
  cursor: pointer;
}
.calc-range::-moz-range-track { height: 4px; border-radius: 999px; background: var(--bnp-border-neutral); }
.calc-range:focus-visible { outline: 2px solid var(--bnp-orange-cta); outline-offset: 4px; }

.calc-faixa { display: flex; justify-content: space-between; font-size: 11px; color: var(--bnp-faint); margin-top: 6px; font-family: var(--bnp-font-mono); }

/* --- Encargos (premissa editável) -------------------------------------- */
.calc-encargos {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px dashed var(--bnp-border);
  border-radius: var(--bnp-r-card);
  background: rgba(221,83,8,0.03);
}
.calc-encargos-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.calc-encargos-topo label { font-size: 14px; font-weight: 600; color: var(--bnp-text); }
.calc-encargos-mult { font-family: var(--bnp-font-mono); font-size: 14px; color: var(--bnp-orange-cta); font-weight: 600; }
.calc-encargos-nota { font-size: 12px; color: var(--bnp-faint); line-height: 1.6; margin-top: 12px; }

/* --- Painel de resultado ------------------------------------------------ */
.calc-resultado {
  position: sticky;
  top: 88px;
  background: var(--bnp-elevated);
  border: 1px solid var(--bnp-border);
  border-radius: var(--bnp-r-card);
  padding: 32px;
}
@media (max-width: 900px) { .calc-resultado { position: static; } }

.calc-linha-resultado {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--bnp-border-subtle);
}
.calc-linha-resultado:first-child { padding-top: 0; }
.calc-linha-resultado .rotulo { font-size: 13px; color: var(--bnp-muted); max-width: 60%; line-height: 1.5; }
.calc-linha-resultado .valor { font-family: var(--bnp-font-mono); font-size: 17px; font-weight: 600; color: var(--bnp-text); white-space: nowrap; }

.calc-diferenca {
  margin-top: 22px;
  padding-top: 22px;
  text-align: center;
}
.calc-diferenca .rotulo { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bnp-muted); font-weight: 600; }
.calc-diferenca-valor {
  font-family: var(--bnp-font-head);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 10px;
  color: var(--bnp-orange-cta);
}
.calc-diferenca-valor.calc-diferenca--negativa { color: var(--bnp-text); }

.calc-diferenca-legenda { font-size: 13px; color: var(--bnp-muted); margin-top: 8px; line-height: 1.6; }

.calc-aviso-honesto {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--bnp-r-small);
  border: 1px solid var(--bnp-border);
  background: var(--bnp-card);
  font-size: 13px;
  color: var(--bnp-muted);
  line-height: 1.7;
  text-align: left;
}
.calc-aviso-honesto strong { color: var(--bnp-text); }

.calc-vazio {
  text-align: center;
  padding: 24px 12px;
  font-size: 14px;
  color: var(--bnp-faint);
}

.calc-premissas {
  margin-top: 24px;
  font-size: 12px;
  color: var(--bnp-faint);
  line-height: 1.7;
}

.calc-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bnp-border-subtle);
  text-align: center;
}
.calc-cta p { font-size: 13px; color: var(--bnp-muted); margin-bottom: 16px; line-height: 1.6; }
.calc-cta .bnp-btn { width: 100%; justify-content: center; }

/* Atualização de número: transição suave de opacidade, nada de contagem
   animada. Respeita prefers-reduced-motion pelo bloco global de bnp.css. */
.calc-atualiza { transition: opacity 0.18s ease; }
