/**
 * /join plan summary for GLP-1 wizard finishers (LOL-379).
 *
 * Mobile first: the banner photo is cropped to Jillian with the headline over
 * its dark bottom edge, then the answer echo underneath. From 751px up it
 * becomes the full-width banner with the headline on the right.
 */

.wizard-plan {
  --wizard-plan-dark: #2b2b2d;
  background: var(--wizard-plan-dark);
  color: var(--color-white, #fff);
  font-family: var(--font-body);
  overflow: hidden;
}

.wizard-plan__hero {
  position: relative;
  background: linear-gradient(#a7a7aa, var(--wizard-plan-dark));
}

.wizard-plan__photo {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: 8% top;
}

/* Fade the photo into the dark panel so the headline reads over it. */
.wizard-plan__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(43, 43, 45, 0) 40%, var(--wizard-plan-dark) 96%);
  pointer-events: none;
}

.wizard-plan__intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 24px 8px;
}

.wizard-plan .wizard-plan__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-body-extended);
  font-weight: var(--fw-semibold, 600);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-electric-lime, #f4ff77);
}

.wizard-plan .wizard-plan__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-thin, 100);
  font-size: 34px;
  line-height: 40px;
  color: var(--color-white, #fff);
  text-wrap: balance;
}

.wizard-plan__summary {
  padding: 16px 24px 28px;
}

.wizard-plan .wizard-plan__built {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.7);
}

.wizard-plan__rows {
  margin: 0;
}

.wizard-plan__row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wizard-plan__row:first-child {
  border-top: 0;
}

.wizard-plan__row dt {
  flex: 0 0 96px;
  padding-top: 3px;
  font-family: var(--font-body-extended);
  font-weight: var(--fw-semibold, 600);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wizard-plan__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white, #fff);
}

@media (min-width: 751px) {
  .wizard-plan__photo {
    height: auto;
    aspect-ratio: 1280 / 512;
    object-position: left top;
  }

  .wizard-plan__hero::after {
    background: linear-gradient(rgba(43, 43, 45, 0) 75%, var(--wizard-plan-dark));
  }

  .wizard-plan__intro {
    left: 36%;
    right: 6%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    padding: 0;
    text-align: center;
  }

  .wizard-plan .wizard-plan__title {
    font-size: 50px;
    line-height: 60px;
  }

  .wizard-plan__summary {
    max-width: 1040px;
    margin: 0 auto;
    padding: 8px 32px 36px;
    text-align: center;
  }

  .wizard-plan__rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 24px;
    margin-top: 12px;
    text-align: left;
  }

  .wizard-plan__row {
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .wizard-plan__row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .wizard-plan__row dt {
    flex: none;
  }
}
