/* Mobile app page (/mobile-app/), on top of css/online-payments.css and css/crm.css */

/* `hidden` would make the page a scroll container and break the sticky role switcher */
.op-page.app-page { overflow-x: clip; }

/* Sections land below the fixed header and the sticky role switcher */
.app-page section[id] { scroll-margin-top: 72px; }

/* Hero */
.app-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.app-hero-actions .op-stores { margin-top: 0; }
.app-hero-actions .op-btn { min-height: 52px; padding: 12px 28px; }

.app-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}
.app-hero-phone {
  position: absolute;
  display: block;
  width: 46%;
  max-width: 270px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(44, 44, 98, 0.18));
}
.app-hero-phone-front { left: 18%; top: 0; z-index: 1; }
.app-hero-phone-back { right: 10%; top: 56px; transform: rotate(6deg); opacity: 0.96; }

.app-chip-1 { left: 0; top: 18%; }
.app-chip-2 { right: 0; top: 52%; }
.app-chip-3 { left: 6%; bottom: 8%; }

/* Sticky role switcher */
.app-role-nav {
  position: sticky;
  top: 132px;
  z-index: 50;
  padding: 8px 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.app-role-nav.is-past {
  opacity: 0;
  visibility: hidden;
}
.app-role-tabs {
  position: relative;
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 6px !important;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(44, 44, 98, 0.1);
}
.app-role-tabs::-webkit-scrollbar { display: none; }
.app-role-tabs li { flex-shrink: 0; }
.app-page .app-role-tab {
  display: block;
  padding: 10px 20px;
  border-radius: 40px;
  color: var(--dark-purple, #4a4a8d);
  font-family: var(--button-font-family, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-ui, 200ms) ease, color var(--duration-ui, 200ms) ease;
}
.app-page .app-role-tab:hover { color: var(--purple-accent, #7272ec); }
.app-page .app-role-tab.is-active { background: var(--purple-accent, #7272ec); color: #fff; }
.app-page .app-role-tab:focus-visible { outline: 2px solid var(--purple-accent, #7272ec); outline-offset: 2px; }

/* Role cards */
.app-role-card { flex-direction: column; padding: 28px; }
.app-role-card .op-icon-badge { margin-bottom: 18px; }
.app-role-card .op-card-title { font-size: 22px; }
.app-role-card .op-card-text { font-size: 16px; }
.app-role-more {
  margin-top: 16px;
  color: var(--purple-accent, #7272ec);
  font-family: var(--h5-font-family, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 700;
}

/* Role sections */
.app-role-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
.app-role-head .op-title { margin-top: 16px !important; }
.app-role-head .op-stores { justify-content: center; margin-top: 24px; }
.app-pill {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  border-radius: 40px;
  background: var(--purple-accent, #7272ec);
  color: #fff !important;
  font-family: var(--button-font-family, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--duration-ui, 200ms) ease, transform var(--duration-press, 160ms) var(--ease-out, ease);
}
.app-pill:hover { opacity: 0.9; }
.app-pill:active { transform: scale(0.97); }
.app-pill:focus-visible { outline: 2px solid var(--purple-accent, #7272ec); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .app-pill:active { transform: none; }
}

/* Features with phone screenshots: mockups have transparent backgrounds */
.app-features .crm-feature-head .op-card-text { margin-top: 6px !important; }
.app-features .crm-feature-media { display: flex; justify-content: center; }
.app-features .crm-feature-media img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 40px rgba(44, 44, 98, 0.18));
}
.app-features .crm-feature-media-on { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.app-features .crm-feature-reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.app-block-title {
  margin-top: 48px !important;
  font-family: var(--h3-font-family, "Nunito", sans-serif);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark-purple, #4a4a8d);
  text-align: center;
}
.app-block-subtitle { margin-top: 8px !important; font-size: 16px; }
.app-block-title + .op-steps,
.app-block-title + .op-grid { margin-top: 28px !important; }
.app-block-subtitle + .op-steps { margin-top: 28px !important; }

.app-extra .op-icon-badge { margin-bottom: 14px; }
.app-extra .op-card-title { font-size: 18px; }
.app-extra .op-card-text { font-size: 15px; }

.app-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app-steps-5 .op-step { padding: 24px; }
.app-steps-5 .op-card-title { font-size: 18px; }
.app-steps-5 .op-card-text { font-size: 15px; }

/* Owners */
.app-owners .op-subtitle { max-width: none; }
.app-owners-btn { margin-top: 28px; }

/* Highlights */
.app-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-highlights .op-benefit-title { font-size: 18px; }
.app-highlights .op-benefit-text { font-size: 15px; }

/* Download band */
.app-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: 48px 56px;
  border-radius: 40px;
  background: linear-gradient(120deg, var(--purple-accent, #7272ec) 0%, var(--bgdark, #2c2c62) 100%);
}
.app-download .op-title, .app-download .op-subtitle { text-align: left; margin-left: 0 !important; }
.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.app-download-actions .op-stores { margin-top: 0; }
.app-download .op-store { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.app-download .op-btn-primary { background: #fff; border-color: #fff; color: var(--purple-accent, #7272ec) !important; }

/* Responsive */
@media screen and (max-width: 1165px) {
  .app-role-nav { top: 112px; }
  .app-steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 1100px) {
  .app-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 960px) {
  .app-hero-inner { grid-template-columns: 1fr; }
  .app-hero-media { min-height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .app-features .crm-feature-media-on,
  .app-features .crm-feature-reverse { grid-template-columns: 1fr; }
  .app-features .crm-feature-media img { max-height: 480px; }
  .app-steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-download { padding: 40px; }
}
@media screen and (max-width: 767px) {
  .app-page section[id] { scroll-margin-top: 64px; }
  .app-hero-actions { flex-direction: column; align-items: stretch; }
  .app-hero-actions .op-stores { justify-content: center; }
  .app-hero-actions .op-btn { width: 100%; }
  .app-hero-media { min-height: 430px; }
  .app-hero-phone { max-width: 210px; }
  .app-role-nav { padding: 6px 0; }
  .app-role-tabs { width: auto; }
  .app-page .app-role-tab { padding: 9px 14px; font-size: 14px; }
  .app-role-card { padding: 22px; }
  .app-role-head { margin-bottom: 28px; }
  .app-features .crm-feature-media img { max-height: 420px; }
  .app-block-title { margin-top: 36px !important; font-size: 22px; }
  .app-steps-5 { grid-template-columns: 1fr; }
  .app-highlights { grid-template-columns: 1fr; }
  .app-download { padding: 28px 20px; border-radius: 28px; }
  .app-download-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .app-download-actions .op-stores { justify-content: center; }
}
@media screen and (max-width: 610px) {
  .app-role-nav { top: 100px; }
}
@media screen and (max-width: 420px) {
  .app-hero-media { min-height: 380px; }
  .app-chip-2 { top: 58%; }
}
