/* Panggung animasi Google Bisnis: satu ikon besar bergantian di kiri. */
.stage {
  position: relative;
  width: 100%;
  height: 10rem;
  margin-block: 0.4rem 0.4rem;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.scene.active {
  opacity: 1;
}

.scene-t {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(242, 242, 242, 0.167);
  text-align: left;
}

.big {
  position: relative;
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* --- Profil lengkap --- */
.b-profile .ico {
  width: 5.6rem;
  height: 5.6rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  transform-origin: 50% 50%;
}

.b-profile .chk {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
  transform-origin: 50% 50%;
}

.b-profile .chk svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Foto dan produk --- */
.b-photo .ph {
  position: absolute;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.32)
  );
  border: 1px solid var(--glass-hi);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.b-photo .p1 {
  left: 0.5rem;
  top: 0.55rem;
}
.b-photo .p2 {
  left: 3rem;
  top: 2.25rem;
}

/* --- Kartu NFC --- */
.b-nfc .nfc {
  position: relative;
  z-index: 2;
  width: 4.3rem;
  height: 2.85rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.62));
  border: 1px solid var(--glass-hi);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.b-nfc .nfc svg {
  width: 1.5rem;
  height: 1.75rem;
  fill: none;
  stroke: #0f1012;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.b-nfc .tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.9rem;
  height: 4.9rem;
  margin: -2.45rem 0 0 -2.45rem;
  border-radius: 50%;
  border: 2.5px solid var(--wave);
  opacity: 0;
}

/* --- Bintang --- */
.b-stars {
  gap: 0.1rem;
}

.b-stars svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: var(--gold);
  stroke: none;
  transform-origin: 50% 50%;
}

/* --- Animasi masuk per scene --- */
.scene.active .b-profile .ico {
  animation: sceneIn 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}
.scene.active .b-profile .chk {
  animation: scenePop 0.45s 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

.scene.active .b-photo .p1 {
  animation: slideA 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}
.scene.active .b-photo .p2 {
  animation: slideB 0.6s 0.16s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}

.scene.active .b-nfc .nfc {
  animation: nfcTap 1.15s ease-out both;
}
.scene.active .b-nfc .tap {
  animation: nfcRipple 1.15s 0.12s ease-out both;
}

.scene.active .b-stars svg {
  animation: scenePop 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.scene.active .b-stars svg:nth-child(1) {
  animation-delay: 0s;
}
.scene.active .b-stars svg:nth-child(2) {
  animation-delay: 0.14s;
}
.scene.active .b-stars svg:nth-child(3) {
  animation-delay: 0.28s;
}
.scene.active .b-stars svg:nth-child(4) {
  animation-delay: 0.42s;
}
.scene.active .b-stars svg:nth-child(5) {
  animation-delay: 0.56s;
}

@keyframes sceneIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scenePop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  60% {
    opacity: 1;
    transform: scale(1.22);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideA {
  0% {
    opacity: 0;
    transform: translate(-1.4rem, 0.9rem) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideB {
  0% {
    opacity: 0;
    transform: translate(1.2rem, -0.7rem) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes nfcTap {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  22% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    transform: scale(0.82);
  }
  62% {
    transform: scale(1);
  }
  78% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nfcRipple {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

/* Heading di atas konten saat accordion terbuka */
.pkg-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  order: -1;
}
.pkg-head h2 {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 700;
}
.pkg-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .stage {
    height: 11rem;
  }
  .big {
    width: 7.6rem;
    height: 7.6rem;
  }
  .b-profile .ico {
    width: 6.1rem;
    height: 6.1rem;
  }
  .b-profile .chk {
    width: 2.3rem;
    height: 2.3rem;
  }
  .b-profile .chk svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .b-photo .ph {
    width: 3.6rem;
    height: 3.6rem;
  }
  .b-photo .p1 {
    left: 0.55rem;
    top: 0.6rem;
  }
  .b-photo .p2 {
    left: 3.3rem;
    top: 2.45rem;
  }
  .b-nfc .nfc {
    width: 4.7rem;
    height: 3.1rem;
  }
  .b-nfc .nfc svg {
    width: 1.65rem;
    height: 1.9rem;
  }
  .b-nfc .tap {
    width: 5.4rem;
    height: 5.4rem;
    margin: -2.7rem 0 0 -2.7rem;
  }
  .b-stars svg {
    width: 1.42rem;
    height: 1.42rem;
  }
}
