/* ==========================================================================
   Macaw Bytes - Pricing page (corporate dark mood)
   Desktop: 3-column grids (3×1 or 3×2 per category)
   ========================================================================== */

/* Hero */
.price-hero {
  position: relative;
  min-height: min(62svh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vw, 9rem) 0 clamp(2.75rem, 6vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(165deg, #0a1218 0%, #0b0d10 45%, #0c1410 100%);
}

.price-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 14% 22%, rgba(74, 168, 224, 0.28), transparent 62%),
    radial-gradient(ellipse 48% 45% at 88% 16%, rgba(46, 174, 78, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(240, 180, 41, 0.12), transparent 55%);
}

.price-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 54rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin: 0.65rem auto 1.15rem;
  max-width: 16ch;
}

.price-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.price-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

/* Category jump links */
.price-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 40rem;
}

.price-jump a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--home-muted) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.price-jump a:hover {
  border-color: rgba(74, 168, 224, 0.45);
  color: var(--home-ink) !important;
  background: rgba(74, 168, 224, 0.08);
}

/* Category blocks */
.price-block {
  padding: clamp(3.25rem, 7vw, 4.75rem) 0;
  border-bottom: 1px solid var(--home-line);
  scroll-margin-top: 5.5rem;
}

.price-block--first {
  padding-top: clamp(3rem, 6vw, 4rem);
}

.price-block__head {
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.price-block__head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--home-ink);
  margin: 0.45rem 0 0.65rem;
  line-height: 1.2;
}

.price-block__intro {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 38rem;
}

/* Package grids: always 3 columns on desktop */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.price-grid--three,
.price-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.65rem 1.4rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--home-line);
  background: var(--home-surface);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: rgba(74, 168, 224, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.price-card--featured {
  border-color: rgba(46, 174, 78, 0.5);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(46, 174, 78, 0.14), transparent 58%),
    var(--home-surface);
  box-shadow: 0 0 0 1px rgba(46, 174, 78, 0.14);
}

.price-card--featured:hover {
  border-color: rgba(46, 174, 78, 0.65);
}

.price-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b0d10;
  background: var(--home-green);
  border-radius: 4px;
  padding: 0.28rem 0.55rem;
}

.price-card__name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  margin: 0 0 0.65rem;
  padding-right: 5.25rem;
  line-height: 1.25;
}

.price-card:not(.price-card--featured) .price-card__name {
  padding-right: 0;
}

.price-card__amount {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

.price-card--featured .price-card__amount {
  background: linear-gradient(120deg, var(--home-blue), var(--home-green) 60%, var(--home-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card__blurb {
  margin: 0 0 1.15rem;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: 2.85em;
}

.price-card__features {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  flex: 1;
}

.price-card__features li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.48rem;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-green);
}

.price-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.price-note {
  margin: 2rem auto 2.75rem;
  text-align: center;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 44rem;
}

/* Tablet: 2 columns still reads well for 6-card sections */
@media (max-width: 1100px) and (min-width: 721px) {
  .price-grid,
  .price-grid--three,
  .price-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .price-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .price-hero h1 {
    max-width: none;
  }

  .price-hero__actions {
    width: 100%;
  }

  .price-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .price-jump {
    width: 100%;
  }

  .price-jump a {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .price-grid,
  .price-grid--three,
  .price-grid--six {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .price-card {
    padding: 1.45rem 1.25rem 1.3rem;
  }

  .price-card:hover {
    transform: none;
    box-shadow: none;
  }

  .price-card__name {
    padding-right: 0;
  }

  .price-card__badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
  }

  .price-card__blurb {
    min-height: 0;
  }

  .price-card--featured {
    order: -1;
  }
}

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

  .price-card:hover {
    transform: none;
  }
}
