/* Source guide: pages/living-well.css
 * Page-specific presentation.
 * Load order: base.css, components.css, page stylesheet, refresh.css.
 * Later rules intentionally refine earlier layouts; preserve cascade order.
 */

/* App page uses genuine screen images extracted from the supplied product deck. */
/* Group: App introduction. */
.app-hero {
  padding: 80px 0;
  background: var(--mint);
  overflow: hidden;
}
.app-hero .split {
  gap: 35px;
}
/* Group: Three-screen product composition. */
.app-hero-screens {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  position: relative;
  padding: 32px 12px 40px;
}
.app-hero-screens::before {
  content: "";
  width: 430px;
  height: 430px;
  position: absolute;
  border: 1px solid #badbd5;
  border-radius: 50%;
}
/* Group: Device framing around genuine app captures. */
.app-phone-frame {
  width: 35%;
  flex-shrink: 0;
  position: relative;
  padding: 0 0 18px;
  border: 2px solid #dce1e8;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 15px 22px #262d601c;
  overflow: hidden;
}
.app-phone-frame::after {
  content: "";
  display: block;
  position: absolute;
  width: 32%;
  height: 3px;
  bottom: 7px;
  left: 34%;
  border-radius: 3px;
  background: #acb2bf;
}
.app-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.app-phone-frame:first-child {
  transform: rotate(-9deg);
  margin-right: -30px;
}
.app-phone-frame:nth-child(2) {
  z-index: 2;
  width: 43%;
}
.app-phone-frame:last-child {
  transform: rotate(9deg);
  margin-left: -30px;
}
/* Group: Coaching and digital-support introduction. */
.app-intro {
  max-width: var(--page-width);
  text-align: left;
}
.app-intro .eyebrow {
  justify-content: center;
}
.app-intro .lead {
  margin-inline: 0;
  max-width: 660px;
}
/* Group: Screen-by-screen app features. */
.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.app-feature-grid article > div {
  height: 360px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #c7ddd7;
  margin-bottom: 26px;
}
.app-feature-grid img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.app-feature-grid h3 {
  font-size: 23px;
}
.app-feature-grid p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 15px;
}
/* Viewport (max-width: 1000px): component adjustments at this breakpoint. */
@media (max-width: 1000px) {
  .app-hero-screens {
    min-height: 370px;
  }
  .app-hero-screens::before {
    width: 340px;
    height: 340px;
  }
  .app-feature-grid {
    gap: 25px;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .app-hero .split {
    grid-template-columns: 1fr;
  }
  .app-hero {
    padding: 45px 0;
  }
  .app-hero-screens {
    min-height: 330px;
    margin-top: 10px;
  }
  .app-hero-screens .app-phone-frame {
    width: 34%;
    border-radius: 20px;
  }
  .app-hero-screens .app-phone-frame:nth-child(2) {
    width: 42%;
  }
  .app-feature-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .app-feature-grid article > div {
    height: 300px;
  }
  .app-feature-grid img {
    height: 100%;
  }
  .app-feature-grid article {
    text-align: center;
  }
  .app-intro {
    text-align: left;
  }
  .app-intro .eyebrow {
    justify-content: flex-start;
  }
}
