/* ============ Hero V3 — Variant 2: ingredient pill layout ============
   Additive layer on top of hero-v3.css — every rule is scoped to the
   .ampd-herov3--pills modifier or the .ampd-ing-* namespace, so Hero V1
   renders byte-identically with this file loaded. V2 swaps the descriptive
   subtitle for a 2×2 grid of ingredient feature pills (Grüns-style
   scanability) directly under the headline, where V1's subtitle sat. */

/* Pills live inside .ampd-herov3__text (z-index 3), so they sit above the
   scrim and Ross exactly like the subtitle they replace. The actions keep
   V1's own tuck under Ross untouched. */
.ampd-ing-pills {
  display: grid;
  grid-template-columns: 1fr;
  /* Uniform width for every pill — sized so the longest label
     ("Functional Mushrooms") fits on one line, the rest match it. */
  max-width: 220px;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

/* Visual ingredient highlights, not buttons — no cursor affordance, no
   press feedback; just a gentle lift on hover-capable devices. */
.ampd-ing-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--line-softer);
  border-radius: 15px;
  padding: 7px 9px;
  box-shadow: 0 1px 3px rgba(11, 11, 14, 0.04), 0 8px 20px rgba(11, 11, 14, 0.05);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) {
  .ampd-ing-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(11, 11, 14, 0.05), 0 16px 34px rgba(11, 11, 14, 0.09);
  }
}

.ampd-ing-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--tint-10);
  color: var(--accent-primary);
}
.ampd-ing-pill__icon svg { width: 18px; height: 18px; display: block; }

.ampd-ing-pill__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ampd-ink);
}

@media (max-width: 360px) {
  .ampd-ing-pills { gap: 6px; }
  .ampd-ing-pill { padding: 6px 8px; gap: 7px; border-radius: 13px; }
  .ampd-ing-pill__icon { width: 24px; height: 24px; }
  .ampd-ing-pill__icon svg { width: 16px; height: 16px; }
  .ampd-ing-pill__title { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ampd-ing-pill { transition: none; }
  .ampd-ing-pill:hover { transform: none; }
}
