/* ==========================================================================
   Screenshots Section
   ========================================================================== */

/* Hero screenshot (replaces CSS phone mockup) */
.hero__screenshot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__screenshot {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  /* Subtle drop shadow to lift it off the background */
  filter: drop-shadow(0 24px 48px rgba(41, 25, 16, 0.18));
}

/* Screenshots section */
.screenshots {
  padding: 80px 0 96px;
  background: var(--cream);
  overflow: hidden;
}

.screenshots__row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 16px 8px 24px;
  /* Hide scrollbar on desktop, keep functional */
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
  -webkit-overflow-scrolling: touch;
}

.screenshots__row::-webkit-scrollbar {
  height: 4px;
}
.screenshots__row::-webkit-scrollbar-track {
  background: transparent;
}
.screenshots__row::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 2px;
}

/* Individual screenshot */
.screenshot-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Slight stagger for the middle item to add visual rhythm */
}

/* Elevate the center screenshot slightly */
.screenshot-item:nth-child(3) {
  margin-top: -16px;
}

.screenshot-item__img {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: drop-shadow(0 16px 32px rgba(41, 25, 16, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-item__img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 24px 40px rgba(41, 25, 16, 0.22));
}

.screenshot-item__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero__screenshot {
    max-width: 260px;
  }

  .screenshots__row {
    justify-content: flex-start;
    padding: 16px 24px 24px;
  }

  .screenshot-item__img {
    width: 170px;
  }

  .screenshot-item:nth-child(3) {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .screenshots {
    padding: 56px 0 72px;
  }

  .hero__screenshot {
    max-width: 220px;
  }

  .screenshot-item__img {
    width: 150px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .screenshot-item__img {
    transition: none;
  }
  .screenshot-item__img:hover {
    transform: none;
  }
}

/* ==========================================================================
   How It Works — Step 2 Rating Icons fix
   Keep all three icons the same size; use opacity to indicate active state
   ========================================================================== */
.step-demo-rate__icon {
  width: 48px !important;
  height: 48px !important;
  transform: none !important;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.step-demo-rate__icon--active {
  opacity: 1;
}
