/* Termômetro de Vazamento — estilos isolados (prefixo tm-), sobre fundo noite */
.tm-section { padding-top: 96px; }
.tm {
  --tm-surface: var(--noite-2);
  --tm-line: var(--linha-escura);
  --tm-track: #16243A;
  --tm-soft: rgba(235, 139, 75, .12);
  --tm-good: #5FB38C;
  --tm-warn: #E3B764;
  --tm-bad: #E7765E;
  max-width: 640px; margin: 0 auto; color: var(--nevoa);
}
.tm-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 8px; }
.tm-brand { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ardosia); }
.tm-back { background: none; border: 0; color: var(--ardosia); font: 500 14px var(--font); cursor: pointer; padding: 10px 0; min-height: 44px; visibility: hidden; }
.tm-back.is-shown { visibility: visible; }
.tm-back:hover { color: var(--nevoa); }

.tm-gauge { display: none; align-items: center; margin-bottom: 28px; }
.tm-gauge.is-shown { display: flex; }
.tm-bulb { width: 16px; height: 16px; border-radius: 999px; background: var(--laranja); flex: none; }
.tm-tube { display: block; flex: 1; height: 6px; background: var(--tm-track); border-radius: 0 6px 6px 0; margin-left: -3px; overflow: hidden; }
.tm-fill { display: block; height: 100%; width: 0; background: var(--laranja); transition: width .35s ease; }
.tm-count { font-size: 13px; color: var(--ardosia); margin-left: 12px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.tm-screen { display: none; flex-direction: column; }
.tm-screen.is-active { display: flex; }

.tm h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px; }
.tm h1 em { color: var(--laranja); }
.tm h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 24px; }
.tm h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.tm p { max-width: 38em; }
.tm-lead { font-size: 17px; line-height: 1.7; color: var(--ardosia); margin-bottom: 8px; }
.tm-muted { color: var(--ardosia); }
.tm-small { font-size: 13px; }
.tm-hint { margin: -12px 0 24px; font-size: 14px; }
.tm-stage { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--laranja); margin-bottom: 14px; }
.tm-intro-mark { width: 40px; height: 40px; margin-bottom: 24px; color: var(--linha-escura); }

.tm-facts { margin: 20px 0; border-top: 1px solid var(--tm-line); }
.tm-facts div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tm-line); font-size: 14px; }
.tm-facts b { min-width: 84px; font-weight: 600; }
.tm-facts span { color: var(--ardosia); }

.tm-push { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.tm-ghost {
  width: 100%; min-height: 48px; padding: 14px 20px; background: transparent; color: var(--nevoa);
  border: 1px solid var(--tm-line); border-radius: var(--radius); cursor: pointer;
  font: 600 12px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase;
}
.tm-ghost:hover { border-color: var(--ardosia); }

.tm-field { display: block; margin-bottom: 16px; }
.tm-field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.tm-field small { font-weight: 400; color: var(--ardosia); }
.tm-field input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px var(--font); color: var(--nevoa);
  background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--radius);
}
.tm-field input::placeholder { color: #5E6A7E; }
.tm-field input:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px var(--tm-soft); }
.tm-error { color: var(--tm-bad); font-size: 14px; min-height: 20px; }

.tm-options { display: flex; flex-direction: column; gap: 10px; }
.tm-opt {
  position: relative; text-align: left; font: 400 15px/1.5 var(--font); color: var(--nevoa);
  background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--radius);
  padding: 15px 18px 15px 50px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.tm-opt::before {
  content: ""; position: absolute; left: 18px; top: 17px; width: 18px; height: 18px; border-radius: 999px;
  border: 1.5px solid var(--ardosia); transition: all .15s ease;
}
.tm-opt:hover { border-color: var(--ardosia); }
.tm-opt.is-sel { border-color: var(--laranja); background: var(--tm-soft); }
.tm-opt.is-sel::before { border-color: var(--laranja); background: var(--laranja); box-shadow: inset 0 0 0 3px var(--tm-surface); }

/* Cálculo */
.tm-calc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; min-height: 360px; }
.tm-calc .tm-thermo { width: 52px; height: 180px; }
.tm-merc { animation: tm-pulse 1.4s ease-in-out infinite alternate; }
@keyframes tm-pulse { from { opacity: .45; } to { opacity: 1; } }

/* Resultado */
.tm-hero { display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: end; margin: 8px 0 32px; }
.tm-hero .tm-thermo { width: 72px; height: 260px; }
.tm-who { font-size: 15px; color: var(--ardosia); margin-bottom: 6px; }
.tm-num { font-size: clamp(64px, 12vw, 96px); font-weight: 600; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.tm-num sup { font-size: .38em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.tm-lvl { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; }
.tm-lvl.is-baixo { color: var(--tm-good); }
.tm-lvl.is-medio { color: var(--tm-warn); }
.tm-lvl.is-alto { color: var(--tm-bad); }
.tm-read { font-size: 16px; line-height: 1.7; }

.tm-block { padding: 28px 0; border-top: 1px solid var(--tm-line); margin-top: 28px; }
.tm-block > p { color: var(--ardosia); font-size: 15px; }
.tm-gargalo { background: var(--tm-surface); border: 1px solid rgba(235, 139, 75, .45); border-radius: var(--radius); padding: 22px 24px; margin-top: 16px; }
.tm-gargalo b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--laranja); }
.tm-gargalo span { color: var(--ardosia); font-size: 15px; }

.tm-stages { margin-top: 8px; }
.tm-stages li { padding: 18px 0; border-bottom: 1px solid var(--tm-line); }
.tm-stages li:last-child { border-bottom: 0; }
.tm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tm-nm { font-weight: 600; }
.tm-st { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tm-st.is-bom { color: var(--tm-good); } .tm-st.is-atencao { color: var(--tm-warn); } .tm-st.is-critico { color: var(--tm-bad); }
.tm-bar { height: 6px; background: var(--tm-track); border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.tm-bar i { display: block; height: 100%; border-radius: 6px; }
.tm-bar i.is-bom { background: var(--tm-good); } .tm-bar i.is-atencao { background: var(--tm-warn); } .tm-bar i.is-critico { background: var(--tm-bad); }
.tm-stages p { font-size: 15px; color: var(--ardosia); }

.tm-actions { counter-reset: tm; margin-top: 8px; }
.tm-actions li { counter-increment: tm; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--tm-line); font-size: 15px; }
.tm-actions li:last-child { border-bottom: 0; }
.tm-actions li::before {
  content: counter(tm); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 999px;
  background: var(--laranja); color: var(--noite); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tm-from { display: block; font-size: 12px; color: var(--ardosia); margin-top: 4px; }

.tm-money { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.tm-money p { font-size: 15px; color: var(--ardosia); }
.tm-big { font-size: clamp(32px, 6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--laranja); margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.tm-big small { display: block; font-size: .4em; font-weight: 500; letter-spacing: 0; margin-top: 6px; }

.tm-cta { background: var(--laranja); color: var(--noite); border-radius: var(--radius); padding: 32px 28px; margin-top: 32px; }
.tm-cta h3 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.tm-cta p { font-size: 15px; margin-bottom: 22px; }
.tm-cta .btn { background: var(--noite); color: var(--nevoa); }
.tm-cta .btn::after { color: var(--laranja); }
.tm-cta-alt { margin-top: 14px; color: var(--noite) !important; }
.tm-cta-alt::after { color: var(--noite) !important; }

.tm-note { font-size: 13px; color: var(--ardosia); margin-top: 28px; line-height: 1.6; }

@media (max-width: 640px) {
  .tm-section { padding-top: 64px; }
  .tm-hero { grid-template-columns: 56px 1fr; gap: 20px; }
  .tm-hero .tm-thermo { width: 56px; height: 200px; }
  .tm-cta { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-merc, .tm-fill { animation: none; transition: none; }
}
