/* v11: continuously moving Psychology AI document preview */
.v11-document-reel {
  width: min(100%, 880px);
  margin: 54px auto 0;
  overflow: hidden;
  color: #fff;
  background: #111114;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow:
    12px 12px 0 var(--yellow),
    0 26px 70px rgba(9, 9, 9, 0.2);
  isolation: isolate;
}

.v11-document-reel__chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.72);
  background: #09090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.v11-document-reel__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
}

.v11-document-reel__status::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 60, 46, 0.55);
  animation: v11-document-reel-pulse 1.8s ease-out infinite;
}

.v11-document-reel__viewport {
  position: relative;
  height: clamp(560px, 72vw, 820px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(117, 76, 255, 0.13), transparent 18%),
    #e9e7e3;
}

.v11-document-reel__viewport::before,
.v11-document-reel__viewport::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 54px;
  content: "";
  pointer-events: none;
}

.v11-document-reel__viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.42), transparent);
}

.v11-document-reel__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(9, 9, 11, 0.42), transparent);
}

.v11-document-reel__track {
  display: block;
  width: 100%;
  animation: v11-document-reel-scroll 30s linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.v11-document-reel__set {
  display: grid;
  gap: 18px;
  padding: 18px 18px 0;
}

.v11-document-reel__set::after {
  height: 18px;
  content: "";
}

.v11-document-reel__page {
  position: relative;
  margin: 0;
  overflow: hidden;
  color: #1b1b1f;
  background: #fff;
  border: 1px solid rgba(9, 9, 9, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(9, 9, 9, 0.17);
}

.v11-document-reel__page img {
  width: 100%;
  height: auto;
  background: #fff;
}

.v11-document-reel__page figcaption {
  position: relative;
  z-index: 1;
  padding: 14px 18px 16px;
  color: #fff;
  background: #111114;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.v11-document-reel__hint {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 20px 16px;
  color: rgba(255, 255, 255, 0.68);
  background: #09090b;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

@keyframes v11-document-reel-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes v11-document-reel-pulse {
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 60, 46, 0);
  }
}

@media (max-width: 700px) {
  .v11-document-reel {
    width: calc(100% + 16px);
    margin-top: 38px;
    margin-left: -8px;
    border-width: 2px;
    border-radius: 20px;
    box-shadow:
      7px 7px 0 var(--yellow),
      0 20px 50px rgba(9, 9, 9, 0.18);
  }

  .v11-document-reel__chrome {
    min-height: 52px;
    padding: 12px 13px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .v11-document-reel__viewport {
    height: min(68svh, 620px);
    min-height: 470px;
  }

  .v11-document-reel__set {
    gap: 10px;
    padding: 10px 10px 0;
  }

  .v11-document-reel__set::after {
    height: 10px;
  }

  .v11-document-reel__page {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(9, 9, 9, 0.15);
  }

  .v11-document-reel__page figcaption {
    padding: 12px 13px 14px;
    font-size: 13px;
  }

  .v11-document-reel__hint {
    padding: 12px 14px 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v11-document-reel__track {
    animation-duration: 30s !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }
}
