/* Product detail preview for the existing kiosk model. */
.anjungan-hero {
  background: radial-gradient(circle at 78% 34%, #e3f1eb 0, #f7faf8 43%, #fff 75%);
}

.anjungan-hero .pos-hero-content {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
}

.anjungan-hero-copy {
  min-width: 0;
}

.anjungan-hero .pos-hero-title {
  font-size: clamp(36px, 4.4vw, 58px);
}

.anjungan-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e2dc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px -35px rgba(15, 38, 34, 0.4), 0 8px 22px -15px rgba(15, 38, 34, 0.2);
}

.anjungan-preview-header,
.anjungan-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
}

.anjungan-preview-header > div {
  display: grid;
  gap: 3px;
}

.anjungan-preview-eyebrow {
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.anjungan-preview-header strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.anjungan-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
}

.anjungan-preview-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.anjungan-preview-stage {
  aspect-ratio: 5 / 6;
  background: #e8ece9;
  overflow: hidden;
}

.anjungan-preview-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.anjungan-preview-footer {
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.anjungan-preview-footer a {
  flex: 0 0 auto;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.anjungan-preview-footer a:hover,
.anjungan-preview-footer a:focus-visible {
  color: #065f46;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .anjungan-hero .pos-hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .anjungan-preview-card {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .anjungan-hero .pos-hero-content {
    gap: 24px;
  }

  .anjungan-hero .pos-hero-title {
    font-size: clamp(32px, 8vw, 38px);
  }

  .anjungan-preview-card {
    border-radius: 16px;
  }

  .anjungan-preview-header,
  .anjungan-preview-footer {
    padding: 12px 14px;
  }

  .anjungan-preview-footer {
    align-items: flex-start;
  }
}

/* Scroll motion stays isolated to the Anjungan detail page. */
.anjungan-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: 3px;
  background: linear-gradient(90deg, #059669, #06b6d4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

html.anjungan-motion-ready .anjungan-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.anjungan-motion-ready .anjungan-preview-card.anjungan-reveal {
  transform: translate3d(28px, 0, 0);
  filter: none;
}

html.anjungan-motion-ready .anjungan-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

@media (max-width: 768px) {
  html.anjungan-motion-ready .anjungan-reveal {
    transform: translate3d(0, 14px, 0);
    filter: none;
  }

  html.anjungan-motion-ready .anjungan-reveal.is-visible {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anjungan-scroll-progress {
    display: none;
  }

  html.anjungan-motion-ready .anjungan-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
