/* RF Bento Cards — static layout (per-instance values come from CSS variables) 
  font-weight: 700 800;
  font-display: swap;
  src: url("https://4006992.fs1.hubspotusercontent-na1.net/hubfs/4006992/PP%20Neue%20Machina/PPNeueMachina-InktrapUltrabold.woff2") format("woff2");
}

/* Brand fonts (already loaded by the One Model theme — no extra font requests) */
.rfbc__heading {
  margin: 0 0 var(--rfbc-heading-gap, 32px);
  font-family: "PP Neue Machina", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

/* Mobile first: single column */
.rfbc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rfbc-gap, 16px);
}

.rfbc__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--rfbc-card-pad, 24px);
  border-radius: var(--rfbc-radius, 16px);
  background-color: #fff;
}

.rfbc__icon {
  display: flex;
  color: #8B5CF6;
  width: var(--rfbc-icon-size, 85px);
  height: auto;
  align-items: flex-start;
  margin-bottom: var(--rfbc-icon-gap, 32px);
  flex-shrink: 0;
}
.rfbc__icon img,
.rfbc__icon svg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rfbc__title {
  margin: 0 0 var(--rfbc-title-gap, 16px);
  font-family: "PP Neue Machina Ulbold", "PP Neue Machina", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.rfbc__text {
  font-family: "Spline Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
.rfbc__text strong,
.rfbc__text b { font-weight: 700; }
.rfbc__text > :first-child { margin-top: 0; }
.rfbc__text > :last-child { margin-bottom: 0; }
.rfbc__text p { margin: 0 0 1em; }

/* Tablet: 2 columns, a trailing odd card spans full width */
@media (min-width: 768px) {
  .rfbc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfbc__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Desktop: max 3 per row — 1 card = full width, 2 = 50/50, 3 = 33.33% each */
@media (min-width: 1024px) {
  .rfbc__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rfbc__card,
  .rfbc__card:last-child:nth-child(odd) { grid-column: span 2; }
  .rfbc__card:nth-child(3n+1):nth-last-child(2),
  .rfbc__card:nth-child(3n+2):last-child { grid-column: span 3; }
  .rfbc__card:nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
