.funnel-section {
  color: #f4f7fc;
  background: linear-gradient(95deg, #091c2ff5 12%, #102943ed 44%, #102943a8), #102943;
}
.funnel-section :focus-visible { outline-color: #f0ce95; }
.funnel-heading { max-width: 42rem; margin-bottom: 24px; }
.funnel-heading .eyebrow { color: #f0ce95; }
.funnel-heading h2 { margin-block: 9px 8px; }
.funnel-heading > p:last-child { color: #dbe7f0; max-width: 48ch; }
.funnel-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2vw, 24px);
}
.funnel-settings, .funnel-results {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3.35vw, 39px);
  border: 1px solid var(--glass-rim);
  border-radius: var(--glass-radius);
  background: var(--glass-highlight), linear-gradient(145deg, #203c56dd, #102943de 62%, #254057e9);
  box-shadow: var(--glass-depth);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  backdrop-filter: blur(15px) saturate(140%);
}
.funnel-settings {
  display: grid;
  align-content: center;
  gap: 18px;
}
.funnel-field { min-width: 0; }
.funnel-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .88rem;
}
.funnel-field [data-funnel-value], .funnel-chart [data-stage-count] {
  color: #f6d69f;
  font-family: var(--mono);
  font-size: .85rem;
}
.funnel-field input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  accent-color: #e8c695;
  cursor: pointer;
}
.funnel-settings .button {
  color: #f7ead6;
  border-color: #d1dae680;
  background: #e9f3fe15;
}
.funnel-settings .button:hover:not(:disabled) { background: #edf5ff30; }
.funnel-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #eef4fa;
  font-size: .85rem;
}
.funnel-total [data-visit-count] {
  color: #f6d69f;
  font: 400 clamp(2.75rem, 5.2vw, 4.8rem)/.9 var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}
.funnel-chart { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.funnel-chart li > div { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.funnel-track {
  display: block;
  height: 10px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #9fb5c740;
  border-radius: 999px;
  background: #091b2c96;
}
.funnel-track > span {
  display: block;
  width: var(--funnel-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6789a0, #9fc7d9);
  box-shadow: inset 0 1px #ffffff6e;
  transition: width .28s cubic-bezier(.21,.71,.26,1);
}
.funnel-chart li:last-child .funnel-track > span { background: linear-gradient(90deg, #c5a270, #f6d89d); }
.funnel-insight {
  border-top: 1px solid #cadae44c;
  padding-top: 12px;
  color: #e8eff6;
  font-size: .88rem;
  line-height: 1.45;
  min-height: 3.35rem;
}
.funnel-note { margin-top: 14px; color: #d3dfe9; font-size: .78rem; }

@media (min-width: 761px) {
  .funnel-section {
    background: linear-gradient(95deg, #091c2ffb 12%, #102943f2 44%, #102943b8), url('/assets/arquitetura-1200.webp') center 57% / cover, #102943;
  }
}
@media (max-width: 760px) {
  .funnel-section .section { padding-block: 35px; }
  .funnel-layout { grid-template-columns: minmax(0, 1fr); }
  .funnel-settings { gap: 6px; }
}
@media (prefers-reduced-transparency: reduce) {
  .funnel-settings, .funnel-results {
    background: #193650;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
