/* Independent depth planes, held briefly in view during scrolling.
   Static and short-screen layouts remain in normal document flow. */
.prepaid-hero {
  --hero-top: 88px;
  --stage-height: calc(100svh - var(--hero-top));
  --scroll-travel: clamp(280px, 45vh, 440px);
}
.prepaid-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 28px 24px;
}
.prepaid-hero.is-parallax {
  height: calc(var(--stage-height) + var(--scroll-travel));
}
.is-parallax .prepaid-stage {
  position: sticky;
  top: var(--hero-top);
  height: var(--stage-height);
}
.prepaid-label {
  flex-shrink: 0;
  color: var(--blue);
  text-align: center;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.prepaid-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1080px;
  height: clamp(430px, 50vw, 620px);
  margin: 8px auto;
}
.is-parallax .prepaid-scene {
  flex: 1;
  min-height: 0;
  max-height: 620px;
  height: auto;
}
.prepaid-glow {
  position: absolute;
  z-index: 0;
  inset: 2% 0 2% 25%;
  background: radial-gradient(ellipse, #eaf0ff 0%, #f4f6ff 38%, #fff0 70%);
  pointer-events: none;
}
.prepaid-word-back,
.prepaid-word-front {
  position: absolute;
  display: block;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.075em;
  pointer-events: none;
}
.prepaid-word-back {
  z-index: 1;
  top: 0;
  left: 3%;
  color: var(--navy);
  font-size: min(26vw, 310px, 39vh);
}
.prepaid-card {
  position: absolute;
  z-index: 2;
  top: 28%;
  left: 54%;
  width: min(42%, 430px, 55vh);
  transform-origin: center;
  transform: rotate(-10deg);
}
.prepaid-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 26px 22px #111a4533);
}
.prepaid-word-front {
  z-index: 3;
  bottom: 9%;
  left: 8%;
  color: var(--blue);
  font-size: min(17vw, 198px, 27vh);
  /* The fine white edge keeps lettering legible across the card. */
  -webkit-text-stroke: 3px white;
  paint-order: stroke fill;
}
.prepaid-hero-footer {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.prepaid-hero-footer p {
  font-size: 12px;
  color: var(--muted);
}
.prepaid-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 750;
  color: var(--navy);
}
.prepaid-hero-link .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
  transform: rotate(90deg);
}
.prepaid-hero-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (min-width: 651px) and (max-width: 900px) {
  .prepaid-hero { --hero-top: 76px; }
}
@media (max-width: 650px) {
  .prepaid-hero { --hero-top: 72px; }
  .prepaid-stage { padding-block: 24px 18px; }
  .prepaid-label { font-size: 13px; letter-spacing: .14em; }
  .prepaid-scene {
    height: clamp(370px, 96vw, 540px);
    max-width: 500px;
    margin-block: 16px 12px;
  }
  .is-parallax .prepaid-scene { max-height: 540px; }
  .prepaid-glow { inset: 8% -2% 6% 0; }
  .prepaid-word-back {
    left: 6%;
    font-size: clamp(105px, 30vw, 180px);
  }
  .prepaid-card {
    top: 32%;
    left: 16%;
    width: 76%;
    transform: rotate(-8deg);
  }
  .prepaid-card img { border-radius: 12px; }
  .prepaid-word-front {
    bottom: 6%;
    left: 6%;
    font-size: clamp(74px, 21vw, 123px);
    -webkit-text-stroke-width: 2px;
  }
  .prepaid-hero-footer {
    flex-direction: column;
    gap: 4px;
  }
  .prepaid-hero-footer p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .prepaid-hero.is-parallax { height: auto; }
  .is-parallax .prepaid-stage { position: static; height: auto; }
  .is-parallax .prepaid-scene { flex: none; height: clamp(430px, 50vw, 620px); }
  .prepaid-card { transform: none; }
}
@media print {
  .prepaid-hero.is-parallax { height: auto; }
  .prepaid-stage,
  .is-parallax .prepaid-stage { position: static; height: auto; padding-block: 20px; }
  .prepaid-hero #product-title {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    white-space: normal;
    font-size: 44px;
    text-align: center;
    margin-block: 12px;
  }
  .prepaid-scene,
  .prepaid-hero-link { display: none; }
  .prepaid-hero-footer { justify-content: center; }
}

/* The existing studio card model floats independently of document scrolling. */
.prepaid-card.prepaid-card-3d { top: 20%; left: 43%; width: min(57%, 600px); aspect-ratio: 1.4; transform: none; }
.prepaid-card-3d img { border-radius: 0; filter: none; }
.prepaid-card-canvas { position: absolute; inset: 0; }
.prepaid-card-canvas canvas { display: block; width: 100%; height: 100%; }
.prepaid-card-3d[data-state="ready"] img { visibility: hidden; }
@media(max-width:650px) {
  .prepaid-card.prepaid-card-3d { top: 26%; left: 4%; width: 96%; }
}
