/* Product visuals supplied for the October 2026 NexBudget showcase. */
.hero-poster {
  position: absolute;
  right: 10%;
  top: 0;
  display: block;
  width: min(342px, 72%);
  aspect-ratio: 521 / 929;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, .9);
  border-radius: 34px;
  background: #111;
  box-shadow: 0 42px 75px rgba(7, 62, 53, .28);
  transform: rotate(2deg);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-poster:hover {
  transform: rotate(0) translateY(-7px);
  box-shadow: 0 48px 85px rgba(7, 62, 53, .33);
}

.hero-poster img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-14.9%);
}

.hero-poster-badge {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-poster-badge > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #7258f5);
}

.hero-poster-badge b,
.hero-poster-badge small {
  display: block;
}

.hero-poster-badge b {
  font-size: 11px;
}

.hero-poster-badge small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.feature-stories {
  background: linear-gradient(180deg, #f7fbf8, #eef9f4);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) 1fr;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(7, 62, 53, .08);
}

.story-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
  background: #eef8f3;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media.screenshot-crop {
  aspect-ratio: 521 / 929;
}

.story-media.screenshot-crop img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-14.9%);
}

.story-copy {
  padding: 32px;
}

.story-copy > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.story-copy h3 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-features {
  background: #fff;
}

.family-visual {
  justify-self: center;
  width: min(100%, 430px);
  max-height: 760px;
  overflow: hidden;
}

.family-visual img {
  height: 730px;
  object-fit: cover;
}

.family-copy {
  max-width: 560px;
}

@media (max-width: 900px) {
  .hero-stage {
    min-height: 630px;
  }

  .hero-poster {
    right: 50%;
    width: 350px;
    transform: translateX(50%) rotate(2deg);
  }

  .hero-poster:hover {
    transform: translateX(50%) rotate(0) translateY(-7px);
  }

  .hero-poster-badge {
    left: 7%;
    bottom: 8%;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: minmax(190px, .62fr) 1fr;
  }

  .family-visual {
    width: min(430px, 100%);
  }
}

@media (max-width: 650px) {
  .hero-stage {
    min-height: 580px;
  }

  .hero-poster {
    width: 310px;
    max-width: 88%;
    border-width: 7px;
    border-radius: 28px;
  }

  .hero-poster-badge {
    left: 0;
    right: 0;
    bottom: 2%;
    width: max-content;
    max-width: 94%;
    margin: auto;
  }

  .story-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-media {
    min-height: 0;
    aspect-ratio: 521 / 929;
  }

  .story-copy {
    padding: 26px;
  }

  .family-visual {
    max-height: 650px;
  }

  .family-visual img {
    height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-poster {
    transition: none;
  }
}
