/* Med Destiny pricing page only. Card-focused overrides. */

body.page-id-362 {
  --md-card-ink: #07111f;
  --md-card-muted: #526173;
  --md-card-blue: #2563eb;
  --md-card-blue-dark: #123a9f;
  --md-card-gold: #d6aa48;
  --md-card-gold-soft: #fff4d6;
  --md-card-line: #dbe3ef;
}

body.page-id-362 .fmge-header {
  max-width: 1160px;
  margin: 18px auto 24px;
  padding: 0 16px;
}

body.page-id-362 .fmge-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.page-id-362 .fmge-logo-img {
  display: block;
  width: min(190px, 42vw);
  height: auto;
}

body.page-id-362 .fmge-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.page-id-362 .fmge-header-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.page-id-362 .fmge-header-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

body.page-id-362 .fmge-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.2fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto 34px;
  padding: 16px;
}

body.page-id-362 .fmge-price-card {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 26px 24px 24px;
  color: var(--md-card-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.97) 58%, rgba(242, 247, 255, 0.96) 100%),
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.2), transparent 34%);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body.page-id-362 .fmge-price-card::before {
  display: none;
  content: none;
}

body.page-id-362 .fmge-price-card::after {
  display: none;
  content: none;
}

body.page-id-362 .fmge-price-card:hover {
  transform: translateY(-6px);
  border-color: #ffffff;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(214, 170, 72, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

body.page-id-362 .fmge-price-card:nth-of-type(1),
body.page-id-362 .fmge-price-card:nth-of-type(3) {
  transform: scale(0.94);
}

body.page-id-362 .fmge-price-card:nth-of-type(1):hover,
body.page-id-362 .fmge-price-card:nth-of-type(3):hover {
  transform: translateY(-5px) scale(0.95);
}

body.page-id-362 .fmge-price-card:nth-of-type(2) {
  z-index: 2;
  min-height: 560px;
  padding: 32px 32px 30px;
  border: 2px solid rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at 88% 10%, rgba(96, 165, 250, 0.3), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(214, 170, 72, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 48%, #eaf3ff 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.44),
    0 0 0 8px rgba(37, 99, 235, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.94) inset;
  transform: translateY(-12px);
}

body.page-id-362 .fmge-price-card:nth-of-type(2)::before {
  content: "Recommended";
  position: relative;
  inset: auto;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  color: #123a9f;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 1;
}

body.page-id-362 .fmge-price-card:nth-of-type(2):hover {
  transform: translateY(-16px);
  box-shadow:
    0 48px 110px rgba(0, 0, 0, 0.5),
    0 0 0 9px rgba(37, 99, 235, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.96) inset;
}

body.page-id-362 .fmge-price-card:nth-of-type(3) {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdf7 52%, #fff5dc 100%),
    radial-gradient(circle at 92% 0%, rgba(214, 170, 72, 0.22), transparent 35%);
}

body.page-id-362 .fmge-price-card--stacked > * {
  position: relative;
  z-index: 1;
}

body.page-id-362 .fmge-price-card-name {
  max-width: 88%;
  margin: 0 0 10px;
  color: var(--md-card-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

body.page-id-362 .fmge-price-card:nth-of-type(2) .fmge-price-card-name {
  font-size: clamp(1.95rem, 2.45vw, 2.55rem);
}

body.page-id-362 .fmge-price-card-price {
  margin: 0;
  color: var(--md-card-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.1vw, 3rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

body.page-id-362 .fmge-price-card:nth-of-type(2) .fmge-price-card-price {
  font-size: clamp(2.45rem, 3.8vw, 3.55rem);
}

body.page-id-362 .fmge-price-card-price::first-letter {
  font-size: 0.58em;
  vertical-align: 0.26em;
}

body.page-id-362 .fmge-price-card-blurb {
  min-height: 38px;
  margin: 14px 0 19px;
  color: var(--md-card-muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.48;
}

body.page-id-362 .fmge-price-features {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: #354255;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.48;
  list-style: none;
}

body.page-id-362 .fmge-price-features li {
  position: relative;
  margin: 0;
  padding-left: 25px;
}

body.page-id-362 .fmge-price-features li::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #ffffff 0%, #eef5ff 44%, #dbeafe 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}

body.page-id-362 .fmge-price-features li::after {
  content: "";
  position: absolute;
  top: 0.57em;
  left: 5px;
  width: 7px;
  height: 5px;
  border-left: 2px solid var(--md-card-blue);
  border-bottom: 2px solid var(--md-card-blue);
  transform: rotate(-45deg);
}

body.page-id-362 .fmge-price-card p:has(.md-upgrade-btn),
body.page-id-362 .fmge-price-card p:has(.fmge-price-cta) {
  margin: auto 0 0;
}

body.page-id-362 .md-upgrade-btn,
body.page-id-362 .fmge-price-cta {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  background: linear-gradient(135deg, #123a9f 0%, #2563eb 55%, #60a5fa 100%);
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.page-id-362 .md-upgrade-btn:hover,
body.page-id-362 .fmge-price-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 22px 42px rgba(37, 99, 235, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body.page-id-362 .fmge-price-card:nth-of-type(3) .md-upgrade-btn {
  background: linear-gradient(135deg, #101827 0%, #8a6a1f 56%, #d6aa48 100%);
  box-shadow:
    0 16px 30px rgba(138, 106, 31, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.page-id-362 .fmge-price-card:nth-of-type(2) .md-upgrade-btn {
  min-height: 54px;
  background: linear-gradient(135deg, #0f2f8f 0%, #2563eb 52%, #7dd3fc 115%);
  box-shadow:
    0 22px 44px rgba(37, 99, 235, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 1rem;
}

body.page-id-362 .fmge-price-card--free-wide {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--md-card-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(214, 170, 72, 0.18), transparent 34%);
}

body.page-id-362 .fmge-price-card--free-wide::before {
  display: none;
  content: none;
}

body.page-id-362 .fmge-price-card--free-wide::after {
  display: none;
}

body.page-id-362 .fmge-free-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 34px;
  width: 100%;
  padding: 34px 36px 34px;
}

body.page-id-362 .fmge-price-card-tag {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  margin: 0 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--md-card-blue-dark);
  background: linear-gradient(135deg, #eff6ff, var(--md-card-gold-soft));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.page-id-362 .fmge-free-left .fmge-price-card-name {
  max-width: none;
}

body.page-id-362 .fmge-free-left .fmge-price-card-price {
  margin-bottom: 30px;
}

body.page-id-362 .fmge-price-cta--ghost {
  color: var(--md-card-blue-dark) !important;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: #ffffff;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

body.page-id-362 .fmge-price-cta--ghost:hover {
  background: #eff6ff;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

body.page-id-362 .fmge-free-right .fmge-price-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 8px 0 0;
}

body.page-id-362 .fmge-pricing-note-section {
  max-width: 1160px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

body.page-id-362 .fmge-pricing-note-container {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
  color: var(--md-card-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

body.page-id-362 .fmge-pricing-note-heading {
  margin: 0 0 12px;
  color: var(--md-card-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body.page-id-362 .fmge-pricing-note-text {
  max-width: 790px;
  margin: 0 auto;
  color: var(--md-card-muted);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.7;
}

body.page-id-362 .fmge-pricing-note-contact {
  margin-top: 14px;
}

body.page-id-362 .fmge-pricing-note-text a {
  color: var(--md-card-blue);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  body.page-id-362 .fmge-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  body.page-id-362 .fmge-price-card {
    min-height: 0;
  }

  body.page-id-362 .fmge-price-card:nth-of-type(1),
  body.page-id-362 .fmge-price-card:nth-of-type(3) {
    transform: none;
  }

  body.page-id-362 .fmge-price-card:nth-of-type(1):hover,
  body.page-id-362 .fmge-price-card:nth-of-type(3):hover {
    transform: translateY(-6px);
  }

  body.page-id-362 .fmge-price-card:nth-of-type(2) {
    min-height: 0;
    padding: 32px 28px 28px;
    transform: none;
  }

  body.page-id-362 .fmge-price-card:nth-of-type(2):hover {
    transform: translateY(-6px);
  }

  body.page-id-362 .fmge-free-inner,
  body.page-id-362 .fmge-free-right .fmge-price-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.page-id-362 .fmge-header {
    margin-top: 10px;
    padding: 0 12px;
  }

  body.page-id-362 .fmge-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page-id-362 .fmge-header-nav {
    width: 100%;
    justify-content: stretch;
  }

  body.page-id-362 .fmge-header-btn {
    flex: 1 1 auto;
    padding-inline: 10px;
  }

  body.page-id-362 .fmge-pricing-grid {
    gap: 18px;
    padding: 12px;
  }

  body.page-id-362 .fmge-price-card,
  body.page-id-362 .fmge-free-inner {
    padding: 26px 21px;
  }

  body.page-id-362 .fmge-price-card-name {
    max-width: 100%;
    font-size: 1.95rem;
  }

  body.page-id-362 .fmge-price-card-price {
    font-size: 2.8rem;
  }

  body.page-id-362 .fmge-price-card-blurb {
    min-height: 0;
  }

  body.page-id-362 .fmge-pricing-note-text br {
    display: none;
  }
}
