.wellness-wrap {
  z-index: 5;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.wellness {
  width: min(140rem, calc(100% - 8rem));
  margin: 0 auto;
  padding: 9rem 0 0;
}

.wellness-intro {
  max-width: 92rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.wellness-heading {
  margin: 0;
  overflow: hidden;
  color: #1c1c1c;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(3.8rem, 4.6vw, 6.2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.wellness-heading-line {
  display: block;
  overflow: hidden;
}

.wellness-heading em {
  color: #5aa4e8;
  font-family: "Great Vibes", "Playfair Display", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.22em;
  letter-spacing: 0;
}

.wellness-sub {
  max-width: 64rem;
  margin: 1.6rem auto 0;
  color: #9a9a9a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.55;
}

.wellness-stage {
  position: relative;
  height: 78rem;
}

.wellness-cta {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3.8rem;
  margin: 0 auto 1.2rem;
  padding: 0 2rem;
  border: 1px solid #d7bc78;
  border-radius: 999px;
  background: #fff;
  color: #c4a45c;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.wellness-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wellness-lines path {
  fill: none;
  stroke: #c8d3de;
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}

.wellness-phone {
  position: absolute;
  left: 50%;
  bottom: -18%;
  z-index: 2;
  width: 32rem;
  margin-left: -16rem;
}

.wellness-phone-ring {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 52rem;
  height: 52rem;
  border: 1px dashed rgba(160, 180, 200, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.wellness-phone-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 68rem;
  border: 0.7rem solid #ececef;
  border-radius: 4.4rem 4.4rem 0 0;
  background: #fff;
  box-shadow:
    0 2.4rem 5.6rem rgba(30, 50, 90, 0.1),
    0 0 0 0.9rem #f4f4f6;
}

.wellness-phone-notch {
  width: 9.2rem;
  height: 2.2rem;
  margin: 1.1rem auto 0.8rem;
  border-radius: 999px;
  background: #111;
}

.wellness-phone-screen {
  padding: 1rem 2.2rem 3rem;
}

.wellness-score-label {
  color: #8a8a8a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wellness-score {
  margin: 0.4rem 0 2rem;
  color: #4b90e2;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: 7.2rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.wellness-metrics {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wellness-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.wellness-metric-row span:last-child {
  color: #6b6b6b;
  font-weight: 400;
}

.wellness-bar {
  overflow: hidden;
  height: 0.7rem;
  border-radius: 999px;
  background: #ececec;
}

.wellness-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.wellness-bar.is-sleep > span {
  width: 78%;
  background: #5b9cf5;
}
.wellness-bar.is-hrv > span {
  width: 70%;
  background: #e39a4a;
}
.wellness-bar.is-hr > span {
  width: 62%;
  background: #6dbf7c;
}
.wellness-bar.is-rec > span {
  width: 86%;
  background: #1d3557;
}

.wellness-note {
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: 1.2rem;
  background: #eaf4fb;
  color: #5b86aa;
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.45;
}

.wellness-card {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  width: 31rem;
  padding: 2.6rem 2.4rem 2.2rem;
  border-radius: 2.8rem;
  box-shadow: 0 1.4rem 3.6rem rgba(40, 60, 90, 0.06);
}

.wellness-card.is-tl {
  top: 9%;
  left: 2%;
  background: #e4f5f4;
}

.wellness-card.is-tr {
  top: 9%;
  right: 4.5%;
  background: #f4ead4;
}

.wellness-card.is-bl,
.wellness-card.is-br {
  width: 34rem;
  padding: 2.8rem 2.6rem 2.4rem;
}

.wellness-card.is-bl {
  top: 46%;
  left: 0.5%;
  background: #f6ddd4;
}

.wellness-card.is-br {
  top: 46%;
  right: 4.5%;
  background: #0c1c2c;
  color: #fff;
}

.wellness-card-body {
  height: 100%;
}

.wellness-card.is-bl .wellness-card-body,
.wellness-card.is-br .wellness-card-body {
  opacity: 0;
}

.wellness-card-icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: #5d63f2;
  color: #fff;
}

.wellness-card-icon svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

.wellness-card-title {
  margin: 0 0 0.9rem;
  color: #1f1f1f;
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.wellness-card.is-br .wellness-card-title {
  color: #fff;
}

.wellness-card-desc {
  margin: 0 0 1.5rem;
  color: #6a6a6a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.5;
}

.wellness-card.is-br .wellness-card-desc {
  color: rgba(255, 255, 255, 0.78);
}

.wellness-card-more {
  color: #3a3a3a;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.wellness-card.is-br .wellness-card-more {
  color: #fff;
}

.wellness-intro,
.wellness-cta,
.wellness-phone,
.wellness-card,
.wellness-lines {
  opacity: 0;
}

@media screen and (max-width: 1200px) {
  .wellness-stage {
    height: 74rem;
  }

  .wellness-card {
    width: 28rem;
  }

  .wellness-card.is-bl,
  .wellness-card.is-br {
    width: 30rem;
  }

  .wellness-card.is-tl {
    left: 1%;
  }

  .wellness-card.is-tr,
  .wellness-card.is-br {
    right: 5.5%;
  }

  .wellness-card.is-bl {
    left: 0;
  }

  .wellness-phone {
    width: 28rem;
    margin-left: -14rem;
  }
}

@media screen and (max-width: 991px) {
  .wellness {
    width: calc(100% - 4rem);
    padding: 6.4rem 0 0;
  }

  .wellness-lines,
  .wellness-phone-ring {
    display: none;
  }

  .wellness-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cta cta"
      "tl tr"
      "bl br"
      "phone phone";
    gap: 1.6rem;
    height: auto;
  }

  .wellness-cta {
    grid-area: cta;
    margin-bottom: 0.4rem;
  }

  .wellness-card,
  .wellness-card.is-tl,
  .wellness-card.is-tr,
  .wellness-card.is-bl,
  .wellness-card.is-br {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 0;
  }

  .wellness-card.is-tl {
    grid-area: tl;
  }
  .wellness-card.is-tr {
    grid-area: tr;
  }
  .wellness-card.is-bl {
    grid-area: bl;
  }
  .wellness-card.is-br {
    grid-area: br;
  }

  .wellness-phone {
    position: relative;
    grid-area: phone;
    left: auto;
    bottom: auto;
    width: min(30rem, 72%);
    margin: 1.2rem auto -10rem;
  }

  .wellness-phone-frame {
    min-height: 52rem;
  }
}

@media screen and (max-width: 767px) {
  .wellness {
    width: calc(100% - 3.2rem);
    padding: 5.2rem 0 0;
  }

  .wellness-heading {
    font-size: 3.2rem;
  }

  .wellness-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cta"
      "tl"
      "tr"
      "bl"
      "br"
      "phone";
  }

  .wellness-score {
    font-size: 5.6rem;
  }

  .wellness-phone {
    width: min(28rem, 82%);
    margin: 0.8rem auto -8rem;
  }

  .wellness-phone-frame {
    min-height: 46rem;
  }
}
