/* v14: GIF-like auto-scrolling document and landing-page previews */
.v14-auto-scroll-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f3f3;
  isolation: isolate;
  contain: paint;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.v14-auto-scroll-window--document {
  height: 220px;
}

.v14-auto-scroll-window--landing {
  height: 430px;
}

.v14-auto-scroll-window--benefit-prompt {
  height: 220px;
}

.v14-auto-scroll-window--benefit-document {
  height: 430px;
}

.v14-auto-scroll-window--benefit-reel {
  height: 520px;
  background: #fff;
  border-bottom: 2px solid #090909;
}

.v14-auto-scroll-window > img,
.v14-auto-scroll-window > .v13-decision-demo,
.v14-auto-scroll-window > .v14-auto-scroll-track {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.v14-auto-scroll-track {
  background: #fff;
}

.v10-benefit__screen .v14-auto-scroll-track img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: top center;
  border-bottom: 1px solid #d9d9d9;
}

.v10-benefit__screen .v14-auto-scroll-window > img {
  max-height: none;
  object-fit: contain;
  object-position: top center;
}

.v14-auto-scroll-window.is-scrollable > img,
.v14-auto-scroll-window.is-scrollable > .v13-decision-demo,
.v14-auto-scroll-window.is-scrollable > .v14-auto-scroll-track {
  -webkit-animation: v14-preview-auto-scroll var(--v14-scroll-duration, 14s) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation: v14-preview-auto-scroll var(--v14-scroll-duration, 14s) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

.v14-auto-scroll-window--landing .v13-decision-demo {
  grid-template-columns: 1fr;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.v14-auto-scroll-window--landing .v13-decision-demo__logic {
  padding: 28px 20px;
}

.v14-auto-scroll-window--landing .v13-decision-demo__logic h4 {
  font-size: 26px;
}

.v14-auto-scroll-window--landing .v13-decision-demo__cards {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

.v14-auto-scroll-window--landing .v13-decision-demo__cards article {
  min-height: 132px;
  padding: 19px 14px;
}

.v14-auto-scroll-window--landing .v13-decision-demo__cards strong {
  font-size: 18px;
}

.v14-auto-scroll-window--landing .v13-decision-demo__logic > p {
  padding: 22px 16px;
  font-size: 16px;
}

.v14-auto-scroll-window--landing .v13-decision-demo__offer {
  padding: 28px 20px 32px;
  border-top: 1px solid #ddd;
  border-left: 0;
}

/* Keep the existing long-document reel visibly moving on iPhone Safari too. */
html.v14-motion-ready .v11-document-reel__track {
  -webkit-animation: v11-document-reel-scroll 24s linear infinite !important;
  animation: v11-document-reel-scroll 24s linear infinite !important;
  -webkit-animation-play-state: running !important;
  animation-play-state: running !important;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

@-webkit-keyframes v14-preview-auto-scroll {
  0%,
  10% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  44%,
  56% {
    -webkit-transform: translate3d(0, var(--v14-scroll-distance, 0px), 0);
    transform: translate3d(0, var(--v14-scroll-distance, 0px), 0);
  }

  90%,
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes v14-preview-auto-scroll {
  0%,
  10% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  44%,
  56% {
    -webkit-transform: translate3d(0, var(--v14-scroll-distance, 0px), 0);
    transform: translate3d(0, var(--v14-scroll-distance, 0px), 0);
  }

  90%,
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 700px) {
  .v14-auto-scroll-window--document {
    height: 250px;
  }

  .v14-auto-scroll-window--landing {
    height: min(64svh, 540px);
    min-height: 440px;
  }

  .v14-auto-scroll-window--benefit-prompt {
    height: 160px;
  }

  .v14-auto-scroll-window--benefit-document {
    height: 260px;
  }

  .v14-auto-scroll-window--benefit-reel {
    height: min(58svh, 460px);
    min-height: 420px;
  }

  .v14-auto-scroll-window--landing .v13-decision-demo__logic {
    padding: 26px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.v14-motion-ready .v14-auto-scroll-window.is-scrollable > img,
  html.v14-motion-ready .v14-auto-scroll-window.is-scrollable > .v13-decision-demo,
  html.v14-motion-ready .v14-auto-scroll-window.is-scrollable > .v14-auto-scroll-track {
    -webkit-animation: v14-preview-auto-scroll var(--v14-scroll-duration, 14s) cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
    animation: v14-preview-auto-scroll var(--v14-scroll-duration, 14s) cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
  }
}
