/* ═══════════════════════════════════════════════════
   AVANCCE — CTA + diagnóstico em modal (uma pergunta)
   ═══════════════════════════════════════════════════ */

.lead-section {
  position: relative;
  padding: clamp(96px, 12vh, 120px) 0;
  background: var(--surface-section);
  overflow: hidden;
  isolation: isolate;
}
.lead-section::before,
.lead-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 132, 26, 0.1) 18%,
    rgba(245, 132, 26, 0.55) 50%,
    rgba(245, 132, 26, 0.1) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(245, 132, 26, 0.28),
    0 0 24px rgba(245, 132, 26, 0.12);
  pointer-events: none;
  z-index: 1;
}
.lead-section::before { top: 0; }
.lead-section::after { bottom: 0; }

/* ── Entrada (animations.js) ─────────────────────────
   .lead-anim só existe quando o módulo assume a seção: sem ele a linha do topo
   e a barra da prévia seguem o comportamento estático/CSS de sempre. */
.lead-section.lead-anim::before {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.lead-section.lead-anim.is-in::before {
  transform: scaleX(1);
}
/* A barra passa a ser interpolada pelo anime; a transição duplicaria o easing. */
.lead-section.lead-anim .lead-preview__fill {
  transition: none;
}
/* A linha de baixo desta seção já separa do FAQ — evita duas divisórias empilhadas. */
.lead-section + .faq::before {
  display: none;
}

.lead-panel {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid rgba(245, 132, 26, 0.28);
  box-shadow:
    var(--shadow-card),
    0 0 48px rgba(118, 56, 234, 0.1);
  overflow: hidden;
  isolation: isolate;
}
.lead-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    620px circle at 18% 0%,
    rgba(172, 150, 255, 0.16),
    rgba(245, 132, 26, 0.07) 30%,
    transparent 62%
  );
  pointer-events: none;
}

.lead-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.lead-section__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-support);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lead-cta .section-title {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 48px);
}
.lead-cta .dot {
  color: var(--accent-hot);
}
.lead-cta__sub {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.lead-cta__sub strong {
  color: var(--text-primary);
}
.lead-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 7px 5px 26px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(118, 56, 234, 0.32);
  animation: leadCtaHalo 3.6s ease-in-out infinite;
  transition: box-shadow var(--transition), transform var(--transition), filter var(--transition);
}
/* A animação venceria o box-shadow do hover; desligar devolve o controle ao hover. */
.lead-cta__btn:hover {
  animation: none;
  box-shadow: 0 6px 26px rgba(118, 56, 234, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.1);
}
@keyframes leadCtaHalo {
  0%, 100% { box-shadow: 0 4px 18px rgba(118, 56, 234, 0.32); }
  50%      { box-shadow: 0 4px 28px rgba(118, 56, 234, 0.55); }
}
.lead-cta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}
.lead-cta__btn-icon svg {
  width: 16px;
  height: 16px;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lead-cta__btn:hover .lead-cta__btn-icon svg {
  transform: rotate(45deg);
}

/* ── Micro-provas ───────────────────────────────────
   Rodapé do painel: atravessa as duas colunas para não quebrar em duas
   linhas dentro da coluna de texto. */
.lead-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px clamp(20px, 3vw, 40px);
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid rgba(245, 132, 26, 0.16);
}
.lead-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.lead-trust svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-hot);
}

/* ── Prévia do modal ────────────────────────────────
   Reaproveita .lead-modal__progress / __bar e .lead-step__q para que a
   prévia continue igual ao pop-up real sem duplicar estilo. */
.lead-preview {
  position: relative;
  cursor: pointer;
  perspective: 1200px;
}
.lead-preview::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8px;
  height: 44px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(118, 56, 234, 0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.lead-preview__card {
  position: relative;
  z-index: 1;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(33, 30, 61, 0.96) 0%, rgba(17, 16, 28, 0.98) 100%);
  border: 1px solid rgba(172, 150, 255, 0.24);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(118, 56, 234, 0.14);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease;
}
.lead-preview:hover .lead-preview__card {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(118, 56, 234, 0.24);
}
.lead-preview .lead-step__q {
  font-size: clamp(16px, 1.5vw, 19px);
  margin-bottom: 14px;
}
.lead-preview__fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F5841A 0%, #F5841A 100%);
  box-shadow: 0 0 10px rgba(245, 132, 26, 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
/* Preenche uma única vez, quando a seção entra na viewport (.visible do script.js). */
.lead-panel.visible .lead-preview__fill {
  width: 30%;
}
.lead-preview__field {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(17, 16, 28, 0.72);
  border: 1px solid rgba(172, 150, 255, 0.28);
  font-size: 14px;
  color: var(--text-secondary);
}
/* min-height segura a altura da linha enquanto a digitação esvazia o texto —
   sem isso o card encolhe alguns px a cada troca de resposta. */
.lead-preview__answer {
  min-height: 20px;
  line-height: 20px;
  white-space: nowrap;
}
.lead-preview__caret {
  width: 2px;
  height: 16px;
  background: var(--accent-hot);
  animation: leadPreviewCaret 1.1s steps(1) infinite;
}
/* Cursor sólido enquanto digita; volta a piscar nas pausas. */
.lead-preview__caret.is-typing {
  animation: none;
  opacity: 1;
}
@keyframes leadPreviewCaret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── Modal ──────────────────────────────────────── */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* A visibilidade só espera o fade na saída. Na entrada ela vale na hora,
     senão o campo ainda está invisível quando o JS pede o foco — e é o foco
     imediato que mantém o teclado do celular aberto. */
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s linear;
}
.lead-modal[hidden] {
  display: none;
}
body.lead-modal-open {
  overflow: hidden;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 60px rgba(118, 56, 234, 0.18);
  overflow: hidden;
}
.lead-modal__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hot) 55%, var(--brand-burnt-orange) 100%);
}

.lead-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.lead-modal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-support);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.lead-modal__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.lead-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.lead-modal__close:hover {
  color: #fff;
  background: rgba(118, 56, 234, 0.12);
}
.lead-modal__close svg {
  width: 18px;
  height: 18px;
}

.lead-modal__progress {
  margin-bottom: 22px;
}
.lead-modal__progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lead-modal__bar {
  height: 3px;
  background: rgba(245, 132, 26, 0.18);
  border-radius: 99px;
  overflow: hidden;
}
.lead-modal__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F5841A 0%, #F5841A 100%);
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(245, 132, 26, 0.45);
  transition: width 0.35s ease;
}

.lead-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.lead-step {
  min-height: 0;
}
.lead-step[hidden] {
  display: none !important;
}
.lead-step__q {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 28px);
  font-size-adjust: 0.56;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-wrap: balance;
}
.lead-step__hint {
  font-family: var(--font-support);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.lead-form__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.lead-form__label {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--font-support);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lead-form__label:first-of-type {
  margin-top: 0;
}

.lead-form input:not([type="radio"]),
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  /* Line-height explícito: o cursor do celular tem a altura da linha, e com
     `normal` ele nasce das métricas da fonte — fica mais alto que o texto e
     desencontrado do bloco. Em 1.25 a barrinha acompanha o que está escrito. */
  line-height: 1.25;
  color: var(--text-primary);
  background: var(--surface-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.lead-form textarea {
  min-height: 72px;
  max-height: 120px;
  resize: none;
  line-height: 1.55;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-subtle);
}
.lead-form input:not([type="radio"]):focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 3px rgba(118, 56, 234, 0.18);
}

.lead-choices {
  display: grid;
  gap: 8px;
  align-items: stretch;
}
.lead-choices--solucao {
  grid-template-columns: 1fr 1fr;
}
.lead-choices--chips,
.lead-choices--binario {
  grid-template-columns: 1fr 1fr;
}

.lead-option {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}
.lead-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.lead-option__card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  background: var(--surface-base);
  border: 1px solid rgba(245, 132, 26, 0.28);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
}
.lead-option__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(118, 56, 234, 0.2), rgba(118, 56, 234, 0.1));
  border: 1px solid rgba(245, 132, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lead-option__icon svg {
  width: 15px;
  height: 15px;
  color: var(--accent-hot);
}
.lead-option__txt {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
  text-wrap: balance;
}

.lead-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(118, 56, 234, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.lead-option:hover .lead-option__card,
.lead-option:hover .lead-chip {
  border-color: var(--accent-hot);
}
.lead-option input:checked + .lead-option__card {
  border-color: var(--accent-hot);
  background: rgba(118, 56, 234, 0.16);
  box-shadow: 0 0 18px rgba(172, 150, 255, 0.18);
}
.lead-option input:checked + .lead-option__card .lead-option__icon {
  border-color: var(--accent-hot);
}
.lead-option input:checked + .lead-chip {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(118, 56, 234, 0.32);
}
.lead-option input:focus-visible + .lead-option__card,
.lead-option input:focus-visible + .lead-chip {
  box-shadow: 0 0 0 3px rgba(118, 56, 234, 0.18);
}

.lead-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__status {
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.lead-form__status:empty {
  display: none;
}
.lead-form__status--sucesso { color: #6EE7B7; }
.lead-form__status--erro { color: #F0A88A; }

.lead-modal__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 16px;
}
.lead-modal__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--surface-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color var(--transition), border-color var(--transition);
}
.lead-modal__back:hover:not(:disabled) {
  color: #fff;
  border-color: var(--accent-hot);
}
.lead-modal__back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lead-modal__back svg {
  width: 18px;
  height: 18px;
}

.lead-form__submit {
  flex: 1;
  padding: 13px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(118, 56, 234, 0.32);
  transition: box-shadow var(--transition), filter var(--transition), opacity var(--transition);
}
.lead-form__submit:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(118, 56, 234, 0.42);
}
.lead-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.lead-form__nota {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-subtle);
  text-align: center;
}

.lead-modal.is-done .lead-modal__back,
.lead-modal.is-done .lead-form__nota {
  display: none;
}

/* ── Conclusão ──────────────────────────────────── */
/* Toda a coreografia é CSS: as animações disparam sozinhas quando o bloco sai
   do display:none, sem depender do anime.js (que é ES module e só existe dentro
   do animations.js). A linha do tempo cabe em ~1,4s — selo, texto, etapas. */
.lead-modal.is-done .lead-modal__dialog {
  animation: leadDoneSettle 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lead-modal.is-done .lead-modal__bar-fill {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hot) 50%, #F5841A 100%);
  box-shadow: 0 0 14px rgba(172, 150, 255, 0.5);
}

.lead-step--done {
  /* Os respiros verticais acompanham a altura da janela para a tela caber
     inteira tanto em monitor grande quanto em notebook baixo. */
  --done-gap: clamp(10px, 2.1vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* A conclusão é o passo mais alto do wizard e o diálogo tem overflow hidden:
     sem isso ela passa por baixo do rodapé em notebook de tela baixa. A barra
     fica oculta porque os blocos abaixo encolhem a tela para caber inteira —
     a rolagem é só rede de segurança para alturas fora do comum. */
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lead-step--done::-webkit-scrollbar {
  display: none;
}
.lead-step--done .lead-step__q {
  margin-bottom: 6px;
  opacity: 0;
  outline: none;
  animation: leadDoneUp 520ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards;
}
.lead-step--done .lead-step__hint {
  margin-bottom: clamp(14px, 2.6vh, 22px);
  opacity: 0;
  animation: leadDoneUp 520ms cubic-bezier(0.22, 1, 0.36, 1) 480ms forwards;
}

.lead-done__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(52px, 7.4vh, 66px);
  height: clamp(52px, 7.4vh, 66px);
  margin-bottom: var(--done-gap);
  opacity: 0;
  animation: leadDoneSeal 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lead-done__seal svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lead-done__disc {
  fill: rgba(118, 56, 234, 0.14);
  opacity: 0;
  animation: leadDoneFade 460ms ease 300ms forwards;
}
.lead-done__ring {
  fill: none;
  stroke: var(--accent-hot);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: leadDoneDraw 620ms cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}
.lead-done__check {
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: leadDoneDraw 400ms cubic-bezier(0.65, 0, 0.35, 1) 520ms forwards;
}
.lead-done__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  opacity: 0;
  animation: leadDoneHalo 900ms ease-out 620ms forwards;
}

.lead-done__steps {
  width: 100%;
  max-width: 348px;
  margin: 0 0 var(--done-gap);
  padding: 0;
  list-style: none;
  text-align: left;
}
.lead-done__step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: clamp(11px, 1.9vh, 16px);
  opacity: 0;
  animation: leadDoneUp 480ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lead-done__step:nth-child(1) { animation-delay: 620ms; }
.lead-done__step:nth-child(2) { animation-delay: 720ms; }
.lead-done__step:nth-child(3) { animation-delay: 820ms; }
.lead-done__step:last-child {
  padding-bottom: 0;
}
/* Fio ligando as etapas: nasce no laranja da etapa concluída e se apaga. */
.lead-done__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(245, 132, 26, 0.5), rgba(245, 132, 26, 0.08));
}

.lead-done__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-base);
  border: 1px solid rgba(245, 132, 26, 0.5);
}
.lead-done__dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-burnt-orange) 0%, #F5841A 100%);
  opacity: 0;
}
.lead-done__dot svg {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.lead-done__step.is-complete .lead-done__dot {
  border-color: transparent;
  box-shadow: 0 0 12px rgba(245, 132, 26, 0.4);
}
.lead-done__step.is-complete .lead-done__dot::after {
  animation: leadDoneFade 340ms ease 880ms forwards;
}
.lead-done__step.is-complete .lead-done__dot svg {
  animation: leadDoneDraw 320ms ease 980ms forwards;
}

.lead-done__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lead-done__txt strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.lead-done__txt span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.lead-done__nota {
  width: 100%;
  max-width: 348px;
  margin: 0;
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: balance;
  background: rgba(245, 132, 26, 0.09);
  border: 1px solid rgba(245, 132, 26, 0.22);
  border-radius: 10px;
  opacity: 0;
  animation: leadDoneUp 520ms cubic-bezier(0.22, 1, 0.36, 1) 940ms forwards;
}
.lead-done__preview {
  margin: 14px 0 0;
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
.lead-done__preview[hidden] {
  display: none;
}

@keyframes leadDoneSettle {
  from { transform: scale(0.985); }
  to   { transform: scale(1); }
}
@keyframes leadDoneSeal {
  from { opacity: 0; transform: scale(0.72); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes leadDoneDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes leadDoneFade {
  to { opacity: 1; }
}
@keyframes leadDoneHalo {
  from { opacity: 0.5; transform: scale(0.88); }
  to   { opacity: 0;   transform: scale(1.85); }
}
@keyframes leadDoneUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Notebook de tela baixa: o título e os textos também encolhem, senão só os
   respiros não bastam para a conclusão caber inteira. */
@media (max-height: 700px) {
  .lead-step--done {
    --done-gap: 9px;
  }
  .lead-done__seal {
    width: 46px;
    height: 46px;
  }
  .lead-step--done .lead-step__q {
    font-size: 21px;
  }
  .lead-step--done .lead-step__hint {
    font-size: 13px;
  }
  .lead-done__txt strong {
    font-size: 12.5px;
  }
  .lead-done__txt span {
    font-size: 12px;
  }
  .lead-done__nota {
    padding: 9px 12px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal.is-done .lead-modal__dialog,
  .lead-step--done,
  .lead-step--done * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .lead-done__ring,
  .lead-done__check,
  .lead-done__step.is-complete .lead-done__dot svg {
    stroke-dashoffset: 0 !important;
  }
  .lead-done__step.is-complete .lead-done__dot::after {
    opacity: 1 !important;
  }
  .lead-done__halo {
    display: none;
  }
}

@media (max-width: 800px) {
  .lead-cta {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: start;
  }
  /* Sem a prévia o botão continua na primeira dobra; a cópia sozinha já sustenta o painel. */
  .lead-preview {
    display: none;
  }
  .lead-trust {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .lead-section {
    padding: 64px 0;
  }
  .lead-panel {
    padding: 28px 22px 26px;
    border-radius: 18px;
  }
  /* Em 30px "Vamos entender o seu" estoura e sobra um "seu" sozinho na linha. */
  .lead-cta .section-title {
    font-size: 27px;
  }
  /* Sem a prévia ao lado, o botão fica sozinho na largura do painel: colado à
     esquerda ele parece desalinhado, centralizado ele volta a ser o eixo do
     cartão. O stretch é o que dá ao bloco a largura toda — com justify-items:
     start (herdado do 800px) ele encolhe até o texto e o auto centraliza errado. */
  .lead-cta {
    justify-items: stretch;
  }
  .lead-cta__btn {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }
  /* 2x2 em vez de deixar o flex-wrap quebrar em 3 linhas irregulares.
     11px + gap curto é o que faz "Resposta em até 24h" caber sem quebrar. */
  .lead-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }
  .lead-trust li {
    font-size: 11px;
    gap: 6px;
  }
  .lead-trust svg {
    width: 13px;
    height: 13px;
  }
  /* No celular o modal toma a tela inteira: o topo acompanha a viewport visível
     (visualViewport) e o fundo desce até o fim da tela, mesmo com o teclado
     aberto — sem isso o site aparece no vão entre o modal e o teclado. */
  .lead-modal {
    padding: 0;
    align-items: stretch;
    top: var(--lead-vv-top, 0px);
  }
  /* Rede de segurança: o desfoque sai do modal e cobre a tela toda, então
     qualquer sobra (barra do navegador recolhendo, teclado empurrando o modal
     para cima) sai embaçada em vez de mostrar a página nítida. */
  .lead-modal__backdrop {
    position: fixed;
    top: -120px;
    bottom: -120px;
    left: 0;
    right: 0;
    background: rgba(17, 16, 28, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .lead-modal__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    /* O teclado cobre o fim do diálogo: essa faixa entra como respiro para o
       rodapé ("Continuar") parar logo acima dele sem deixar buraco no fundo. */
    padding-bottom: calc(var(--lead-kb, 0px) + 12px + env(safe-area-inset-bottom, 0px));
  }
  .lead-modal__progress {
    margin-bottom: 16px;
  }
  /* Só a pergunta ativa rola; o rodapé fica fixo no fim do diálogo. */
  .lead-step {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lead-modal__foot {
    padding-top: 12px;
  }
  .lead-form__nota {
    margin-top: 8px;
  }
  .lead-choices--solucao {
    grid-template-columns: 1fr;
  }
  /* No celular o passo ocupa toda a altura para o botão ficar no rodapé. Numa
     pergunta isso é bom; na conclusão deixaria o conteúdo colado no topo com um
     vazio embaixo. O 'safe' evita cortar o topo quando não couber na tela. */
  .lead-step--done {
    justify-content: safe center;
  }
  /* A conclusão é mais alta que uma pergunta: encolhe o selo e os respiros
     para caber sem rolagem na maioria dos celulares. */
  .lead-done__seal {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }
  .lead-step--done .lead-step__hint {
    margin-bottom: 18px;
  }
  .lead-done__step {
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__bar-fill,
  .lead-cta__btn,
  .lead-cta__btn-icon svg,
  .lead-preview__card,
  .lead-preview__fill {
    transition: none;
  }
  .lead-cta__btn,
  .lead-preview__caret {
    animation: none;
  }
  /* Sem transição a barra precisa já nascer preenchida. */
  .lead-preview__fill {
    width: 30%;
  }
}
