/* Sponsorship tiers, the price cards above the 2025 sponsor logos.
   Drawn the way the client's own deck draws them: a snipped-corner card with a
   gradient edge, a faint gradient wash inside, and a second hairline frame set in
   from it. The cards reuse .core-card for the outer shape; everything else is here. */
.tiers__group + .tiers__group { margin-top: calc(28 * var(--pt)); }
.tiers__group .kicker {
  display: flex; align-items: center; gap: calc(10 * var(--pt));
  margin-bottom: calc(12 * var(--pt));
}
.tiers__group .kicker::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(69, 192, 191, .55), rgba(69, 192, 191, 0));
}

/* a flex row, not .core-grid: Tier 1 holds seven packages, and the deck sets them
   as four over a centred three, which the centred last line reproduces */
.tier-row {
  --gap: calc(6.4 * var(--pt));
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
}

.tier-card {
  flex: 0 1 calc((100% - 3 * var(--gap)) / 4);
  aspect-ratio: auto; min-height: calc(106 * var(--pt));
  justify-content: center; padding: calc(18 * var(--pt)) calc(12 * var(--pt));
}
/* the wash the deck puts behind each card, over .core-card's darkening layer */
.tier-card::after {
  background:
    linear-gradient(90deg, rgba(0, 113, 187, .22), rgba(69, 192, 191, .22)),
    linear-gradient(180deg, rgba(16, 35, 40, .62), rgba(10, 40, 80, .42));
}
/* the deck's second frame, set in from the edge at about a third opacity */
.tier-card__frame {
  position: absolute; inset: calc(5 * var(--pt)); pointer-events: none;
  --fc: calc(13 * var(--pt)); --fb: 1px;
  background: rgba(118, 212, 211, .34);
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--fc)) 0, 100% var(--fc), 100% 100%, var(--fc) 100%, 0 calc(100% - var(--fc)), 0 0,
    var(--fb) var(--fb),
    var(--fb) calc(100% - var(--fc) - var(--fb) * .4142),
    calc(var(--fc) + var(--fb) * .4142) calc(100% - var(--fb)),
    calc(100% - var(--fb)) calc(100% - var(--fb)),
    calc(100% - var(--fb)) calc(var(--fc) + var(--fb) * .4142),
    calc(100% - var(--fc) - var(--fb) * .4142) var(--fb),
    var(--fb) var(--fb));
}

.tier-card .core-card__num { font-size: calc(24 * var(--pt)); }
/* the package name carries the same blue-to-teal fill as the figure above it.
   Two lines' worth of height is reserved whether the name needs them or not, so a
   name that wraps does not push its price out of line with the rest of the row. */
.tier-card .core-card__label {
  display: flex; align-items: center; justify-content: center;
  margin-top: calc(4 * var(--pt)); min-height: calc(28.8 * var(--pt));
  font-size: calc(12 * var(--pt)); line-height: 1.2;
  background: linear-gradient(90deg, var(--blue-bright) 0%, #2a9ac4 55%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tier-card__price {
  margin-top: calc(3 * var(--pt));
  font-family: var(--f-pop); font-weight: 400; font-size: calc(11.5 * var(--pt)); line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.tier-card__price::before {
  content: ""; display: block; width: calc(26 * var(--pt)); height: 1px; margin: 0 auto calc(6 * var(--pt));
  background: var(--grad); opacity: .65;
}
.tier-card__note {
  margin-top: calc(5 * var(--pt));
  font-family: var(--f-alex); font-weight: 300; font-size: calc(8 * var(--pt)); line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}

@media (max-width: 959px) {
  .tiers__group + .tiers__group { margin-top: 28px; }
  .tiers__group .kicker { margin-bottom: 14px; gap: 12px; }
  .tier-row { --gap: 12px; }
  .tier-card { flex: 0 1 calc((100% - var(--gap)) / 2); min-height: 140px; padding: 22px 12px; }
  .tier-card__frame { inset: 7px; --fc: 16px; }
  .tier-card .core-card__num { font-size: 30px; }
  .tier-card .core-card__label { font-size: 15px; margin-top: 5px; min-height: 36px; }
  .tier-card__price { font-size: 15px; margin-top: 4px; }
  .tier-card__price::before { width: 32px; margin-bottom: 9px; }
  .tier-card__note { font-size: 10px; margin-top: 7px; }
}
