.pricing {
  --pricing-free-top: #103b82;
  --pricing-free-bottom: #08275d;
  --pricing-pro-top: #183f73;
  --pricing-pro-bottom: #0c2c5f;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(41, 117, 255, 0.18);
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 55%, #e9f2ff 100%);
}

.pricing::before,
.pricing::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.pricing::before {
  background: url("../images/pricing-network.svg") center top / cover no-repeat;
  opacity: 0.72;
}

.pricing::after {
  background:
    radial-gradient(circle at -2% 46%, rgba(0, 162, 255, 0.075), transparent 25rem),
    radial-gradient(circle at 102% 43%, rgba(169, 242, 56, 0.064), transparent 26rem);
}

.pricing__container {
  position: relative;
  z-index: 1;
  padding-block: 104px 112px;
}

.pricing__header {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.pricing__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid rgba(0, 162, 255, 0.34);
  border-radius: 999px;
  color: #063268;
  background: rgba(0, 162, 255, 0.10);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.pricing__header h2 {
  max-width: 770px;
  margin: 20px auto 0;
  color: #07163f;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.pricing__supporting {
  max-width: 770px;
  margin: 23px auto 0;
  color: #51698e;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.pricing__grid {
  width: min(100%, 940px);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 34px 32px;
  border: 1px solid rgba(39, 113, 255, 0.46);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% -12%, rgba(52, 151, 255, 0.18), transparent 22rem),
    linear-gradient(180deg, var(--pricing-free-top), var(--pricing-free-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 28px 84px rgba(0, 0, 12, 0.62),
    0 0 0 1px rgba(0, 178, 255, 0.08),
    0 0 44px rgba(0, 126, 255, 0.09);
}

.pricing-card--free {
  border-color: rgba(0, 178, 255, 0.78);
}

.pricing-card--pro {
  border-color: rgba(169, 242, 56, 0.82);
  background:
    radial-gradient(circle at 100% 0%, rgba(169, 242, 56, 0.14), transparent 17rem),
    radial-gradient(circle at 32% -12%, rgba(0, 162, 255, 0.12), transparent 20rem),
    linear-gradient(180deg, var(--pricing-pro-top), var(--pricing-pro-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 90px rgba(0, 0, 12, 0.66),
    0 0 0 1px rgba(169, 242, 56, 0.11),
    0 0 48px rgba(169, 242, 56, 0.11);
}

.pricing-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 12px;
  border: 1px solid rgba(169, 242, 56, 0.38);
  border-radius: 999px;
  color: #0c2e15;
  background: linear-gradient(180deg, #c9ff6a, var(--ml-lime));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  box-shadow: 0 8px 24px rgba(139, 217, 32, 0.12);
}

.pricing-card__name {
  margin: 0;
  color: var(--color-text);
  font-size: 1.55rem;
  line-height: 1.1;
}

.pricing-card--pro .pricing-card__name {
  color: #d8ff9d;
}

.pricing-card__tagline {
  min-height: 52px;
  margin: 12px 0 0;
  color: #b7c7e7;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pricing-card__price {
  min-height: 74px;
  margin-top: 25px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  color: var(--color-text);
}

.pricing-card__amount {
  font-size: clamp(2.65rem, 5.4vw, 3.55rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.pricing-card--free .pricing-card__amount {
  color: #71d0ff;
}

.pricing-card--pro .pricing-card__amount {
  color: var(--ml-lime);
  text-shadow: 0 0 28px rgba(169, 242, 56, 0.09);
}

.pricing-card__period {
  color: #b8c8e8;
  font-size: 1rem;
  font-weight: 700;
}

.pricing-card__billing-note {
  width: 100%;
  margin-top: 7px;
  color: #9db1d6;
  font-size: 0.82rem;
  font-weight: 650;
}

.pricing-card__cta {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: default;
}

.pricing-card__cta--free {
  color: #eef8ff;
  border-color: rgba(0, 162, 255, 0.54);
  background: linear-gradient(180deg, #087ed3, #035db0);
  box-shadow: 0 12px 28px rgba(0, 92, 183, 0.17);
}

.pricing-card__cta--pro {
  color: #071834;
  border-color: rgba(169, 242, 56, 0.60);
  background: linear-gradient(180deg, #c6ff63, var(--ml-lime));
  box-shadow: 0 14px 32px rgba(139, 217, 32, 0.18);
}

.pricing-card__divider {
  height: 1px;
  margin: 27px 0 23px;
  background: linear-gradient(90deg, transparent, rgba(107, 143, 213, 0.24) 12%, rgba(107, 143, 213, 0.24) 88%, transparent);
}

.pricing-card__features {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card--pro .pricing-card__features {
  gap: 32px;
}

.pricing-feature {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #d7e1f4;
  font-size: 0.91rem;
  line-height: 1.4;
}

.pricing-feature__icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #071b42;
  background: #55c8ff;
  font-size: 0.72rem;
  font-weight: 950;
}

.pricing-card--pro .pricing-feature__icon {
  color: #102b0c;
  background: var(--ml-lime);
}

.pricing-feature--unavailable {
  color: #93a4c4;
}

.pricing-feature--unavailable .pricing-feature__icon {
  color: #a8b5cf;
  border: 1px solid rgba(168, 181, 207, 0.24);
  background: rgba(168, 181, 207, 0.08);
}

.pricing-feature__label {
  display: block;
  font-weight: 720;
}

.pricing-feature__meta {
  display: block;
  margin-top: 3px;
  color: #8fa6cc;
  font-size: 0.76rem;
  font-weight: 560;
  line-height: 1.45;
}

.pricing-card--pro .pricing-feature--automation .pricing-feature__label {
  color: #e2ffb7;
}

.pricing__site-note {
  width: min(100%, 940px);
  margin: 24px auto 0;
  color: #51698e;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .pricing__container {
    padding-block: 90px 98px;
  }

  .pricing__grid {
    gap: 18px;
    margin-top: 48px;
  }

  .pricing-card {
    padding: 29px 25px 28px;
  }

  .pricing-card__badge {
    top: 21px;
    right: 20px;
    padding-inline: 9px;
    font-size: 0.59rem;
  }

  .pricing-card__tagline {
    min-height: 60px;
    font-size: 0.9rem;
  }

  .pricing-card--pro .pricing-card__features {
    gap: 26px;
  }

  .pricing-feature {
    font-size: 0.85rem;
  }
}

@media (max-width: 700px) {
  .pricing__container {
    padding-block: 78px 88px;
  }

  .pricing__header {
    text-align: left;
  }

  .pricing__eyebrow {
    min-height: 30px;
  }

  .pricing__header h2 {
    margin-top: 18px;
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .pricing__supporting {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }

  .pricing-card {
    padding: 30px 27px 29px;
  }

  .pricing-card__tagline {
    min-height: 0;
  }

  .pricing-card__price {
    min-height: 0;
  }

  .pricing-card__amount {
    font-size: clamp(2.85rem, 14vw, 3.7rem);
  }

  .pricing-card--pro .pricing-card__features {
    gap: 13px;
  }
}

@media (max-width: 430px) {
  .pricing-card {
    padding-inline: 22px;
    border-radius: 23px;
  }

  .pricing-card__badge {
    max-width: 116px;
    text-align: center;
    line-height: 1.1;
  }

  .pricing-card__name {
    padding-right: 112px;
  }

  .pricing-feature {
    font-size: 0.86rem;
  }
}


/* 0.1.9-R6 — Block 5 compact plan refinement */
.pricing__grid {
  width: min(100%, 880px);
  gap: 22px;
}

.pricing-card {
  padding: 25px 28px 24px;
}

.pricing-card__tagline {
  min-height: 44px;
  margin-top: 9px;
}

.pricing-card__price {
  min-height: 62px;
  margin-top: 16px;
}

.pricing-card__cta {
  min-height: 48px;
  margin-top: 14px;
}

.pricing-card__divider {
  margin: 18px 0 15px;
}

.pricing-card__features {
  gap: 10px;
}

.pricing-card--pro .pricing-card__features {
  gap: 14px;
}

@media (max-width: 900px) {
  .pricing-card {
    padding: 26px 23px 24px;
  }

  .pricing-card__tagline {
    min-height: 50px;
  }

  .pricing-card--pro .pricing-card__features {
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .pricing__grid {
    width: 100%;
  }

  .pricing-card {
    padding: 27px 25px 26px;
  }

  .pricing-card__tagline,
  .pricing-card__price {
    min-height: 0;
  }

  .pricing-card__price {
    margin-top: 18px;
  }

  .pricing-card__cta {
    margin-top: 14px;
  }

  .pricing-card__divider {
    margin: 20px 0 17px;
  }

  .pricing-card__features,
  .pricing-card--pro .pricing-card__features {
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .pricing-card {
    padding-inline: 22px;
  }
}

/* 0.1.9-R6-R1 — Free card distribution and CTA alignment polish */
@media (min-width: 901px) {
  .pricing-card--free .pricing-card__cta {
    margin-top: 35px;
  }

  .pricing-card--free .pricing-card__features {
    gap: 11px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .pricing-card--free .pricing-card__cta {
    margin-top: 19px;
  }

  .pricing-card--free .pricing-card__features {
    gap: 11px;
  }
}

/* 0.1.9-R6-R2 — Free card benefit distribution polish */
@media (min-width: 701px) {
  .pricing-card--free .pricing-card__features {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* 0.1.9-R6-R3 — Pricing cards hover lift + Pro CTA gentle pulse */
.pricing-card {
  transform-origin: center center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.pricing-card__cta--pro {
  cursor: pointer;
  transform-origin: center center;
  animation: ml-pricing-pro-gentle-pulse 2.8s ease-in-out infinite;
}

/* 0.1.9-R6-R4 — Pro CTA pulse emphasis refinement */
@keyframes ml-pricing-pro-gentle-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 14px 32px rgba(139, 217, 32, 0.18),
      0 0 0 rgba(169, 242, 56, 0);
  }

  50% {
    transform: scale(1.02);
    box-shadow:
      0 15px 35px rgba(139, 217, 32, 0.2684),
      0 0 22px rgba(169, 242, 56, 0.244);
  }
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .pricing-card--free:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.065),
      0 34px 92px rgba(0, 0, 18, 0.66),
      0 0 0 1px rgba(0, 178, 255, 0.13),
      0 0 52px rgba(0, 126, 255, 0.14);
  }

  .pricing-card--pro:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 36px 96px rgba(0, 0, 18, 0.68),
      0 0 0 1px rgba(169, 242, 56, 0.14),
      0 0 54px rgba(169, 242, 56, 0.15);
  }

  .pricing-card__cta--pro:hover {
    animation: none;
    transform: translateY(-2px) scale(1.015);
    box-shadow:
      0 16px 38px rgba(139, 217, 32, 0.24),
      0 0 24px rgba(169, 242, 56, 0.21);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card__cta--pro {
    animation: none;
  }
}

/* 0.1.9-R6-R7 — Plans subtle background enrichment */
@media (max-width: 900px) {
  .pricing::before {
    background-size: auto 100%;
    background-position: center top;
    opacity: 0.58;
  }

  .pricing::after {
    background:
      radial-gradient(circle at -10% 42%, rgba(0, 162, 255, 0.06), transparent 20rem),
      radial-gradient(circle at 110% 44%, rgba(169, 242, 56, 0.05), transparent 20rem);
  }
}

@media (max-width: 700px) {
  .pricing::before {
    background-size: auto 86%;
    background-position: center 4%;
    opacity: 0.34;
  }

  .pricing::after {
    opacity: 0.72;
  }
}


/* Phase 0.1.9-R6-R42 — Block 5 mobile header alignment & top-spacing refinement.
   Scope: mobile only. Centers the Plans eyebrow and heading, justifies the
   introductory copy, and reduces only the Block 5 top padding so the transition
   from Block 4 is tighter without changing tablet/desktop or plan cards. */
@media (max-width: 560px) {
  .pricing__container {
    padding-top: 46px;
  }

  .pricing__header {
    text-align: center;
  }

  .pricing__eyebrow {
    margin-inline: auto;
  }

  .pricing__header h2 {
    text-align: center;
  }

  .pricing__supporting {
    max-width: none;
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: auto;
  }
}
