/**
 * Shared intro pill row — short lead + scannable chips (direction-strip pattern).
 * Used on packages hub hero tier row and other intro refactors.
 */
.intro-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  padding: 0;
  max-width: 42rem;
}

.intro-pills__item {
  display: flex;
}

.intro-pills__pill,
a.intro-pills__pill:is(:link, :visited, :hover, :focus, :focus-visible, :active) {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(
    145deg,
    rgba(18, 20, 26, 0.82) 0%,
    rgba(42, 46, 56, 0.58) 52%,
    rgba(58, 63, 74, 0.62) 100%
  );
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.intro-pills__pill:hover,
a.intro-pills__pill:focus-visible {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(
    145deg,
    rgba(28, 32, 42, 0.9) 0%,
    rgba(52, 58, 72, 0.68) 52%,
    rgba(72, 78, 92, 0.72) 100%
  );
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.intro-pills__icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.intro-pills__from {
  opacity: 0.92;
}

.intro-pills__lead {
  max-width: 38ch;
  margin: 0 auto 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted, #94a3b8);
}

.silo-hero .intro-pills__lead {
  color: inherit;
}

.silo-hero .hero-tier-pills {
  margin-bottom: 1.15rem;
}

.authority-tiers-head .intro-pills {
  margin-top: 0.35rem;
}

.authority-tiers-head .intro-pills__lead {
  max-width: var(--pre-card-head-subtitle-max, 42ch);
  font-size: 1.05rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .intro-pills {
    flex-direction: column;
    align-items: center;
    max-width: 20rem;
  }

  .intro-pills__pill {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .authority-tiers-head .intro-pills__lead {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* Package comparison tier pill — sequential Pro (gold) / Enterprise (white) / Battleship (mauve) glow, 9s cycle */
.intro-pills__tier-glow {
  display: inline;
  white-space: nowrap;
}

.intro-pills__tier-glow-sep {
  opacity: 0.55;
}

.intro-pills__tier-glow-word {
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  color: #94a3b8;
  text-shadow: none;
}

.intro-pills__tier-glow-word--pro {
  animation-name: intro-pill-tier-glow-pro;
}

.intro-pills__tier-glow-word--enterprise {
  animation-name: intro-pill-tier-glow-enterprise;
}

.intro-pills__tier-glow-word--battleship {
  animation-name: intro-pill-tier-glow-battleship;
}

@keyframes intro-pill-tier-glow-pro {
  0%,
  28%,
  100% {
    color: #94a3b8;
    text-shadow: none;
  }
  6%,
  20% {
    color: #fbbf24;
    text-shadow:
      0 0 6px rgba(251, 191, 36, 0.95),
      0 0 14px rgba(205, 169, 88, 0.55);
  }
}

@keyframes intro-pill-tier-glow-enterprise {
  0%,
  38%,
  72%,
  100% {
    color: #94a3b8;
    text-shadow: none;
  }
  44%,
  58% {
    color: #ffffff;
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.9),
      0 0 14px rgba(248, 250, 252, 0.45);
  }
}

@keyframes intro-pill-tier-glow-battleship {
  0%,
  66%,
  100% {
    color: #94a3b8;
    text-shadow: none;
  }
  72%,
  88% {
    color: #c49bb5;
    text-shadow:
      0 0 6px rgba(196, 155, 181, 0.95),
      0 0 14px rgba(167, 139, 250, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-pills__tier-glow-word {
    animation: none !important;
    text-shadow: none !important;
  }

  .intro-pills__tier-glow-word--pro {
    color: #fbbf24;
  }

  .intro-pills__tier-glow-word--enterprise {
    color: #ffffff;
  }

  .intro-pills__tier-glow-word--battleship {
    color: #c49bb5;
  }
}
