/* Conversion modal opened only by the CTA inside the homepage why section. */
body.why-funnel-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.home-why .why-cta[data-why-funnel-open] {
  cursor: pointer;
}

.home-why .why-cta[data-why-funnel-open]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 10px;
  border-radius: 4px;
}

.why-funnel[hidden],
.why-funnel__step[hidden],
.why-funnel__success[hidden] {
  display: none !important;
}

.why-funnel {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #15171a;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

.why-funnel.is-open {
  opacity: 1;
  visibility: visible;
}

.why-funnel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 22, 48, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.why-funnel__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(3, 24, 63, .34);
  transform: translate3d(0, 22px, 0) scale(.975);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22, .75, .25, 1), opacity .22s ease;
  scrollbar-width: thin;
  scrollbar-color: #aeb9c8 transparent;
}

.why-funnel.is-open .why-funnel__dialog {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.why-funnel__hero {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 30px 184px 28px 32px;
  background: #075dc5;
  color: #fff;
}

.why-funnel__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.why-funnel__hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -18px;
  width: 136px;
  height: 184px;
  pointer-events: none;
  background: url("/assets/home-why-hand.png") center bottom / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.12));
}

.why-funnel__kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  font: 500 12px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd400;
}

.why-funnel__title {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin: 0;
  font: 700 clamp(28px, 4vw, 40px)/1.02 "Montserrat", sans-serif;
  letter-spacing: -.045em;
  color: #fff;
  text-wrap: balance;
}

.why-funnel__intro {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.48;
  color: rgba(255,255,255,.78);
}

.why-funnel__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font: 300 25px/1 sans-serif;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.why-funnel__close:hover {
  background: rgba(255,255,255,.22);
  transform: rotate(4deg);
}

.why-funnel__close:focus-visible,
.why-funnel__button:focus-visible,
.why-funnel__option input:focus-visible + span,
.why-funnel__input:focus-visible,
.why-funnel__textarea:focus-visible,
.why-funnel__consent input:focus-visible + span::before {
  outline: 3px solid #ffd400;
  outline-offset: 3px;
}

.why-funnel__body {
  padding: 26px 32px 30px;
}

.why-funnel__progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 25px;
}

.why-funnel__progress span {
  height: 4px;
  border-radius: 999px;
  background: #e5e9ef;
  transition: background .2s ease, transform .2s ease;
}

.why-funnel__progress span.is-active {
  background: #075dc5;
}

.why-funnel__progress span.is-current {
  transform: scaleY(1.7);
  background: #ffd400;
}

.why-funnel__step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.why-funnel__step-count {
  flex: none;
  padding-top: 5px;
  font: 500 11px/1 "IBM Plex Mono", monospace;
  color: #6b7686;
}

.why-funnel__heading {
  margin: 0;
  font: 700 clamp(22px, 3vw, 29px)/1.12 "Montserrat", sans-serif;
  letter-spacing: -.032em;
  color: #161a20;
}

.why-funnel__hint {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #687386;
}

.why-funnel__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.why-funnel__option {
  position: relative;
  cursor: pointer;
}

.why-funnel__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.why-funnel__option > span {
  position: relative;
  display: block;
  min-height: 88px;
  padding: 16px 44px 15px 16px;
  border: 1px solid #dce2ea;
  border-radius: 15px;
  background: #f8f9fb;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
}

.why-funnel__option > span::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #b9c2cf;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  transition: border-color .18s ease, background .18s ease;
}

.why-funnel__option strong,
.why-funnel__option small {
  display: block;
}

.why-funnel__option strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
}

.why-funnel__option small {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #738093;
}

.why-funnel__option:hover > span {
  border-color: #8ab7ed;
  transform: translateY(-1px);
}

.why-funnel__option input:checked + span {
  border-color: #075dc5;
  background: #eaf3ff;
  color: #064da4;
}

.why-funnel__option input:checked + span::after {
  border-color: #075dc5;
  background: #075dc5;
}

.why-funnel__option input:checked + span small {
  color: #386a9f;
}

.why-funnel__choice-error {
  min-height: 18px;
  margin-top: 9px;
  font-size: 12px;
  color: #b42318;
}

.why-funnel__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.why-funnel__field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #394354;
}

.why-funnel__field--wide {
  grid-column: 1 / -1;
}

.why-funnel__field em {
  color: #8490a1;
  font-style: normal;
  font-weight: 400;
}

.why-funnel__input,
.why-funnel__textarea {
  width: 100%;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  background: #fff;
  color: #151a21;
  font: 400 14px/1.45 "Montserrat", sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.why-funnel__input {
  min-height: 48px;
  padding: 11px 13px;
}

.why-funnel__textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.why-funnel__input:hover,
.why-funnel__textarea:hover {
  border-color: #b9c8da;
}

.why-funnel__input:focus,
.why-funnel__textarea:focus {
  border-color: #075dc5;
  box-shadow: 0 0 0 4px rgba(7, 93, 197, .1);
  outline: none;
  background: #fbfdff;
}

.why-funnel__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.why-funnel__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  font-size: 11.5px;
  line-height: 1.42;
  color: #687386;
  cursor: pointer;
}

.why-funnel__consent input {
  position: absolute;
  opacity: 0;
}

.why-funnel__consent span {
  position: relative;
  display: block;
  padding-left: 28px;
}

.why-funnel__consent span::before,
.why-funnel__consent span::after {
  content: "";
  position: absolute;
}

.why-funnel__consent span::before {
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #bfc8d4;
  border-radius: 5px;
  background: #fff;
}

.why-funnel__consent span::after {
  top: 4px;
  left: 5px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg);
}

.why-funnel__consent input:checked + span::before {
  border-color: #075dc5;
  background: #075dc5;
}

.why-funnel__consent input:checked + span::after {
  opacity: 1;
}

.why-funnel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.why-funnel__actions--end {
  justify-content: flex-end;
}

.why-funnel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 650 13px/1 "Montserrat", sans-serif;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.why-funnel__button:hover {
  transform: translateY(-1px);
}

.why-funnel__button--primary {
  background: #075dc5;
  color: #fff;
}

.why-funnel__button--primary:hover {
  background: #064da4;
}

.why-funnel__button--secondary {
  border-color: #d8dee7;
  background: #fff;
  color: #394354;
}

.why-funnel__button--secondary:hover {
  border-color: #aeb9c8;
  background: #f6f8fa;
}

.why-funnel__button[disabled] {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.why-funnel__status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #b42318;
}

.why-funnel__status a {
  color: #075dc5;
  text-decoration: underline;
}

.why-funnel__success {
  min-height: 305px;
  padding: 42px 32px 36px;
  text-align: center;
}

.why-funnel__success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ffd400;
  color: #075dc5;
  font-size: 28px;
  font-weight: 700;
}

.why-funnel__success h3 {
  margin: 0;
  font: 700 clamp(26px, 4vw, 36px)/1.06 "Montserrat", sans-serif;
  letter-spacing: -.04em;
  color: #151a21;
}

.why-funnel__success p {
  max-width: 490px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: #657185;
}

.why-funnel__success .why-funnel__button {
  margin-top: 25px;
}

@media (max-width: 640px) {
  .why-funnel {
    place-items: end center;
    padding: 0;
  }

  .why-funnel__dialog {
    width: 100%;
    max-height: 92dvh;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    transform: translate3d(0, 36px, 0);
  }

  .why-funnel__hero {
    min-height: 190px;
    padding: 25px 112px 24px 22px;
  }

  .why-funnel__hero::after {
    right: 2px;
    bottom: -24px;
    width: 112px;
    height: 154px;
    opacity: .9;
  }

  .why-funnel__close {
    top: 12px;
    right: 12px;
  }

  .why-funnel__title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .why-funnel__intro {
    font-size: 12.5px;
  }

  .why-funnel__body {
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .why-funnel__success {
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
  }

  .why-funnel__options,
  .why-funnel__fields {
    grid-template-columns: 1fr;
  }

  .why-funnel__option > span {
    min-height: 74px;
  }

  .why-funnel__actions {
    align-items: stretch;
  }

  .why-funnel__actions .why-funnel__button--primary {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-funnel,
  .why-funnel__dialog,
  .why-funnel__button,
  .why-funnel__option > span,
  .why-funnel__close {
    transition: none !important;
  }
}
