/* ================================================================
   /subscribes/{id}/details — minimal wallpaper integration.

   The page wears the home wallpaper body class for site identity,
   but the plan card itself stays at Bootstrap defaults (white
   surface, dark text) — the cleanest readable contrast against the
   wallpaper.

   Only the page-level header (above the card) is styled to match
   the home hero typography + palette.
   ================================================================ */

.subscribe-plan-info__mask {
  position: absolute;
  inset: 8px;
  bottom: -8px;
  border-radius: 16px;
  opacity: 0.2;
  background: var(--primary);
  z-index: 1;
}

/* ----------------------------------------------------------------
   PAGE HEADERS — only style applied in wallpaper context.
   ---------------------------------------------------------------- */
body.home-wallpaper-active .subscribe-details-header__title {
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 8px;
}
body.home-wallpaper-active .subscribe-details-header__sub {
  color: #f5d8ff;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.6;
  margin: 0;
}

/* Inner card surface → soft pink gradient from the wallpaper palette. */
body.home-wallpaper-active .subscribe-plan-info .bg-white {
  background: linear-gradient(180deg, #f5d8ff 0%, #ffffff 100%) !important;
}

/* Outer icon rings (around the subscribe / duration / count icons). */
body.home-wallpaper-active .subscribe-plan-info .bg-gray-200 {
  background: #ffffff !important;
}

/* Plan info labels — same scale, two-tier hierarchy. */
body.home-wallpaper-active .subscribe-plan-info .subscribe-plan-info__primary {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
body.home-wallpaper-active .subscribe-plan-info .subscribe-plan-info__sub {
  color: #c13fd8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
/* Limitation section heading — two steps larger than the
   in-card primary labels. */
body.home-wallpaper-active .subscribe-plan-info .subscribe-plan-info__section-title {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
body.home-wallpaper-active .subscribe-plan-info .subscribe-plan-info__section-desc {
  color: #c13fd8;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

/* Course / category tile cards inside the limitations grid. */
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 {
  background: var(--primary);
  border: 1.5px solid var(--primary) !important;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease;
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(62, 0, 95, 0.20);
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 h6,
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 h6.text-dark {
  color: #ffffff !important;
  font-weight: 700;
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 p,
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 p.text-gray-500 {
  color: #c13fd8 !important;
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 .bg-gray-200 {
  background: rgba(255, 255, 255, 0.20) !important;
  width: 56px !important;
  height: 56px !important;
  overflow: hidden;
  flex-shrink: 0;
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 .bg-gray-200 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 svg.text-gray-500,
body.home-wallpaper-active .subscribe-plan-info .border-gray-200 .icons.text-gray-500 {
  color: #ffffff !important;
}

/* Divider above the limitations section. */
body.home-wallpaper-active .subscribe-plan-info .border-top-gray-200 {
  border-top: 3px solid #ffffff !important;
}

/* Purchase button — match the curriculum-pricing CTA shape
   (see .cp-tier__cta in landingBuilder/curriculum_pricing/style.css). */
body.home-wallpaper-active .subscribe-plan-info .btn-primary {
  min-width: 160px;
  padding: 12px 28px !important;
  border-radius: 100px !important;
  background: var(--primary) !important;
  color: var(--primary-btn-color) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(62, 0, 95, 0.25);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, background-image .2s ease;
}
body.home-wallpaper-active .subscribe-plan-info .btn-primary:hover,
body.home-wallpaper-active .subscribe-plan-info .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: var(--primary-btn-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.30);
}

/* Dark mode — header only. */
body.home-wallpaper-active.dark-mode .subscribe-details-header__title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(20, 0, 40, 0.30);
}
body.home-wallpaper-active.dark-mode .subscribe-details-header__sub {
  color: rgba(255, 255, 255, 0.85);
}
