/* TapFor5 experience fixes v5 — safe product framing, exact savings and complete phone journey. */

/* Product media always remain fully visible, including during hover and reveal motion. */
.concept-media,
.comparison-card img,
.format-option img,
.bundle-media,
.gallery-thumbs button,
.step-visual,
.summary img,
.cart-line img,
.checkout-product-line img {
  background: #f3eee6;
}

.concept-media img,
.comparison-card img,
.format-option img,
.bundle-media img,
.gallery-thumbs img,
.step-visual img,
.summary img,
.cart-line img,
.checkout-product-line img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.concept-media img {
  padding: clamp(12px, 2.2vw, 26px);
}

.gallery-main .concept-media img,
.story-image img,
.package-image img,
.moment-visual .concept-media img,
.offer-media .concept-media img {
  padding: clamp(18px, 3vw, 38px);
}

.comparison-card img {
  padding: clamp(10px, 1.5vw, 18px);
}

.format-option img,
.gallery-thumbs img,
.cart-line img,
.checkout-product-line img,
.summary img {
  padding: 6px;
}

.step-visual img {
  padding: clamp(8px, 1.2vw, 14px);
}

.concept-media:hover img,
.comparison-card:hover img,
.mixed-bundle-card:hover .bundle-media img,
.steps-v2 article:hover .step-visual img,
.context-card:hover img {
  transform: none !important;
  filter: saturate(1.012) contrast(1.008);
}

.concept-media figcaption {
  top: 14px;
  bottom: auto;
}

.bundle-media img {
  padding: clamp(16px, 2.4vw, 30px);
}

.bundle-media > span {
  top: 13px;
  bottom: auto;
}

/* Context cards separate the complete product visual from their copy instead of masking it. */
.context-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.context-card::after {
  display: none;
}

.context-card img {
  position: relative;
  inset: auto;
  flex: 0 0 340px;
  width: 100%;
  height: 340px;
  padding: 16px;
  object-fit: contain;
  object-position: center;
  background: #f3eee6;
  transform: none;
}

.context-card > div {
  position: relative;
  inset: auto;
  margin-top: auto;
  padding: 24px 25px 26px;
}

.context-card > small {
  top: 12px;
  right: auto;
  left: 12px;
}

/* Savings remain legible in every commercial summary. */
.summary-row.savings {
  color: #167357;
  font-weight: 850;
}

.checkout-product-line em {
  margin-top: 3px;
  color: #167357;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

/* Hero demonstration: the scene is contained and never zooms through a product edge. */
.demo-scene-photo {
  object-fit: contain;
  object-position: center;
  padding: clamp(18px, 2.8vw, 36px);
  background: #f4efe7;
  animation: tapFor5SceneLight 10s ease-in-out infinite;
  will-change: filter;
}

.demo-phone,
.demo-large .demo-phone {
  opacity: 1;
  visibility: visible;
  animation: tapFor5PhoneJourney 10s cubic-bezier(.45, 0, .2, 1) infinite;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  background: #07162c;
}

.phone-screen {
  position: relative;
  isolation: isolate;
  color: #0b1d3a;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 207, 71, .2), transparent 30%),
    linear-gradient(155deg, #dce8fa 0%, #f9fbff 46%, #dae6f7 100%);
}

.phone-status {
  position: relative;
  z-index: 8;
}

.phone-wallpaper {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.phone-wallpaper span,
.phone-wallpaper i,
.phone-wallpaper b {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(.2px);
}

.phone-wallpaper span {
  width: 72%;
  aspect-ratio: 1;
  top: 18%;
  right: -28%;
  background: linear-gradient(145deg, rgba(36, 107, 254, .34), rgba(111, 155, 255, .08));
  box-shadow: 0 18px 46px rgba(36, 107, 254, .14);
}

.phone-wallpaper i {
  width: 54%;
  aspect-ratio: 1;
  left: -25%;
  bottom: 18%;
  background: linear-gradient(145deg, rgba(255, 198, 56, .28), rgba(255, 255, 255, .08));
}

.phone-wallpaper b {
  left: 16%;
  right: 16%;
  bottom: 9%;
  height: 18%;
  border: 1px solid rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 18px 38px rgba(11, 29, 58, .08);
  backdrop-filter: blur(8px);
}

.phone-notification {
  position: absolute;
  z-index: 5;
  top: 42px;
  right: 12px;
  left: 12px;
  margin: 0;
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  animation: tapFor5Notification 10s ease-in-out infinite;
}

.review-sheet {
  z-index: 6;
  height: 72%;
  padding: 18px 15px 15px;
  opacity: 0;
  transform: translateY(108%);
  animation: tapFor5ReviewSheet 10s cubic-bezier(.22, 1, .36, 1) infinite;
}

.review-form {
  position: relative;
  height: 100%;
  opacity: 1;
  animation: tapFor5ReviewForm 10s ease-in-out infinite;
}

.review-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-sheet-head span {
  color: #246bfe;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-sheet-head i {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #d7dfeb;
}

.review-sheet .review-form > strong {
  margin: 13px 0 12px;
  font-size: 14px;
  line-height: 1.24;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 5px 0 14px;
}

.review-stars span {
  color: #c9d0dc;
  font-size: 22px;
  line-height: 1;
  text-shadow: none;
  transform: scale(.92);
}

.review-stars span:nth-child(1) { animation: tapFor5StarOne 10s ease-in-out infinite; }
.review-stars span:nth-child(2) { animation: tapFor5StarTwo 10s ease-in-out infinite; }
.review-stars span:nth-child(3) { animation: tapFor5StarThree 10s ease-in-out infinite; }
.review-stars span:nth-child(4) { animation: tapFor5StarFour 10s ease-in-out infinite; }
.review-stars span:nth-child(5) { animation: tapFor5StarFive 10s ease-in-out infinite; }

.review-comment-preview {
  display: grid;
  gap: 6px;
  min-height: 43px;
  padding: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  background: #f8fafd;
}

.review-comment-preview div {
  height: 5px;
  border-radius: 999px;
  background: #dfe5ee;
}

.review-comment-preview div:last-child {
  width: 64%;
}

.review-submit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #758096;
  background: #e4e8ef;
  box-shadow: none;
  font-size: 9px;
  font-weight: 900;
  animation: tapFor5Submit 10s ease-in-out infinite;
}

.review-confirmation {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: scale(.94);
  animation: tapFor5Confirmation 10s ease-in-out infinite;
}

.review-confirmation > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  border-radius: 50%;
  color: #fff;
  background: #167357;
  box-shadow: 0 10px 24px rgba(22, 115, 87, .2);
  font-size: 20px;
}

.review-confirmation strong {
  margin: 0;
  color: #0b1d3a;
  font-size: 15px;
}

.review-confirmation small {
  color: #657086;
  font-size: 9px;
}

.tap-ripple {
  animation: tapFor5RippleV5 10s cubic-bezier(.2, .8, .2, 1) infinite;
}

.ripple-two {
  animation-delay: .18s;
}

@keyframes tapFor5SceneLight {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.018) saturate(1.012); }
}

@keyframes tapFor5PhoneJourney {
  0%, 12%, 100% { transform: translate3d(-10px, 3px, 0) rotate(-1deg); }
  24%, 78% { transform: translate3d(18px, -2px, 0) rotate(.45deg); }
  88% { transform: translate3d(8px, 0, 0) rotate(0deg); }
}

@keyframes tapFor5Notification {
  0%, 5% { opacity: 0; transform: translateY(-10px) scale(.97); }
  9%, 23% { opacity: 1; transform: translateY(0) scale(1); }
  25% { opacity: 1; transform: translateY(0) scale(.965); }
  29%, 100% { opacity: 0; transform: translateY(-2px) scale(.965); }
}

@keyframes tapFor5ReviewSheet {
  0%, 25% { opacity: 0; transform: translateY(108%); }
  31%, 94% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(108%); }
}

@keyframes tapFor5ReviewForm {
  0%, 78% { opacity: 1; transform: scale(1); }
  82%, 100% { opacity: 0; transform: scale(.98); }
}

@keyframes tapFor5StarOne {
  0%, 39% { color: #c9d0dc; transform: scale(.92); }
  42%, 95% { color: #f3bd31; transform: scale(1); text-shadow: 0 3px 9px rgba(243, 189, 49, .24); }
  100% { color: #c9d0dc; transform: scale(.92); }
}

@keyframes tapFor5StarTwo {
  0%, 45% { color: #c9d0dc; transform: scale(.92); }
  48%, 95% { color: #f3bd31; transform: scale(1); text-shadow: 0 3px 9px rgba(243, 189, 49, .24); }
  100% { color: #c9d0dc; transform: scale(.92); }
}

@keyframes tapFor5StarThree {
  0%, 51% { color: #c9d0dc; transform: scale(.92); }
  54%, 95% { color: #f3bd31; transform: scale(1); text-shadow: 0 3px 9px rgba(243, 189, 49, .24); }
  100% { color: #c9d0dc; transform: scale(.92); }
}

@keyframes tapFor5StarFour {
  0%, 57% { color: #c9d0dc; transform: scale(.92); }
  60%, 95% { color: #f3bd31; transform: scale(1); text-shadow: 0 3px 9px rgba(243, 189, 49, .24); }
  100% { color: #c9d0dc; transform: scale(.92); }
}

@keyframes tapFor5StarFive {
  0%, 63% { color: #c9d0dc; transform: scale(.92); }
  66%, 95% { color: #f3bd31; transform: scale(1); text-shadow: 0 3px 9px rgba(243, 189, 49, .24); }
  100% { color: #c9d0dc; transform: scale(.92); }
}

@keyframes tapFor5Submit {
  0%, 65% { color: #758096; background: #e4e8ef; transform: scale(1); }
  69%, 73% { color: #fff; background: #246bfe; transform: scale(1); box-shadow: 0 8px 18px rgba(36, 107, 254, .18); }
  76% { color: #fff; background: #1d5edc; transform: scale(.96); box-shadow: 0 3px 8px rgba(36, 107, 254, .14); }
  79%, 100% { color: #fff; background: #246bfe; transform: scale(1); }
}

@keyframes tapFor5Confirmation {
  0%, 80% { opacity: 0; transform: scale(.94); }
  84%, 94% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(.97); }
}

@keyframes tapFor5RippleV5 {
  0%, 12% { opacity: 0; transform: scale(.42); }
  18% { opacity: .62; }
  31%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 980px) {
  .context-card img {
    flex-basis: 310px;
    height: 310px;
  }
}

@media (max-width: 720px) {
  .concept-media img {
    padding: 14px;
  }

  .gallery-main .concept-media img,
  .story-image img,
  .package-image img,
  .moment-visual .concept-media img,
  .offer-media .concept-media img {
    padding: 20px;
  }

  .context-card {
    min-height: 410px;
  }

  .context-card img {
    flex-basis: 270px;
    height: 270px;
    padding: 12px;
  }

  .context-card > div {
    padding: 20px 21px 22px;
  }

  .demo-scene-photo {
    padding: 16px;
  }

  .demo-phone,
  .demo-large .demo-phone {
    width: 138px;
    animation-name: tapFor5PhoneJourneyMobile;
  }

  .review-sheet {
    padding: 14px 11px 11px;
  }

  .review-sheet .review-form > strong {
    margin: 9px 0 8px;
    font-size: 10px;
  }

  .review-stars {
    gap: 1px;
    margin: 3px 0 8px;
  }

  .review-stars span {
    font-size: 16px;
  }

  .review-comment-preview {
    min-height: 31px;
    padding: 7px;
  }

  .review-submit {
    min-height: 28px;
    font-size: 7px;
  }
}

@keyframes tapFor5PhoneJourneyMobile {
  0%, 12%, 100% { transform: translate3d(-5px, 2px, 0) rotate(-.8deg); }
  24%, 78% { transform: translate3d(8px, -1px, 0) rotate(.3deg); }
  88% { transform: translate3d(3px, 0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-scene-photo,
  .demo-phone,
  .phone-notification,
  .review-sheet,
  .review-form,
  .review-stars span,
  .review-submit,
  .review-confirmation,
  .tap-ripple {
    animation: none !important;
  }

  .demo-phone,
  .review-sheet {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .phone-notification,
  .review-form,
  .tap-ripple {
    opacity: 0;
  }

  .review-confirmation {
    opacity: 1;
    transform: none;
  }

  .review-stars span {
    color: #f3bd31;
    transform: none;
  }
}
