/* =========================================================
   Calculadora de vazamentos (/ferramentas/vazamento/)
   Depende de /ferramentas/ferramentas.css (container, hero, calc,
   kpi-destaque, captura, explica, cta-band).
   ========================================================= */

.vaz-opcional { color: var(--text-3); font-weight: 500; }

/* entradas: 1 card por furo */
.vaz-furos { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vaz-furo { margin: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vaz-furo__titulo { float: left; width: 100%; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.vaz-furo__titulo + * { clear: both; }
.vaz-furo__num { width: 28px; height: 28px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.vaz-furo__ajuda { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.vaz-furo .mc-field { margin: 0; }
.vaz-furo .mc-helper { line-height: 1.45; }
.vaz-furo .mc-input { font-size: 16px; min-height: 48px; } /* 16px: iOS não dá zoom ao focar */

/* resultado */
.vaz-resultado { position: sticky; top: 88px; } /* abaixo do nav fixo (69px) */
.vaz-resultado .mc-card__body { display: flex; flex-direction: column; gap: 16px; }

.vaz-principal { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface-2); }
.vaz-principal[data-ativo="1"] { border: 1px solid var(--mc-amber-500); background: var(--mc-amber-50); }
.vaz-principal__rotulo { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.vaz-principal[data-ativo="1"] .vaz-principal__rotulo { color: var(--mc-amber-700); }
.vaz-principal__nome { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--text); font-variant-numeric: tabular-nums; }
.vaz-principal__frase { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }

.vaz-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vaz-item__topo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.vaz-item__nome { font-weight: 600; color: var(--text); }
.vaz-item__selo { display: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mc-amber-500); color: #fff; }
.vaz-item[data-principal="1"] .vaz-item__selo { display: inline-block; }
.vaz-item__valor { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.vaz-item__barra { display: block; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.vaz-item__barra span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--mc-slate-400, var(--text-3)); transition: width var(--dur-slow, .3s) var(--ease-out, ease-out); }
.vaz-item[data-principal="1"] .vaz-item__barra span { background: var(--mc-amber-500); }

.vaz-presos { border-top: 1px solid var(--border); padding-top: 12px; }
.vaz-presos__rotulo { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.vaz-presos__linha { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.vaz-presos__linha b { font-family: var(--font-mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.vaz-tese { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.vaz-tese b { color: var(--text); font-weight: 700; }

.vaz-aviso { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--text-3); line-height: 1.45; }
.vaz-aviso svg { flex-shrink: 0; margin-top: 2px; }

.vaz-captura { display: flex; flex-direction: column; gap: 12px; }
.vaz-captura p { margin: 0; }
.vaz-btn-wapp { width: 100%; }
.vaz-btn-wapp[hidden] { display: none !important; }

/* promessa central (História-Mãe §8) com a ressalva do estoque */
.cta-band .vaz-promessa { font-size: 17px; }
.cta-band .vaz-promessa span { display: block; margin-top: 4px; font-size: 14px; opacity: 0.85; }

/* CTA final: aula + testar grátis */
.vaz-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .vaz-btn-testar { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-band .vaz-btn-testar:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }

/* barra do total no celular */
.vaz-barra-total { display: none; }

@media (max-width: 900px) {
  .vaz-resultado { position: static; }
  .vaz-barra-total[data-ativo="1"] {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 12px 16px; border-radius: var(--radius-lg);
    background: var(--mc-blue-700, #1E40AF); color: #fff; text-decoration: none;
    box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600;
  }
  .vaz-barra-total b { font-family: var(--font-display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
}
@media (max-width: 720px) {
  .vaz-furo { padding: 18px; }
  .vaz-ctas .mc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vaz-item__barra span { transition: none; }
}
