/* ---------------------------------------------------------------------------
   proof-bento — 12-column bento of capability cards: title, feature chips and
   a live proof partial per card.

   Loaded by resources/views/components/sections/proof-bento.blade.php.
   Plain CSS — no Tailwind @apply here.
   Bump the ?v in that component's <link> whenever this file changes.
--------------------------------------------------------------------------- */

.section-proof-bento {
  --pb-ink: #15203a;
  --pb-brand: #1d4aa3;
  --pb-card-line: #e2e7ef;
  --pb-chip-line: #d7e4ff;
  --pb-bg: #f8fafc;
  --pb-bg-tint: #eef4ff;
  --pb-bg-warm: #fbf7ef;
}

.section-proof-bento .pb-title {
  margin: 0 auto 30px;
  text-align: center;
}

.section-proof-bento .pb-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

/* Each card spans two parent rows and lays its head and proof on them as a
   subgrid, so titles of different lengths still leave the proofs in a row
   starting at the same line. The grid's row gap is what separates a card's
   head from its proof, so the proof carries no top margin. */
.section-proof-bento .pb-card {
  grid-column: span var(--pb-span, 4);
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--pb-card-line);
  border-radius: 24px;
  background: var(--pb-bg);
  color: var(--pb-ink);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(29, 74, 163, 0.043);
}

.section-proof-bento .pb-card--tint {
  background: var(--pb-bg-tint);
}

.section-proof-bento .pb-card--warm {
  background: var(--pb-bg-warm);
}

.section-proof-bento .pb-card-head {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-proof-bento .pb-card-title {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-proof-bento .pb-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-proof-bento .pb-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--pb-chip-line);
  border-radius: 999px;
  color: var(--pb-brand);
  background: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section-proof-bento .pb-proof {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 997px) {
  .section-proof-bento .pb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-proof-bento .pb-card {
    grid-column: span 2;
    padding: 20px;
  }

  .section-proof-bento .pb-card-title {
    font-size: 19px;
  }

  .section-proof-bento .pb-card--half {
    grid-column: span 1;
    min-height: 254px;
    padding: 16px;
  }

  .section-proof-bento .pb-card--half .pb-card-title {
    font-size: 17px;
    line-height: 1.16;
  }

  .section-proof-bento .pb-card--half .pb-tags {
    display: none;
  }

  .section-proof-bento .pb-card-title:lang(zh) {
    line-height: 1.35;
  }
}
