/* Premium centered composition for the home nutrition-plan invitation.
   The photo is the Pexels reference requested by product:
   https://www.nutriguru.cloud/cd.jpg */
.home-screen-mode .home-dashboard-v2 > .home-plan-card {
  position: relative;
  display: flex;
  min-height: 410px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(183, 255, 0, .48);
  border-radius: 30px;
  background-image:
    linear-gradient(180deg, rgba(3, 8, 12, .72) 0%, rgba(3, 8, 12, .58) 45%, rgba(3, 8, 12, .78) 100%),
    url("https://www.nutriguru.cloud/cd.jpg");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .32),
    0 0 30px rgba(183, 255, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .35);
}

.home-screen-mode .home-dashboard-v2 > .home-plan-card::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: '';
  border-radius: 29px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 28%, transparent 70%, rgba(183, 255, 0, .06)),
    linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 42%, rgba(0, 0, 0, .18));
  pointer-events: none;
}

.home-screen-mode .home-dashboard-v2 > .home-plan-card::after {
  z-index: 0;
  border-radius: 29px;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 35%, transparent 72%, rgba(183, 255, 0, .035));
}

.home-screen-mode .home-plan-card .home-plan-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 820px);
  max-width: 820px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 30px 30px;
  text-align: center;
}

.home-screen-mode .home-plan-card .home-eyebrow {
  color: #b7ff00;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 16px rgba(183, 255, 0, .3);
}

.home-screen-mode .home-plan-card h2#homePlanTitle {
  max-width: 15ch;
  margin: 18px auto 0;
  color: #fff;
  font-size: clamp(36px, 5.8vw, 58px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .98;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .4);
}

.home-screen-mode .home-plan-card .home-plan-content > p {
  width: min(100%, 650px);
  max-width: 650px;
  margin: 18px auto 0;
  color: rgba(242, 247, 246, .9);
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  line-height: 1.42;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .52);
}

.home-screen-mode .home-plan-card .home-plan-meta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  padding: 10px 16px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(183, 255, 0, .38);
  border-radius: 16px;
  color: #d8ff49;
  background: rgba(3, 11, 13, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.home-screen-mode .home-plan-card .home-plan-meta > span {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.home-screen-mode .home-plan-card .home-plan-meta i {
  flex: 0 0 auto;
  color: #ffe29a;
  filter: drop-shadow(0 0 8px rgba(255, 196, 80, .35));
}

.home-screen-mode .home-plan-card .home-plan-button {
  display: inline-flex;
  width: min(100%, 760px);
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto 0;
  padding: 0 24px;
  border: 1px solid rgba(255, 231, 178, .9);
  border-radius: 22px;
  color: #241303 !important;
  background: linear-gradient(135deg, #ffc04b 0%, #ff9e16 52%, #f47b00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(114, 47, 0, .24),
    0 12px 30px rgba(255, 132, 0, .3);
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-shadow: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.home-screen-mode .home-plan-card .home-plan-button i {
  color: #241303 !important;
  font-size: 1.08em;
}

.home-screen-mode .home-plan-card .home-plan-button:hover,
.home-screen-mode .home-plan-card .home-plan-button:focus-visible {
  border-color: #fff0c9;
  background: linear-gradient(135deg, #ffd06b 0%, #ffab24 52%, #fb8600 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .66),
    0 16px 36px rgba(255, 132, 0, .4);
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-1px);
}

.home-screen-mode .home-plan-card .home-plan-button:active {
  box-shadow: inset 0 2px 4px rgba(105, 42, 0, .25), 0 7px 16px rgba(255, 132, 0, .25);
  transform: translateY(1px) scale(.99);
}

@media (max-width: 760px) {
  .home-screen-mode .home-dashboard-v2 > .home-plan-card {
    min-height: 0;
    border-radius: 26px;
  }

  .home-screen-mode .home-plan-card::before,
  .home-screen-mode .home-plan-card::after { border-radius: 25px; }

  .home-screen-mode .home-plan-card .home-plan-content {
    padding: 30px 22px 24px;
  }

  .home-screen-mode .home-plan-card h2#homePlanTitle {
    max-width: 12ch;
    margin-top: 16px;
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1;
  }

  .home-screen-mode .home-plan-card .home-plan-content > p {
    width: min(100%, 390px);
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.4;
  }

  .home-screen-mode .home-plan-card .home-plan-meta {
    margin-top: 20px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .home-screen-mode .home-plan-card .home-plan-button {
    width: 100%;
    min-height: 58px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 19px;
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .home-screen-mode .home-plan-card .home-plan-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-screen-mode .home-plan-card .home-eyebrow {
    font-size: 11px;
    letter-spacing: .13em;
  }

  .home-screen-mode .home-plan-card h2#homePlanTitle {
    font-size: 34px;
  }

  .home-screen-mode .home-plan-card .home-plan-content > p {
    font-size: 15px;
  }

  .home-screen-mode .home-plan-card .home-plan-meta {
    width: 100%;
    font-size: 12px;
  }

  .home-screen-mode .home-plan-card .home-plan-meta > span {
    gap: 6px;
  }

  .home-screen-mode .home-plan-card .home-plan-button {
    min-height: 56px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen-mode .home-plan-card .home-plan-button { transition: none; }
}
