/* ------------------------------------------------------------------
   /features/app

   Loaded after feature-page.css, integrations.css and email-triage.css,
   which supply the hero, jump pills, bands, problem tiles, dark band and
   CTA (`ix-`, `et-`). This file holds only the phone frames, the store
   buttons and the band colours: everything here carries an `ma-` prefix
   or targets the page's own section ids.
   ------------------------------------------------------------------ */

/* Band colours by id, so the At a glance panel above them can't flip them. */
#problem,
#read,
#texts,
#notifications {
  background: var(--bg);
}

#inbox,
#reply,
#link {
  background: white;
}

.ma-hero-inner {
  grid-template-columns: minmax(0, 1fr) 460px;
}

/* ---------- Store buttons (styled globally, placed here) ---------- */

.ma-stores-hero {
  margin: 26px 0 8px;
}

.ma-stores-cta {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Phones ---------- */

.ma-phone {
  position: relative;
  width: 100%;
  max-width: 270px;
  padding: 8px;
  border-radius: 40px;
  background: #1d2a2e;
  box-shadow: 0 24px 56px rgba(34, 54, 60, 0.22);
}

.ma-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.ma-shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.ma-shots-pair .ma-phone {
  max-width: 250px;
}

.ma-shots-pair .ma-phone:first-child {
  z-index: 1;
}

.ma-shots-pair .ma-phone:last-child {
  margin-left: -36px;
  margin-top: 64px;
}

/* ---------- Hero: two phones and two floating cards ---------- */

.ma-hero-art {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  height: 560px;
}

.ma-hero-art .ma-phone {
  position: absolute;
  max-width: 240px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ma-phone-back {
  right: 0;
  top: 0;
  opacity: 0.92;
}

.ma-phone-front {
  left: 20px;
  top: 52px;
  z-index: 1;
}

.ma-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: white;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.ma-float span:last-child {
  display: flex;
  flex-direction: column;
}

.ma-float small {
  font-weight: 400;
  color: var(--gray, #6b7b80);
}

.ma-float-a {
  right: -8px;
  top: 300px;
}

.ma-float-b {
  left: -10px;
  bottom: 0;
}

.ma-float-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.ma-float-icon-purple {
  background: rgba(181, 164, 203, 0.3);
  color: #6d5a8a;
}

/* ---------- Works like the web ---------- */

.ma-same-grid .ix-build-card p {
  margin: 0;
}

/* ---------- CTA ---------- */

.ma-cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px !important;
  font-size: 1rem !important;
}

.ma-cta-note + .ma-cta-note {
  margin-top: 8px !important;
}

.ma-cta-note-muted {
  font-size: 0.9rem !important;
}

.ma-cta-note svg {
  color: var(--green);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1024px) {
  .ma-hero-inner {
    grid-template-columns: 1fr;
  }

  .ma-hero-art {
    margin-top: 24px;
  }
}

@media (max-width: 860px) {
  .ma-band .ix-group-inner {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .ma-hero-art {
    height: 470px;
    max-width: 340px;
  }

  .ma-hero-art .ma-phone {
    max-width: 190px;
    padding: 6px;
    border-radius: 32px;
  }

  .ma-hero-art .ma-phone img {
    border-radius: 26px;
  }

  .ma-phone-front {
    left: 0;
    top: 44px;
  }

  .ma-float-a {
    right: 0;
    top: 250px;
  }

  .ma-float-b {
    left: 0;
  }

  .ma-shots-pair .ma-phone {
    max-width: 180px;
  }

  .ma-shots-pair .ma-phone:last-child {
    margin-left: -24px;
    margin-top: 44px;
  }
}
