/* ==========================================================================
   TF Investimentos, consorcio de imoveis
   layout.css: componentes e secoes da pagina
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cabecalho
   -------------------------------------------------------------------------- */
.tf-topline {
  background: var(--tf-forest-deep);
  color: #C9D6CD;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.tf-topline .tf-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 34px;
  text-align: center;
}

.tf-topline svg { color: var(--tf-brass-bright); flex: none; }

.tf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--tf-ease), box-shadow 0.25s var(--tf-ease);
}

.tf-header.is-stuck {
  border-bottom-color: var(--tf-line);
  box-shadow: 0 8px 24px -18px rgba(16, 30, 25, 0.5);
}

.tf-header .tf-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.tf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.tf-logo__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.tf-logo__text {
  display: grid;
  line-height: 1.05;
}

.tf-logo__name {
  font-family: var(--tf-font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--tf-forest);
}

.tf-logo__tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tf-ink-mute);
  font-weight: 600;
}

.tf-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}

.tf-nav a { color: var(--tf-ink-soft); position: relative; padding-block: 0.2rem; }

.tf-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--tf-brass);
  transition: width 0.22s var(--tf-ease);
}

.tf-nav a:hover::after { width: 100%; }

.tf-header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.tf-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--tf-forest);
  font-size: 0.95rem;
}

.tf-header .tf-btn { padding: 0.62rem 1.1rem; font-size: 0.92rem; }

@media (max-width: 1000px) {
  .tf-nav { display: none; }
}

@media (max-width: 700px) {
  /* No celular o CTA vive na barra fixa inferior, entao o do topo sai do caminho */
  .tf-header__actions .tf-btn { display: none; }
}

@media (max-width: 620px) {
  .tf-header__phone span { display: none; }
  .tf-logo__tag { display: none; }
  .tf-logo__name { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.tf-hero {
  position: relative;
  padding-block: clamp(2.6rem, 1.8rem + 3.4vw, 5rem) clamp(3rem, 2rem + 3vw, 5rem);
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(169, 118, 42, 0.09), transparent 62%),
    linear-gradient(180deg, var(--tf-paper) 0%, var(--tf-paper-warm) 100%);
  overflow: hidden;
}

/* Malha discreta de linhas, lembra planta baixa. Substitui gradiente generico */
.tf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 55, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 55, 43, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(1000px 560px at 20% 10%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 560px at 20% 10%, #000 10%, transparent 78%);
  pointer-events: none;
}

.tf-hero .tf-wrap { position: relative; z-index: 1; }

.tf-hero__grid {
  display: grid;
  gap: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  align-items: start;
  /* No celular o formulario sobe: vem logo depois da subheadline */
  grid-template-areas:
    "copy"
    "card"
    "extra";
}

.tf-hero__copy { grid-area: copy; max-width: 44rem; }
.tf-hero__form { grid-area: card; }
.tf-hero__extra { grid-area: extra; max-width: 44rem; }

@media (min-width: 980px) {
  .tf-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
    grid-template-areas:
      "copy  card"
      "extra card";
    row-gap: 0;
  }

  .tf-hero__extra .tf-hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

@media (max-width: 520px) {
  .tf-hero__acoes { display: grid; }
}

.tf-hero__bullets { margin-top: 2.1rem; }
}

.tf-hero h1 {
  margin-block: 1.1rem 1.25rem;
  max-width: 16ch;
}

@media (max-width: 979px) {
  .tf-hero h1 { max-width: 20ch; }
}

.tf-hero h1 em {
  font-style: italic;
  color: var(--tf-brass);
}

.tf-hero__bullets {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.tf-hero__bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
  color: var(--tf-ink-soft);
}

.tf-hero__bullets svg { color: var(--tf-forest); margin-top: 4px; }

.tf-hero__bullets strong { color: var(--tf-ink); font-weight: 600; }

/* Faixa de numeros do hero: assimetrica, com regua vertical */
.tf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 1rem + 2vw, 2.8rem);
  margin-top: 2.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--tf-line);
}

.tf-stats > div { display: grid; gap: 0.15rem; }

.tf-stats dt {
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-optical-sizing: auto;
  font-size: clamp(1.62rem, 1.35rem + 1vw, 2.2rem);
  line-height: 1;
  color: var(--tf-forest);
  letter-spacing: -0.02em;
}

.tf-stats dd {
  font-size: 0.8rem;
  color: var(--tf-ink-mute);
  max-width: 20ch;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. Cartao do formulario
   -------------------------------------------------------------------------- */
.tf-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-lg);
  overflow: hidden;
}

.tf-card__head {
  padding: 1.35rem 1.5rem 1.1rem;
  background: var(--tf-forest);
  color: #EAF1EC;
}

.tf-card__head h2 {
  font-family: var(--tf-font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tf-card__head p {
  font-size: 0.86rem;
  color: #A9BEB2;
  margin-top: 0.3rem;
}

.tf-card__body { padding: 1.4rem 1.5rem 1.5rem; }

.tf-card__foot {
  padding: 0.85rem 1.5rem;
  background: var(--tf-paper-warm);
  border-top: 1px solid var(--tf-line-soft);
  font-size: 0.74rem;
  color: var(--tf-ink-mute);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.tf-card__foot svg { flex: none; color: var(--tf-success); }

/* Progresso do formulario em etapas */
.tf-steps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.tf-steps span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--tf-line);
  transition: background-color 0.3s var(--tf-ease);
}

.tf-steps span.is-done { background: var(--tf-brass); }

.tf-step { display: grid; gap: 0.95rem; }

.tf-step__title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tf-step__title small {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--tf-ink-mute);
  margin-top: 0.2rem;
}

.tf-step__nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.tf-back {
  font-size: 0.85rem;
  color: var(--tf-ink-mute);
  font-weight: 500;
  padding: 0.5rem 0.2rem;
}

.tf-back:hover { color: var(--tf-forest); text-decoration: underline; }

.tf-form-row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 520px) {
  .tf-form-row--2 { grid-template-columns: 1fr 1fr; }
}

/* Estado de sucesso */
.tf-done {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding-block: 0.5rem;
}

.tf-done__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tf-forest-tint);
  display: grid;
  place-items: center;
  color: var(--tf-success);
}

/* --------------------------------------------------------------------------
   4. Faixa de credibilidade
   -------------------------------------------------------------------------- */
.tf-trust {
  background: var(--tf-white);
  border-block: 1px solid var(--tf-line);
  padding-block: 1.5rem;
}

.tf-trust__grid {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .tf-trust__grid { grid-template-columns: minmax(0, 260px) 1fr; gap: 2.5rem; }
}

.tf-trust__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--tf-ink-mute);
  line-height: 1.5;
}

.tf-trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.2rem, 0.8rem + 2vw, 2.8rem);
}

.tf-trust__logos li {
  font-family: var(--tf-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--tf-ink-mute);
  letter-spacing: 0.01em;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s var(--tf-ease);
}

.tf-trust__logos li:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   5. Tabela comparativa
   -------------------------------------------------------------------------- */
.tf-compare {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
}

/* Itens de grid nao podem esticar a pagina por causa de conteudo largo */
.tf-compare > *,
.tf-sim > *,
.tf-hero__grid > *,
.tf-proof__grid > *,
.tf-cta > *,
.tf-trust__grid > * { min-width: 0; }

@media (min-width: 1000px) {
  .tf-compare { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); align-items: start; }
}

.tf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  background: var(--tf-white);
}

.tf-table {
  min-width: 560px;
  font-size: 0.94rem;
}

.tf-table th,
.tf-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--tf-line-soft);
  vertical-align: top;
}

.tf-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tf-ink-mute);
  font-weight: 600;
  background: var(--tf-paper-warm);
  border-bottom-color: var(--tf-line);
  position: sticky;
  top: 0;
}

.tf-table thead th:nth-child(2) { color: var(--tf-brass); }

.tf-table tbody th {
  font-weight: 500;
  color: var(--tf-ink-soft);
  width: 34%;
}

.tf-table td strong { font-weight: 600; }

.tf-table td:nth-of-type(1) {
  background: rgba(169, 118, 42, 0.05);
  border-left: 2px solid var(--tf-brass);
}

.tf-table tbody tr:last-child th,
.tf-table tbody tr:last-child td { border-bottom: 0; }

.tf-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--tf-ink-mute);
  line-height: 1.55;
  max-width: 62ch;
}

/* Bloco de honestidade, o que o consorcio nao resolve */
.tf-caveat {
  margin-top: 1.6rem;
  padding: 1.15rem 1.3rem;
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-left: 3px solid var(--tf-ink-soft);
  border-radius: var(--tf-radius-sm);
}

.tf-caveat h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tf-caveat p { font-size: 0.92rem; color: var(--tf-ink-soft); }

/* --------------------------------------------------------------------------
   6. Passo a passo
   -------------------------------------------------------------------------- */
.tf-flow {
  display: grid;
  gap: 0;
  counter-reset: passo;
}

.tf-flow > li {
  display: grid;
  gap: 0.4rem 1.6rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--tf-line);
  position: relative;
}

@media (min-width: 780px) {
  .tf-flow > li {
    grid-template-columns: 64px minmax(0, 22ch) minmax(0, 1fr);
    align-items: start;
  }
}

.tf-flow > li:last-child { border-bottom: 1px solid var(--tf-line); }

.tf-flow__n {
  counter-increment: passo;
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--tf-brass);
  letter-spacing: -0.02em;
}

.tf-flow__n::before { content: "0" counter(passo); }

.tf-flow h3 {
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.tf-flow p { color: var(--tf-ink-soft); font-size: 0.98rem; }

.tf-flow p + p { margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   7. Perfis
   -------------------------------------------------------------------------- */
.tf-profiles {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .tf-profiles { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  /* Quebra a simetria: o cartao do meio ganha respiro extra */
  .tf-profiles > li:nth-child(2) { transform: translateY(-14px); }
}

.tf-profile {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.5rem 1.45rem 1.6rem;
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius);
  transition: border-color 0.2s var(--tf-ease), box-shadow 0.2s var(--tf-ease);
}

.tf-profile:hover {
  border-color: var(--tf-brass);
  box-shadow: var(--tf-shadow);
}

.tf-profile__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--tf-brass);
}

.tf-profile h3 {
  font-family: var(--tf-font-display);
  font-weight: 600;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tf-profile p { font-size: 0.94rem; color: var(--tf-ink-soft); }

.tf-profile__meta {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--tf-line);
  font-size: 0.82rem;
  color: var(--tf-ink-mute);
}

.tf-profile__meta strong { color: var(--tf-forest); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Secao escura de prova
   -------------------------------------------------------------------------- */
.tf-proof__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.6rem);
}

@media (min-width: 940px) {
  .tf-proof__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}

.tf-quotes { display: grid; gap: 1rem; }

.tf-quote {
  padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tf-radius);
}

.tf-quote blockquote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #DCE6DF;
}

.tf-quote figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #8FA598;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tf-quote figcaption b { color: #C6D5CB; font-weight: 600; }

.tf-quote figcaption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--tf-brass-bright);
  flex: none;
}

.tf-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tf-radius);
  overflow: hidden;
  margin-top: 1.8rem;
}

.tf-kpis > div {
  background: var(--tf-forest-deep);
  padding: 1.2rem 1.1rem;
}

.tf-kpis dt {
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--tf-brass-bright);
}

.tf-kpis dd {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #9CB0A3;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. FAQ
   -------------------------------------------------------------------------- */
.tf-faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tf-line);
}

.tf-faq details {
  border-bottom: 1px solid var(--tf-line);
}

.tf-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.15s var(--tf-ease);
}

.tf-faq summary::-webkit-details-marker { display: none; }

.tf-faq summary:hover { color: var(--tf-brass); }

.tf-faq summary .tf-faq__ic {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  position: relative;
}

.tf-faq summary .tf-faq__ic::before,
.tf-faq summary .tf-faq__ic::after {
  content: "";
  position: absolute;
  background: var(--tf-brass);
  border-radius: 1px;
  transition: transform 0.25s var(--tf-ease);
}

.tf-faq summary .tf-faq__ic::before {
  left: 3px; right: 3px; top: 10px; height: 1.6px;
}

.tf-faq summary .tf-faq__ic::after {
  top: 3px; bottom: 3px; left: 10px; width: 1.6px;
}

.tf-faq details[open] summary .tf-faq__ic::after { transform: scaleY(0); }

.tf-faq__a {
  padding-bottom: 1.35rem;
  max-width: 74ch;
  color: var(--tf-ink-soft);
  font-size: 0.98rem;
}

.tf-faq__a p + p { margin-top: 0.75rem; }

.tf-faq__a strong { color: var(--tf-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. CTA final
   -------------------------------------------------------------------------- */
.tf-cta {
  background: var(--tf-forest);
  color: #EDF3EE;
  border-radius: var(--tf-radius-lg);
  padding: clamp(2rem, 1.5rem + 2.6vw, 3.6rem);
  display: grid;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}

.tf-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(199, 150, 65, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.tf-cta > * { position: relative; z-index: 1; }

@media (min-width: 880px) {
  .tf-cta { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); align-items: center; gap: 2.6rem; }
}

.tf-cta h2 { font-family: var(--tf-font-display); font-weight: 620; font-size: var(--tf-step-3); line-height: 1.08; letter-spacing: -0.02em; }

.tf-cta p { color: #B4C6BB; margin-top: 0.9rem; }

.tf-cta__actions { display: grid; gap: 0.7rem; }

.tf-cta__actions .tf-btn--ghost {
  color: #EDF3EE;
  border-color: rgba(255, 255, 255, 0.3);
}

.tf-cta__actions .tf-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   11. Rodape
   -------------------------------------------------------------------------- */
.tf-footer {
  background: var(--tf-forest-deep);
  color: #93A69B;
  font-size: 0.88rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem;
}

.tf-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 820px) {
  .tf-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

.tf-footer h3 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C6D5CB;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.tf-footer ul { display: grid; gap: 0.55rem; }

.tf-footer a:hover { color: var(--tf-brass-bright); }

.tf-footer .tf-logo__name { color: #EDF3EE; }
.tf-footer .tf-logo__tag { color: #7E948A; }

.tf-footer__legal {
  padding-top: 1.6rem;
  font-size: 0.76rem;
  line-height: 1.65;
  color: #7E948A;
  display: grid;
  gap: 0.9rem;
}

.tf-footer__legal p { max-width: 96ch; }

.tf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   12. Barra fixa mobile e WhatsApp flutuante
   -------------------------------------------------------------------------- */
.tf-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--tf-line);
  transform: translateY(110%);
  transition: transform 0.3s var(--tf-ease);
}

.tf-dock.is-on { transform: none; }

.tf-dock .tf-btn { padding: 0.85rem 0.8rem; font-size: 0.94rem; }

@media (min-width: 860px) {
  .tf-dock { display: none; }
}

.tf-wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 65;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #128C4A;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -8px rgba(18, 140, 74, 0.6);
  transition: transform 0.2s var(--tf-ease), opacity 0.25s var(--tf-ease);
  opacity: 0;
  pointer-events: none;
}

.tf-wa-float.is-on { opacity: 1; pointer-events: auto; }

.tf-wa-float:hover { transform: scale(1.06); }

@media (max-width: 859px) {
  .tf-wa-float { bottom: 88px; right: 14px; width: 48px; height: 48px; }
}

/* --------------------------------------------------------------------------
   13. Simulador
   -------------------------------------------------------------------------- */
.tf-sim {
  display: grid;
  gap: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem);
  align-items: start;
}

@media (min-width: 960px) {
  .tf-sim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.tf-sim__panel {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
}

.tf-range { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }

.tf-range__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.tf-range__val {
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--tf-forest);
  letter-spacing: -0.02em;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: var(--tf-line);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tf-brass);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(16, 30, 25, 0.28);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tf-brass);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(16, 30, 25, 0.28);
  cursor: grab;
  border-color: #fff;
}

.tf-range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--tf-ink-mute);
}

.tf-sim__out {
  display: grid;
  gap: 0;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius);
  overflow: hidden;
  background: var(--tf-paper-warm);
}

.tf-sim__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--tf-line-soft);
  font-size: 0.94rem;
}

.tf-sim__row:last-child { border-bottom: 0; }

.tf-sim__row dt { color: var(--tf-ink-soft); }

.tf-sim__row dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tf-ink);
}

.tf-sim__row--hi {
  background: var(--tf-forest);
  color: #EAF1EC;
}

.tf-sim__row--hi dt { color: #A9BEB2; }

.tf-sim__row--hi dd {
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-size: 1.55rem;
  color: var(--tf-brass-bright);
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   14. Modal de simulacao
   -------------------------------------------------------------------------- */
.tf-modal {
  width: min(540px, calc(100vw - 1.6rem));
  max-height: min(92dvh, 880px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  background: var(--tf-white);
  color: var(--tf-ink);
  box-shadow: 0 32px 80px -20px rgba(12, 36, 28, 0.45);
  overflow: hidden;
}

/* O estado visivel e o padrao. A animacao entra por uma classe que o JS
   adiciona e remove, entao um travamento de animacao nunca esconde o modal. */
.tf-modal[open] {
  display: flex;
  flex-direction: column;
}

.tf-modal[open].tf-entra {
  animation: tf-modal-entra 0.26s var(--tf-ease);
}

.tf-modal::backdrop {
  background: rgba(12, 36, 28, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: tf-fundo-entra 0.26s var(--tf-ease);
}

@keyframes tf-modal-entra {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes tf-fundo-entra {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-modal[open].tf-entra, .tf-modal::backdrop { animation: none; }
}

.tf-modal__head {
  position: relative;
  flex: none;
  padding: 1.4rem 3.2rem 1.2rem 1.6rem;
  background: var(--tf-forest);
  color: #EAF1EC;
}

.tf-modal__head h2 {
  font-family: var(--tf-font-display);
  font-weight: 620;
  font-optical-sizing: auto;
  font-size: 1.45rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.tf-modal__head p {
  font-size: 0.86rem;
  color: #A9BEB2;
  margin-top: 0.35rem;
}

.tf-modal__x {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #BFD0C6;
  transition: background-color 0.18s var(--tf-ease), color 0.18s var(--tf-ease);
}

.tf-modal__x:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tf-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.6rem 1.5rem;
}

.tf-modal__foot {
  flex: none;
  padding: 0.85rem 1.6rem;
  background: var(--tf-paper-warm);
  border-top: 1px solid var(--tf-line-soft);
  font-size: 0.74rem;
  color: var(--tf-ink-mute);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.tf-modal__foot svg { flex: none; color: var(--tf-success); }

html.tf-modal-aberto,
html.tf-modal-aberto body { overflow: hidden; }

/* No celular vira tela cheia: nada da pagina aparece por tras e o corpo do
   formulario rola dentro do proprio modal. */
@media (max-width: 560px) {
  .tf-modal {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .tf-modal__head { padding: 1.15rem 3rem 1rem 1.2rem; }
  .tf-modal__body { padding: 1.2rem 1.2rem 1.6rem; }
  .tf-modal__foot { padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   15. Faixa de chamada repetida ao longo da pagina
   -------------------------------------------------------------------------- */
.tf-cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: clamp(2rem, 1.5rem + 1.4vw, 2.9rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--tf-line);
}

.tf-cta-inline p {
  font-size: 0.92rem;
  color: var(--tf-ink-mute);
  max-width: 46ch;
  line-height: 1.5;
}

.tf-cta-inline .tf-btn { flex: none; }

.tf-section--dark .tf-cta-inline { border-top-color: rgba(255, 255, 255, 0.16); }
.tf-section--dark .tf-cta-inline p { color: #9CB0A3; }

@media (max-width: 560px) {
  .tf-cta-inline { gap: 1rem; }
  .tf-cta-inline .tf-btn { width: 100%; }
}
