/* Section 12 — the Gold fan of three price cards */

.pricing {
  padding-block: clamp(78px, 10vh, 124px);
}

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.pricing__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 17px;
  background:
    radial-gradient(circle at 32% 20%, #ffe6a6 0%, #e8bd6c 38%, #c9a35c 72%, #a97f36 100%);
  color: #2a1a04;
  box-shadow: 0 14px 28px -18px rgba(169, 127, 54, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pricing__icon svg {
  width: 28px;
  height: 28px;
}

.pricing__copy .eyebrow {
  margin-top: 20px;
}

.pricing__title {
  margin-top: 15px;
}

.pricing__text {
  max-width: 38ch;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: -0.005em;
}

.pricing__note {
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pricing__fan {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 10px;
}

.price-card {
  --fan-rot: 0deg;
  --fan-tx: 0px;
  --fan-ty: 0px;
  position: relative;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: clamp(178px, 16vw, 226px);
  min-height: 358px;
  padding: clamp(16px, 1.55vw, 22px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--paper-raised) 100%, transparent) 0%, color-mix(in srgb, var(--paper-raised) 92%, var(--page)) 100%);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.05), 0 26px 48px -30px rgba(24, 24, 27, 0.45);
  transform: translate(var(--fan-tx), var(--fan-ty)) rotate(var(--fan-rot));
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) ease;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.price-card:hover {
  z-index: 5;
  transform: translate(var(--fan-tx), calc(var(--fan-ty) - 10px)) rotate(0deg);
  box-shadow: 0 4px 10px rgba(24, 24, 27, 0.06), 0 38px 64px -30px rgba(24, 24, 27, 0.5);
}

.price-card--left {
  --fan-rot: -8deg;
  --fan-tx: -14px;
  --fan-ty: 16px;
  z-index: 1;
  margin-right: -34px;
}

.price-card--center {
  --fan-rot: 0deg;
  --fan-tx: 0px;
  --fan-ty: 0px;
  z-index: 3;
  width: clamp(196px, 17.4vw, 250px);
  min-height: 400px;
  border-color: rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(125% 92% at 84% 3%, #ffa27c 0%, #ff8a5d 32%, #ff6a3d 64%, #ef4f1c 100%);
  color: #1b0a03;
  box-shadow: 0 3px 10px rgba(24, 24, 27, 0.08), 0 38px 70px -32px rgba(191, 57, 16, 0.62);
}

.price-card--center::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.price-card--center:hover {
  box-shadow: 0 5px 14px rgba(24, 24, 27, 0.1), 0 46px 80px -34px rgba(191, 57, 16, 0.7);
}

.price-card--right {
  --fan-rot: 6deg;
  --fan-tx: 14px;
  --fan-ty: 16px;
  z-index: 2;
  margin-left: -34px;
}

.price-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #1b0a03;
  color: #ffd9c8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -12px rgba(27, 10, 3, 0.8);
  transform: translateX(-50%);
}

.price-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.price-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.7;
}

.price-card__kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.price-card__tag {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.62;
}

.price-card__price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 18px;
  font-size: clamp(2.7rem, 4vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.price-card__cur {
  margin-top: 0.22em;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
}

.price-card__price small {
  align-self: flex-end;
  margin-bottom: 0.4em;
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.6;
}

.price-card__compare {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.58;
}

.price-card__desc {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.72;
}

.price-card__features {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.74;
}

.price-card__features svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 1px;
  opacity: 0.85;
}

.price-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: auto;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease;
}

.price-card__features + .price-card__cta {
  margin-top: 18px;
}

.price-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -14px rgba(24, 24, 27, 0.6);
}

.price-card--center .price-card__cta {
  background: #1b0a03;
  color: #ffe3d5;
}

@media (max-width: 1080px) {
  .price-card {
    width: clamp(166px, 16vw, 196px);
    padding: 16px;
  }

  .price-card--center {
    width: clamp(180px, 17vw, 212px);
  }

  .price-card--left {
    margin-right: -28px;
  }

  .price-card--right {
    margin-left: -28px;
  }
}

@media (max-width: 900px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing__fan {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .price-card,
  .price-card--center {
    width: min(100%, 430px);
    min-height: 0;
    padding: 20px;
    transform: none;
    margin: 0;
  }

  .price-card--center {
    order: -1;
    margin-top: 6px;
  }

  .price-card:hover {
    transform: translateY(-4px);
  }

  .price-card__cta {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .pricing__icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .pricing__title {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  .price-card__price {
    font-size: clamp(2.5rem, 13vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-card__cta {
    transition: none;
  }
}
