/* ==========================================================================
   OL Download App — module.css
   2026 OneLife Theme
   Figma: Onelife-Website node 747:13671
   Glass steps card + store badges + animated phone mockups
   ========================================================================== */

.ol-da {
  --ol-da-bg: #000000;
  --ol-da-card-bg: rgba(255, 255, 255, 0.35);
  --ol-da-card-border: #ffffff;
  --ol-da-heading: #ffffff;
  --ol-da-step-title: #ffffff;
  --ol-da-step-body: #ffffff;

  width: 100%;
  background-color: var(--ol-da-bg);
  overflow: hidden;
}

.ol-da__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px;
  box-sizing: border-box;
}

.ol-da--content-right .ol-da__inner {
  flex-direction: row-reverse;
}


/* ==========================================================================
   Glass content card
   ========================================================================== */

.ol-da__content-col {
  flex: 1 1 455px;
  max-width: 520px;
  min-width: 0;
}

.ol-da__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  padding: 32px 24px;
  box-sizing: border-box;
  background-color: var(--ol-da-card-bg);
  border: 0.5px solid var(--ol-da-card-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .ol-da__card {
    background-color: rgba(40, 40, 40, 0.85);
  }
}

.ol-da__heading {
  margin: 0;
  width: 100%;
  font-family: var(--ol-font-family, 'Rubik', sans-serif);
  font-size: var(--ol-text-h3, 28px);
  font-weight: 500;
  line-height: 36px;
  color: var(--ol-da-heading);
  word-break: break-word;
}


/* ==========================================================================
   Numbered steps
   ========================================================================== */

.ol-da__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  counter-reset: none;
}

.ol-da__step {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.ol-da__step-title {
  margin: 0;
  font-family: var(--ol-font-family, 'Rubik', sans-serif);
  font-size: var(--ol-text-body-lg, 18px);
  font-weight: 500;
  line-height: 28px;
  color: var(--ol-da-step-title);
}

.ol-da__step-num {
  font-weight: 500;
}

.ol-da__step-desc {
  margin: 0;
  padding-left: 1.35em;
  font-family: var(--ol-font-family, 'Rubik', sans-serif);
  font-size: var(--ol-text-body, 16px);
  font-weight: 400;
  line-height: 26px;
  color: var(--ol-da-step-body);
}


/* ==========================================================================
   Store badges
   ========================================================================== */

.ol-da__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.ol-da__badge {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ol-da__badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.ol-da__badge:focus-visible {
  outline: 3px solid var(--ol-color-blue, #0065B1);
  outline-offset: 3px;
}

.ol-da__badge-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 57px;
  object-fit: contain;
  object-position: center;
}


/* ==========================================================================
   Phone mockups
   ========================================================================== */

.ol-da__phones-col {
  flex: 0 1 630px;
  width: 100%;
  max-width: 630px;
  min-width: 0;
}

.ol-da__phones {
  position: relative;
  width: 100%;
  aspect-ratio: 630 / 639;
  max-height: 639px;
  transform-style: preserve-3d;
  --ol-da-lift: 0px;
  --ol-da-spread: 0px;
  --ol-da-scroll: 0px;
  --ol-da-glow-opacity: 0;
  --ol-da-glow-shift: 0px;
}

/* Brand glow behind the phones — strong, scroll-parallax drift */
.ol-da__phones::before {
  content: "";
  position: absolute;
  inset: -28% -20% -30%;
  border-radius: 50%;
  background: radial-gradient(
    48% 48% at 50% 52%,
    rgba(0, 174, 239, 0.50) 0%,
    rgba(236, 118, 47, 0.34) 45%,
    rgba(0, 0, 0, 0) 74%
  );
  filter: blur(56px);
  transform: translateZ(-80px) translate3d(var(--ol-da-glow-shift, 0px), var(--ol-da-glow-lift, 0px), 0) scale(1.08);
  opacity: var(--ol-da-glow-opacity, 0.2);
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

.ol-da__phone {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.ol-da__phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* Separate cutouts — front phone owns the overlap */
.ol-da__phones--separate .ol-da__phone--back {
  z-index: 1;
  inset: 0;
}

.ol-da__phones--separate .ol-da__phone--front {
  z-index: 2;
  inset: 0;
}

/* ==========================================================================
   Animations — scroll-linked entrance/parallax + ambient drift
   ========================================================================== */

/* Pre-reveal: fade + slide in from the right */
.ol-da--animate .ol-da__phone {
  opacity: 0;
  transform: translate3d(110px, 0, -30px) scale(0.94);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.05s;
}

.ol-da--animate .ol-da__phone--front,
.ol-da--animate .ol-da__phone--combined {
  transform: translate3d(150px, 0, 0) scale(0.94);
  transition-delay: 0.22s;
}

/* Revealed — phones settle in place */
.ol-da--animate.is-inview .ol-da__phone {
  opacity: 1;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.ol-da--animate.is-inview .ol-da__phone--back {
  transform: translate3d(0, 0, -48px) scale(0.985);
  transition-delay: 0.05s;
}

.ol-da--animate.is-inview .ol-da__phone--front {
  transform: translate3d(0, 0, 56px) scale(1.02);
  transition-delay: 0.22s;
}

.ol-da--animate.is-inview .ol-da__phone--combined {
  transform: translate3d(0, 0, 0) scale(1.01);
  animation: ol-da-drift 7s ease-in-out 1s infinite;
}

/* Gentle ambient drift after entrance so it never feels static */
@keyframes ol-da-drift {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

.ol-da-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .ol-da__inner {
    flex-direction: column;
    gap: 48px;
    padding: 64px 40px;
  }

  .ol-da--content-right .ol-da__inner {
    flex-direction: column;
  }

  .ol-da__content-col,
  .ol-da__phones-col {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .ol-da__phones-col {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .ol-da__inner {
    padding: 48px 20px;
    gap: 40px;
  }

  .ol-da__card {
    gap: 32px;
    padding: 28px 20px;
  }

  .ol-da__heading {
    font-size: 24px;
    line-height: 32px;
  }

  .ol-da__badges {
    flex-direction: column;
    gap: 12px;
  }

  .ol-da__badge {
    width: 100%;
    max-width: 240px;
  }

  .ol-da__badge-img {
    max-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ol-da--animate .ol-da__phone,
  .ol-da--animate.is-inview .ol-da__phone--back,
  .ol-da--animate.is-inview .ol-da__phone--front,
  .ol-da--animate.is-inview .ol-da__phone--combined {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  .ol-da__phones::before {
    opacity: 0.85 !important;
    transition: none !important;
  }

  .ol-da__badge {
    transition: none;
  }
}
