/* ==========================================================
   Ingredient Swap hero (Case 03), after the getplanbee.app hero:
   a dark rounded panel with a yellow pill badge, a headline with the
   key word in yellow, the lede, a search bar with a yellow button,
   a row of popular chips, and a light stats band underneath.
   Type: site stack (Yeseva One headline, Josefin Sans body, JetBrains
   Mono labels). Colours: planbee palette (charcoal, cream, yellow).
   ========================================================== */
.pbh {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(255, 201, 20, .16), transparent 60%),
    linear-gradient(180deg, #2E282A 0%, #2A2426 100%);
  color: #F7FFF7;
  font-family: var(--sans);
}
.pbh__main {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
}
.pbh__badge {
  margin: 0;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(247, 255, 247, .08); border: 1px solid rgba(247, 255, 247, .16);
  border-radius: 999px; padding: .42rem .9rem; color: #F7FFF7;
}
.pbh__badge i { width: .5rem; height: .5rem; border-radius: 50%; background: #FFC914; display: block; }
.pbh__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 16ch;
  color: #F7FFF7;
}
.pbh__hl { color: #FFC914; }
.pbh__lede { margin: 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.5; color: rgba(247, 255, 247, .78); }

.pbh__search {
  width: min(100%, 40rem);
  display: flex; align-items: center; gap: .6rem;
  background: #FFFFFF; color: #2C3B44;
  border-radius: 999px; padding: .4rem .4rem .4rem .9rem; margin-top: .5rem;
  text-align: left;
}
.pbh__icon svg { width: 1.1rem; height: 1.1rem; display: block; fill: none; stroke: #6B747C; stroke-width: 2; stroke-linecap: round; }
.pbh__input { flex: 1; min-width: 0; font-size: .95rem; color: #6B747C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbh__go {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  background: #FFC914; color: #2C3B44; font-weight: 600; font-size: .9rem;
  border-radius: 999px; padding: .7rem 1.2rem;
}

.pbh__pop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; max-width: 42rem; }
.pbh__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; }
.pbh__label { font-size: .85rem; color: rgba(247, 255, 247, .7); margin-right: .2rem; }
.pbh__chip {
  font-size: .82rem; color: #F7FFF7; border: 1px solid rgba(247, 255, 247, .2); border-radius: 999px; padding: .28rem .75rem; background: rgba(247, 255, 247, .05);
}

.pbh__stats {
  list-style: none; margin: 0; padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: #EAF5EA; color: #2C3B44;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.25rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.pbh__stats li { display: inline-flex; align-items: center; gap: .5rem; }
.pbh__stats i { width: .55rem; height: .55rem; border-radius: 50%; background: #FFC914; box-shadow: 0 0 0 1px rgba(44, 59, 68, .25); display: block; }

@media (max-width: 40rem) {
  .pbh__search { flex-wrap: wrap; border-radius: 18px; }
  .pbh__input { flex-basis: 100%; white-space: normal; }
  .pbh__go { width: 100%; justify-content: center; }
}
