/* ==========================================================================
   pages/download.css — download.html
   ========================================================================== */

.hero__tg {
  margin-top: var(--space-sm);
}

@media (max-width: 559px) {
  .hero__tg {
    width: 100%;
  }
}

.download-hero .hero__intro,
.download-hero .hero__cta,
.download-hero .mockup {
  min-width: 0;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Dual-phone mockup: a back device peeking out behind the hero device.
   -------------------------------------------------------------------------- */

.mockup--duo {
  position: relative;
}

.mockup--duo .mockup__phone--front {
  position: relative;
  z-index: 3;
}

.mockup--duo .mockup__phone--back {
  position: absolute;
  z-index: 2;
  width: min(72%, 232px);
  opacity: 0.82;
  filter: saturate(0.85) brightness(0.82);
  animation: phone-float-back 9s var(--ease-in-out) infinite;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(212, 175, 55, 0.24);
}

/* Hidden on the narrowest screens so nothing can push the layout sideways. */
@media (max-width: 519px) {
  .mockup--duo .mockup__phone--back {
    display: none;
  }
}

@media (min-width: 520px) {
  .mockup--duo .mockup__phone--back {
    left: 2%;
    top: 12%;
  }

  .mockup--duo .mockup__phone--front {
    transform: translateX(9%);
  }
}

@media (min-width: 1000px) {
  .mockup--duo .mockup__phone--back {
    left: -2%;
    top: 10%;
  }
}

@keyframes phone-float-back {
  0%,
  100% {
    transform: translateY(0) rotateY(12deg) rotateZ(-4deg) scale(0.96);
  }
  50% {
    transform: translateY(14px) rotateY(8deg) rotateZ(-2.5deg) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockup--duo .mockup__phone--back {
    animation: none;
    transform: rotateZ(-4deg) scale(0.96);
  }
}

/* Chips sit above both devices */
.mockup--duo .mockup__chip {
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Spec + prose helpers reused from the content pages
   -------------------------------------------------------------------------- */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-border-gold-soft);
  color: var(--color-gold-bright);
}

.steps .step {
  align-items: start;
}

@media (min-width: 768px) {
  .steps .step {
    grid-template-columns: 58px 1fr;
  }
}

#devices .card__list li::before {
  content: '›';
  font-size: 0.9rem;
  line-height: 1.6;
}
