/* Prospecção de Agentes — Conexlog | Premium funnel */
:root {
  --blue: #001f3f;
  --blue-mid: #003366;
  --blue-light: #0a4a7a;
  --yellow: #ffcb00;
  --yellow-soft: #ffe066;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-muted: #ffffff;
  --danger: #ff6b6b;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --step-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
}

.funnel-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 203, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(0, 51, 102, 0.6), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(10, 74, 122, 0.45), transparent 45%),
    linear-gradient(165deg, var(--blue) 0%, #000d1a 100%);
  pointer-events: none;
}

.funnel-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.funnel-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(0, 31, 63, 0.94) 0%, rgba(0, 31, 63, 0.72) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.funnel-logo-wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0;
  text-align: center;
}

.funnel-logo-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.25s var(--step-ease), filter 0.25s;
}

.funnel-logo-link:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 20px rgba(255, 203, 0, 0.25));
}

.funnel-logo-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.funnel-logo-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  /* Fundo preto sólido no PNG: funde com o azul do site e some o “bloco” preto */
  mix-blend-mode: lighten;
}

.progress-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.progress-label {
  font-weight: 600;
  color: var(--text);
}

.progress-pct {
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  font-weight: 700;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  width: 12.5%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow-soft), var(--yellow));
  box-shadow: 0 0 20px rgba(255, 203, 0, 0.45);
  transition: width 0.55s var(--step-ease);
}

.funnel-main {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  min-height: calc(100dvh - var(--header-h));
}

.steps-container {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
}

.step {
  animation: stepEnter 0.55s var(--step-ease) both;
}

.step[hidden] {
  display: none !important;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes stepExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.step.is-leaving {
  animation: stepExit 0.28s ease forwards;
}

.card {
  position: relative;
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.card.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 203, 0, 0.35), transparent 40%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin: 0 0 0.65rem;
}

.eyebrow-gold {
  color: var(--yellow-soft);
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--white);
}

.headline-md {
  font-size: clamp(1.25rem, 4.2vw, 1.65rem);
}

.lead {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.lead strong,
.body-copy strong {
  color: var(--text);
}

.lead.subtle,
.subtle {
  font-size: 0.95rem;
}

.body-copy p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.icon-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.li-ico {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.bolt-list .li-ico.good {
  filter: drop-shadow(0 0 6px rgba(255, 203, 0, 0.5));
}

.callout {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 203, 0, 0.1);
  border: 1px solid rgba(255, 203, 0, 0.28);
  color: var(--text);
  margin: 1rem 0 !important;
}

.highlight-line {
  font-size: 1.05rem;
  color: var(--text) !important;
  padding-left: 0.25rem;
  border-left: 3px solid var(--yellow);
  margin: 1rem 0 !important;
}

.green-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #7dffb3 !important;
  margin: 0.5rem 0 1rem !important;
}

.urgency {
  color: var(--yellow-soft) !important;
  font-weight: 600;
  margin-top: 1rem !important;
}

.bonus-grid {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.bonus-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: transform 0.25s var(--step-ease), border-color 0.25s, background 0.25s;
}

.bonus-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 203, 0, 0.35);
  background: rgba(255, 203, 0, 0.06);
}

.bonus-ico {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.req-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.check-engage {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  user-select: none;
}

.check-engage input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-ui {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 0.35rem;
  border: 2px solid rgba(255, 203, 0, 0.45);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--step-ease);
}

.check-engage input:focus-visible + .check-ui {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.check-engage input:checked + .check-ui {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft));
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 203, 0, 0.35);
}

.check-engage input:checked + .check-ui::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 3px auto 0;
  border: solid var(--blue);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.check-engage:active .check-ui {
  transform: scale(0.92);
}

.check-block {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.check-block:hover {
  border-color: rgba(255, 203, 0, 0.25);
}

.legal-check {
  margin-top: 1rem;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin: 0.4rem 0 0;
  min-height: 1.1em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  align-items: center;
}

.actions-single {
  justify-content: center;
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.actions-single .btn-site {
  flex: 1 1 auto;
  max-width: 22rem;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--step-ease), box-shadow 0.25s, background 0.25s, color 0.2s;
  text-align: center;
  flex: 1;
  min-width: min(100%, 10rem);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn-primary {
  color: var(--blue);
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow));
  box-shadow: 0 4px 24px rgba(255, 203, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255, 203, 0, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  flex: 0 1 auto;
  min-width: unset;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 203, 0, 0.35);
}

.btn-pulse {
  animation: btnPulse 2.4s ease-in-out infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(255, 203, 0, 0.35);
  }
  50% {
    box-shadow: 0 6px 36px rgba(255, 203, 0, 0.55);
  }
}

.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 0 3px rgba(255, 203, 0, 0.25), 0 8px 40px rgba(255, 203, 0, 0.45);
}

/* Quiz */
.quiz-fieldset {
  border: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.quiz-option {
  display: block;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--step-ease), box-shadow 0.25s;
}

.quiz-option input:focus-visible + .quiz-card {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.quiz-option input:checked + .quiz-card {
  border-color: var(--yellow);
  background: rgba(255, 203, 0, 0.12);
  box-shadow: 0 0 24px rgba(255, 203, 0, 0.15);
  transform: scale(1.01);
}

.quiz-option:hover .quiz-card {
  border-color: rgba(255, 203, 0, 0.4);
}

.quiz-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--white);
}

.quiz-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Form */
.lead-form {
  margin-top: 0.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two-cols {
  display: grid;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-label abbr {
  text-decoration: none;
  color: var(--yellow);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-input:hover {
  border-color: rgba(255, 203, 0, 0.25);
}

.form-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 203, 0, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

/* Success */
.card-success {
  text-align: center;
  overflow: hidden;
}

.success-orb {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--yellow-soft), var(--yellow));
  box-shadow: 0 0 40px rgba(255, 203, 0, 0.45);
  animation: orbPop 0.7s var(--step-ease) both;
}

@keyframes orbPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  55% {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-foot {
  margin-top: 1rem !important;
  font-size: 0.85rem !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop */
@media (min-width: 480px) {
  .funnel-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .funnel-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card {
    padding: 1.75rem 1.65rem;
  }

  .bonus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }

  .actions .btn-primary {
    flex: 1.2;
  }
}

@media (min-width: 768px) {
  .funnel-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
  }

  .progress-wrap {
    flex: 1;
    max-width: 42rem;
    margin: 0 auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .step {
    animation: none;
  }

  .step.is-leaving {
    animation: none;
    opacity: 0;
  }

  .btn-pulse {
    animation: none;
  }

  .progress-fill {
    transition-duration: 0.01ms;
  }

  .bonus-item {
    transition: none;
  }

  .bonus-item:hover {
    transform: none;
  }
}
