/* ==========================================================================
   RECOVERY PROGRAMS PAGE — Page-Specific Stylesheet
   ========================================================================== */

/* Page Background Setup */
.recovery-programs-page {
  background-color: #ffffff;
  color: var(--color-text-main, #ffffff);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Hero Section Shell & Dark Purple Backdrop
   -------------------------------------------------------------------------- */
.rp-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  background:
    radial-gradient(ellipse 90% 80% at 75% 42%, rgba(139, 92, 246, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 30% 30%, rgba(88, 28, 180, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 75% 35%, #2a0b63 0%, #17073b 45%, #0c0626 85%);
  background-color: #0c0626;
  overflow: clip;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rp-hero .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.rp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Ambient Effects: Glows, Stars & Pulses
   -------------------------------------------------------------------------- */
.rp-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(70px);
}

.rp-hero__glow--1 {
  top: 12%;
  right: 15%;
  width: min(520px, 65vw);
  height: min(520px, 65vw);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 70%);
  animation: rpGlowPulse 7s ease-in-out infinite;
}

.rp-hero__glow--2 {
  top: 30%;
  left: 5%;
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  animation: rpGlowPulse 9s ease-in-out 1.5s infinite alternate;
}

.rp-hero__glow--phone {
  top: 48%;
  right: 8%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, rgba(124, 58, 237, 0.1) 60%, transparent 80%);
  animation: rpGlowPulse 6s ease-in-out 0.8s infinite;
}

/* Decorative Sparkle Stars */
.rp-hero__star {
  position: absolute;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 2;
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: rpStarPulse 3.6s ease-in-out infinite;
}

.rp-hero__star--1 {
  top: 16%;
  left: 8%;
  animation-delay: 0s;
  font-size: 1rem;
}

.rp-hero__star--2 {
  top: 22%;
  left: 45%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  animation-delay: 1.2s;
}

.rp-hero__star--3 {
  top: 14%;
  right: 28%;
  color: rgba(224, 231, 255, 0.85);
  font-size: 1.4rem;
  animation-delay: 0.6s;
}

.rp-hero__star--4 {
  top: 38%;
  right: 6%;
  color: rgba(216, 180, 254, 0.75);
  font-size: 1.25rem;
  animation-delay: 2s;
}

.rp-hero__star--5 {
  bottom: 22%;
  right: 42%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  animation-delay: 1.6s;
}

/* --------------------------------------------------------------------------
   Hero Left Column & Staggered Animations
   -------------------------------------------------------------------------- */
.rp-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  z-index: 5;
}

/* Badge */
.rp-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.15rem;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.32);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9d5ff;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
  animation: rpFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Heading */
.rp-hero__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.5vw + 0.5rem, 3.75rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.35rem;
  animation: rpFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.rp-hero__gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Description */
.rp-hero__description {
  font-size: clamp(1.025rem, 1.2vw, 1.15rem);
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.9);
  max-width: 540px;
  margin-bottom: 2.25rem;
  font-weight: 400;
  animation: rpFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* --------------------------------------------------------------------------
   3 Benefit Items
   -------------------------------------------------------------------------- */
.rp-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  width: 100%;
  animation: rpFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.rp-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: -1 1 200px;
  min-width: 180px;
}

.rp-benefit-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.rp-benefit-card:hover .rp-benefit-card__icon {
  transform: translateY(-2px) scale(1.05);
  background: rgba(139, 92, 246, 0.26);
  border-color: rgba(196, 181, 253, 0.45);
  color: #e9d5ff;
}

.rp-benefit-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rp-benefit-card__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.rp-benefit-card__desc {
  font-size: 0.825rem;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Hero Right Column (Visual Stage, Orbit Rings, Phone, Quote)
   -------------------------------------------------------------------------- */
.rp-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  animation: rpFadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.rp-hero__stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

/* Concentric Glowing Orbit Rings */
.rp-hero__orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.rp-hero__orbit-ring--outer {
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(168, 85, 247, 0.24);
  animation: rpOrbitSpin 60s linear infinite;
}

.rp-hero__orbit-ring--mid {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15) inset;
}

.rp-hero__orbit-ring--inner {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Phone Mockup Platform & Image */
.rp-hero__phone-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rpPhoneFloat 6s ease-in-out infinite;
}

.rp-hero__phone-platform {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 40px;
  background: radial-gradient(ellipse 60% 50% at center, rgba(168, 85, 247, 0.75) 0%, rgba(124, 58, 237, 0.3) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  animation: rpPlatformPulse 6s ease-in-out infinite;
}

.rp-hero__phone-img {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
  transition: transform 0.4s ease;
}

.rp-hero__phone-img:hover {
  transform: scale(1.02);
}

/* Floating Quote Card */
.rp-hero__quote-card {
  position: absolute;
  right: -10px;
  bottom: 22%;
  width: 150px;
  background: rgba(30, 15, 65, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 18px;
  padding: 1.25rem 1.15rem;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(147, 51, 234, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: rpQuoteFloat 5s ease-in-out 0.5s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rp-hero__quote-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(168, 85, 247, 0.4);
}

.rp-hero__quote-icon {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #c084fc;
  opacity: 0.85;
}

.rp-hero__quote-text {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.42;
  color: #ffffff;
}

.rp-hero__quote-heart {
  color: #a855f7;
  display: flex;
  align-items: center;
  margin-top: 0.2rem;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.5));
}

/* --------------------------------------------------------------------------
   Curved Bottom Edge
   -------------------------------------------------------------------------- */
.rp-hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 8;
  pointer-events: none;
}

.rp-hero__curve svg {
  display: block;
  width: 100%;
  height: clamp(50px, 6vw, 90px);
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes rpFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rpPhoneFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes rpPlatformPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) scale(0.88);
    opacity: 0.5;
  }
}

@keyframes rpQuoteFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes rpGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes rpStarPulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.95;
  }
}

@keyframes rpOrbitSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ==========================================================================
   PHASE 2 — OUR PROGRAMS SECTION & 8 CARDS GRID
   ========================================================================== */

.rp-programs {
  position: relative;
  background-color: #ffffff;
  padding: 6.5rem 0 7rem;
  color: var(--color-text-dark, #0f172a);
}

.rp-programs .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.rp-programs__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.rp-programs__eyebrow {
  display: inline-block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.75rem;
}

.rp-programs__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 3.2vw + 0.5rem, 2.75rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.rp-programs__description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}

/* 4-Column Grid */
.rp-programs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* Program Card Styling */
.rp-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 1.75rem 2rem;
  border: 1px solid #f1f5f9;
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  position: relative;
  will-change: transform, box-shadow;
}

.rp-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 40px -10px rgba(124, 58, 237, 0.12),
    0 8px 16px -4px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
}

/* Circular Icon Containers */
.rp-card__icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.rp-card__icon {
  width: 28px;
  height: 28px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-card:hover .rp-card__icon-wrapper {
  transform: scale(1.08);
}

.rp-card:hover .rp-card__icon {
  transform: scale(1.05);
}

/* Card Color Variants */
.rp-card--blue .rp-card__icon-wrapper {
  background: #e0f2fe;
  color: #0284c7;
}

.rp-card--green .rp-card__icon-wrapper {
  background: #dcfce7;
  color: #16a34a;
}

.rp-card--purple .rp-card__icon-wrapper {
  background: #f3e8ff;
  color: #9333ea;
}

.rp-card--orange .rp-card__icon-wrapper {
  background: #ffedd5;
  color: #ea580c;
}

.rp-card--pink .rp-card__icon-wrapper {
  background: #ffe4e6;
  color: #e11d48;
}

.rp-card--amber .rp-card__icon-wrapper {
  background: #fef3c7;
  color: #d97706;
}

.rp-card--cyan .rp-card__icon-wrapper {
  background: #ccfbf1;
  color: #0d9488;
}

.rp-card--indigo .rp-card__icon-wrapper {
  background: #e0e7ff;
  color: #4f46e5;
}

/* Card Title */
.rp-card__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

/* Card Description */
.rp-card__desc {
  font-size: 0.885rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Card Link & Arrow */
.rp-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: #7c3aed;
  transition: color 0.25s ease;
  margin-top: auto;
}

.rp-card__arrow {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-card:hover .rp-card__link {
  color: #6d28d9;
}

.rp-card:hover .rp-card__arrow {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Scroll Reveal & Stagger Animation (Phase 2)
   -------------------------------------------------------------------------- */
.rp-reveal-header {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-reveal-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.rp-reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* If JavaScript isn't executed or disabled, show immediately */
html:not(.leap-js) .rp-reveal-header,
html:not(.leap-js) .rp-reveal-card {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   PHASE 3 — COMMUNITY BANNER, WHY THOUSANDS CHOOSE LEAP, DOWNLOAD CTA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Community Banner
   -------------------------------------------------------------------------- */
.rp-community {
  background-color: #ffffff;
  padding: 0 0 5rem;
}

.rp-community .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rp-community-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.rp-community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.12);
  border-color: #cbd5e1;
}

.rp-community-card__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.rp-community-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.rp-community-card:hover .rp-community-card__icon {
  transform: scale(1.06);
}

.rp-community-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rp-community-card__heading {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

.rp-community-card__sub {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.rp-btn-community {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #7c3aed;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  border: 1.5px solid #ddd6fe;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

.rp-btn-community:hover {
  transform: translateY(-2px) scale(1.02);
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

/* --------------------------------------------------------------------------
   2. Why Thousands Choose LEAP
   -------------------------------------------------------------------------- */
.rp-why-choose {
  background-color: #ffffff;
  padding: 3rem 0 6.5rem;
}

.rp-why-choose .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rp-why-choose__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.85rem, 2.8vw + 0.5rem, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.rp-why-choose__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.rp-why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.rp-why-item:hover {
  transform: translateY(-3px);
}

.rp-why-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.rp-why-item:hover .rp-why-item__icon {
  transform: scale(1.08);
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.rp-why-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rp-why-item__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.975rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.rp-why-item__desc {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3. Download CTA Banner
   -------------------------------------------------------------------------- */
.rp-cta {
  background-color: #ffffff;
  padding: 0 0 6rem;
  position: relative;
}

.rp-cta .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rp-cta-banner {
  position: relative;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #5b21b6 100%);
  border-radius: 24px;
  padding: 2.75rem 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
  box-shadow:
    0 24px 48px -12px rgba(109, 40, 217, 0.45),
    0 12px 24px -8px rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Moving radial background glow in CTA */
.rp-cta-banner__glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 30% 50%, rgba(192, 132, 252, 0.3) 0%, rgba(147, 51, 234, 0.15) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  animation: rpCtaGlowFloat 16s ease-in-out infinite alternate;
}

/* Subtle sparkle stars in CTA */
.rp-cta-banner__sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
  font-size: 1rem;
  line-height: 1;
  animation: rpStarPulse 4s ease-in-out infinite;
}

.rp-cta-banner__sparkle--1 {
  top: 22%;
  left: 8%;
  animation-delay: 0.3s;
  font-size: 1.1rem;
}

.rp-cta-banner__sparkle--2 {
  bottom: 25%;
  left: 16%;
  color: rgba(250, 204, 21, 0.7);
  animation-delay: 1.4s;
  font-size: 1.25rem;
}

.rp-cta-banner__sparkle--3 {
  top: 28%;
  right: 38%;
  animation-delay: 2.2s;
}

/* Jumping character emblem */
.rp-cta-banner__emblem {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-cta-banner__emblem-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  animation: rpEmblemBounce 4s ease-in-out infinite;
}

/* Center Content */
.rp-cta-banner__content {
  position: relative;
  z-index: 5;
  color: #ffffff;
}

.rp-cta-banner__title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.65rem, 2.4vw + 0.5rem, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.rp-cta-banner__text {
  font-size: 1.025rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

/* Right App Store & Google Play Buttons */
.rp-cta-banner__stores {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rp-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease;
  min-width: 165px;
  text-decoration: none;
}

.rp-store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #f8fafc;
}

.rp-store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.rp-store-btn--apple svg {
  fill: #000000;
}

.rp-store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.rp-store-btn__sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rp-store-btn__main {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Classes for Phase 3
   -------------------------------------------------------------------------- */
.rp-reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.rp-reveal-why-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-reveal-why-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes for Phase 3 */
@keyframes rpCtaGlowFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6%, 4%) scale(1.08);
  }

  100% {
    transform: translate(-4%, 6%) scale(0.95);
  }
}

@keyframes rpEmblemBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* --------------------------------------------------------------------------
   Comprehensive Responsive System
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .rp-hero__grid {
    gap: 2rem 2.5rem;
  }

  .rp-programs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .rp-why-choose__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .rp-hero {
    padding-top: 7rem;
    padding-bottom: 6rem;
    min-height: auto;
  }

  .rp-hero__grid {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }

  .rp-hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .rp-hero__benefits {
    justify-content: center;
  }

  .rp-benefit-card {
    text-align: left;
    max-width: 260px;
  }

  .rp-hero__stage {
    max-width: 440px;
    margin: 0 auto;
  }

  .rp-hero__phone-img {
    max-width: 280px;
  }

  .rp-hero__quote-card {
    right: 0;
    bottom: 18%;
    width: 135px;
    padding: 1rem;
  }

  .rp-cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }

  .rp-cta-banner__emblem {
    display: none;
  }

  .rp-cta-banner__stores {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .rp-community-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .rp-community-card__left {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .rp-why-choose__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .rp-hero {
    padding-top: 6rem;
    padding-bottom: 4.5rem;
  }

  .rp-hero__badge {
    margin-bottom: 1.1rem;
  }

  .rp-hero__title {
    font-size: clamp(2rem, 6.5vw, 2.6rem);
    margin-bottom: 1rem;
  }

  .rp-hero__description {
    font-size: 0.975rem;
    margin-bottom: 1.75rem;
  }

  .rp-hero__benefits {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }

  .rp-benefit-card {
    width: 100%;
    max-width: 320px;
  }

  .rp-hero__stage {
    max-width: 330px;
  }

  .rp-hero__phone-img {
    max-width: 240px;
  }

  .rp-hero__orbit-ring--outer {
    width: 340px;
    height: 340px;
  }

  .rp-hero__orbit-ring--mid {
    width: 280px;
    height: 280px;
  }

  .rp-hero__orbit-ring--inner {
    width: 220px;
    height: 220px;
  }

  .rp-hero__quote-card {
    right: -5px;
    bottom: 8%;
    width: 110px;
    padding: 0.9rem;
  }

  .rp-hero__quote-text {
    font-size: 0.825rem;
  }

  .rp-programs {
    padding: 4.5rem 0 4.5rem;
  }

  .rp-programs__header {
    margin-bottom: 2.75rem;
  }

  .rp-programs__grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    max-width: 440px;
    margin: 0 auto;
  }

  .rp-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .rp-why-choose {
    padding: 2rem 0 4.5rem;
  }

  .rp-why-choose__title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .rp-cta {
    padding: 0 0 4.5rem;
  }
}

@media (max-width: 580px) {
  .rp-why-choose__grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .rp-cta-banner__stores {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .rp-store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .rp-hero {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  .rp-hero__title {
    font-size: 1.85rem;
    line-height: 1.18;
  }

  .rp-hero__description {
    font-size: 0.925rem;
    line-height: 1.55;
  }

  .rp-hero__stage {
    max-width: 100%;
    flex-direction: column;
  }

  .rp-hero__quote-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 260px;
  }

  .rp-hero__phone-img {
    max-width: 210px;
  }

  .rp-community-card {
    padding: 1.5rem 1.25rem;
  }

  .rp-community-card__heading {
    font-size: 0.95rem;
  }

  .rp-btn-community {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.885rem;
  }

  .rp-cta-banner {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .rp-cta-banner__title {
    font-size: 1.5rem;
  }

  .rp-cta-banner__text {
    font-size: 0.925rem;
  }
}

/* Small phones (390px, 375px, 320px) */
@media (max-width: 390px) {
  .rp-hero__title {
    font-size: 1.7rem;
  }

  .rp-programs__title {
    font-size: 1.65rem;
  }

  .rp-why-choose__title {
    font-size: 1.5rem;
  }

  .rp-benefit-card {
    gap: 0.75rem;
  }

  .rp-benefit-card__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .rp-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .rp-card__icon-wrapper {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 340px) {
  .rp-hero__title {
    font-size: 1.5rem;
  }

  .rp-hero__phone-img {
    max-width: 185px;
  }

  .rp-hero__quote-card {
    max-width: 220px;
    padding: 0.75rem;
  }

  .rp-store-btn {
    padding: 0.6rem 1rem;
    min-width: auto;
  }
}

/* Reduced Motion for All Components */
@media (prefers-reduced-motion: reduce) {

  .rp-hero__badge,
  .rp-hero__title,
  .rp-hero__description,
  .rp-hero__benefits,
  .rp-hero__visual,
  .rp-hero__phone-wrapper,
  .rp-hero__phone-platform,
  .rp-hero__quote-card,
  .rp-hero__glow,
  .rp-hero__star,
  .rp-hero__orbit-ring,
  .rp-reveal-header,
  .rp-reveal-card,
  .rp-reveal-section,
  .rp-reveal-why-item,
  .rp-card,
  .rp-card__icon-wrapper,
  .rp-card__icon,
  .rp-card__arrow,
  .rp-cta-banner__glow,
  .rp-cta-banner__emblem-img,
  .rp-cta-banner__sparkle,
  .rp-store-btn,
  .rp-btn-community,
  .rp-community-card,
  .rp-why-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}