/* ===== Benefits page ===== */

/* ===== Pixelated Icon ===== */
.pixel-icon {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.875rem;
}

/* ===== Benefits + growth graph ===== */
.benefits-intro .feature-intro-copy { padding: 1.5rem 2.5rem 1.5rem 0; margin: -2rem 0 -1.5rem; }
.benefits-intro .feature-intro-art { padding-left: 2.5rem; }
.benefits-intro .feature-intro-img { max-width: 340px; max-height: none; }
.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.benefit-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 3.5rem 1.25rem 1.25rem;
}
.benefit-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta-muted);
  border: 1px solid var(--terracotta-border);
  border-radius: 3px;
}
.benefit-icon svg { width: 30px; height: 30px; }
.benefit-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }
.benefit-body h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.benefit-step {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}
/* Merch reveal: a chevron toggles it open and closed */
.benefit-card.has-merch { flex-wrap: wrap; row-gap: 0; }
/* Pin the step number to the header row (card padding + half the icon) so it doesn't drift as the merch opens */
.benefit-card.has-merch .benefit-step { top: calc(1.25rem + 32px); }
.benefit-card.has-merch .benefit-body { flex: 1 1 0; min-width: 0; }
.merch-toggle {
  /* Thin full-width bar along the bottom of the row; hints at the merch beneath */
  --bleed: 2.25rem; /* card's extra right padding (3.5rem - 1.25rem), so the bar reaches the right inset */
  flex: 0 0 auto;
  width: calc(100% + var(--bleed));
  height: 22px;
  margin: 0.75rem calc(var(--bleed) * -1) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta-muted);
  border: 1px solid var(--terracotta-border);
  border-radius: 3px;
  color: var(--terracotta);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.merch-toggle:hover { border-color: var(--terracotta); background: var(--terracotta-muted); }
.merch-toggle svg { transition: transform 0.3s ease; }
.benefit-card.merch-open .merch-toggle svg { transform: rotate(180deg); }
.benefit-merch {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
  margin-top: 0;
}
.benefit-card.merch-open .benefit-merch {
  max-height: 130px;
  opacity: 1;
  margin-top: 0.75rem;
}
.merch-item {
  margin: 0;
  height: 110px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta-muted);
  border: 1px solid var(--terracotta-border);
  border-radius: 3px;
  padding: 0.5rem;
}
.merch-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.benefits-art { flex-direction: column; gap: 1.5rem; text-align: center; }
.benefits-art-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 768px) {
  .benefits-intro .feature-intro-copy { padding: 1.5rem 1.5rem 2rem; margin: -2rem -1.5rem 0; }
  .benefits-intro .feature-intro-art { padding-left: 0; }
  .benefit-card { padding-right: 3rem; column-gap: 1rem; }
  .merch-toggle { --bleed: 1.75rem; }
  .benefit-icon { width: 52px; height: 52px; }
  .benefit-card.has-merch .benefit-step { top: calc(1.25rem + 26px); }
  .benefit-merch { grid-template-columns: repeat(2, 1fr); }
  .benefit-card.merch-open .benefit-merch { max-height: 260px; }
  .merch-item { height: 100px; }
}
