/* =========================================================
   LYMPHAWARE HOMEPAGE
   Homepage-only styling
   ========================================================= */


/* HEADER */

.home-page .home-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7edf1;
}

.home-page .home-header .header-inner {
  min-height: 92px;
}

.home-page .home-header .header-logo {
  width: 390px;
  max-width: 100%;
  height: auto;
}

.home-page .home-nav {
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 700;
}

.home-page .home-nav a {
  position: relative;
  padding: 29px 0 26px;
  color: #14243d;
}

.home-page .home-nav a:hover,
.home-page .home-nav a:focus {
  color: var(--blue);
}

.home-page .home-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.home-page .home-account-button {
  min-width: 132px;
  min-height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: #247a24;
  color: white;
}

.home-page .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-page .header-actions .button {
  min-width: 150px;
 justify-content: flex-start;
}

.home-page .home-sign-out-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
}

.home-page .home-account-button:hover,
.home-page .home-account-button:focus {
  background: #247a24;
}


/* HERO */

.home-page .home-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 48px;

  background:
    radial-gradient(ellipse 70% 58% at 78% 26%, rgba(0, 83, 183, 0.10) 0%, rgba(0, 83, 183, 0.035) 46%, transparent 78%),
    radial-gradient(ellipse 58% 52% at 8% 88%, rgba(36, 122, 36, 0.085) 0%, rgba(36, 122, 36, 0.025) 46%, transparent 78%),
    radial-gradient(ellipse 48% 40% at 100% 100%, rgba(36, 122, 36, 0.06) 0%, transparent 74%),
    linear-gradient(118deg, #f7fbfd 0%, #f4f9fc 48%, #f5faf9 76%, #f7fbfd 100%);
}

.home-page .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 1fr);
  align-items: start;
  gap: 38px;
  min-height: 470px;
}


/* HERO COPY */

.home-page .home-hero-content {
  position: relative;
  z-index: 5;
}

.home-page .home-hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 3.3vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.home-page .home-hero-title span {
  display: block;
  white-space: nowrap;
}

.home-page .hero-line-dark {
  color: #10284a;
}

.home-page .hero-line-blue {
  color: #0053b7;
}

.home-page .hero-line-green {
  color: #247a24;
}

.home-page .home-hero-copy {
  max-width: 560px;
  margin: 0 0 26px;
  color: #344456;
  font-size: 1.11rem;
  line-height: 1.6;
}

/* Reserve all three hero button columns before the asynchronous admin switch loads.
   This prevents a visible jump from two wide buttons to three narrow buttons. */
.home-page .home-hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

/* At launch the admin switch restores the original two-button arrangement. */
html.prelaunch-interest-off .home-page .home-hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Three matching, accessible solid hero buttons. Colours reflect the
   blue/green LymphAware ID brand; layout stays aligned with the cards below. */
.home-page .home-hero-actions .button.home-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 66px;
  min-height: 66px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 11px;
  border: 2px solid transparent;
  color: #fff !important;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  font-weight: 700;
}

.home-page .home-hero-actions .home-hero-cta--green {
  background: #247a24 !important;
  border-color: #247a24 !important;
}
.home-page .home-hero-actions .home-hero-cta--blue {
  background: #0053b7 !important;
  border-color: #0053b7 !important;
}
.home-page .home-hero-actions .home-hero-cta--green:hover,
.home-page .home-hero-actions .home-hero-cta--green:focus-visible {
  background: #1e681e !important;
  border-color: #1e681e !important;
  color: #fff !important;
}
.home-page .home-hero-actions .home-hero-cta--blue:hover,
.home-page .home-hero-actions .home-hero-cta--blue:focus-visible {
  background: #004394 !important;
  border-color: #004394 !important;
  color: #fff !important;
}
/* Temporary visual comparison: only the Join button is black.
   The sample-card and interest buttons retain their brand blue and green. */
.home-page .home-hero-actions #hero-membership-link {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #ffffff !important;
}
.home-page .home-hero-actions #hero-membership-link:hover,
.home-page .home-hero-actions #hero-membership-link:focus-visible {
  background: #303030 !important;
  border-color: #303030 !important;
  color: #ffffff !important;
}

.home-page .home-hero-actions .home-hero-cta:focus-visible {
  outline: 3px solid #142c4a;
  outline-offset: 3px;
}

/* Show all three hero buttons at first paint, even on a first visit.
   The interest link starts inert until the admin availability check completes.
   If registrations are off (including a cached off state), hide it entirely. */
.home-page .home-hero-actions #home-hero-interest-link {
  visibility: visible;
  pointer-events: none;
}
html.prelaunch-interest-on .home-page .home-hero-actions #home-hero-interest-link {
  pointer-events: auto;
}
html.prelaunch-interest-off .home-page .home-hero-actions #home-hero-interest-link {
  display: none !important;
}

.home-page .home-hero-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 600px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #d9e5df;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 249, 0.9));
  box-shadow: 0 12px 28px rgba(31, 47, 66, 0.07);
}

.home-page .home-hero-reassurance-item {
  position: relative;
  min-width: 0;
  padding: 22px 21px 20px;
}

.home-page .home-hero-reassurance-item + .home-hero-reassurance-item {
  border-left: 1px solid #dce7e1;
}

.home-page .home-hero-reassurance-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 21px;
  right: 21px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: #17283d;
}

.home-page .home-hero-reassurance-item:nth-child(2)::before {
  background: #0053b7;
}

.home-page .home-hero-reassurance-item:nth-child(3)::before {
  background: #247a24;
}

.home-page .home-hero-reassurance-copy {
  display: block;
  min-width: 0;
}

.home-page .home-hero-reassurance-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #17283d;
  font-size: 1.02rem;
  line-height: 1.3;
}

.home-page .home-hero-reassurance-item:nth-child(2) .home-hero-reassurance-copy strong {
  color: #0053b7;
}

.home-page .home-hero-reassurance-item:nth-child(3) .home-hero-reassurance-copy strong {
  color: #247a24;
}

.home-page .home-hero-reassurance-copy small {
  display: block;
  color: #5b6873;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (min-width: 681px) and (max-width: 900px) {
  .home-page .home-hero-reassurance-item {
    padding: 20px 17px 18px;
  }

  .home-page .home-hero-reassurance-item::before {
    left: 17px;
    right: 17px;
  }

  .home-page .home-hero-reassurance-copy strong {
    font-size: 0.95rem;
  }

  .home-page .home-hero-reassurance-copy small {
    font-size: 0.8rem;
  }
}

/* Hide the How It Works hero button on larger screens */


/* Desktop/tablet hero spacing refinement */
@media (min-width: 681px) {
  .home-page .home-hero-copy {
    margin-bottom: 40px;
  }

  .home-page .home-hero-reassurance {
    margin-top: 20px;
  }
}

/* Tablet-only spacing: give the hero controls a little more breathing room */
@media (min-width: 681px) and (max-width: 1100px) {
  .home-page .home-hero-copy {
    margin-bottom: 52px;
  }

  .home-page .home-hero-reassurance {
    margin-top: 20px;
  }
}


/* PRODUCT VISUAL */

.home-page .home-hero-product {
  position: relative;
  z-index: 1;
  min-height: 620px;
  margin-top: 58px;
  overflow: visible;
}

/*
  Let the hero artwork flow left into the overall hero rather than reading
  as a separate rectangular image. The product remains on the right while
  the soft photographic background feathers behind the copy.
*/
.home-page .hero-product-mockup {
  display: block;
  width: 131.2%;
  max-width: none;
  height: auto;
  margin: -8px 0 0 -22%;
  position: relative;
  z-index: 1;

  /*
    Keep the left edge fixed. Treat 93% of the source artwork as the
    cropped/faded right edge, then enlarge the image so that edge lands
    exactly on the product column / blue-header boundary.
  */
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .32) 5%,
      #000 15%,
      #000 86.5%,
      rgba(0, 0, 0, .78) var(--hero-fade-mid, 89.5%),
      rgba(0, 0, 0, .34) var(--hero-fade-end, 91.5%),
      transparent var(--hero-crop-edge, 93%)
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 5%,
      #000 96%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .32) 5%,
      #000 15%,
      #000 86.5%,
      rgba(0, 0, 0, .78) var(--hero-fade-mid, 89.5%),
      rgba(0, 0, 0, .34) var(--hero-fade-end, 91.5%),
      transparent var(--hero-crop-edge, 93%)
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 5%,
      #000 96%,
      transparent 100%
    );
  mask-composite: intersect;
}

/* Desktop crop follows the marked right edge of the artwork. With the
   left edge at -22%, 122% / 0.90 puts the crop on the grid/header edge. */
@media (min-width: 981px) {
  .home-page .hero-product-mockup {
    width: calc(122% / 0.9);
    /* Raise the holder clear of the sample-card button. */
    margin-top: -40px;
    --hero-fade-mid: 88%;
    --hero-fade-end: 89%;
    --hero-crop-edge: 90%;
  }
}

.home-page .hero-product-slices {
  line-height: 0;
}

.home-page .hero-product-slices img {
  display: block;
  width: 100%;
  height: auto;
}


/* CARD */

.home-page .hero-card-wrap {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 140px;
  width: 57%;
  max-width: 475px;
  transform: rotate(-1.3deg);
}

.home-page .hero-demo-card {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow:
    0 22px 45px rgba(31, 47, 66, 0.17),
    0 5px 14px rgba(31, 47, 66, 0.1);
}


/* PHONE */

.home-page .hero-phone {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;

  width: 270px;
  height: 540px;

  padding: 10px;

  border: 3px solid #252525;
  border-radius: 42px;

  background: #161616;

  box-shadow:
    0 24px 50px rgba(22, 38, 55, 0.2),
    0 5px 16px rgba(22, 38, 55, 0.12);
}

.home-page .hero-phone-speaker {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 50%;
  width: 82px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #090909;
}

.home-page .hero-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: #f4f9f8;
}

.home-page .hero-phone-profile-image {
  display: block;
  width: 100%;
  height: calc(100% - 0px);
  margin-top: 0px;
  object-fit: fill;
  object-position: center;
  background: #f5f8f7;
}

/* HERO MEMBERSHIP SUMMARY */

.home-page .home-membership-summary {
  max-width: 690px;
  margin-top: 22px;
  padding: 22px;

  border: 1px solid #dbe6e0;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.82);
}

.home-page .home-membership-heading {
  margin: 0 0 12px;
  color: #17283d;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-page .home-membership-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  padding: 0;
}

.home-page .home-membership-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  gap: 9px;
  padding: 14px 10px;

  border: 1px solid #dbe8e0;
  border-radius: 14px;

  background: #f2f8f4;
  text-align: center;
}

.home-page .home-membership-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
}

.home-page .home-membership-icon-image {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.home-page .home-membership-card strong {
  color: #17283d;
  font-size: 1rem;
  line-height: 1.25;
}

.home-page .home-membership-closing {
  margin: 11px 0 0;
  color: #566575;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.home-page .home-hero {
  padding-bottom: 32px;
}

/* TABLET */

@media (max-width: 1100px) {

  .home-page .home-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .home-page .home-nav {
    gap: 18px;
  }

.home-page .home-header .header-logo {
  width: 290px;
}

  .home-page .hero-card-wrap {
    width: 66%;
  }

  .home-page .hero-phone {
    width: 225px;
    height: 450px;
  }

}


/* MOBILE / SMALL TABLET */

@media (max-width: 980px) {

  .home-page .home-hero {
    padding: 52px 0 62px;
  }

  .home-page .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-page .home-hero-content {
    max-width: 700px;
  }

  .home-page .home-hero-product {
    width: 100%;
    max-width: 700px;
    min-height: 0;
    margin: 58px auto 0;
  }

  .home-page .hero-product-mockup {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .home-page .hero-card-wrap {
    left: 2%;
    top: 145px;
    width: 68%;
    max-width: 480px;
  }

  .home-page .hero-phone {
    right: 3%;
  }

}


/* PHONE */

@media (max-width: 680px) {

  .home-page .home-hero-reassurance {
    display: none;
  }

  .home-page {
    overflow-x: hidden;
  }

    .home-page .home-header .header-logo {
     width: 300px;
     max-width: calc(100vw - 150px);
     height: auto;
   }

   .home-page .home-header .header-actions {
       display: none;
 }

  .home-page .home-hero {
    padding: 20px 0 44px;
    overflow: hidden;
  }
   
   .home-page .home-hero-actions .button {
     min-width: 0;
   }
  .home-page .home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-height: 0;
  }

  .home-page .home-hero-content {
    width: 100%;
    max-width: 100%;
  }

  .home-page .home-hero-title {
    margin: 0 0 22px;
    font-size: clamp(2.35rem, 10vw, 3rem);
    line-height: 1.08;
    letter-spacing: -1.3px;
  }

  .home-page .home-hero-title span {
    display: block;
    white-space: normal;
  }

  .home-page .home-hero-copy {
    width: 100%;
    max-width: 100%;
    margin: 0 0 26px;
    font-size: 1.03rem;
    line-height: 1.6;
  }

  .home-page .home-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .home-page .home-hero-actions .button.home-hero-cta {
    width: 100%;
    height: 66px;
    min-height: 66px;
  }

  .home-page .home-hero-product {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 0;
    margin: 4px auto 0;
  }

  .home-page .hero-product-mockup {
    width: calc(100% + 44px);
    max-width: none;
    margin: 0 0 0 -10px;
  }

  .home-page .hero-phone {
    top: 0;
    right: 0;
    width: 178px;
    height: 356px;
    padding: 8px;
    border-radius: 32px;
  }

  .home-page .hero-phone-screen {
    border-radius: 24px;
    background: #f5f8f7;
  }

    .home-page .hero-phone-speaker {
    top: 12px;
    width: 64px;
    height: 16px;
  }

  .home-page .hero-card-wrap {
    left: 0;
    top: 150px;
    width: 72%;
    max-width: 300px;
    transform: rotate(-1deg);
  }

  .home-page .hero-demo-card {
    width: 100%;
    height: auto;
  }

.home-page .home-membership-summary {
  margin-top: 24px;
  padding-top: 20px;
}

.home-page .home-membership-items {
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-page .home-membership-card {
  min-height: 76px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}

.home-page .home-membership-card strong {
  font-size: 0.98rem;
  line-height: 1.25;
}
   
}
/* =========================================================
   HOW LYMPHAWARE WORKS
   ========================================================= */

.home-page .how-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-page .how-heading h2 {
  margin: 0 0 10px;
  color: #17283d;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -1px;
}

.home-page .how-heading p {
  margin: 0;
  color: #5b6873;
  font-size: 1.04rem;
  line-height: 1.55;
}


.home-page .how-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}


.home-page .how-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  row-gap: 14px;
  align-items: start;

  min-height: 170px;
  padding: 24px 24px 22px;

  border: 1px solid #dfe7eb;
  border-radius: 18px;
  background: #ffffff;
}


.home-page .how-step-number {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #247a24;
  color: #ffffff;

  font-size: 0.86rem;
  font-weight: 800;
}

.home-page .how-step-number-blue {
  background: #0053b7;
}


.home-page .how-step-icon-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: auto;
}


.home-page .how-step-icon-blue {
  background: #eef6fb;
  color: #0053b7;
}


.home-page .how-step-icon svg {
  width: 42px;
  height: 42px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.home-page .how-step-copy {
  display: contents;
}

.home-page .how-step-copy h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: #17283d;
  font-size: 1.08rem;
  line-height: 1.25;
  text-align: left;
}


.home-page .how-step-copy p {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  color: #5b6873;
  font-size: 0.92rem;
  line-height: 1.48;
  text-align: left;
}

.home-page .how-step-icon {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
}


.home-page .how-arrow {
  display: grid;
  place-items: center;

  color: #0053b7;
  font-size: 1.55rem;
  font-weight: 800;
}


/* HOW IT WORKS — TABLET */

@media (max-width: 980px) {

  .home-page .how-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-page .how-arrow {
    height: 22px;
    transform: rotate(90deg);
  }

  .home-page .how-step {
    min-height: 140px;
  }

}


/* HOW IT WORKS — MOBILE */

@media (max-width: 680px) {

  .home-page #how-it-works {
    padding-top: 48px;
  }

  .home-page .how-heading {
    margin-bottom: 28px;
  }

  .home-page .how-heading h2 {
    font-size: 2rem;
  }

  .home-page .how-heading p {
    font-size: 1rem;
  }

  .home-page .how-step {
    grid-template-columns: 52px 1fr;
    min-height: 0;
    padding: 22px 18px 20px;
    column-gap: 14px;
  }

  .home-page .how-step-number {
    font-size: 0.8rem;
  }

  .home-page .how-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

    .home-page .how-step-icon-image {
     width: 39px;
     height: 39px;
   }

  .home-page .how-step-copy h3 {
    font-size: 1.04rem;
  }

  .home-page .how-step-copy p {
    font-size: 0.92rem;
  }

}

/* =========================================================
   WHEN COULD LYMPHAWARE HELP?
   ========================================================= */

.home-page .help-scenarios {
  margin-top: 58px;
  padding-top: 52px;
  border-top: 1px solid #e7edf1;
}

.home-page .help-scenarios-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-page .help-scenarios-heading h2 {
  margin: 0 0 10px;
  color: #17283d;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -1px;
}

.home-page .help-scenarios-heading p {
  margin: 0;
  color: #5b6873;
  font-size: 1.03rem;
  line-height: 1.55;
}


.home-page .help-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}


.home-page .help-scenario-card {
  min-height: 210px;
  padding: 24px 20px 22px;

  border: 1px solid #dfe7eb;
  border-radius: 18px;
  background: #ffffff;

  text-align: left;
}


.home-page .help-scenario-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 17px;
  border-radius: 15px;
}


.home-page .help-icon-blue {
  background: #eef6fb;
  color: #0053b7;
}


.home-page .help-icon-green {
  background: #eef7f0;
  color: #247a24;
}


.home-page .help-scenario-icon-image {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: auto;
}


.home-page .help-scenario-card h3 {
  margin: 0 0 9px;
  color: #17283d;
  font-size: 1.05rem;
  line-height: 1.25;
}


.home-page .help-scenario-card p {
  margin: 0;
  color: #5b6873;
  font-size: 0.91rem;
  line-height: 1.5;
}


/* TABLET */

@media (max-width: 1100px) {

  .home-page .help-scenarios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* SMALL TABLET */

@media (max-width: 780px) {

  .home-page .help-scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* MOBILE */

@media (max-width: 520px) {

  .home-page .help-scenarios {
    margin-top: 44px;
    padding-top: 42px;
  }

  .home-page .help-scenarios-heading {
    margin-bottom: 28px;
  }

  .home-page .help-scenarios-heading h2 {
    font-size: 2rem;
  }

  .home-page .help-scenarios-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-page .help-scenario-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 15px;
    min-height: 0;
    padding: 20px;
  }

  .home-page .help-scenario-icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .home-page .help-scenario-card h3 {
    align-self: end;
  }

}

/* =========================================================
   SEE LYMPHAWARE IN ACTION
   ========================================================= */

.home-page .home-demo-section {
  margin-top: 64px;
  margin-bottom: 64px;
  padding: 58px 46px;

  border: 1px solid #dfe7eb;
  border-radius: 24px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(0, 83, 183, 0.08),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #f9fcfa 0%,
      #f7fbfd 100%
    );
}


.home-page .home-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 56px;
}


.home-page .home-demo-copy {
  max-width: 520px;
}


.home-page .home-demo-eyebrow {
  margin: 0 0 10px;

  color: #247a24;
  font-size: 1.05rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.home-page .home-demo-copy h2 {
  margin: 0 0 16px;

  color: #17283d;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -1px;
}


.home-page .home-demo-intro {
  margin: 0 0 28px;

  color: #5b6873;
  font-size: 1.03rem;
  line-height: 1.6;
}


.home-page .home-demo-options {
  display: grid;
  gap: 18px;
}


.home-page .home-demo-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
}


.home-page .home-demo-option-number {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #0053b7;
  color: white;

  font-size: 0.84rem;
  font-weight: 800;
}


.home-page .home-demo-option h3 {
  margin: 2px 0 4px;

  color: #17283d;
  font-size: 1rem;
}


.home-page .home-demo-option p {
  margin: 0;

  color: #5b6873;
  font-size: 0.94rem;
  line-height: 1.5;
}


.home-page .home-demo-note {
  margin: 24px 0 0;
  padding-top: 18px;

  border-top: 1px solid #dfe7eb;

  color: #6b7782;
  font-size: 0.87rem;
  line-height: 1.45;
}


/* DEMO CARD */

.home-page .home-demo-card-area {
  text-align: center;
}


.home-page .home-demo-label {
  display: inline-block;

  margin-bottom: 16px;
  padding: 7px 14px;

  border-radius: 999px;

  background: #eef7f0;
  color: #247a24;

  font-size: 0.86rem;
  font-weight: 800;
}


.home-page .home-demo-card-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 590px;

  margin: 0 auto;

  overflow: hidden;
  border-radius: 18px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.home-page .home-demo-card-link:hover,
.home-page .home-demo-card-link:focus {
  transform: translateY(-3px);
}


.home-page .home-demo-card-link:focus-visible {
  outline: 4px solid rgba(0, 83, 183, 0.25);
  outline-offset: 6px;
}


.home-page .home-demo-card-image {
  display: block;
  width: 100%;
  height: auto;

  border-radius: 18px;

  box-shadow:
    0 22px 48px rgba(31, 47, 66, 0.15),
    0 5px 14px rgba(31, 47, 66, 0.08);
}

.home-page .home-demo-language-intro {
  margin: 0 auto 10px;
  color: #566575;
  font-size: .9rem;
  line-height: 1.45;
}

.home-page .home-demo-language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 18px;
}

.home-page .home-demo-language-button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #c8d6dd;
  border-radius: 999px;
  background: #fff;
  color: #24425b;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.home-page .home-demo-language-button:hover,
.home-page .home-demo-language-button:focus-visible {
  border-color: #0053b7;
  outline: none;
}

.home-page .home-demo-language-button[aria-pressed="true"] {
  border-color: #0053b7;
  background: #0053b7;
  color: #fff;
}

.home-page .home-demo-dynamic-card {
  position: relative;
  aspect-ratio: 1.586 / 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d4dee3;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 22px 48px rgba(31, 47, 66, 0.15),
    0 5px 14px rgba(31, 47, 66, 0.08);
  text-align: left;
}

.home-page .home-demo-dynamic-card-logo {
  position: absolute;
  top: 3.7%;
  left: 3.4%;
  width: 93.2%;
  height: auto;
}

.home-page .home-demo-dynamic-card-photo {
  position: absolute;
  left: 1.9%;
  top: 34.2%;
  width: 27.8%;
  height: 53.2%;
  border-radius: 4.5%;
  object-fit: cover;
  background: #eef2f4;
}

.home-page .home-demo-dynamic-card-photo:not([src]) {
  visibility: hidden;
}

.home-page .home-demo-dynamic-card-main {
  position: absolute;
  left: 33.1%;
  top: 39.2%;
  width: 43.8%;
  min-width: 0;
}

.home-page .home-demo-dynamic-card-condition {
  margin: 0 0 17%;
  color: #247a24;
  font-size: clamp(1rem, 1.92vw, 1.74rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.home-page .home-demo-dynamic-card-name {
  margin: 0 0 14%;
  color: #111;
  font-size: clamp(.98rem, 1.86vw, 1.7rem);
  font-weight: 900;
  line-height: 1.05;
}

.home-page .home-demo-dynamic-card-id {
  margin: 0;
  color: #355d68;
  font-size: clamp(.64rem, 1.05vw, .96rem);
  font-weight: 800;
  white-space: nowrap;
}

.home-page .home-demo-dynamic-card-id strong {
  color: #172536;
}

.home-page .home-demo-dynamic-card-qr-wrap {
  position: absolute;
  top: 34.2%;
  right: 2.2%;
  width: 18.8%;
  text-align: center;
}

.home-page .home-demo-dynamic-card-qr {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 0;
}

.home-page .home-demo-dynamic-card-qr canvas,
.home-page .home-demo-dynamic-card-qr img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.home-page .home-demo-dynamic-card-qr-copy {
  width: 100%;
  margin: 5% 0 0;
  color: #0053b7;
  font-size: clamp(.42rem, .66vw, .62rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.home-page .home-demo-dynamic-card-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.5%;
  background: linear-gradient(90deg,#0053b7 0 51%,#247a24 51% 100%);
}

.home-page .home-demo-card-language-name {
  margin: 12px 0 0;
  color: #566575;
  font-size: .86rem;
  font-weight: 700;
}

.home-page .home-demo-profile-link {
  display: inline-block;

  margin-top: 18px;

  color: #0053b7;

  font-size: 0.96rem;
  font-weight: 800;
}


.home-page .home-demo-profile-link:hover,
.home-page .home-demo-profile-link:focus {
  text-decoration: underline;
}


/* DEMONSTRATION — TABLET */

@media (max-width: 900px) {

  .home-page .home-demo-section {
    padding: 44px 32px;
  }

  .home-page .home-demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-page .home-demo-copy {
    max-width: 680px;
  }

  .home-page .home-demo-card-link {
    max-width: 620px;
  }

}


/* DEMONSTRATION — MOBILE */

@media (max-width: 520px) {

  .home-page .home-demo-section {
    margin-top: 46px;
    padding: 34px 18px;

    border-radius: 18px;
  }

  .home-page .home-demo-grid {
    gap: 32px;
  }

  .home-page .home-demo-copy h2 {
    font-size: 2rem;
  }

  .home-page .home-demo-intro {
    font-size: 1rem;
  }

  .home-page .home-demo-option {
    grid-template-columns: 30px 1fr;
    gap: 11px;
  }

  .home-page .home-demo-option-number {
    width: 28px;
    height: 28px;
  }

  .home-page .home-demo-card-link,
  .home-page .home-demo-card-image,
  .home-page .home-demo-dynamic-card {
    border-radius: 12px;
  }

  .home-page .home-demo-language-switcher {
    gap: 5px;
  }

  .home-page .home-demo-language-button {
    min-height: 36px;
    padding: 6px 9px;
    font-size: .8rem;
  }

}

/* =========================================================
   LESS EXPLAINING. MORE UNDERSTANDING.
   ========================================================= */

.home-page .home-understanding-section {
  padding: 12px 0 72px;
}

.home-page .home-understanding-grid {
  display: grid;
  grid-template-columns: minmax(600px, 1fr) minmax(500px, 1fr);
  align-items: center;
  gap: 64px;
}


.home-page .home-understanding-copy {
  max-width: 650px;
}


.home-page .home-understanding-eyebrow {
  margin: 0 0 12px;

  color: #247a24;
  font-size: 1.05rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.home-page .home-understanding-copy h2 {
  margin: 0 0 22px;

  color: #17283d;
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -1.6px;
}


.home-page .home-understanding-lead {
  margin: 0 0 16px;

  color: #344456;
  font-size: 1.12rem;
  line-height: 1.62;
}


.home-page .home-understanding-copy > p:last-child {
  margin: 0;

  color: #5b6873;
  font-size: 1rem;
  line-height: 1.6;
}


/* RIGHT-HAND PANEL */

.home-page .home-understanding-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;

  padding: 38px;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #eef7f0 0%,
      #f4faf6 100%
    );
}


.home-page .home-understanding-panel-icon {
  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background: #ffffff;
  color: #247a24;
}


.home-page .home-understanding-panel-icon-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: auto;
}


.home-page .home-understanding-panel h3 {
  margin: 2px 0 12px;

  color: #17283d;
  font-size: 1.3rem;
  line-height: 1.3;
}


.home-page .home-understanding-panel p {
  margin: 0 0 18px;

  color: #4f5f6b;
  font-size: 0.98rem;
  line-height: 1.58;
}


.home-page .home-understanding-panel p:last-child {
  margin-bottom: 0;
}


.home-page .home-understanding-disclaimer {
  padding-top: 16px;

  border-top: 1px solid rgba(47, 111, 58, 0.15);

  font-size: 0.9rem !important;
}


/* TABLET */

@media (max-width: 900px) {

  .home-page .home-understanding-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-page .home-understanding-copy {
    max-width: 680px;
  }

}


/* MOBILE */

@media (max-width: 520px) {

  .home-page .home-understanding-section {
    padding: 4px 0 52px;
  }

  .home-page .home-understanding-grid {
    gap: 30px;
  }

  .home-page .home-understanding-copy h2 {
    font-size: 2.65rem;
  }

  .home-page .home-understanding-lead {
    font-size: 1.04rem;
  }

  .home-page .home-understanding-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .home-page .home-understanding-panel-icon {
    width: 58px;
    height: 58px;
  }

.home-page .home-understanding-panel-icon-image {
  width: 38px;
  height: 38px;
}

}

/* =========================================================
   PATIENT CONTROL
   ========================================================= */

.home-page .home-control-section {
  width: 100%;
  margin: 0;
  padding: 72px 46px;

  border: 1px solid #dfe7eb;
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #f8faf9 0%,
      #f6fafc 100%
    );
}


.home-page .home-control-grid {
  width: 100%;
  margin: 0;

  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: 76px;
}

/* LEFT SIDE */

.home-page .home-control-copy {
  max-width: 540px;
}


.home-page .home-control-eyebrow {
  margin: 0 0 12px;

  color: #247a24;
  font-size: 1.05rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.home-page .home-control-copy h2 {
  margin: 0 0 22px;

  color: #17283d;
  font-size: clamp(2.45rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.home-page .home-control-copy h2 br {
  display: block;
}

.home-page .home-control-copy h2 {
  white-space: nowrap;
}


.home-page .home-control-lead {
  margin: 0 0 16px;

  color: #344456;
  font-size: 1.12rem;
  line-height: 1.6;
}


.home-page .home-control-copy > p:last-child {
  margin: 0;

  color: #5b6873;
  font-size: 1rem;
  line-height: 1.6;
}


/* RIGHT SIDE */

.home-page .home-control-actions {
  display: grid;
  gap: 16px;
}


.home-page .home-control-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: center;

  padding: 22px 24px;

  border: 1px solid #dfe7eb;
  border-radius: 18px;

  background: #ffffff;
}


.home-page .how-step-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 16px;
  background: #eef7f0;
  overflow: hidden;
}


.home-page .home-control-icon-green {
  background: #eef7f0;
  color: #247a24;
}


.home-page .home-control-icon-blue {
  background: #eef6fb;
  color: #0053b7;
}


.home-page .home-control-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 16px;
  overflow: hidden;
}

.home-page .home-control-icon-image {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: auto;
}


.home-page .home-control-item h3 {
  margin: 0 0 5px;

  color: #17283d;
  font-size: 1.08rem;
  line-height: 1.3;
}


.home-page .home-control-item p {
  margin: 0;

  color: #5b6873;
  font-size: 0.94rem;
  line-height: 1.5;
}


/* TABLET */

@media (max-width: 900px) {

  .home-page .home-control-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-page .home-control-copy {
    max-width: 680px;
  }

}


/* MOBILE */

@media (max-width: 520px) {

  .home-page .home-control-section {
    width: 100%;
    margin: 0;
    padding: 42px 18px;
    border-radius: 18px;
  }

  .home-page .home-control-grid {
    width: 100%;
    gap: 30px;
  }

  .home-page .home-control-copy h2 {
    font-size: 2.65rem;
  }

  .home-page .home-control-lead {
    font-size: 1.04rem;
  }

  .home-page .home-control-item {
    grid-template-columns: 52px 1fr;
    gap: 15px;
    padding: 20px 18px;
  }

  .home-page .home-control-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

 .home-page .home-control-icon-image {
  width: 38px;
  height: 38px;
}

}

/* =========================================================
   PROFESSIONALS
   ========================================================= */

.home-page .home-professionals-section {
  width: 100%;
  margin-top: 64px;
  padding: 68px 46px;

  border: 1px solid #dfe7eb;
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fbfd 100%
    );
}


.home-page .home-professionals-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 76px;
}


.home-page .home-professionals-copy {
  max-width: 560px;
}


.home-page .home-professionals-eyebrow,
.home-page .home-story-eyebrow {
  margin: 0 0 12px;

  color: #247a24;
  font-size: 1.05rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.home-page .home-professionals-copy h2 {
  margin: 0 0 22px;

  color: #17283d;
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -1.6px;
}


.home-page .home-professionals-lead {
  margin: 0 0 16px;

  color: #344456;
  font-size: 1.08rem;
  line-height: 1.6;
}


.home-page .home-professionals-copy > p:not(.home-professionals-eyebrow) {
  color: #5b6873;
}


.home-page .home-professionals-cards {
  display: grid;
  gap: 16px;
}


.home-page .home-professional-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: center;

  padding: 22px 24px;

  border: 1px solid #dfe7eb;
  border-radius: 18px;
  background: #ffffff;
}


.home-page .home-professional-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 16px;
}


.home-page .home-professional-icon-green {
  background: #eef7f0;
  color: #247a24;
}


.home-page .home-professional-icon-blue {
  background: #eef6fb;
  color: #0053b7;
}


.home-page .home-professional-icon svg,
.home-page .home-story-icon svg {
  width: 38px;
  height: 38px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.home-page .home-professional-card h3 {
  margin: 0 0 5px;
  color: #17283d;
  font-size: 1.08rem;
}


.home-page .home-professional-card p {
  margin: 0;
  color: #5b6873;
  font-size: 0.94rem;
  line-height: 1.5;
}


.home-page .home-text-link {
  display: inline-block;
  margin-top: 18px;

  color: #0053b7;
  font-weight: 800;
}


.home-page .home-text-link:hover,
.home-page .home-text-link:focus {
  text-decoration: underline;
}


/* =========================================================
   PATIENT-LED STORY / PRIVACY
   ========================================================= */

.home-page .home-story-section {
  width: 100%;
  margin-top: 64px;
  margin-bottom: 64px;
}


.home-page .home-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}


.home-page .home-story-panel,
.home-page .home-privacy-panel {
  padding: 42px;

  border: 1px solid #dfe7eb;
  border-radius: 22px;
}


.home-page .home-story-panel {
  background:
    linear-gradient(
      135deg,
      #eef7f0 0%,
      #f6faf7 100%
    );
}


.home-page .home-privacy-panel {
  background:
    linear-gradient(
      135deg,
      #eef6fb 0%,
      #f7fbfd 100%
    );
}


.home-page .home-story-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  margin-bottom: 24px;

  border-radius: 17px;

  background: #ffffff;
  color: #247a24;
}


.home-page .home-story-icon-blue {
  color: #0053b7;
}


.home-page .home-story-eyebrow-blue {
  color: #0053b7;
}


.home-page .home-story-panel h2,
.home-page .home-privacy-panel h2 {
  margin: 0 0 18px;

  color: #17283d;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -1px;
}


.home-page .home-story-panel p:not(.home-story-eyebrow),
.home-page .home-privacy-panel p:not(.home-story-eyebrow) {
  margin: 0 0 16px;

  color: #52616d;
  font-size: 1rem;
  line-height: 1.6;
}


/* TABLET */

@media (max-width: 900px) {

  .home-page .home-professionals-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-page .home-story-grid {
    grid-template-columns: 1fr;
  }

}


/* MOBILE */

@media (max-width: 520px) {

  .home-page .home-professionals-section {
    margin-top: 46px;
    padding: 42px 18px;
    border-radius: 18px;
  }

  .home-page .home-professionals-copy h2 {
    font-size: 2.5rem;
  }

  .home-page .home-professional-card {
    grid-template-columns: 52px 1fr;
    gap: 15px;
    padding: 20px 18px;
  }

  .home-page .home-professional-icon {
    width: 52px;
    height: 52px;
  }

  .home-page .home-story-section {
    margin-top: 46px;
    margin-bottom: 46px;
  }

  .home-page .home-story-panel,
  .home-page .home-privacy-panel {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .home-page .home-story-panel h2,
  .home-page .home-privacy-panel h2 {
    font-size: 2.15rem;
  }

}
/* Anchor scroll positioning */
.home-page #how-it-works,
.home-page #sample-card {
  scroll-margin-top: 110px;
}

@media (max-width: 680px) {
  .home-page #how-it-works,
  .home-page #sample-card {
    scroll-margin-top: 90px;
  }
}

/* =========================================================
   MOBILE HERO SEQUENCE
   Phone only
   ========================================================= */

@media (max-width: 680px) {

  .home-page .home-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /*
    Allows the individual parts inside home-hero-content
    to be reordered on mobile only.
  */
  .home-page .home-hero-content {
    display: contents;
  }

  /* 1. Main heading */
  .home-page .home-hero-title {
    order: 1;
    width: 100%;
  }

  /* 2. Introductory explanation */
  .home-page .home-hero-copy {
    order: 2;
    width: 100%;
    margin-bottom: 22px;
  }

  /* 3. Card and phone visual */
  .home-page .home-hero-product {
    order: 3;
    width: 100%;
    max-width: 430px;
    min-height: 350px;
    margin: 0 auto 28px;
  }

  /* 4. Membership benefits */
  .home-page .home-membership-summary {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 26px;
  }

  /* 5. Sign Up and View sample card buttons */
  .home-page .home-hero-actions {
    order: 5;
    width: 100%;
    margin: 0;
  }

}
.home-page .mobile-sign-out-button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid #cfd9df;
  border-radius: 8px;
  background: #ffffff;
  color: #17283d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-page .home-account-button[hidden],
.home-page .home-sign-out-button[hidden],
.home-page .mobile-sign-out-button[hidden] {
  display: none !important;
}

/* FORCE MEMBERSHIP BENEFITS INTO ONE ROW */

.home-page .home-membership-summary .home-membership-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
  width: 100%;
}

.home-page .home-membership-summary .home-membership-card {
  width: 100%;
  min-width: 0;
}

/* MOBILE MEMBERSHIP BENEFITS — FINAL LAYOUT */

@media (max-width: 680px) {

  .home-page .home-membership-summary {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .home-page .home-membership-summary .home-membership-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    justify-items: start;
  }

  .home-page .home-membership-summary .home-membership-card {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 8px;
    padding: 8px 0;

    text-align: left;
  }

  .home-page .home-membership-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    margin: 0;

    border-radius: 15px;
  }

  .home-page .home-membership-icon svg {
    width: 52px;
    height: 52px;
  }

  .home-page .home-membership-card strong {
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.22;
    text-align: left;
  }

  .home-page .home-membership-closing {
    margin-top: 12px;
    text-align: left;
  }

}

/* MOBILE MEMBERSHIP — CENTRED SINGLE CARD */

@media (max-width: 680px) {

  .home-page .home-membership-summary {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 26px;
    text-align: center;
  }

  .home-page .home-membership-heading {
    text-align: center;
    margin-bottom: 14px;
  }

  .home-page .home-membership-summary .home-membership-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;

    width: 100%;
    padding: 18px 12px;

    border: 1px solid #dbe6e0;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.82);
  }

  .home-page .home-membership-summary .home-membership-card {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 8px;
    padding: 0;

    border: 0;
    background: transparent;
    text-align: center;
  }

  .home-page .home-membership-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    margin: 0 auto;

    border-radius: 14px;
    background: #f4faf6;
  }

  .home-page .home-membership-icon svg {
    width: 48px;
    height: 48px;
  }

  .home-page .home-membership-card strong {
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
  }

  .home-page .home-membership-closing {
    margin-top: 14px;
    text-align: center;
  }

}


/* =========================================================
   WHY LYMPHAWARE ID — WEARING / AWARENESS BENEFITS
   ========================================================= */

.home-page .home-wearing-benefits {
  width: min(1180px, calc(100% - 40px));
  margin: 54px auto 0;
  padding-top: 48px;
  border-top: 1px solid #e7edf1;
}

.home-page .home-wearing-benefits-heading {
  max-width: 790px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-page .home-wearing-benefits-eyebrow {
  margin: 0 0 8px;
  color: #247a24;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-page .home-wearing-benefits-heading h3 {
  margin: 0 0 12px;
  color: #17283d;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.7px;
}

.home-page .home-wearing-benefits-heading > p:last-child {
  margin: 0;
  color: #4f5f6b;
  font-size: 1.05rem;
  line-height: 1.62;
}

.home-page .home-wearing-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-page .home-wearing-benefit {
  min-width: 0;
  padding: 26px 22px 24px;
  border: 1px solid #e2eaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 47, 66, .06);
}

.home-page .home-wearing-benefit-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  border-radius: 15px;
}

.home-page .home-wearing-benefit-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.home-page .home-wearing-benefit-icon .icon-cutout {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}

.home-page .home-wearing-benefit-icon-blue {
  color: #0053b7;
  background: #eef6fb;
}

.home-page .home-wearing-benefit-icon-green {
  color: #247a24;
  background: #eef7f0;
}

.home-page .home-wearing-benefit h4 {
  margin: 0 0 9px;
  color: #17283d;
  font-size: 1.08rem;
  line-height: 1.3;
}

.home-page .home-wearing-benefit p {
  margin: 0;
  color: #5b6873;
  font-size: .94rem;
  line-height: 1.55;
}

.home-page .home-wearing-awareness-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 4px solid #0053b7;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef6fb 0%, #f5faf7 100%);
  color: #344456;
  line-height: 1.55;
}

.home-page .home-wearing-awareness-note strong {
  display: block;
  flex: 0 0 210px;
  max-width: 210px;
  color: #17283d;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .home-page .home-wearing-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-wearing-awareness-note {
    display: block;
  }

  .home-page .home-wearing-awareness-note strong {
    display: block;
    margin-bottom: 4px;
  }
}

@media (max-width: 680px) {
  .home-page .home-wearing-benefits {
    width: min(100% - 28px, 1180px);
    margin-top: 38px;
    padding-top: 38px;
  }

  .home-page .home-wearing-benefits-heading {
    margin-bottom: 24px;
    text-align: left;
  }

  .home-page .home-wearing-benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-page .home-wearing-benefit {
    padding: 22px 20px;
  }

  .home-page .home-wearing-awareness-note {
    margin-top: 18px;
    padding: 16px 18px;
  }
}


/* Awareness benefit block — align with established homepage section system */
.home-page .home-wearing-benefits-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-page .home-wearing-benefits-eyebrow {
  margin: 0 0 12px;
  color: #247a24;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-page .home-wearing-benefits-heading h3 {
  margin: 0 0 10px;
  color: #17283d;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -1px;
}

.home-page .home-wearing-benefits-heading > p:last-child {
  margin: 0;
  color: #5b6873;
  font-size: 1.04rem;
  line-height: 1.55;
}

.home-page .home-wearing-benefit {
  text-align: left;
}

.home-page .home-wearing-benefit-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: auto;
}

.home-page .home-wearing-benefit h4 {
  color: #17283d;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.home-page .home-wearing-benefit p {
  color: #5b6873;
  font-size: .94rem;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .home-page .home-wearing-benefits-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .home-page .home-wearing-benefits-eyebrow {
    font-size: 1rem;
  }

  .home-page .home-wearing-benefits-heading h3 {
    font-size: 2rem;
  }

  .home-page .home-wearing-benefits-heading > p:last-child {
    font-size: 1rem;
  }
}


/* Value of being visible — match the alignment and lead-copy styling above */
.home-page .home-wearing-benefits-heading {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.home-page .home-wearing-benefits-heading > p:last-child {
  max-width: 760px;
  color: #17283d;
  font-size: 1.12rem;
  line-height: 1.6;
}


/* How-it-works connectors use the supplied blue arrow SVG. */
.home-page .how-arrow {
  position: relative;
  place-self: center;
  width: 38px;
  height: 38px;
  font-size: 0;
  line-height: 0;
  /* The supplied SVG includes whitespace around the arrow. */
  background: url("/assets/icons/noun_Arrow_2841742_0053B7.svg") center / 64px 64px no-repeat;
  transform: none;
}

@media (max-width: 980px) {
  .home-page .how-arrow {
    height: 38px;
    transform: rotate(90deg);
  }
}


/* Mobile awareness cards — align copy alongside icons */
@media (max-width: 680px) {
  .home-page .home-wearing-benefit {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
  }

  .home-page .home-wearing-benefit-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .home-page .home-wearing-benefit h4 {
    grid-column: 2;
    grid-row: 1;
    margin: 3px 0 0;
  }

  .home-page .home-wearing-benefit p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
}

/* Compact leaflet video preview — See LymphAware ID in action */
.home-page .home-demo-leaflet {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 44px auto 0;
  padding: clamp(14px, 2.7vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid #dfebe7;
  border-radius: 24px;
  background: linear-gradient(115deg, #f6fbf7 0%, #fff 58%, #f5f9fd 100%);
  box-shadow: 0 10px 30px rgba(11, 55, 84, .065);
}

.home-page .home-demo-leaflet-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f6faf8;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(20, 61, 79, .12);
  aspect-ratio: 1586 / 992;
}
.home-page .home-demo-leaflet-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-page .home-demo-leaflet-preview:hover img { transform: scale(1.025); }
}
.home-page .home-demo-leaflet-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(62px, 6.7vw, 80px);
  height: clamp(62px, 6.7vw, 80px);
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(0, 77, 172, .93);
  box-shadow: 0 3px 20px rgba(9, 31, 63, .26);
}
.home-page .home-demo-leaflet-preview-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.home-page .home-demo-leaflet-preview-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 700;
  color: #123a5c;
  background: rgba(255,255,255,.95);
}
.home-page .home-demo-leaflet-copy { min-width: 0; }
.home-page .home-demo-leaflet-copy h3 {
  /* Match the main "See LymphAware ID in action" heading. */
  margin: 0 0 16px;
  color: #17283d;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
}
.home-page .home-demo-leaflet-copy > p:not(.home-demo-eyebrow) {
  color: #344b5b;
  font-size: 1.045rem;
  line-height: 1.6;
  margin: 0;
}
.home-page .home-demo-leaflet-preview:focus-visible,
.home-page .home-demo-leaflet-close:focus-visible,
.home-page .home-demo-leaflet-dialog a:focus-visible {
  outline: 3px solid #198849;
  outline-offset: 4px;
}

.home-page .home-demo-leaflet-dialog {
  box-sizing: border-box;
  position: fixed;
  margin: auto;
  padding: 16px 18px 12px;
  width: min(470px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid #d9e5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(0, 24, 54, .26);
  color: #102d49;
}
.home-page .home-demo-leaflet-dialog::backdrop {
  background: rgba(12, 29, 50, .76);
}
.home-page .home-demo-leaflet-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}
.home-page .home-demo-leaflet-dialog-head h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #173e67;
}
.home-page .home-demo-leaflet-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #163c5b;
  background: #eaf2f8;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.home-page .home-demo-leaflet-dialog-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.home-page .home-demo-leaflet-video {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 165px);
  max-width: 100%;
  aspect-ratio: 662 / 1390;
  object-fit: contain;
  border-radius: 12px;
  background: #eff7f5;
}
.home-page .home-demo-leaflet-dialog-foot {
  font-size: .92rem;
  margin: 10px 0 0;
  text-align: center;
}
.home-page .home-demo-leaflet-dialog-foot a { color: #0753a7; }

@media (max-width: 780px) {
  .home-page .home-demo-leaflet {
    margin-top: 30px;
    width: min(1180px, calc(100% - 28px));
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .home-page .home-demo-leaflet-copy { order: -1; padding: 2px 8px 12px; }
  .home-page .home-demo-leaflet-copy h3 { margin-bottom: 10px; }
  .home-page .home-demo-leaflet-copy > p:not(.home-demo-eyebrow) { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-demo-leaflet-preview img { transition: none; }
}

/* Keep leaflet heading aligned with other section titles on small screens. */
@media (max-width: 680px) {
  .home-page .home-demo-leaflet-copy h3 {
    font-size: 2rem;
    line-height: 1.15;
  }
}
