/* ===== seção "o custo do manual" — um número herói, a frase que o alimenta, a comparação ===== */
.cost {
  --c-text: #253561;                 /* cor de texto da seção (definida pelo cliente) */
  --c-text-2: #5A688A;
  --c-text-3: #647088;
  --c-fill: #253561;                 /* barra automatizada */
  --c-free: #DDE3EE;                 /* trilho das barras */
  --c-line: #D3DAE8;                 /* hairline */
  color: var(--c-text);
  padding: clamp(72px, 9vw, 128px) 0 clamp(24px, 3vw, 40px);
  text-align: center;
}
.cost__wrap { max-width: 880px; }

/* 1. cabeçalho */
.cost__eyebrow {
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.cost__title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto 16px;
  max-width: 24ch;
  text-wrap: balance;
}
.cost__sub {
  margin: 0 auto clamp(36px, 4vw, 52px);
  max-width: 46ch;
  color: var(--c-text-2);
  font-size: 17px;
}

/* 2. instrução */
.cost__instruction {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
}

/* 3. a frase com os quatro campos */
.cost__sentence {
  margin: 0 auto clamp(32px, 3.6vw, 44px);
  max-width: 54ch;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--c-text-2);
}
.cost__field { display: inline-block; vertical-align: baseline; }
.cost__field input {
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  height: 1.75em;              /* altura própria: sem herdar a linha da frase, o número não corta */
  box-sizing: border-box;
  color: var(--c-text);
  background: rgba(37, 53, 97, .07);
  border: 0;
  border-bottom: 2px solid var(--c-text);
  border-radius: 6px 6px 0 0;
  padding: 0 6px 1px;
  margin: 0 2px;
  width: 2.8ch;
  vertical-align: baseline;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cost__field input::-webkit-outer-spin-button,
.cost__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cost__field input#sim-minutes,
.cost__field input#sim-rate { width: 3.3ch; }
.cost__field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* 4. card de resultado */
.cost__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3.4vw, 40px) clamp(24px, 3vw, 34px);
  display: grid;
  gap: 0;
  justify-items: center;
}
.cost__label {
  margin: 0;
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cost__hero {
  margin: 10px 0 0;
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cost__meta {
  margin: 10px 0 0;
  color: var(--c-text-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cost__impact {
  margin: 20px 0 0;
  max-width: 340px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}
.cost__hr {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 24px 0;
  background: var(--c-line);
}
.cost__bars { width: 100%; display: grid; gap: 14px; text-align: left; }
.cost__bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 64px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--c-text-2);
}
.cost__bar-row--auto { color: var(--c-text); font-weight: 600; }
.cost__bar-label { white-space: nowrap; }
.cost__bar { height: 8px; border-radius: 4px; background: var(--c-free); overflow: hidden; }
.cost__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--c-text-3);
}
.cost__bar-row--auto .cost__bar i { background: var(--c-fill); }
.cost__bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-text); }
.cost__close {
  margin: 24px 0 0;
  max-width: 40ch;
  font-size: 16px;
  color: var(--c-text-2);
  font-variant-numeric: tabular-nums;
}
.cost__close b { color: var(--c-text); font-weight: 700; }

/* 5. CTA */
.cost__cta {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.cost__cta-btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--c-text);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color .35s;
}
.cost__cta-btn:hover { background: var(--ink); }
.cost__cta-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cost__cta-sub { margin: 0; color: var(--c-text-3); font-size: 14px; }

/* entrada: o card aparece uma vez (o JS anima a contagem e as barras) */
.cost.is-armed .cost__card { opacity: 0; }

@media (max-width: 600px) {
  .cost__bar-row { grid-template-columns: 84px 1fr 52px; gap: 10px; font-size: 13px; }
  .cost__card { padding: 24px 18px 22px; }
}
