/* =========================================================
   CONSELHO FÁCIL, calculadora de dívidas (página dedicada)
   Alinhado ao design system da Burofácil (styles.css / home-equity.css):
   números em serif, paleta ink/paper/orange, vermelho #c62828 e verde
   #2e7d32 discretos, cards brancos com borda. Sem emoji.
   ========================================================= */

.page-cf { background: var(--paper); }

/* ---------- HERO (texto + foto, 50/50) ---------- */
.cf-hero {
  padding: 112px 0 52px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cf-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.cf-hero__copy { max-width: 580px; }
.cf-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.cf-hero__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 500px;
}
.cf-hero__safe {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.cf-hero__safe svg { color: var(--orange); flex-shrink: 0; }

/* coluna visual do hero (placeholder de imagem) */
.cf-hero__media { display: flex; justify-content: flex-end; }
.cf-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 2;
  max-height: 290px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px dashed #d8cdba;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.cf-photo__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- SECTION (ferramenta em coluna única, centralizada) ---------- */
.cf-section { padding: 64px 0 100px; }

/* ---------- TOOL SHELL ---------- */
.cf-tool {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -38px rgba(26,22,18,.28);
  overflow: hidden;
}

/* resume banner */
.cf-resume {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--orange-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
}
.cf-resume__txt { font-size: 14px; color: var(--ink); flex: 1; min-width: 180px; }
.cf-resume__actions { display: flex; gap: 8px; }
.cf-resume__btn {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--orange); color: var(--orange); background: #fff; cursor: pointer;
}
.cf-resume__btn--primary { background: var(--orange); color: #fff; }
.cf-resume__btn--ghost { border-color: var(--line); color: var(--ink-3); }

/* progress */
.cf-progress { padding: 20px 22px 0; }
.cf-progress__track { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.cf-progress__fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width .35s ease; }
.cf-progress__steps {
  display: flex; justify-content: space-between; gap: 6px;
  margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.cf-progress__step.is-active { color: var(--orange-2); }
.cf-progress__step.is-done { color: var(--ink-2); }

/* step body */
.cf-step { display: none; padding: 22px 22px 24px; }
.cf-step.is-active { display: block; }

.cf-step__eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-2); margin: 0 0 8px;
}
.cf-step__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 6px; color: var(--ink);
  text-wrap: balance;
}
.cf-step__lede { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.cf-step__fine { font-size: 11.5px; line-height: 1.5; color: var(--ink-3); margin: 16px 0 0; }

/* ---------- FORM FIELDS ---------- */
.cf-field { margin-bottom: 18px; }
.cf-field__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.cf-field__hint { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.45; }
.cf-input, .cf-select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.cf-input:focus, .cf-select:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(239,87,34,.12); }
.cf-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237a6f63' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.cf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* option cards (sim/não, escolhas) */
.cf-options { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-option {
  flex: 1; min-width: 120px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: var(--paper); transition: border-color .15s, background .15s;
}
.cf-option:hover { border-color: var(--orange-3); }
.cf-option.is-selected { border-color: var(--orange); background: var(--orange-soft); }
.cf-option__t { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cf-option__d { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- DEBT LIST ---------- */
.cf-debts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.cf-debt {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: var(--paper); position: relative;
}
.cf-debt__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cf-debt__num { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cf-debt__del { font-size: 12.5px; color: #c62828; background: none; border: 0; cursor: pointer; }
.cf-debt__del:hover { text-decoration: underline; }
.cf-debt__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-debt__row + .cf-debt__row { margin-top: 12px; }
.cf-debt .cf-field { margin-bottom: 0; }
.cf-add {
  width: 100%; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px;
  font-size: 14.5px; font-weight: 600; color: var(--orange); background: transparent; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cf-add:hover { border-color: var(--orange); background: var(--orange-soft); }

/* ============================================================
   RESULTADO / DIAGNÓSTICO (premium)
   ============================================================ */
.cf-diag {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px 20px 6px;
  margin-bottom: 16px;
}
.cf-diag__label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin: 0 0 6px; }
.cf-diag__big {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 38px);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin: 0;
  font-variant-numeric: tabular-nums;
}
.cf-diag__sub { font-size: 13px; color: var(--ink-2); margin: 7px 0 0; }
.cf-diag__stats {
  list-style: none; margin: 16px 0 0; padding: 16px 0 14px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.cf-diag__stats li { display: flex; flex-direction: column; gap: 3px; }
.cf-diag__num {
  font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.05;
  color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.cf-diag__num.is-alarm { color: #c62828; }
.cf-diag__cap { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }

/* dois cards de comparação (estilo produto) */
.cf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; align-items: stretch; }
.cf-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; position: relative;
}
.cf-card--reco { border: 2px solid var(--orange); padding-top: 28px; }
.cf-card__pin {
  position: absolute; top: -11px; left: 18px; background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 5px 11px; border-radius: 6px;
}
.cf-card__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin: 0 0 8px; }
.cf-card__price {
  font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums;
}
.cf-card__price--alarm { color: #c62828; }
.cf-card__meta { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 0; }
.cf-card__verdict { margin: auto 0 0; font-size: 13.5px; font-weight: 600; padding-top: 10px; }
.cf-card__verdict--good { color: #2e7d32; }
.cf-card__verdict--bad { color: #c62828; }

/* recomendação / orientação */
.cf-reco { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; background: #fff; }
.cf-reco__h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 8px; }
.cf-reco__name { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); margin: 0 0 5px; letter-spacing: -0.01em; }
.cf-reco__desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* CARD relatório + material (captura por e-mail) */
.cf-report {
  border: 1.5px solid var(--orange);
  background: linear-gradient(180deg, var(--orange-soft) 0%, #fff 42%);
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.cf-report__top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cf-report__badge {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.cf-report__h { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; color: var(--ink); margin: 0 0 5px; letter-spacing: -0.01em; }
.cf-report__d { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.cf-intent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cf-chip2 {
  font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.cf-chip2:hover { border-color: var(--orange-3); color: var(--ink); }
.cf-chip2.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.cf-report__form { margin-bottom: 8px; }
.cf-report__fine { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); margin: 0; }

/* salvar local (sem e-mail) */
.cf-cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; cursor: pointer; font-family: var(--sans); border: 0; background: transparent;
  color: var(--ink-3); font-weight: 500; font-size: 14px; padding: 10px; margin-bottom: 4px;
}
.cf-cta-ghost:hover { color: var(--ink); text-decoration: underline; }

/* mensagens */
.cf-msg { font-size: 14px; line-height: 1.55; padding: 13px 16px; border-radius: 10px; margin-top: 14px; }
.cf-msg--ok { background: #eef7ef; color: #2e7d32; }
.cf-msg--err { background: #fbeceb; color: #c62828; }

/* ---------- FOOTER NAV (voltar/avançar) ---------- */
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 16px 22px; }
.cf-foot__back { font-size: 14.5px; font-weight: 600; color: var(--ink-3); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cf-foot__back:hover { color: var(--ink); }
.cf-foot__back[hidden] { visibility: hidden; }
.cf-next {
  background: var(--orange); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; padding: 13px 26px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, opacity .2s;
}
.cf-next:hover { background: var(--orange-2); }
.cf-next:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 920px) {
  .cf-hero { padding: 116px 0 48px; }
  .cf-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .cf-hero__copy { max-width: none; }
  .cf-hero__media { order: -1; }
  .cf-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .cf-hero { padding: 104px 0 40px; }
  .cf-photo { aspect-ratio: 16 / 10; }
  .cf-grid-2, .cf-debt__row { grid-template-columns: 1fr; }
  .cf-diag__stats { grid-template-columns: 1fr; gap: 12px; }
  .cf-diag__stats li { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .cf-cards { grid-template-columns: 1fr; }
  .cf-step, .cf-progress, .cf-foot { padding-left: 20px; padding-right: 20px; }
}
