:root {
  --funnel-bg: #f2f4ee;
  --funnel-paper: #fffdf8;
  --funnel-ink: #13201b;
  --funnel-muted: #607067;
  --funnel-green: #145c3a;
  --funnel-green-2: #1f7a4f;
  --funnel-mint: #dff2e7;
  --funnel-line: rgba(19, 32, 27, 0.13);
  --funnel-danger: #a34231;
  --funnel-warn: #b46f1d;
  --funnel-gold: #c28a2d;
  --funnel-shadow: 0 22px 60px rgba(19, 32, 27, 0.09);
}

.funnel-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 122, 79, 0.12), transparent 34rem),
    var(--funnel-bg);
}

.funnel-topbar {
  position: relative;
  background: rgba(242, 244, 238, 0.94);
}

.funnel-progress {
  height: 4px;
  background: rgba(20, 92, 58, 0.12);
}

.funnel-progress > span {
  display: block;
  width: var(--progress, 20%);
  height: 100%;
  background: var(--funnel-green);
  transition: width 240ms ease;
}

.funnel-shell {
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.funnel-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.funnel-intro h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 0.98;
}

.funnel-intro p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--funnel-muted);
  font-size: 1.04rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--funnel-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--funnel-green);
  font-weight: 900;
}

.tally-shell {
  max-width: 840px;
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--funnel-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--funnel-shadow);
}

.tally-shell iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}

.funnel-privacy {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--funnel-muted);
  text-align: center;
  font-size: 0.8rem;
}

.funnel-privacy a {
  color: var(--funnel-green);
  text-decoration: underline;
}

.result-hero {
  padding-top: 26px;
}

.result-grid {
  display: grid;
  gap: 20px;
}

.score-card,
.result-panel,
.video-card,
.next-card,
.kit-card {
  border: 1px solid var(--funnel-line);
  border-radius: 18px;
  background: var(--funnel-paper);
  box-shadow: var(--funnel-shadow);
}

.score-card {
  display: grid;
  align-items: center;
  gap: 26px;
  padding: clamp(22px, 5vw, 42px);
}

.score-dial {
  --score: 58;
  --score-color: var(--funnel-green);
  width: min(250px, 68vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(19, 32, 27, 0.09) 0);
  position: relative;
}

.score-dial::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--funnel-paper);
}

.score-number {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-number strong {
  display: block;
  font: 900 clamp(3.2rem, 12vw, 5.5rem)/0.9 "Manrope", sans-serif;
}

.score-number span {
  color: var(--funnel-muted);
  font-weight: 800;
}

.score-copy .eyebrow {
  background: var(--funnel-mint);
  border-color: transparent;
  color: var(--funnel-green);
}

.score-copy h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.score-copy .result-lead {
  margin: 14px 0 0;
  color: var(--funnel-muted);
  font-size: 1.08rem;
}

.level-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--funnel-mint);
  color: var(--funnel-green);
  font: 900 0.8rem/1 "Manrope", sans-serif;
  text-transform: uppercase;
}

.level-pill[data-level="cold"] {
  background: #f5e4df;
  color: var(--funnel-danger);
}

.level-pill[data-level="warm"] {
  background: #faedd8;
  color: var(--funnel-warn);
}

.level-pill[data-level="hot"] {
  background: var(--funnel-mint);
  color: var(--funnel-green);
}

.level-pill[data-level="priority"] {
  background: #f7edd4;
  color: #856015;
}

.result-panel {
  padding: clamp(22px, 5vw, 36px);
}

.result-panel h2,
.video-card h2,
.next-card h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
}

.pillar-list {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.pillar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
  font-weight: 800;
}

.pillar-head strong {
  font-family: "Manrope", sans-serif;
}

.pillar-head span {
  color: var(--funnel-muted);
}

.pillar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 32, 27, 0.09);
}

.pillar-track span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--funnel-green);
  transition: width 500ms ease;
}

.priority-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.priority-item {
  padding: 17px;
  border-left: 4px solid var(--funnel-green);
  border-radius: 10px;
  background: rgba(20, 92, 58, 0.07);
}

.priority-item strong {
  display: block;
  font-family: "Manrope", sans-serif;
}

.priority-item span {
  display: block;
  margin-top: 4px;
  color: var(--funnel-muted);
  font-size: 0.92rem;
}

.video-card {
  padding: clamp(18px, 4vw, 34px);
  background: #0f1f19;
  color: #fff;
}

.video-card > p {
  color: rgba(255, 255, 255, 0.72);
}

.video-frame {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 14px;
  background: #08100d;
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(8, 16, 13, 0.72), rgba(8, 16, 13, 0.88)),
    url("./delivery-command-center.webp") center / cover;
  text-align: center;
}

.video-placeholder[hidden] {
  display: none !important;
}

.video-placeholder strong {
  display: block;
  font: 900 clamp(1.2rem, 4vw, 2rem)/1.1 "Manrope", sans-serif;
}

.video-placeholder span {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.next-card {
  padding: clamp(22px, 5vw, 38px);
  text-align: center;
}

.next-card p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--funnel-muted);
}

.next-card .btn {
  margin-top: 22px;
}

.next-card .btn-whatsapp {
  margin-top: 12px;
  border-color: var(--funnel-green);
  background: transparent;
  color: var(--funnel-green);
}

.next-card .btn-whatsapp:hover,
.next-card .btn-whatsapp:focus-visible {
  background: rgba(22, 163, 74, 0.12);
  color: var(--funnel-green);
}

.next-note {
  display: block;
  margin-top: 12px;
  color: var(--funnel-muted);
  font-size: 0.84rem;
}


.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.diagnostic-disclaimer {
  margin-top: 16px;
  color: var(--funnel-muted);
  font-size: 0.82rem;
}

@media (min-width: 760px) {
  .score-card {
    grid-template-columns: 280px 1fr;
  }

  .priority-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .result-grid {
    gap: 26px;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.next-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--funnel-green);
  font-size: 0.86rem;
  font-weight: 800;
}
.next-choice span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9BEA06;
  box-shadow: 0 0 0 0 rgba(155,234,6,.5);
  animation: bonato-pulse 2s ease-out infinite;
}
@keyframes bonato-pulse { 70% { box-shadow: 0 0 0 7px rgba(155,234,6,0); } 100% { box-shadow: 0 0 0 0 rgba(155,234,6,0); } }
@media (prefers-reduced-motion: reduce) { .next-choice span { animation: none; } }