/* ----------------------------------------------------------
   APP DEVELOPMENT SHOWCASE
----------------------------------------------------------- */

.app-hero {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  background-color: #ffffff;
  overflow-x: hidden;
}

.app-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  align-items: flex-start;
  column-gap: 2.6rem;
  grid-template-columns: 1fr 1fr;
}

/* Left content */

.app-hero__content {
  max-width: 30rem;
}

.app-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 1.6rem;
  margin-bottom: 1.6rem;
  border-radius: 999px;
  background-color: #f4f5f7;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111827;
  font-weight: 600;
}

.app-hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.app-hero__lead {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #6b7280;
}

.app-hero__subcopy {
  margin-top: 1.2rem;
}

.app-hero__subcopy p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #6b7280;
}

/* Steps */

.app-steps {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-step {
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  transition:
    background-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out,
    color 0.18s ease-out;
}

.app-step__title {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.app-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Active Schritt – white card with shadow */
.app-step--active {
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  color: #111827;
}

.app-step--active .app-step__text {
  color: #4b5563;
}

/* Muted Schritte – light text, flat, but hoverable */
.app-step--muted {
  background: transparent;
  color: #d1d5db;
  cursor: pointer;
}

.app-step--muted .app-step__text {
  color: #e5e7eb;
}

/* Hover effect only on non-active steps */
.app-step--muted:hover {
  background-color: #f3f4f6;
  color: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-step--muted:hover .app-step__text {
  color: #6b7280;
}

/* Right column: device */

.app-hero__device {
  justify-self: end;
}

/* Phone wrapper */

.device-frame {
  position: relative;
  width: 340px;             /* fits nicely on 13" */
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
}

/* Screen area behind the transparent shell */
.device-screen {
  position: absolute;
  top: 2.3%;        /* was 2.8% */
  bottom: 3.3%;     /* was 3.8% */
  left: 3.8%;       /* was 4.2% */
  right: 3.8%;      /* was 4.2% */
  border-radius: 42px;  /* was 42px */
  overflow: hidden;
  background-color: #000;
  z-index: 1;
}

/* Transparent phone shell on top */

.device-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

/* Slides – FADE ONLY (no slide transform) */

.device-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.device-slide--active {
  opacity: 1;
}

.device-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   RESPONSIVE – APP PAGE
----------------------------------------------------------- */

@media (max-width: 960px) {
  .app-hero {
    padding-top: 3rem;
    padding-bottom: 3.4rem;
  }

  .app-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 3.2rem;
  }

  .app-hero__content {
    max-width: 100%;
  }

  .app-hero__device {
    justify-self: center;
  }

  .device-frame {
    width: min(320px, 82vw);
  }
}

@media (max-width: 768px) {
  .app-hero__content {
    text-align: left;
  }

  .app-hero__eyebrow {
    margin-left: 0;
  }

  .app-hero__lead,
  .app-hero__subcopy {
    margin-left: 0;
    margin-right: 0;
  }

  .app-steps {
    margin-top: 2.2rem;
  }

  .app-hero__device {
    margin-top: 0.4rem;
  }

  .device-frame {
    width: min(320px, 88vw);
  }
}

@media (max-width: 480px) {
  .app-hero__title {
    font-size: 2.3rem;
  }

  .device-frame {
    width: min(300px, 90vw);
  }
}

/* ----------------------------------------------------------
   PACKAGES (ADDED)
----------------------------------------------------------- */

.app-packages {
  margin-top: 3.2rem;
}

.app-packages__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.app-packages__lead {
  margin-top: 0.6rem;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
}

.app-packages__grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.app-package {
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  background-color: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  transition: box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

.app-package:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
}

.app-package__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.app-package__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.app-package__meta {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #4b5563;
}

.app-package__list {
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.app-package__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
}

.app-package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #f4f5f7;
}

/* Responsive for packages only */

@media (max-width: 960px) {
  .app-packages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-packages__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
