/* Scroll-scrubbing feature section styles */

.panel {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0;
  left: 0;
  right: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Phone glow effect for each slide */
.phone-container {
  position: relative;
  z-index: 1;
}

.phone-container::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 160%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.7s cubic-bezier(.65,.05,.36,1), transform 0.7s cubic-bezier(.65,.05,.36,1);
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.slide-active .phone-container::before {
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
}

/* Color glows for each slide matching the in-app quadrant colors */
#slide-1 .phone-container::before {
  background: radial-gradient(circle, rgba(255, 143, 143, 0.5) 30%, rgba(122, 158, 255, 0) 70%);
}

#slide-2 .phone-container::before {
  background: radial-gradient(circle, rgba(255, 224, 102, 0.5) 30%, rgba(255, 224, 102, 0) 70%);
}

#slide-3 .phone-container::before {
  background: radial-gradient(circle, rgba(122, 223, 181, 0.5) 30%, rgba(122, 223, 181, 0) 70%);
}

#slide-4 .phone-container::before {
  background: radial-gradient(circle, rgba(131, 156, 255, 0.5) 30%, rgba(196, 167, 254, 0) 70%);
}

/* End card glow */
/* Remove the single background and replace with multiple blobs */
#slide-5::before {
  content: none; /* Disable the original background */
}

/* Add four separate color blobs for the final slide */
#slide-5 .blob-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.65,.05,.36,1);
}

#slide-5.slide-active .blob-container {
  opacity: 0.5;
}

#slide-5 .color-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  transform: scale(0.7);
  transition: transform 0.7s cubic-bezier(.65,.05,.36,1);
}

#slide-5.slide-active .color-blob {
  transform: scale(1);
}

/* Pink blob - top left (changed from blue to match new colors) */
#slide-5 .color-blob.blue {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 143, 143, 0.4) 20%, rgba(255, 143, 143, 0) 75%);
  top: 10%;
  left: 15%;
  transform: scale(0.7) rotate(-10deg);
}

/* Yellow blob - top right */
#slide-5 .color-blob.yellow {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 224, 102, 0.35) 20%, rgba(255, 224, 102, 0) 75%);
  bottom: 13%;
  left: 18%;
  transform: scale(0.7) rotate(15deg);
}

/* Green blob - bottom left */
#slide-5 .color-blob.green {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(122, 223, 181, 0.55) 20%, rgba(122, 223, 181, 0) 75%);
  top: 18%;
  right: 18%;
  transform: scale(0.74) rotate(5deg);
}

/* Blue blob - bottom right (changed from purple to match new colors) */
#slide-5 .color-blob.purple {
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(131, 156, 255, 0.25) 20%, rgba(131, 156, 255, 0) 75%);
  bottom: 14%;
  right: 17%;
  transform: scale(0.65) rotate(-15deg);
}

/* Removed unnecessary rule as we now use blob container */

.slide-content {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding: 0 3rem;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* iPhone 16 Pro frame styling with fixed border thickness */
.iphone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background-color: #9095b7; /* Light grey-purple */
  border-radius: 40px;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  border: 3px solid #9095b7; /* Fixed border thickness */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-screen {
  position: relative;
  width: calc(100% - 6px); /* Account for the border on both sides */
  height: calc(100% - 6px); /* Account for the border on both sides */
  background-color: #fff;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Notch removed */

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

.slide-text {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #515882, #8a93c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: none !important;
}

.slide-title::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 2px;
  width: 0;
  margin: 0.5rem auto 0;
  transition: width 0.4s cubic-bezier(.6,.2,.4,1);
}
.slide-title.recognize::after { background: #ff8f8f; } /* Updated to match new pink glow */
.slide-title.express::after { background: #ffe066; } /* Matches yellow glow */
.slide-title.transform::after { background: #7adfb5; } /* Matches green glow */
.slide-title.reflect::after { background: #839cff; } /* Updated to match new blue glow */
/* No underline for end-mantra */
.slide-active .slide-title::after { width: 70%; }

.slide-icon {
  font-size: 2rem;
  margin-right: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  display: inline-block;
  vertical-align: middle;
}
.slide-active .slide-icon {
  opacity: 1;
  transform: translateY(0);
}

.slide-tagline {
  display: block;
  font-size: 1.6rem;
  color: #777;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

/* End-mantra styling - used in end-card and section headers */
.end-mantra {
  font-size: 3rem;
  color: #515882;
  background: none !important;
  -webkit-text-fill-color: #515882;
  margin: 0 auto;
  padding-top: 3rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-center.end-mantra {
  margin-bottom: 3rem;
}

/* Phone backdrop gradient */
.phone-container {
  position: relative;
}
.phone-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(81,88,130,0.15) 0%, transparent 70%);
  z-index: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.slide-active .phone-container::before {
  opacity: 1;
  transform: scale(1);
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: #515882;
  z-index: 1000;
  transition: width 0.1s ease-out;
}


.journey-step {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #777;
  font-weight: 300;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 0;
  max-width: 80%;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #666;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: rgba(81, 88, 130, 0.2);
  border-radius: 50%;
}

/* Phone container styles - simplified without frame */
.phone-container {
  position: relative;
}

/* Phone image styling */
.phone-screen {
  position: relative;
  width: 280px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  /* Enhanced opacity for blobs only on the final screen for mobile */
  #slide-5 .color-blob.blue {
    background: radial-gradient(circle, rgba(255, 143, 143, 0.85) 20%, rgba(255, 143, 143, 0) 75%);
  }
  
  #slide-5 .color-blob.yellow {
    background: radial-gradient(circle, rgba(255, 224, 102, 0.8) 20%, rgba(255, 224, 102, 0) 75%);
  }
  
  #slide-5 .color-blob.green {
    background: radial-gradient(circle, rgba(122, 223, 181, 0.9) 20%, rgba(122, 223, 181, 0) 75%);
  }
  
  #slide-5 .color-blob.purple {
    background: radial-gradient(circle, rgba(131, 156, 255, 0.8) 20%, rgba(131, 156, 255, 0) 75%);
  }
  
  .slide-content {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 0 1.5rem;
    gap: 2rem;
  }
  
  .slide-image,
  .slide-text {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .slide-text {
    padding: 1rem;
    align-items: center;
  }
  
  /* Phone screen images should always fill the frame */
  .phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .iphone-frame {
    width: 250px;
    height: 520px;
  }
  
  /* No need to specify phone-screen width/height - it's calculated from the parent */
  
  .slide-title {
    font-size: 3.2rem;
  }
  
  .journey-step {
    max-width: 100%;
    text-align: center;
    padding-left: 0;
  }
}

/* Optional progress indicator */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: #515882;
  z-index: 1000;
  transition: width 0.1s ease-out;
}
