/* The MA App landing page */

.ma-app-page {
  background: #f3f2ef;
}

.ma-app-hero {
  padding: 2.5rem 0 3rem;
  background: #ebe8e4;
}

.ma-app-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.ma-app-hero-copy {
  text-align: center;
  max-width: 420px;
  margin-inline: auto;
}

.ma-app-hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-title-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
}

.ma-app-hero-copy p {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
}

.ma-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.25rem 0 1.35rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.store-badge small {
  display: block;
  font-size: 0.62rem;
  opacity: 0.9;
}

.store-badge strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.store-badge-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.store-badge-ico.play {
  font-size: 0.85rem;
}

.ma-app-qr {
  width: 148px;
  height: 148px;
  object-fit: contain;
  background: #fff;
  padding: 0.55rem;
  margin: 0 auto;
  display: block;
}

.ma-app-fine {
  margin-top: 0.85rem !important;
  font-size: 0.75rem !important;
  color: #666 !important;
}

/* Phone shell */
.phone-device {
  width: min(100%, 280px);
  margin-inline: auto;
  aspect-ratio: 9 / 18.5;
  border: 3px solid #111;
  border-radius: 28px;
  background: #111;
  padding: 10px 8px 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  position: relative;
}

.phone-device.phone-sm {
  width: min(100%, 240px);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: #0a0a0a;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-home .ph-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0.85rem 0.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.ph-hero-shot {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 38%;
}

.ph-hero-shot-2 {
  min-height: 28%;
  opacity: 0.95;
}

.ph-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.55rem 0.35rem 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.ph-tabbar .on {
  font-weight: 800;
}

/* Orders */
.phone-orders {
  font-size: 0.62rem;
  color: #111;
}

.ph-orders-head {
  padding: 1.1rem 0.75rem 0.45rem;
}

.ph-orders-head strong {
  display: block;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.ph-orders-head span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
}

.ph-orders-head p {
  margin: 0.35rem 0 0;
  color: #555;
  line-height: 1.35;
}

.ph-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0 0.55rem;
  margin-bottom: 0.45rem;
}

.ph-tabs span {
  text-align: center;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.55rem;
}

.ph-tabs .on {
  border-bottom-color: #111;
}

.ph-order-meta {
  padding: 0 0.75rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.ph-timeline {
  list-style: none;
  margin: 0 0.75rem 0.55rem;
  padding: 0;
  border-left: 2px solid #ddd;
}

.ph-timeline li {
  position: relative;
  padding: 0 0 0.45rem 0.75rem;
}

.ph-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #bbb;
  background: #fff;
}

.ph-timeline li.done::before {
  background: #111;
  border-color: #111;
}

.ph-timeline b {
  display: block;
  letter-spacing: 0.04em;
}

.ph-timeline small {
  color: #777;
}

.ph-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  align-items: start;
}

.ph-thumb {
  width: 42px;
  height: 52px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
}

.ph-item p {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.ph-btn-outline,
.ph-btn-solid {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0.35rem 0.75rem 0.55rem;
  min-height: 34px;
  border: 1px solid #111;
  background: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ph-btn-solid {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Lock / push */
.phone-dark .phone-screen {
  background: #2a2a2a;
}

.phone-lock {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.35), rgba(20, 20, 20, 0.65)),
    url('../assets/categories/women.jpg') center / cover;
  justify-content: space-between;
  padding: 2.5rem 0.65rem 1.25rem;
}

.ph-lock-time {
  text-align: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
}

.ph-notify {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  gap: 0.4rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0.45rem;
  margin-bottom: 2rem;
}

.ph-notify-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.ph-notify-body {
  min-width: 0;
}

.ph-notify-body strong {
  display: block;
  font-size: 0.58rem;
  margin-bottom: 0.15rem;
}

.ph-notify-body span {
  display: block;
  font-size: 0.52rem;
  line-height: 1.3;
  color: #444;
}

.ph-notify-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

/* Map */
.phone-map {
  background: #dfe6ea;
}

.ph-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.65rem 0.45rem;
  background: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ph-map-canvas {
  flex: 1;
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, #c9d3d8 0 1px, transparent 1px 28px),
    repeating-linear-gradient(#c9d3d8 0 1px, transparent 1px 28px),
    #d5e0e4;
}

.ph-map-pin {
  position: absolute;
  top: 42%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.ph-map-sheet {
  background: #fff;
  padding: 0.65rem 0.7rem 0.75rem;
  font-size: 0.58rem;
}

.ph-map-sheet-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ph-map-line {
  margin: 0.2rem 0;
  color: #333;
}

.ph-hours {
  margin: 0.45rem 0 0;
  color: #555;
  line-height: 1.4;
}

/* Scanner */
.phone-scan {
  background: #111;
}

.ph-scan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.7rem;
  background: #fff;
  color: #111;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.ph-scan-view {
  flex: 1;
  display: grid;
  place-items: center;
  background: #0d0d0d;
}

.ph-scan-frame {
  position: relative;
  width: 70%;
  aspect-ratio: 1.4;
}

.ph-scan-frame i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
}

.ph-scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ph-scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ph-scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ph-scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.ph-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: #e10600;
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.7);
}

.ph-scan-foot {
  background: #fff;
  padding: 0.7rem;
  text-align: center;
  color: #111;
}

.ph-barcode-ico {
  width: 48px;
  height: 28px;
  margin: 0 auto 0.45rem;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 7px);
  position: relative;
}

.ph-barcode-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #e10600;
}

.ph-scan-foot p {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  line-height: 1.35;
  color: #444;
}

/* Feature rows */
.ma-app-features {
  padding: 2.75rem 0 3rem;
  background: #f7f5f2;
}

.ma-app-features-alt {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ma-app-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.ma-app-feature {
  text-align: center;
}

.ma-app-feature h2 {
  margin: 1.25rem 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.ma-app-feature p {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 900px) {
  .ma-app-hero-grid,
  .ma-app-feature-grid {
    grid-template-columns: 1fr;
  }

  .ma-app-hero-phone {
    order: -1;
  }

  .phone-device {
    width: min(100%, 260px);
  }
}
