.plans-hero,
.plan-detail-hero {
  position: relative;
  display: flex;
  min-height: 680px;
  align-items: center;
  overflow: hidden;
  background-color: var(--forest-deep);
  background-position: 70% center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  isolation: isolate;
}

.plans-hero {
  height: calc(100svh - 112px);
  max-height: 830px;
  background-image: url("/images/plans/plans-hero-v1.jpg");
}

.plan-detail-hero {
  min-height: 720px;
  background-image: var(--plan-hero);
}

.plans-hero__veil,
.plan-detail-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 34, 27, 0.97) 0%, rgba(6, 34, 27, 0.85) 38%, rgba(6, 34, 27, 0.18) 72%, rgba(6, 34, 27, 0.03) 100%);
}

.plans-hero__content,
.plan-detail-hero__content {
  padding-block: 76px;
}

.plans-hero h1,
.plan-detail-hero h1 {
  max-width: 690px;
  color: var(--white);
}

.plans-hero__content > p:not(.eyebrow),
.plan-detail-hero__content > p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.plans-hero .button {
  margin-top: 16px;
}

.plans-intro,
.plan-schedule,
.plan-goals {
  padding-block: 104px;
}

.plans-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: end;
  gap: 64px;
  margin-bottom: 38px;
}

.plans-section-heading h2,
.plans-section-heading p {
  margin-bottom: 0;
}

.plans-section-heading > p {
  color: var(--muted);
}

.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.plan-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-clay);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 16px 30px rgba(37, 72, 59, 0.14), -6px -6px 16px rgba(255, 255, 255, 0.72);
}

.plan-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--forest);
  background-position: center;
  background-size: cover;
}

.plan-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 39, 31, 0.02), rgba(8, 39, 31, 0.62));
  content: "";
}

.plan-card__image > span {
  position: absolute;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.plan-card__body {
  padding: 26px;
}

.plan-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-card__topline strong {
  color: var(--forest);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  text-transform: none;
}

.plan-card h3 {
  font-size: 2rem;
}

.plan-card__body > p {
  color: var(--muted);
}

.plan-card__benefits {
  display: grid;
  gap: 0;
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-card__benefits li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-card__benefits li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  content: "";
}

.goal-band {
  padding-block: 96px;
  background: var(--forest);
  color: var(--white);
}

.plans-section-heading--light h2 {
  color: var(--white);
}

.plans-section-heading--light > p {
  color: rgba(255, 255, 255, 0.7);
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.goal-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--goal-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.goal-item__icon,
.plan-goal-list article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--goal-accent);
  color: var(--white);
}

.goal-item__icon svg,
.plan-goal-list article > span svg {
  width: 20px;
  height: 20px;
}

.goal-item h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
}

.goal-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.plan-disclaimer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-block: 72px;
  padding-block: 26px;
  border-block: 1px solid var(--line);
}

.plan-disclaimer > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--forest);
}

.plan-disclaimer svg {
  width: 20px;
}

.plan-disclaimer h2 {
  margin-bottom: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}

.plan-disclaimer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.plan-breadcrumb a:hover {
  color: var(--white);
}

.plan-detail-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  margin-top: 30px;
  border-block: 1px solid rgba(255, 255, 255, 0.25);
}

.plan-detail-hero__facts span {
  padding: 12px 17px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

.plan-detail-hero__facts span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.plan-detail-hero__facts strong {
  display: block;
  color: var(--sun);
  font-size: 1rem;
}

.plan-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.plan-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 80px;
  padding-block: 100px;
}

.plan-overview__copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.plan-delivery {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--forest) !important;
  font-weight: 700;
}

.plan-delivery svg {
  width: 21px;
  flex: 0 0 auto;
}

.plan-benefit-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.plan-benefit-list svg {
  width: 19px;
  color: var(--leaf);
}

.plan-schedule {
  background: #f3f6f0;
}

.plan-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.plan-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

a.plan-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.plan-day__number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.plan-day__image {
  width: 100%;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--line);
  background-color: #fbfaf6;
  background-image: var(--day-image);
  background-position: var(--day-x) var(--day-y);
  background-repeat: no-repeat;
  background-size: calc(var(--day-columns) * 100%) calc(var(--day-rows) * 100%);
}

.plan-day strong,
.plan-day small {
  margin-inline: 14px;
}

.plan-day strong {
  margin-top: 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.18;
}

.plan-day small {
  margin-top: 5px;
  margin-bottom: 15px;
  color: var(--muted);
  line-height: 1.4;
}

.plan-day > svg {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 16px;
  color: var(--leaf);
}

.plan-day--custom .plan-day__image {
  background-position: center;
  background-size: cover;
}

.plan-goals > header {
  max-width: 720px;
  margin-bottom: 36px;
}

.plan-goal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-goal-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--goal-accent);
  border-radius: 8px;
  background: var(--white);
}

.plan-goal-list h3 {
  margin-bottom: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}

.plan-goal-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.other-plans {
  padding-block: 80px;
  background: var(--forest-deep);
  color: var(--white);
}

.other-plans h2 {
  color: var(--white);
}

.other-plans a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.other-plans a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.other-plans a span,
.other-plans a small {
  color: rgba(255, 255, 255, 0.65);
}

.other-plans a strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

.other-plans svg {
  width: 18px;
}

@media (max-width: 1080px) {
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-day-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .plans-hero,
  .plan-detail-hero {
    align-items: flex-end;
    background-position: 68% center;
  }

  .plans-hero__veil,
  .plan-detail-hero__veil {
    background: linear-gradient(180deg, rgba(6, 34, 27, 0.06) 0%, rgba(6, 34, 27, 0.5) 45%, rgba(6, 34, 27, 0.98) 78%, rgba(6, 34, 27, 1) 100%);
  }

  .plans-hero__content,
  .plan-detail-hero__content {
    padding-block: 300px 62px;
  }

  .plans-section-heading,
  .plan-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .plan-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .plans-hero,
  .plan-detail-hero {
    min-height: 720px;
    background-position: 72% center;
  }

  .plans-hero__content,
  .plan-detail-hero__content {
    padding-block: 300px 54px;
  }

  .plans-hero h1,
  .plan-detail-hero h1 {
    font-size: 3rem;
  }

  .plans-intro,
  .plan-schedule,
  .plan-goals,
  .plan-overview {
    padding-block: 68px;
  }

  .plans-section-heading {
    margin-bottom: 28px;
  }

  .plan-card__body {
    padding: 20px;
  }

  .goal-grid,
  .plan-goal-list {
    grid-template-columns: 1fr;
  }

  .plan-detail-hero__facts {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-detail-hero__facts span + span {
    border-left: 0;
  }

  .plan-detail-hero__facts span:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .plan-detail-hero__facts span:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .plan-detail-hero__actions,
  .plan-detail-hero__actions .button {
    width: 100%;
  }

  .plan-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .plan-day {
    min-height: 270px;
  }

  .plan-day strong,
  .plan-day small {
    margin-inline: 11px;
  }

  .plan-day strong {
    font-size: 0.95rem;
  }

  .plan-day small {
    font-size: 0.72rem;
  }

  .plan-disclaimer {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    margin-block: 52px;
  }

  .plan-disclaimer > span {
    width: 38px;
    height: 38px;
  }

  .other-plans a {
    grid-template-columns: 70px minmax(0, 1fr) 18px;
  }

  .other-plans a small {
    display: none;
  }
}
