/* ========================================
   MOBILE APP PAGE
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.mobile-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  margin-top: calc(var(--header-height) * -1);
  overflow: hidden;
}

/* Background */
.mobile-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mobile-hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile-first: show mobile, hide desktop */
.mobile-hero-bg-image--mobile {
  display: block;
}

.mobile-hero-bg-image--desktop {
  display: none;
}

@media (min-width: 768px) {
  .mobile-hero-bg-image--mobile {
    display: none;
  }

  .mobile-hero-bg-image--desktop {
    display: block;
  }
}

/* Inner Container */
.mobile-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Content */
.mobile-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Trust Badge */
.mobile-hero-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(239, 246, 255, 0.5);
  border-radius: 40px;
  outline: 1.25px solid #ffffff;
  outline-offset: -1.25px;
  backdrop-filter: blur(77.5px);
  -webkit-backdrop-filter: blur(77.5px);
}

.mobile-hero-trust-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-hero-trust-platform {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.mobile-hero-trust-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-hero-trust-star {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
}

.mobile-hero-trust-score {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.mobile-hero-trust-reviews {
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  line-height: 1;
}

/* Headline */
.mobile-hero-headline {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
}

/* Subheadline */
.mobile-hero-subheadline {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* CTA + Cosmetic Overlay */
.mobile-hero-cta-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-hero-cta {
  position: relative;
  z-index: 2;
}

.mobile-hero-cosmetic {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1198px;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  aspect-ratio: 1198 / 74;
}

/* App Screenshot */
.mobile-hero-app-image-wrap {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  overflow: hidden;
}

.mobile-hero-app-image {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-hero-app-image--mobile {
  aspect-ratio: 400 / 917;
}

.mobile-hero-app-image--desktop {
  display: none;
  aspect-ratio: 1391 / 638;
}

/* Tagline (below app image) */
.mobile-hero-tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-dark);
}

/* App Store Badges */
.ess-app-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ess-app-badge {
  display: block;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.ess-app-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.ess-app-badge-img {
  display: block;
  width: 140px;
  height: 42px;
  object-fit: contain;
}

/* ----------------------------------------
   Hero Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .mobile-hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
  }

  .mobile-hero-content {
    gap: 24px;
  }

  .mobile-hero-app-image-wrap {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
  }

  .mobile-hero-app-image--mobile {
    display: none;
  }

  .mobile-hero-app-image--desktop {
    display: block;
  }

  .mobile-hero-headline {
    font-size: 40px;
  }

  .mobile-hero-subheadline {
    font-size: 17px;
  }

  .mobile-hero-tagline {
    font-size: 17px;
  }

  .ess-app-badges {
    gap: 16px;
  }

  .ess-app-badge-img {
    width: 171px;
    height: 51px;
  }
}

/* ----------------------------------------
   Hero Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .mobile-hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
  }

  .mobile-hero-inner {
    padding: 0 15px;
  }

  .mobile-hero-app-image-wrap {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
  }

  .mobile-hero-cosmetic {
    display: block;
  }

  .mobile-hero-headline {
    font-size: 48px;
  }

  .mobile-hero-subheadline {
    font-size: 18px;
  }

  .mobile-hero-tagline {
    font-size: 18px;
  }
}

/* ----------------------------------------
   Hero RTL Overrides
   ---------------------------------------- */
[dir="rtl"] .cta-btn img {
  transform: scaleX(-1);
}

[dir="rtl"] .cta-btn:hover img {
  transform: scaleX(-1) translateX(-4px);
}

/* ========================================
   WHY SECTION
   ======================================== */

.mobile-why-section {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

/* Decorative vector bridge */
.mobile-why-vector {
  position: absolute;
  top: -600px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1440px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Background */
.mobile-why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mobile-why-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-why-bg-image--mobile {
  display: block;
}

.mobile-why-bg-image--desktop {
  display: none;
}

@media (min-width: 768px) {
  .mobile-why-bg-image--mobile {
    display: none;
  }

  .mobile-why-bg-image--desktop {
    display: block;
  }
}

/* Inner Container */
.mobile-why-inner {
  position: relative;
  z-index: 2;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Header */
.mobile-why-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
}

.mobile-why-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.mobile-why-tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.mobile-why-desc {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Cards */
.mobile-why-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mobile-why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-why-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a303b;
  flex-shrink: 0;
}

.mobile-why-card-icon img {
  width: 24px;
  height: 24px;
}

.mobile-why-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

.mobile-why-card-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* CTA */
.mobile-why-cta {
  margin-top: 8px;
}

/* ----------------------------------------
   Why Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .mobile-why-section {
    padding: 80px 0;
  }

  .mobile-why-title {
    font-size: 36px;
  }

  .mobile-why-tagline {
    font-size: 17px;
  }

  .mobile-why-desc {
    font-size: 16px;
  }

  .mobile-why-cards {
    flex-direction: row;
    gap: 20px;
  }

  .mobile-why-card {
    flex: 1;
    padding: 40px 24px;
  }
}

/* ----------------------------------------
   Why Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .mobile-why-section {
    padding: 100px 0;
  }

  .mobile-why-inner {
    padding: 0 15px;
    gap: 48px;
  }

  .mobile-why-title {
    font-size: 42px;
  }

  .mobile-why-tagline {
    font-size: 18px;
  }

  .mobile-why-desc {
    font-size: 17px;
  }

  .mobile-why-cards {
    gap: 24px;
  }

  .mobile-why-card {
    padding: 48px 32px;
  }

  .mobile-why-card-title {
    font-size: 20px;
  }

  .mobile-why-card-desc {
    font-size: 15px;
  }
}

/* ========================================
   FEATURE SECTIONS (ESS / MSS)
   ======================================== */

.feature-section {
  padding: 60px 0;
  overflow: hidden;
}

.feature-section--reverse {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
}

.feature-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Text Column */
.feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.mobile-feature-title,
.mobile-feature-desc {
  text-align: center;
  align-self: center;
}

.mobile-feature-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
}

.mobile-feature-desc {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.feature-label {
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
}

/* Key Points List */
.feature-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.feature-point {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark);
  border-bottom: 1px solid rgba(136, 165, 191, 0.6);
}

.feature-point:last-child {
  border-bottom: none;
}

.feature-text .cta-btn {
  margin-top: 24px;
  align-self: center;
}

/* Image Column */
.feature-image-wrap {
  display: flex;
  justify-content: center;
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
}

.feature-image--mobile {
  max-width: 400px;
  aspect-ratio: 400 / 876;
}

.feature-image--desktop {
  display: none;
}

/* ----------------------------------------
   Feature Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .feature-section {
    padding: 80px 0;
  }

  .mobile-feature-title {
    font-size: 32px;
  }

  .mobile-feature-desc {
    font-size: 16px;
  }

  .feature-point {
    font-size: 15px;
    padding: 16px 0;
  }
}

/* ----------------------------------------
   Feature Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .feature-section {
    padding: 100px 0;
  }

  .feature-inner {
    padding: 0 15px;
  }

  .feature-layout {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .feature-text {
    flex: 1;
    min-width: 0;
  }

  .mobile-feature-title,
  .mobile-feature-desc {
    text-align: start;
    align-self: flex-start;
  }

  .mobile-feature-title {
    font-size: 38px;
  }

  .mobile-feature-desc {
    font-size: 16px;
  }

  .feature-label {
    font-size: 17px;
  }

  .feature-point {
    font-size: 15px;
  }

  /* Image Column */
  .feature-image-wrap {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .feature-image--mobile {
    display: none;
  }

  .feature-image--desktop {
    display: block;
    width: 100%;
    height: auto;
  }

  .feature-text .cta-btn {
    align-self: flex-start;
  }

  /* MSS: reversed layout (image left, text right) */
  .feature-section--reverse .feature-layout {
    flex-direction: row-reverse;
  }
}

/* ========================================
   CORE FEATURES & MODULES SECTION
   ======================================== */

.modules-section {
  padding: 60px 0;
}

.modules-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 768px) {
  .modules-inner {
    padding: 0 20px;
  }
}

.modules-title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
  text-align: center;
}

/* Grid */
.modules-grid {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

/* Row */
.modules-row {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(229, 236, 255, 0.6) 0%,
    rgba(217, 226, 249, 0.6) 100%
  );
}

.modules-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #c9d3e6;
}

.modules-row:last-child::after {
  display: none;
}

/* Card */
.modules-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  border-bottom: 1px solid #c9d3e6;
}

.modules-row:last-child .modules-card:last-child,
.modules-card:last-child {
  border-bottom: none;
}

.modules-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.modules-card-category {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.modules-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

.modules-card-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Modules Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .modules-section {
    padding: 80px 0;
  }

  .modules-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
}

/* ----------------------------------------
   Modules Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .modules-section {
    padding: 100px 0;
  }

  .modules-inner {
    padding: 0 15px;
  }

  .modules-title {
    font-size: 38px;
    text-align: start;
    margin-bottom: 48px;
  }

  /* Row: horizontal */
  .modules-row {
    flex-direction: row;
  }

  .modules-row::after {
    left: 2.5%;
    width: 95%;
  }

  /* Card: flex equal, right border */
  .modules-card {
    flex: 1;
    max-width: 33.333%;
    padding: 32px;
    border-bottom: none;
    border-right: 1px solid #c9d3e6;
  }

  .modules-card:last-child {
    border-right: none;
  }

  .modules-card-title {
    font-size: 18px;
  }

  .modules-card-desc {
    font-size: 14px;
  }
}

/* ========================================
   EMPLOYEE SERVICES INTEGRATIONS SECTION
   ======================================== */

.mobile-intg-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
}

.mobile-intg-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.mobile-intg-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
  text-align: center;
}

.mobile-intg-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mobile-intg-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid #fff;
  background: rgba(218, 228, 255, 0.6);
  border-radius: 16px;
}

.mobile-intg-card-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-intg-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-intg-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: start;
}

.mobile-intg-card-category {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.mobile-intg-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

.mobile-intg-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Integrations Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .mobile-intg-section {
    padding: 80px 0;
  }

  .mobile-intg-title {
    font-size: 32px;
  }

  .mobile-intg-cards {
    flex-direction: row;
    gap: 24px;
  }

  .mobile-intg-card {
    flex: 1;
    padding: 28px;
  }
}

/* ----------------------------------------
   Integrations Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .mobile-intg-section {
    padding: 100px 0;
  }

  .mobile-intg-inner {
    align-items: flex-start;
    gap: 48px;
    padding: 0 15px;
  }

  .mobile-intg-title {
    font-size: 38px;
    text-align: start;
  }

  .mobile-intg-card {
    padding: 32px;
    gap: 24px;
  }

  .mobile-intg-card-logo {
    width: 100px;
    height: 100px;
  }

  .mobile-intg-card-title {
    font-size: 18px;
  }

  .mobile-intg-card-desc {
    font-size: 15px;
  }
}

/* ========================================
   EARNED WAGE ACCESS (EWA) SECTION
   Reuses feature-section layout classes.
   Only unique styles below.
   ======================================== */

.ewa-section {
  position: relative;
}

.ewa-inner {
  position: relative;
  z-index: 1;
}

.ewa-section .feature-image-wrap {
  position: relative;
}

.ewa-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ewa-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ewa-bg-image--mobile {
  display: block;
}

.ewa-bg-image--desktop {
  display: none;
}

@media (min-width: 768px) {
  .ewa-bg-image--mobile {
    display: none;
  }

  .ewa-bg-image--desktop {
    display: block;
  }
}

.ewa-image {
  max-width: 538px;
  aspect-ratio: 538 / 502;
}

/* Featured Icon */
.ewa-featured-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ewa-featured-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(45, 117, 119, 0.2);
  border-radius: 50%;
  filter: blur(10px);
}

.ewa-featured-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ewa-featured-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ========================================
   SECURE BY DESIGN SECTION
   Reuses feature-section layout classes.
   Only unique styles below.
   ======================================== */

.secure-image {
  max-width: 596px;
  aspect-ratio: 596 / 421;
}

/* ========================================
   CARD HOVERS
   GPU-only, no CLS.
   ======================================== */

@media (hover: hover) {
  .mobile-why-card,
  .mobile-intg-card,
  .modules-card {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      background 0.25s ease;
  }

  .mobile-why-card:hover,
  .mobile-intg-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.05),
      0 16px 40px rgba(0, 0, 0, 0.08);
  }

  .modules-card:hover {
    background: rgba(255, 255, 255, 0.4);
  }
}
