/* =========================
   JustBrainDumpIt — Bento Hero (Apple-clean polish)
   Desktop: 2 large tiles (row 1) + 3 small tiles (row 2)
   Mobile: single-column stacked tiles (stable)
   Depends on: styles.css (.glass-card, .download-btn, typography)
   ========================= */

.hero--bento {
  min-height: auto;
  padding-top: 124px; /* room for fixed nav */
  padding-bottom: 68px;
}

.bento-hero {
  width: 100%;
}

.bento-hero__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* =========================
   Tile base
   ========================= */

.bento-card {
  border-radius: 22px;
  overflow: hidden;
}

/* Apple-ish glass (calmer border + calmer blur) */
.bento-card.glass-card {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Content spacing (more consistent rhythm) */
.bento-card__content {
  padding: 24px;
}

.bento-card__content--tight {
  padding: 18px 20px;
}

/* =========================
   Badge / pill
   ========================= */

.bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: rgba(15, 23, 42, 0.78);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.08);

  margin: 0 0 12px 0;
}

/* =========================
   Title + lede (Apple rhythm)
   ========================= */

.bento-title {
  margin: 0 0 12px 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.02;

  font-size: clamp(34px, 3.6vw, 54px);
  color: #0F172A;
}

.bento-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(71, 85, 105, 0.92);
  max-width: 68ch;
}

/* =========================
   Actions (Apple-clean buttons + link)
   ========================= */

.bento-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Make the existing download button feel more Apple (scoped) */
.hero--bento .download-btn {
  padding: 12px 16px;
  border-radius: 14px;
  gap: 10px;

  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hero--bento .download-btn:hover {
  transform: translateY(-1px); /* tiny, not “web CTA jump” */
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.hero--bento .download-btn__kicker {
  font-size: 11px;
  opacity: 0.72;
}

.hero--bento .download-btn__platform {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Secondary “text link” — clearer + Apple-ish */
.bento-link {
  color: rgba(15, 23, 42, 0.68);
  font-weight: 600;
  text-decoration: none;

  padding: 10px 10px;
  border-radius: 12px;

  transition: background-color 160ms ease, color 160ms ease;
}

.bento-link:hover {
  color: rgba(15, 23, 42, 0.88);
  background: rgba(255, 255, 255, 0.55);
}

.bento-fineprint {
  margin: 14px 0 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(71, 85, 105, 0.75);
  opacity: 0.50;
}

/* =========================
   Visual tile
   ========================= */

.bento-card__media {
  padding: 12px;
}

.bento-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}

/* Placeholder: intentional, calmer */
.bento-media--placeholder {
  min-height: 320px;
  background: linear-gradient(
    135deg,
    rgba(243, 232, 255, 0.65),
    rgba(224, 242, 254, 0.65)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
}

.bento-placeholder__inner {
  text-align: center;
  padding: 18px;
  color: rgba(15, 23, 42, 0.70);
}

.bento-placeholder__title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bento-placeholder__sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.72;
}

.bento-card__caption {
  padding: 0 18px 18px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(71, 85, 105, 0.88);
}

/* =========================
   Small tiles
   ========================= */

.bento-miniTitle {
  margin: 0 0 8px 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0F172A;
}

.bento-miniText {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(71, 85, 105, 0.92);
}

.bento-miniMeta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bento-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;

  color: rgba(15, 23, 42, 0.68);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* =========================
   Desktop layout: 2 big top + 3 small bottom
   ========================= */

@media (min-width: 980px) {
  .bento-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .bento-card--primary { grid-column: 1 / span 7; }
  .bento-card--visual  { grid-column: 8 / span 5; }

  .bento-card--small:nth-of-type(3) { grid-column: 1 / span 4; }
  .bento-card--small:nth-of-type(4) { grid-column: 5 / span 4; }
  .bento-card--small:nth-of-type(5) { grid-column: 9 / span 4; }

  .bento-media--placeholder { min-height: 420px; }

  /* Slightly roomier desktop padding */
  .bento-card__content { padding: 26px; }
}

/* =========================
   Mobile tightening
   ========================= */

@media (max-width: 520px) {
  .hero--bento {
    padding-top: 110px;
    padding-bottom: 56px;
  }

  .bento-card__content {
    padding: 20px;
  }

  .bento-title {
    font-size: 34px;
  }

  .bento-media--placeholder {
    min-height: 260px;
  }

  .hero--bento .download-btn {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .bento-link {
    padding: 10px 8px;
  }
}
