/* Mobile Apps page (owner-approved option E, 2026-10-27). Built on the About
   page styles (about.css); this file only adds the phone, the download card
   and the three-card row. */

/* Same page width as About */
.simple-main.public-main--apps {
  max-width: 1200px;
  padding-top: 48px;
}

/* Phone frame showing a real app screenshot */
.apps-device {
  position: relative;
  width: 232px;
  height: 470px;
  padding: 8px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 60%, #1e293b 100%);
  border-radius: 38px;
  box-shadow:
    inset 0 0 0 2px rgba(148, 163, 184, 0.35),
    0 30px 55px rgba(15, 23, 42, 0.28),
    0 10px 18px rgba(15, 23, 42, 0.18),
    0 0 90px rgba(27, 186, 248, 0.22);
}

/* Side buttons */
.apps-device::before,
.apps-device::after {
  content: "";
  position: absolute;
  right: -2.5px;
  width: 2.5px;
  background: #334155;
  border-radius: 0 2px 2px 0;
}

.apps-device::before { top: 96px; height: 54px; }
.apps-device::after { top: 164px; height: 32px; }

.apps-device-screen {
  height: 100%;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 30px;
}

.apps-device-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The phone sits in the same moving scene as the About hero */
/* Tall enough that the bottom flag sits below the phone, not behind it */
.apps-stage {
  flex: 1 1 440px;
  height: 620px;
}

.apps-stage .apps-device {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: -235px 0 0 -116px;
}

/* One download card: logo, name and the Google Play badge */
.apps-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin-top: 6px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--about-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
}

.apps-download-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.apps-download-text {
  display: flex;
  flex: 1 1 140px;
  flex-direction: column;
  gap: 2px;
}

.apps-download-text strong { font-size: 17px; }
.apps-download-text small { font-size: 14px; color: var(--about-muted); }

.apps-download-badge img {
  display: block;
  width: 170px;
  height: auto;
}

/* Google Play badge rules ask for this attribution wherever the badge shows. */
.apps-legal {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--about-muted);
}

.about-for.apps-for { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (prefers-reduced-motion: no-preference) {
  .apps-stage .apps-device { animation: apps-device-float 6s ease-in-out infinite alternate; }
}

@keyframes apps-device-float {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

@media (max-width: 720px) {
  .simple-main.public-main--apps { padding: 24px 16px 36px; }
  .about-for.apps-for { grid-template-columns: 1fr; }
  .apps-stage { height: auto; padding: 8px 0; }
  .apps-stage .apps-device { position: relative; left: auto; top: auto; margin: 0 auto; }
  .apps-download-badge { width: 100%; }
  .apps-download-badge img { width: 190px; margin: 4px auto 0; }
}
