/* ==========================================================================
   Take LEAP Custom Design System & Phase 1 Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --color-hero-bg-start: #0c0626;
  --color-hero-bg-mid: #1a0a40;
  --color-hero-bg-end: #280d5e;
  
  --color-purple-primary: #7c3aed;
  --color-purple-light: #9333ea;
  --color-purple-dark: #5b21b6;
  --color-purple-accent: #a855f7;
  --color-purple-glow: rgba(124, 58, 237, 0.4);
  
  --color-yellow-gold: #facc15;
  --color-yellow-light: #fef08a;
  
  --color-text-main: #ffffff;
  --color-text-muted: #cbd5e1;
  --color-text-subtle: #94a3b8;
  --color-text-dark: #0f172a;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--color-text-main);
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */

.leap-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  animation: leapNavEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leap-navbar.is-scrolled {
  position: fixed;
  padding: 0.85rem 0;
  background: rgba(12, 6, 38, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leap-navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.leap-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  flex-shrink: 0;
  min-width: 0;
  animation: leapNavItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.leap-logo svg,
.leap-logo__icon {
  height: 32px;
  width: auto;
  transition: transform 0.35s ease;
}

.leap-logo__icon {
  object-fit: contain;
  mix-blend-mode: screen;
}

.leap-logo:hover svg,
.leap-logo:hover .leap-logo__icon {
  transform: rotate(-8deg) scale(1.05);
}

.leap-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.leap-nav-menu li {
  animation: leapNavItemIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leap-nav-menu li:nth-child(1) { animation-delay: 0.12s; }
.leap-nav-menu li:nth-child(2) { animation-delay: 0.18s; }
.leap-nav-menu li:nth-child(3) { animation-delay: 0.24s; }
.leap-nav-menu li:nth-child(4) { animation-delay: 0.30s; }
.leap-nav-menu li:nth-child(5) { animation-delay: 0.36s; }
.leap-nav-menu li:nth-child(6) { animation-delay: 0.42s; }
.leap-nav-menu li:nth-child(7) { animation-delay: 0.48s; }
.leap-nav-menu li:nth-child(8) { animation-delay: 0.54s; }

.leap-nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.leap-nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-yellow-gold);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.leap-nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.leap-nav-link:hover::before {
  width: 100%;
  left: 0;
}

.leap-nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.leap-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-yellow-gold);
  border-radius: 2px;
  transform-origin: left center;
  animation: leapNavActiveLine 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leap-nav-link.active::before {
  display: none;
}

/* Desktop submenu styles for Resources */
.leap-nav-menu li.has-submenu { position: relative; }
.leap-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(12,12,12,0.98);
  padding: 0.25rem 0;
  border-radius: 8px;
  min-width: 160px;
  display: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 60;
}
.leap-submenu li { list-style: none; }
.leap-submenu a { display: block; padding: 0.5rem 1rem; color: rgba(255,255,255,0.95); font-weight:500; }
.leap-nav-menu li.has-submenu:hover > .leap-submenu { display: block; }


.leap-badge-new {
  display: inline-block;
  vertical-align: super;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: #ffffff;
  color: var(--color-purple-dark);
  border-radius: 20px;
  margin-left: 0.2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.leap-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.leap-btn-download--header {
  animation: leapNavItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.leap-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
}

.leap-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.25s ease;
}

.leap-mobile-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

.leap-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.leap-btn-download--mobile {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.leap-mobile-menu.is-open .leap-btn-download--mobile {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.leap-mobile-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(12, 6, 38, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1.5rem;
  z-index: 99;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.35s ease,
    padding 0.35s ease,
    visibility 0.35s ease;
}

.leap-mobile-menu.is-open {
  max-height: 85vh;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.leap-mobile-menu[hidden]:not(.is-open) {
  display: block;
}

.leap-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.leap-mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(-12px);
  transition: color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}

.leap-mobile-menu.is-open .leap-mobile-nav-link {
  animation: leapMobileNavIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(1) .leap-mobile-nav-link { animation-delay: 0.05s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(2) .leap-mobile-nav-link { animation-delay: 0.1s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(3) .leap-mobile-nav-link { animation-delay: 0.15s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(4) .leap-mobile-nav-link { animation-delay: 0.2s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(5) .leap-mobile-nav-link { animation-delay: 0.25s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(6) .leap-mobile-nav-link { animation-delay: 0.3s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(7) .leap-mobile-nav-link { animation-delay: 0.35s; }
.leap-mobile-menu.is-open .leap-mobile-nav-list li:nth-child(8) .leap-mobile-nav-link { animation-delay: 0.4s; }

.leap-mobile-nav-link:hover,
.leap-mobile-nav-link.active {
  color: #ffffff;
  padding-left: 0.35rem;
}

/* Mobile submenu for Resources */
.has-submenu-mobile { position: relative; }
.has-submenu-mobile .submenu-toggle { background: none; border: none; padding: 0.75rem 0; width: 100%; text-align: left; color: inherit; font: inherit; }
.leap-submenu-mobile { list-style: none; padding-left: 0.75rem; margin: 0 0 0.25rem 0; display: none; }
.has-submenu-mobile.open .leap-submenu-mobile { display: block; }
.leap-submenu-mobile li a { padding: 0.5rem 0; display: block; }

body.leap-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   2. HERO SECTION (Phase 1 Redesign)
   ========================================================================== */

.leap-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 7.5rem;
  padding-bottom: 7rem;
  background: linear-gradient(160deg, #0c0626 0%, #1a0947 35%, #2a0f6b 60%, #1a0947 80%, #0c0626 100%);
  overflow: clip;
  width: 100%;
  max-width: 100%;
}

/* Ambient Background Lights & Sparkles */
.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 5%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(124, 58, 237, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowDrift 8s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  top: 30%;
  right: 5%;
  width: min(500px, 65vw);
  height: min(500px, 65vw);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowDrift 10s ease-in-out 2s infinite reverse;
}

.hero-glow-3 {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 90vw);
  height: min(400px, 50vw);
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowDrift 12s ease-in-out 4s infinite;
}

.sparkle-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 2;
  animation: leapSparkle 3s ease-in-out infinite;
}

.sparkle-1 { top: 18%; left: 8%; font-size: 1.2rem; animation-delay: 0s; }
.sparkle-2 { top: 28%; right: 8%; font-size: 1.5rem; color: rgba(250, 204, 21, 0.7); animation-delay: 0.8s; }
.sparkle-3 { bottom: 30%; left: 40%; font-size: 1.1rem; animation-delay: 1.6s; }
.sparkle-4 { top: 55%; right: 2%; font-size: 1.3rem; animation-delay: 2.4s; }

.leap-hero .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  width: 100%;
  min-width: 0;
}

/* ---- 3-Column Hero Grid ---- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 0.65fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* ============================================================
   LEFT COLUMN — Content
   ============================================================ */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

/* --- Pill Badge --- */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c4b5fd;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: leapHeroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.8);
  animation: heroDotPulse 2s ease-in-out infinite;
}

/* --- Hero Heading --- */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow-wrap: break-word;
  animation: leapHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Purple gradient "One Place." */
.text-purple-gradient {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* --- Description --- */
.hero-description {
  font-size: clamp(0.95rem, 1vw + 0.4rem, 1.075rem);
  line-height: 1.65;
  color: #b8c4e0;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: leapHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* --- CTA Buttons --- */
.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: leapHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.5);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease;
  white-space: nowrap;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(109, 40, 217, 0.65), 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
}

.btn-hero-primary svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-hero-primary:hover svg {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(167, 139, 250, 0.4);
  color: #e2d9f3;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  white-space: nowrap;
}

.btn-hero-secondary:hover {
  transform: translateY(-3px);
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
  color: #f0ebff;
}

/* --- Social Proof --- */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
  animation: leapHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1a0a40;
  margin-left: -10px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.proof-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.star-rating {
  display: flex;
  gap: 0.2rem;
  color: var(--color-yellow-gold);
  font-size: 0.85rem;
}

.proof-text {
  font-size: 0.825rem;
  color: #b8c4e0;
  font-weight: 500;
}

/* ==========================================================================
   CENTER COLUMN — Phone Mockup
   ========================================================================== */

.hero-phone-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  padding-bottom: 1rem;
}

.hero-phone-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.5) 0%, rgba(124, 58, 237, 0) 75%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  animation: heroGlowDrift 6s ease-in-out infinite;
}

.hero-phone-wrapper {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.3));
  animation: heroPhoneEnter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-phone-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  animation: heroPhoneFloat 5.5s ease-in-out 1.5s infinite;
}

/* ==========================================================================
   RIGHT COLUMN — Trust Points
   ========================================================================== */

.hero-trust-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  padding-left: 0.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: heroTrustIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-trust-item:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateX(-4px);
}

#trust-item-1 { animation-delay: 0.7s; }
#trust-item-2 { animation-delay: 0.9s; }
#trust-item-3 { animation-delay: 1.1s; }
#trust-item-4 { animation-delay: 1.3s; }

.hero-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.4) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.hero-trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hero-trust-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #f0ebff;
  line-height: 1.2;
}

.hero-trust-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Hero Bottom Curved Divider */
.hero-bottom-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.hero-bottom-curve svg {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
}

.hero-bottom-curve .shape-fill {
  fill: #ffffff;
}

/* ==========================================================================
   NAVBAR & HERO ANIMATIONS
   ========================================================================== */

@keyframes leapNavEnter {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes leapNavItemIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes leapNavActiveLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes leapMobileNavIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes leapHeroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPhoneEnter {
  from { opacity: 0; transform: translateY(60px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes heroTrustIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroGlowDrift {
  0%, 100% { opacity: 0.75; transform: scale(1) translate(0, 0); }
  33% { opacity: 1; transform: scale(1.06) translate(2%, -2%); }
  66% { opacity: 0.85; transform: scale(0.97) translate(-1%, 3%); }
}

@keyframes leapGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes leapSparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

@keyframes heroDotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(167, 139, 250, 0.8); }
  50% { box-shadow: 0 0 12px rgba(167, 139, 250, 1), 0 0 20px rgba(167, 139, 250, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .leap-navbar,
  .leap-logo,
  .leap-nav-menu li,
  .leap-btn-download--header,
  .hero-pill-badge,
  .hero-title,
  .hero-description,
  .hero-checklist,
  .check-item,
  .hero-buttons,
  .hero-social-proof,
  .phone-scale-shell,
  .phone-mockup-image,
  .floating-lock-card,
  .hero-glow-1,
  .hero-glow-2,
  .sparkle-star {
    animation: none !important;
  }

  .leap-mobile-menu,
  .leap-nav-link,
  .leap-mobile-nav-link,
  .leap-btn-download,
  .store-btn,
  .leap-mobile-toggle,
  .leap-navbar {
    transition: none !important;
  }
}

/* ==========================================================================
   HERO & NAVBAR RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1280px) {
  .leap-nav-menu {
    gap: 1.35rem;
  }

  .leap-nav-link {
    font-size: 0.875rem;
  }

  .leap-hero {
    padding-top: 7rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(0, 0.6fr);
    gap: 1.5rem;
  }

  .hero-phone-wrapper {
    width: min(320px, 100%);
  }
}

@media (max-width: 1024px) {
  .leap-hero .container {
    padding: 0 1.25rem;
  }

  .leap-navbar .container {
    padding: 0 1.25rem;
  }

  /* 2-column: phone + left only, trust goes below or hides */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .hero-phone-center {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-trust-points {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-left: 0;
    padding-top: 0.5rem;
  }

  .hero-trust-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
  }

  .hero-phone-wrapper {
    width: min(300px, 100%);
  }
}

@media (max-width: 768px) {
  .leap-nav-desktop {
    display: none;
  }

  .leap-mobile-toggle {
    display: block;
  }

  .leap-btn-download--header {
    display: none;
  }

  .leap-mobile-menu.is-open .leap-btn-download--mobile {
    display: inline-flex;
  }

  .leap-hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 5rem;
  }

  /* Stack everything single column on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .hero-phone-center {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }

  .hero-trust-points {
    grid-column: 1;
    grid-row: 3;
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 0;
    padding-top: 0;
  }

  .hero-trust-item {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 150px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    order: 1;
    grid-row: 1;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-cta-buttons {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-phone-wrapper {
    width: min(300px, 70vw);
  }

  .hero-trust-item:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .leap-navbar {
    padding: 1rem 0;
  }

  .leap-navbar .container,
  .leap-hero .container {
    padding: 0 1rem;
  }

  .leap-logo {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  .leap-logo svg,
  .leap-logo__icon {
    height: 28px;
  }

  .hero-pill-badge {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.85rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .proof-info {
    align-items: center;
    text-align: center;
  }

  .hero-trust-points {
    flex-direction: column;
  }

  .hero-trust-item {
    flex: none;
    width: 100%;
  }

  .hero-phone-wrapper {
    width: min(260px, 75vw);
  }

  .hero-glow-1,
  .hero-glow-2,
  .hero-glow-3 {
    opacity: 0.6;
  }

  .hero-bottom-curve svg {
    height: 40px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .hero-phone-wrapper {
    width: min(230px, 75vw);
  }
}

@media (max-width: 320px) {
  .leap-logo span {
    font-size: 0.95rem;
  }

  .hero-pill-badge {
    font-size: 0.55rem;
  }
}

/* ==========================================================================
   4. PHASE 2: TRUST / BENEFITS STRIP & STATISTICS
   ========================================================================== */

.phase2-section {
  background-color: #ffffff;
  padding: 2.5rem 0 4rem;
  position: relative;
  z-index: 10;
  overflow-x: clip;
}

.phase2-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Trust / Benefits Card Strip */
.trust-benefits-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.1rem;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #e2e8f0;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.trust-text-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
  font-family: var(--font-heading);
}

.trust-text-box p {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.3;
}

/* Statistics Strip */
/* Hidden until app launch — remove stats-banner--hidden from index.html to restore */
.stats-banner.stats-banner--hidden {
  display: none !important;
}

.stats-banner {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  border-radius: 20px;
  padding: 1.85rem 1rem;
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.25);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: phase2StatsAmbient 10s ease-in-out infinite;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
  position: relative;
  color: #ffffff;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.stat-text-box {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: #ffffff;
  transition: text-shadow 0.3s ease, filter 0.3s ease;
}

.stat-label-text {
  font-size: 0.775rem;
  color: #ddd6fe;
  font-weight: 500;
}

/* Responsive Rules for Phase 2 */
@media (max-width: 1100px) {
  .trust-benefits-card, .stats-banner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    padding: 1.5rem;
  }
  .trust-item::after, .stat-item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .trust-benefits-card, .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .trust-benefits-card, .stats-banner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 2 — PREMIUM SCROLL & INTERACTION ANIMATIONS
   ========================================================================== */

.phase2-section {
  --phase2-shift: 24px;
  --phase2-scale-from: 0.98;
  --phase2-card-shift: 26px;
}

@media (max-width: 768px) {
  .phase2-section {
    --phase2-shift: 14px;
    --phase2-card-shift: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .phase2-section:not(.is-visible) .trust-benefits-card {
    opacity: 0;
    transform: translateY(var(--phase2-card-shift)) scale(var(--phase2-scale-from));
  }

  html.leap-js .phase2-section:not(.is-visible) .trust-item {
    opacity: 0;
  }

  html.leap-js .phase2-section:not(.is-visible) .trust-icon-box {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }

  html.leap-js .phase2-section:not(.is-visible) .trust-item:not(:last-child)::after {
    opacity: 0;
  }

  html.leap-js .stats-banner:not(.is-stats-active) {
    opacity: 0;
    transform: translateY(22px) scale(var(--phase2-scale-from));
  }

  html.leap-js .stats-banner:not(.is-stats-active) .stat-item,
  html.leap-js .stats-banner:not(.is-stats-active) .stat-icon-circle {
    opacity: 0;
  }

  html.leap-js .stats-banner:not(.is-stats-active) .stat-icon-circle {
    transform: scale(0.8);
  }

  html.leap-js .stats-banner:not(.is-stats-active) .stat-item:not(:last-child)::after {
    opacity: 0;
  }

  html.leap-js .phase2-section.is-visible .trust-benefits-card {
    animation: phase2CardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phase2-section.is-visible .trust-item {
    animation: phase2ItemReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phase2-section.is-visible .trust-item:nth-child(1) { animation-delay: 0.14s; }
  .phase2-section.is-visible .trust-item:nth-child(2) { animation-delay: 0.22s; }
  .phase2-section.is-visible .trust-item:nth-child(3) { animation-delay: 0.30s; }
  .phase2-section.is-visible .trust-item:nth-child(4) { animation-delay: 0.38s; }
  .phase2-section.is-visible .trust-item:nth-child(5) { animation-delay: 0.46s; }

  .phase2-section.is-visible .trust-item .trust-icon-box {
    animation: phase2IconReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phase2-section.is-visible .trust-item:nth-child(1) .trust-icon-box { animation-delay: 0.2s; }
  .phase2-section.is-visible .trust-item:nth-child(2) .trust-icon-box { animation-delay: 0.28s; }
  .phase2-section.is-visible .trust-item:nth-child(3) .trust-icon-box { animation-delay: 0.36s; }
  .phase2-section.is-visible .trust-item:nth-child(4) .trust-icon-box { animation-delay: 0.44s; }
  .phase2-section.is-visible .trust-item:nth-child(5) .trust-icon-box { animation-delay: 0.52s; }

  .phase2-section.is-visible .trust-item:not(:last-child)::after {
    animation: phase2DividerReveal 0.35s ease both;
  }

  .phase2-section.is-visible .trust-item:nth-child(1)::after { animation-delay: 0.26s; }
  .phase2-section.is-visible .trust-item:nth-child(2)::after { animation-delay: 0.34s; }
  .phase2-section.is-visible .trust-item:nth-child(3)::after { animation-delay: 0.42s; }
  .phase2-section.is-visible .trust-item:nth-child(4)::after { animation-delay: 0.50s; }

  html.leap-js .stats-banner.is-stats-active {
    animation: phase2StatsBarReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .stats-banner.is-stats-active .stat-item {
    animation: phase2ItemReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(1) { animation-delay: 0.1s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(2) { animation-delay: 0.17s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(3) { animation-delay: 0.24s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(4) { animation-delay: 0.31s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(5) { animation-delay: 0.38s; }

  html.leap-js .stats-banner.is-stats-active .stat-item .stat-icon-circle {
    animation: phase2StatIconReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(1) .stat-icon-circle { animation-delay: 0.16s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(2) .stat-icon-circle { animation-delay: 0.23s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(3) .stat-icon-circle { animation-delay: 0.30s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(4) .stat-icon-circle { animation-delay: 0.37s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(5) .stat-icon-circle { animation-delay: 0.44s; }

  html.leap-js .stats-banner.is-stats-active .stat-item:not(:last-child)::after {
    animation: phase2DividerReveal 0.35s ease both;
  }

  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(1)::after { animation-delay: 0.2s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(2)::after { animation-delay: 0.27s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(3)::after { animation-delay: 0.34s; }
  html.leap-js .stats-banner.is-stats-active .stat-item:nth-child(4)::after { animation-delay: 0.41s; }
}

@keyframes phase2CardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--phase2-card-shift)) scale(var(--phase2-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phase2ItemReveal {
  from {
    opacity: 0;
    transform: translateY(var(--phase2-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phase2IconReveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes phase2StatIconReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  to {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes phase2StatsBarReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(var(--phase2-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phase2DividerReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes phase2StatsAmbient {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.45;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.7;
  }
}

@media (hover: hover) and (pointer: fine) {
  .trust-item {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
  }

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

  .trust-item:hover .trust-icon-box {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.22);
  }

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

  .stat-item:hover .stat-icon-circle {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  }

  .stat-item:hover .stat-value {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
    filter: brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase2-section .trust-benefits-card,
  .phase2-section .trust-item,
  .phase2-section .trust-icon-box,
  .phase2-section .stats-banner,
  .phase2-section .stat-item,
  .phase2-section .stat-icon-circle,
  .phase2-section .trust-item::after,
  .phase2-section .stat-item::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  .stats-banner::before {
    animation: none !important;
    opacity: 0.45 !important;
  }

  .trust-item:hover,
  .stat-item:hover,
  .trust-item:hover .trust-icon-box,
  .stat-item:hover .stat-icon-circle,
  .stat-item:hover .stat-value {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
  }
}

/* ==========================================================================
   5. PHASE 3: "WHAT'S INSIDE LEAP" FEATURES SECTION
   ========================================================================== */

.features-section {
  background-color: #fcfbfe;
  padding: 5rem 0 6rem;
  overflow-x: clip;
}

.features-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin-bottom: 3.5rem;
}

.section-pill-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title .text-purple {
  color: #7c3aed;
}

.section-subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
  position: relative;
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.feature-info p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.btn-explore-features {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.85rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #7c3aed;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.925rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.btn-explore-features svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Responsive Grid Rules for Phase 3 */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 3 — PREMIUM SCROLL & INTERACTION ANIMATIONS
   ========================================================================== */

.features-section {
  --features-shift: 22px;
  --features-scale-from: 0.98;
}

@media (max-width: 768px) {
  .features-section {
    --features-shift: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .features-section:not(.is-visible) .section-pill-tag,
  html.leap-js .features-section:not(.is-visible) .section-title,
  html.leap-js .features-section:not(.is-visible) .section-subtitle,
  html.leap-js .features-section:not(.is-visible) .feature-card,
  html.leap-js .features-section:not(.is-visible) .btn-explore-features {
    opacity: 0;
  }

  html.leap-js .features-section:not(.is-visible) .section-pill-tag,
  html.leap-js .features-section:not(.is-visible) .section-title,
  html.leap-js .features-section:not(.is-visible) .section-subtitle {
    transform: translateY(var(--features-shift));
  }

  html.leap-js .features-section:not(.is-visible) .feature-card {
    transform: translateY(var(--features-shift)) scale(var(--features-scale-from));
  }

  html.leap-js .features-section:not(.is-visible) .feature-icon-box {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }

  html.leap-js .features-section:not(.is-visible) .btn-explore-features {
    transform: translateY(16px);
  }

  html.leap-js .features-section.is-visible .section-pill-tag {
    animation: featuresItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  html.leap-js .features-section.is-visible .section-title {
    animation: featuresItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  html.leap-js .features-section.is-visible .section-subtitle {
    animation: featuresItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }

  html.leap-js .features-section.is-visible .feature-card {
    animation: featuresCardReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-section.is-visible .feature-card:nth-child(1) { animation-delay: 0.34s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(2) { animation-delay: 0.39s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(3) { animation-delay: 0.44s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(4) { animation-delay: 0.49s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(5) { animation-delay: 0.54s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(6) { animation-delay: 0.59s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(7) { animation-delay: 0.64s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(8) { animation-delay: 0.69s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(9) { animation-delay: 0.74s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(10) { animation-delay: 0.79s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(11) { animation-delay: 0.84s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(12) { animation-delay: 0.89s; }

  html.leap-js .features-section.is-visible .feature-card .feature-icon-box {
    animation: featuresIconReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .features-section.is-visible .feature-card:nth-child(1) .feature-icon-box { animation-delay: 0.4s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(2) .feature-icon-box { animation-delay: 0.45s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(3) .feature-icon-box { animation-delay: 0.5s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(4) .feature-icon-box { animation-delay: 0.55s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(5) .feature-icon-box { animation-delay: 0.6s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(6) .feature-icon-box { animation-delay: 0.65s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(7) .feature-icon-box { animation-delay: 0.7s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(8) .feature-icon-box { animation-delay: 0.75s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(9) .feature-icon-box { animation-delay: 0.8s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(10) .feature-icon-box { animation-delay: 0.85s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(11) .feature-icon-box { animation-delay: 0.9s; }
  html.leap-js .features-section.is-visible .feature-card:nth-child(12) .feature-icon-box { animation-delay: 0.95s; }

  html.leap-js .features-section.is-visible .btn-explore-features {
    animation: featuresCtaReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  }
}

@keyframes featuresItemReveal {
  from {
    opacity: 0;
    transform: translateY(var(--features-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featuresCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--features-shift)) scale(var(--features-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featuresIconReveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes featuresCtaReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .features-section .feature-card:hover .feature-icon-box {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.2);
  }

  .features-section .btn-explore-features:hover svg {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-card::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .feature-card:hover,
  .program-card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
  }

  .features-section .section-pill-tag,
  .features-section .section-title,
  .features-section .section-subtitle,
  .features-section .feature-card,
  .features-section .feature-icon-box,
  .features-section .btn-explore-features {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .features-section .feature-card:hover .feature-icon-box,
  .features-section .btn-explore-features:hover svg {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   6. PHASE 4: RECOVERY PROGRAMS SECTION
   ========================================================================== */

.programs-section {
  background-color: #ffffff;
  padding: 5rem 0 6rem;
}

.programs-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.programs-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.programs-content .section-pill-tag {
  margin-bottom: 1rem;
}

.programs-content .section-title {
  text-align: left;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.programs-content .section-subtitle {
  text-align: left;
  font-size: 0.975rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-view-programs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #7c3aed;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

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

/* 8 Program Cards Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.program-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 18px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.program-card > * {
  position: relative;
  z-index: 1;
}

.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed, #c084fc);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.program-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.program-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.program-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Program Specific Pastel Colors */
.prog-alcohol .program-icon-box { background: #f3e8ff; color: #7c3aed; }
.prog-smoking .program-icon-box { background: #ffe4e6; color: #e11d48; }
.prog-vaping .program-icon-box { background: #e0f2fe; color: #0284c7; }
.prog-gambling .program-icon-box { background: #e0e7ff; color: #4f46e5; }
.prog-gaming .program-icon-box { background: #fef3c7; color: #d97706; }
.prog-porn .program-icon-box { background: #ffe4e6; color: #f43f5e; }
.prog-sugar .program-icon-box { background: #fffbeb; color: #b45309; }
.prog-social .program-icon-box { background: #ccfbf1; color: #0d9488; }

@keyframes leapCardBorderSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .features-section .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.12);
  }

  .program-card:hover {
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.22);
  }

  .program-card:hover::before {
    opacity: 1;
    animation: leapCardBorderSweep 1.6s ease-in-out infinite;
  }
}

/* Responsive Rules for Phase 4 */
@media (max-width: 1100px) {
  .programs-section .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .programs-content {
    align-items: center;
    text-align: center;
  }
  .programs-content .section-title, .programs-content .section-subtitle {
    text-align: center;
  }
  .programs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* ==========================================================================
   7. PHASE 5: "HOW LEAP WORKS" STEPS SECTION
   ========================================================================== */

.steps-section {
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
  padding: 5.5rem 0 6rem;
  overflow-x: clip;
}

.steps-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-section .section-header {
  margin-bottom: 4rem;
}

/* Steps Timeline Wrapper */
.steps-timeline {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}

/* Dotted horizontal connector line that spans between step circles */
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 26px; /* align with center of step number circles */
  left: calc(10% + 26px);
  right: calc(10% + 26px);
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    #c4b5fd 0px,
    #c4b5fd 6px,
    transparent 6px,
    transparent 14px
  );
  z-index: 0;
  transform-origin: left center;
}

/* Individual Step */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}

/* Step Number Circle */
.step-number-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e9d5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Active / highlighted step */
.step-item.step-active .step-number-circle {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

/* Step Icon Box */
.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.step-item.step-active .step-icon-box {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.3);
  border-color: transparent;
}

/* Step Text */
.step-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 170px;
  margin: 0 auto;
}

/* Responsive Steps */
@media (max-width: 900px) {
  .steps-timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .steps-timeline::before {
    top: 0;
    left: 50%;
    right: auto;
    bottom: 0;
    width: 2px;
    height: calc(100% - 52px);
    background-image: repeating-linear-gradient(
      180deg,
      #c4b5fd 0px,
      #c4b5fd 6px,
      transparent 6px,
      transparent 14px
    );
    transform: translateX(-50%);
    transform-origin: top center;
  }

  .step-item {
    width: 100%;
    max-width: 340px;
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .step-number-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-icon-box {
    display: none; /* hide icon on mobile for cleaner stacked layout */
  }

  .step-desc {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .step-item {
    max-width: 100%;
  }
}

/* ==========================================================================
   PHASE 5 — PREMIUM SCROLL & INTERACTION ANIMATIONS
   ========================================================================== */

.steps-section {
  --steps-shift: 22px;
  --steps-scale-from: 0.98;
}

@media (max-width: 768px) {
  .steps-section {
    --steps-shift: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .steps-section:not(.is-visible) .section-pill-tag,
  html.leap-js .steps-section:not(.is-visible) .section-title,
  html.leap-js .steps-section:not(.is-visible) .step-item {
    opacity: 0;
  }

  html.leap-js .steps-section:not(.is-visible) .section-pill-tag,
  html.leap-js .steps-section:not(.is-visible) .section-title {
    transform: translateY(var(--steps-shift));
  }

  html.leap-js .steps-section:not(.is-visible) .steps-timeline::before {
    opacity: 0;
    transform: scaleX(0);
  }

  html.leap-js .steps-section:not(.is-visible) .step-item {
    transform: translateY(var(--steps-shift)) scale(var(--steps-scale-from));
  }

  html.leap-js .steps-section:not(.is-visible) .step-number-circle,
  html.leap-js .steps-section:not(.is-visible) .step-icon-box {
    opacity: 0;
    transform: scale(0.8);
  }

  html.leap-js .steps-section.is-visible .section-pill-tag {
    animation: stepsItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  html.leap-js .steps-section.is-visible .section-title {
    animation: stepsItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  html.leap-js .steps-section.is-visible .steps-timeline::before {
    animation: stepsLineReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  html.leap-js .steps-section.is-visible .step-item {
    animation: stepsCardReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .steps-section.is-visible .step-item:nth-child(1) { animation-delay: 0.36s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(2) { animation-delay: 0.44s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(3) { animation-delay: 0.52s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(4) { animation-delay: 0.60s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(5) { animation-delay: 0.68s; }

  html.leap-js .steps-section.is-visible .step-number-circle {
    animation: stepsIconReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .steps-section.is-visible .step-item:nth-child(1) .step-number-circle { animation-delay: 0.42s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(2) .step-number-circle { animation-delay: 0.50s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(3) .step-number-circle { animation-delay: 0.58s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(4) .step-number-circle { animation-delay: 0.66s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(5) .step-number-circle { animation-delay: 0.74s; }

  html.leap-js .steps-section.is-visible .step-icon-box {
    animation: stepsIconReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .steps-section.is-visible .step-item:nth-child(1) .step-icon-box { animation-delay: 0.48s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(2) .step-icon-box { animation-delay: 0.56s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(3) .step-icon-box { animation-delay: 0.64s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(4) .step-icon-box { animation-delay: 0.72s; }
  html.leap-js .steps-section.is-visible .step-item:nth-child(5) .step-icon-box { animation-delay: 0.80s; }
}

@keyframes stepsItemReveal {
  from {
    opacity: 0;
    transform: translateY(var(--steps-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepsCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--steps-shift)) scale(var(--steps-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stepsIconReveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes stepsLineReveal {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  html.leap-js .steps-section:not(.is-visible) .steps-timeline::before {
    transform: translateX(-50%) scaleY(0);
  }

  html.leap-js .steps-section.is-visible .steps-timeline::before {
    animation-name: stepsLineRevealVertical;
  }
}

@keyframes stepsLineRevealVertical {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .steps-section .step-item {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .steps-section .step-item:hover {
    transform: translateY(-4px);
  }

  .steps-section .step-item:hover .step-icon-box {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
  }

  .steps-section .step-item:hover .step-number-circle {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-section .section-pill-tag,
  .steps-section .section-title,
  .steps-section .steps-timeline::before,
  .steps-section .step-item,
  .steps-section .step-number-circle,
  .steps-section .step-icon-box {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .steps-section .step-item:hover,
  .steps-section .step-item:hover .step-icon-box,
  .steps-section .step-item:hover .step-number-circle {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   8. PHASE 6: SUCCESS STORIES / TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
  background-color: #ffffff;
  padding: 5.5rem 0 6rem;
  overflow-x: clip;
}

.testimonials-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-section .section-header {
  margin-bottom: 3.5rem;
}

/* Cards Row */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

/* Quote mark decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: #ede9fe;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed, #c084fc);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

/* Star rating row */
.t-stars {
  display: flex;
  gap: 0.2rem;
  color: #facc15;
  font-size: 0.95rem;
}

/* Quote text */
.t-quote {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #334155;
  font-style: italic;
  flex: 1;
}

/* Author row */
.t-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede9fe;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.t-author-info {
  display: flex;
  flex-direction: column;
}

.t-author-name {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
}

.t-author-meta {
  font-size: 0.775rem;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, transform 0.3s ease, border-radius 0.35s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: #7c3aed;
  width: 24px;
  border-radius: 4px;
  transform: scale(1.05);
}

.slider-dot:hover {
  background: #c4b5fd;
}

.slider-dot.active:hover {
  background: #7c3aed;
}

/* Responsive for Testimonials */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(22px);
    transition:
      opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.45s ease,
      box-shadow 0.4s ease;
    pointer-events: none;
  }

  .testimonial-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .testimonial-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, opacity 0.4s ease, border-color 0.35s ease;
  }

  .testimonial-card:not(.is-active) {
    opacity: 0.9;
  }

  .testimonial-card.is-active {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.2);
  }
}

/* ==========================================================================
   PHASE 6 — PREMIUM SCROLL & INTERACTION ANIMATIONS
   ========================================================================== */

.testimonials-section {
  --testimonials-shift: 22px;
  --testimonials-scale-from: 0.98;
}

@media (max-width: 768px) {
  .testimonials-section {
    --testimonials-shift: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .testimonials-section:not(.is-visible) .section-pill-tag,
  html.leap-js .testimonials-section:not(.is-visible) .section-title,
  html.leap-js .testimonials-section:not(.is-visible) .testimonial-card,
  html.leap-js .testimonials-section:not(.is-visible) .slider-dots {
    opacity: 0;
  }

  html.leap-js .testimonials-section:not(.is-visible) .section-pill-tag,
  html.leap-js .testimonials-section:not(.is-visible) .section-title {
    transform: translateY(var(--testimonials-shift));
  }

  html.leap-js .testimonials-section:not(.is-visible) .testimonial-card {
    transform: translateY(var(--testimonials-shift)) scale(var(--testimonials-scale-from));
  }

  html.leap-js .testimonials-section:not(.is-visible) .testimonial-card:not(.is-active) {
    opacity: 0;
    visibility: hidden;
  }

  html.leap-js .testimonials-section:not(.is-visible) .slider-dots {
    transform: translateY(12px);
  }

  html.leap-js .testimonials-section.is-visible .section-pill-tag {
    animation: testimonialsItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  html.leap-js .testimonials-section.is-visible .section-title {
    animation: testimonialsItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  html.leap-js .testimonials-section.is-visible .testimonial-card.is-active {
    animation: testimonialsCardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }

  html.leap-js .testimonials-section.is-visible .slider-dots {
    animation: testimonialsItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  html.leap-js .testimonials-section.is-visible .testimonial-card:nth-child(1) { animation-delay: 0.32s; }
  html.leap-js .testimonials-section.is-visible .testimonial-card:nth-child(2) { animation-delay: 0.42s; }
  html.leap-js .testimonials-section.is-visible .testimonial-card:nth-child(3) { animation-delay: 0.52s; }

  html.leap-js .testimonials-section.is-visible .testimonial-card {
    animation: testimonialsCardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes testimonialsItemReveal {
  from {
    opacity: 0;
    transform: translateY(var(--testimonials-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testimonialsCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--testimonials-shift)) scale(var(--testimonials-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-section .testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.22);
  }

  .testimonials-section .testimonial-card:hover::after {
    opacity: 1;
    animation: leapCardBorderSweep 1.6s ease-in-out infinite;
  }

  .testimonials-section .testimonial-card:hover .t-avatar {
    transform: scale(1.06);
    border-color: #c4b5fd;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-section .section-pill-tag,
  .testimonials-section .section-title,
  .testimonials-section .testimonial-card,
  .testimonials-section .slider-dots {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    visibility: visible !important;
  }

  .testimonials-section .testimonial-card::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .testimonials-section .testimonial-card:hover,
  .testimonials-section .testimonial-card:hover .t-avatar {
    transform: none !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04) !important;
  }

  .testimonials-section .slider-dot.active {
    transform: none !important;
  }
}

/* ==========================================================================
   PHASE 7 — PREMIUM SCROLL & INTERACTION ANIMATIONS (CTA)
   ========================================================================== */

.cta-section {
  overflow-x: clip;
  --cta-shift: 24px;
  --cta-scale-from: 0.98;
}

@media (max-width: 768px) {
  .cta-section {
    --cta-shift: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .cta-section:not(.is-visible) .cta-card {
    opacity: 0;
    transform: translateY(var(--cta-shift)) scale(var(--cta-scale-from));
  }

  html.leap-js .cta-section:not(.is-visible) .cta-emblem,
  html.leap-js .cta-section:not(.is-visible) .cta-label,
  html.leap-js .cta-section:not(.is-visible) .cta-heading,
  html.leap-js .cta-section:not(.is-visible) .cta-checklist,
  html.leap-js .cta-section:not(.is-visible) .cta-no-commitment,
  html.leap-js .cta-section:not(.is-visible) .cta-buttons {
    opacity: 0;
  }

  html.leap-js .cta-section:not(.is-visible) .cta-emblem,
  html.leap-js .cta-section:not(.is-visible) .cta-label,
  html.leap-js .cta-section:not(.is-visible) .cta-heading,
  html.leap-js .cta-section:not(.is-visible) .cta-checklist,
  html.leap-js .cta-section:not(.is-visible) .cta-no-commitment,
  html.leap-js .cta-section:not(.is-visible) .cta-buttons {
    transform: translateY(18px);
  }

  html.leap-js .cta-section.is-visible .cta-card {
    background-size: 220% 220%;
    animation: ctaCardReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both, ctaGradientAmbient 14s ease-in-out 0.75s infinite;
  }

  html.leap-js .cta-section.is-visible .cta-card::before {
    animation: ctaOrbFloat 8s ease-in-out infinite;
  }

  html.leap-js .cta-section.is-visible .cta-card::after {
    animation: ctaOrbFloat 10s ease-in-out 1.5s infinite reverse;
  }

  html.leap-js .cta-section.is-visible .cta-emblem {
    animation: ctaItemReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  html.leap-js .cta-section.is-visible .cta-label {
    animation: ctaItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }

  html.leap-js .cta-section.is-visible .cta-heading {
    animation: ctaItemReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  html.leap-js .cta-section.is-visible .cta-checklist {
    animation: ctaItemReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
  }

  html.leap-js .cta-section.is-visible .cta-no-commitment {
    animation: ctaItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
  }

  html.leap-js .cta-section.is-visible .cta-buttons {
    animation: ctaItemReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
  }
}

@keyframes ctaCardReveal {
  from {
    opacity: 0;
    transform: translateY(var(--cta-shift)) scale(var(--cta-scale-from));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ctaItemReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaGradientAmbient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes ctaOrbFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.85;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cta-section .cta-emblem {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  }

  .cta-section .cta-card:hover .cta-emblem {
    transform: scale(1.05) rotate(-4deg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-section .cta-card,
  .cta-section .cta-emblem,
  .cta-section .cta-label,
  .cta-section .cta-heading,
  .cta-section .cta-checklist,
  .cta-section .cta-no-commitment,
  .cta-section .cta-buttons,
  .cta-section .cta-card::before,
  .cta-section .cta-card::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    background-size: auto !important;
  }

  .cta-section .cta-card:hover .cta-emblem {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   9. PHASE 7: FREE TRIAL CTA SECTION
   ========================================================================== */

.cta-section {
  padding: 4rem 1.5rem;
  background: #ffffff;
}

.cta-card {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 35%, #6d28d9 65%, #7c3aed 100%);
  border-radius: 28px;
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(76, 29, 149, 0.35);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 200px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 300px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-emblem {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta-emblem svg {
  width: 54px;
  height: 54px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.cta-label {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-checklist {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.cta-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

.cta-no-commitment {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 180px;
  position: relative;
  z-index: 1;
}

.btn-cta-primary {
  display: block;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  background: #ffffff;
  color: #5b21b6;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.975rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #4c1d95;
}

.btn-cta-secondary {
  display: block;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .cta-card {
    grid-template-columns: auto 1fr;
    padding: 2.5rem;
  }
  .cta-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
  }
  .cta-buttons a { flex: 1; }
}

@media (max-width: 680px) {
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.75rem;
  }
  .cta-emblem { margin: 0 auto; }
  .cta-checklist { justify-content: center; }
  .cta-buttons { flex-direction: column; }
  .cta-heading { font-size: 1.6rem; }
}

/* ==========================================================================
   10. PHASE 8: FOOTER
   ========================================================================== */

.leap-footer {
  background: #0b0819;
  padding: 4.5rem 0 2.5rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  gap: 2.5rem 1.75rem;
  align-items: start;
}

/* Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo svg,
.footer-logo .leap-logo__icon {
  height: 30px;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 220px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Navigation Columns */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #a19ead;
  line-height: 1.4;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Divider & Copyright */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3rem 0 1.75rem;
  transform-origin: center;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #a19ead;
  font-weight: 400;
}

/* Footer Responsive */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-tagline {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .leap-footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
  }

  .footer-divider {
    margin: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* ==========================================================================
   PHASE 8 —  SCROLL & INTERACTION ANIMATIONS (FOOTER)
   ========================================================================== */

.leap-footer {
  overflow-x: clip;
  --footer-shift: 20px;
}

@media (max-width: 768px) {
  .leap-footer {
    --footer-shift: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.leap-js .leap-footer:not(.is-visible) .footer-brand,
  html.leap-js .leap-footer:not(.is-visible) .footer-col,
  html.leap-js .leap-footer:not(.is-visible) .footer-divider,
  html.leap-js .leap-footer:not(.is-visible) .footer-copyright {
    opacity: 0;
    transform: translateY(var(--footer-shift));
  }

  html.leap-js .leap-footer.is-visible .footer-brand {
    animation: footerItemReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  html.leap-js .leap-footer.is-visible .footer-col {
    animation: footerItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.leap-js .leap-footer.is-visible .footer-grid .footer-col:nth-child(2) { animation-delay: 0.14s; }
  html.leap-js .leap-footer.is-visible .footer-grid .footer-col:nth-child(3) { animation-delay: 0.2s; }
  html.leap-js .leap-footer.is-visible .footer-grid .footer-col:nth-child(4) { animation-delay: 0.26s; }
  html.leap-js .leap-footer.is-visible .footer-grid .footer-col:nth-child(5) { animation-delay: 0.32s; }
  html.leap-js .leap-footer.is-visible .footer-grid .footer-col:nth-child(6) { animation-delay: 0.38s; }

  html.leap-js .leap-footer.is-visible .footer-divider {
    animation: footerDividerReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
  }

  html.leap-js .leap-footer.is-visible .footer-copyright {
    animation: footerItemReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
  }
}

@keyframes footerItemReveal {
  from {
    opacity: 0;
    transform: translateY(var(--footer-shift));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footerDividerReveal {
  from {
    opacity: 0;
    transform: scaleX(0.6);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .leap-footer .footer-social-link {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }

  .leap-footer .footer-social-link:hover {
    transform: translateY(-3px) scale(1.06);
  }

  .leap-footer .footer-links a {
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .leap-footer .footer-links a:hover {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leap-footer .footer-brand,
  .leap-footer .footer-col,
  .leap-footer .footer-divider,
  .leap-footer .footer-copyright {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .leap-footer .footer-social-link:hover,
  .leap-footer .footer-links a:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   COMPARISON TABLE SECTION
   ========================================================================== */

.comparison-section {
  padding: 4rem 0 5rem;
  background-color: #f8faff;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.comparison-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.comparison-title {
  color: #0f172a;
}

/* Desktop: constrain table width and center it */
@media (min-width: 1024px) {
  .comparison-section {
    padding: 3rem 0 4.5rem;
  }

  .comparison-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
  }
}

/* Scrollable container on mobile */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
}

/* The Table */
.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

/* ── HEADER ROW ─────────────────────────────────────── */
.comparison-header-row th {
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  vertical-align: bottom;
  background-color: #ffffff;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.comparison-header-row th.col-features {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  min-width: 180px;
  width: 22%;
}

/* LEAP highlighted column header */
.comparison-header-row th.col-leap {
  background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 100%);
  border-left: 2px solid #d8b4fe;
  border-right: 2px solid #d8b4fe;
  border-top: 3px solid #7c3aed;
  box-shadow: 0 -2px 0 #7c3aed;
  animation: leapColPulse 3s ease-in-out infinite;
}

@keyframes leapColPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 18px 0 rgba(124, 58, 237, 0.12); }
}

.comparison-header-row th.col-competitor {
  border-left: 1px solid #f1f5f9;
  width: 14%;
}

/* Best Value Badge */
.best-value-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* App Logo row (icon + name) */
.comp-app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comp-app-logo img {
  border-radius: 8px;
}

.comp-app-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.2;
}

.comp-app-name.leap-name {
  font-size: 1rem;
  color: #7c3aed;
}

.comp-app-category {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

/* Colored letter icon for competitors */
.comp-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-icon-mfp   { background-color: #0070cd; }
.comp-icon-fitbod { background-color: #1a1a2e; }
.comp-icon-sober  { background-color: #4caf50; }
.comp-icon-calm   { background-color: #4a90d9; }

/* App description text */
.comp-app-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  min-height: 2.4em;
}

/* Pricing in header */
.comp-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
}

.comp-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

.comp-price.leap-price {
  color: #7c3aed;
  font-size: 1.15rem;
}

/* ── BODY ROWS ─────────────────────────────────────── */
.comp-row td {
  padding: 0.85rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.875rem;
  color: #334155;
  opacity: 0;
  animation: compRowReveal 0.45s ease forwards;
}

.comp-row:nth-child(1)  td { animation-delay: 0.05s; }
.comp-row:nth-child(2)  td { animation-delay: 0.10s; }
.comp-row:nth-child(3)  td { animation-delay: 0.15s; }
.comp-row:nth-child(4)  td { animation-delay: 0.20s; }
.comp-row:nth-child(5)  td { animation-delay: 0.25s; }
.comp-row:nth-child(6)  td { animation-delay: 0.30s; }
.comp-row:nth-child(7)  td { animation-delay: 0.35s; }
.comp-row:nth-child(8)  td { animation-delay: 0.40s; }
.comp-row:nth-child(9)  td { animation-delay: 0.45s; }
.comp-row:nth-child(10) td { animation-delay: 0.50s; }
.comp-row:nth-child(11) td { animation-delay: 0.55s; }

@keyframes compRowReveal {
  to { opacity: 1; }
}

.comp-row:last-child td {
  border-bottom: none;
}

/* Alternating row bg */
.comp-row:nth-child(even) td {
  background-color: #fafbff;
}

.comp-row:hover td {
  background-color: #f5f0ff;
  transition: background-color 0.2s ease;
}

/* Feature label cell (left column) */
.feat-label {
  text-align: left !important;
  font-weight: 500;
  color: #0f172a;
  font-size: 0.875rem;
  padding-left: 1.5rem !important;
}

/* LEAP column cells */
.feat-leap {
  background: linear-gradient(180deg, rgba(245,240,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
  border-left: 2px solid #d8b4fe !important;
  border-right: 2px solid #d8b4fe !important;
}

/* Check/cross icons */
.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #7c3aed;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.comp-row td:not(.feat-leap) .check-yes {
  background-color: #e0f2fe;
  color: #0284c7;
}

.check-no {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1;
}

/* ── TOTAL ROW ─────────────────────────────────────── */
.comp-total-row td {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #f8f9fb !important;
  opacity: 0;
  animation: compRowReveal 0.5s ease 0.6s forwards;
}

.feat-label-total {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b !important;
  text-transform: uppercase;
}

.feat-total-leap {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #7c3aed !important;
  background: linear-gradient(180deg, rgba(245,240,255,0.8) 0%, rgba(245,240,255,0.5) 100%) !important;
}

.feat-total-leap span,
.feat-total span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 2px;
}

.feat-total {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155 !important;
}

/* ── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .comparison-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .col-leap {
    animation: none;
  }

  .comp-row td {
    opacity: 1;
    animation: none;
  }

  .comp-total-row td {
    opacity: 1;
    animation: none;
  }
}

