/* KEDAICDID R358 — playful, low-jank entrance motion for Testimonials and Terms. */
:root {
  --kcd-r358-ease: cubic-bezier(.2,.82,.22,1);
  --kcd-r358-pop-ease: cubic-bezier(.18,.9,.3,1.16);
}

@keyframes kcd-r358-welcome-rise {
  0% { opacity: 0; transform: translate3d(0,18px,0) scale(.975); filter: blur(3px); }
  72% { opacity: 1; transform: translate3d(0,-2px,0) scale(1.012); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

@keyframes kcd-r358-review-fallback {
  0% { opacity: 0; transform: translate3d(0,20px,0) scale(.965); filter: blur(2px); }
  74% { opacity: 1; transform: translate3d(0,-2px,0) scale(1.012); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

@keyframes kcd-r358-term-from-left {
  0% { opacity: 0; transform: translate3d(-20px,12px,0) scale(.965); filter: blur(2px); }
  72% { opacity: 1; transform: translate3d(2px,-2px,0) scale(1.014); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

@keyframes kcd-r358-term-from-right {
  0% { opacity: 0; transform: translate3d(20px,12px,0) scale(.965); filter: blur(2px); }
  72% { opacity: 1; transform: translate3d(-2px,-2px,0) scale(1.014); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

@keyframes kcd-r358-term-detail-rise {
  0% { opacity: 0; transform: translate3d(0,22px,0) scale(.985); filter: blur(2px); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: none; }
}

@keyframes kcd-r358-term-icon-bounce {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  34% { transform: translateY(-4px) rotate(-5deg) scale(1.08); }
  68% { transform: translateY(1px) rotate(3deg) scale(.98); }
}

@keyframes kcd-r358-heading-sparkle {
  0%, 100% { opacity: 0; transform: translate3d(0,4px,0) scale(.55) rotate(-20deg); }
  35%, 70% { opacity: 1; transform: translate3d(0,0,0) scale(1) rotate(12deg); }
}

/* Testimoni: the title and review-access panel greet the visitor without moving layout. */
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni .kcd-r358-intro-enter,
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-r358-intro-enter {
  animation: kcd-r358-welcome-rise 620ms var(--kcd-r358-ease) var(--kcd-r358-intro-delay,0ms) both !important;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni .kcd-r115-review-heading.kcd-r358-intro-enter::after {
  content: "✦";
  display: inline-block;
  margin-left: .32em;
  color: var(--kcd-accent,#a64dff);
  vertical-align: .16em;
  font-size: .62em;
  animation: kcd-r358-heading-sparkle 760ms ease 260ms both;
}

/* The current review renderer preserves old cards and only queues fresh cards.
   These stronger states make its reveal visible: fade + lift + gentle pop. */
html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-review-managed.kcd-review-waiting {
  opacity: 0 !important;
  transform: translate3d(0,22px,0) scale(.965) !important;
  filter: blur(1.8px) saturate(.92) !important;
  transition: none !important;
  pointer-events: none !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-review-managed.kcd-review-enter {
  opacity: 1 !important;
  transform: translate3d(0,0,0) scale(1) !important;
  filter: blur(0) saturate(1) !important;
  transition:
    opacity 560ms cubic-bezier(.22,1,.36,1) var(--kcd-review-delay,0ms),
    transform 650ms var(--kcd-r358-pop-ease) var(--kcd-review-delay,0ms),
    filter 520ms ease var(--kcd-review-delay,0ms) !important;
  pointer-events: auto !important;
  will-change: opacity, transform, filter;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-r358-review-fallback {
  animation: kcd-r358-review-fallback 590ms var(--kcd-r358-pop-ease) var(--kcd-r358-review-delay,0ms) both !important;
}

/* Syarat: alternate entry directions, then softly settle the selected detail. */
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-tab.kcd-r358-term-enter:nth-child(odd) {
  animation: kcd-r358-term-from-left 570ms var(--kcd-r358-pop-ease) var(--kcd-r358-term-delay,0ms) both !important;
  backface-visibility: hidden;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-tab.kcd-r358-term-enter:nth-child(even) {
  animation: kcd-r358-term-from-right 570ms var(--kcd-r358-pop-ease) var(--kcd-r358-term-delay,0ms) both !important;
  backface-visibility: hidden;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-tab.kcd-r358-term-enter > i {
  animation: kcd-r358-term-icon-bounce 520ms var(--kcd-r358-pop-ease) calc(var(--kcd-r358-term-delay,0ms) + 130ms) both;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-detail.kcd-r358-term-detail-enter {
  animation: kcd-r358-term-detail-rise 520ms var(--kcd-r358-ease) var(--kcd-r358-term-detail-delay,0ms) both !important;
  backface-visibility: hidden;
}
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-hero h1,
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-hero h2,
html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-hero p {
  backface-visibility: hidden;
}

@media (max-width: 780px) {
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni .kcd-r358-intro-enter,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-r358-intro-enter {
    animation-duration: 500ms !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-review-managed.kcd-review-waiting {
    transform: translate3d(0,16px,0) scale(.975) !important;
    filter: blur(1px) !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-review-managed.kcd-review-enter {
    transition-duration: 480ms, 540ms, 450ms !important;
  }
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-tab.kcd-r358-term-enter {
    animation-duration: 480ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni .kcd-r358-intro-enter,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-r358-intro-enter,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-r358-review-fallback,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-r358-term-enter,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-r358-term-detail-enter,
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #syarat .kcd-terms-v69-tab.kcd-r358-term-enter > i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #testimoni #testi-container .testi-card.kcd-review-managed:is(.kcd-review-waiting,.kcd-review-enter) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}
