.bento-section {
  background: #f5f0ec;
  padding-block: 70px;
}

.bento-section .section-heading {
  max-width: 700px;
  margin: 0 auto 28px;
  text-align: center;
}

.bento-section h2 {
  font-size: clamp(2.4rem, 4vw, 3.9rem);
}

.bento-section .section-heading .eyebrow {
  color: #b96646;
}

.bento-section .section-heading p {
  max-width: 620px;
  margin-inline: auto;
}

.bento-grid {
  display: grid;
  max-width: 1080px;
  margin-inline: auto;
  grid-template-columns: 1.08fr 1fr 1fr;
  grid-template-rows: repeat(3, 170px);
  grid-template-areas:
    "notification app sermons"
    "users app sermons"
    "nocode calendar calendar";
  gap: 13px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
  color: #22272b;
}

.bento-card h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.06em;
  margin: 0;
  position: relative;
  z-index: 2;
}

.bento-notifications { grid-area: notification; }
.bento-app { grid-area: app; }
.bento-sermons { grid-area: sermons; }
.bento-users { grid-area: users; }
.bento-no-code { grid-area: nocode; }
.bento-calendar { grid-area: calendar; }

.bento-notifications h3 { margin-top: 2px; }

.bento-notice {
  width: 100%;
  margin: auto 0 2px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 22px rgba(28,40,47,.19);
  font-family: 'DM Sans', sans-serif;
}

.bento-notice img {
  width: 33px;
  height: 33px;
  object-fit: contain;
  flex: none;
}

.bento-notice > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-notice strong {
  font-size: .77rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-notice small {
  font-size: .7rem;
  line-height: 1.2;
}

.bento-notice time {
  font-size: .67rem;
  color: #858e94;
  margin-left: auto;
  align-self: flex-start;
}

.bento-phone {
  position: absolute;
  width: min(72%, 250px);
  max-width: none;
  height: auto;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(24,34,41,.12));
}

.bento-player {
  position: absolute;
  width: 500px;
  max-width: none;
  height: auto;
  left: 50%;
  top: -123px;
  transform: translateX(-50%);
}

.bento-users,
.bento-no-code {
  flex-direction: row;
  justify-content: center;
  gap: 15px;
}

.bento-users::before,
.bento-no-code::before {
  content: '';
  width: 77px;
  height: 62px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.bento-users::before { background-image: url('/assets/users-graphic.svg'); }
.bento-no-code::before { background-image: url('/assets/no-code-graphic.svg'); }

.bento-calendar {
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  text-align: left;
}

.bento-calendar-example {
  width: min(58%, 420px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
  text-align: left;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 21px rgba(28,40,47,.18);
  font-family: 'DM Sans', sans-serif;
}

.bento-calendar-example strong {
  font-size: 1rem;
  font-weight: 600;
}

.bento-calendar-example > span {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .77rem;
  color: #505860;
}

.bento-calendar-example > span > span {
  font-size: 1.35rem;
  line-height: 1;
  color: #5f6570;
  width: 20px;
  flex: none;
}

.bento-link {
  display: inline-block;
  margin-top: 25px;
  font-weight: 800;
  color: var(--navy);
}

@media (max-width: 1079px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 170px 170px 190px 170px;
    grid-template-areas:
      "notification app"
      "users app"
      "sermons calendar"
      "sermons nocode";
  }

  .bento-calendar {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    text-align: center;
  }

  .bento-calendar-example { width: 100%; }
  .bento-player { width: 570px; top: -150px; }
  .bento-phone { width: min(72%, 245px); }
}

@media (max-width: 900px) {
  .product-card {
    min-height: 0;
    padding: 26px;
    justify-content: flex-start;
  }

  .product-card > div:nth-child(2) {
    margin-top: 28px;
  }

  .product-card p { max-width: none; }

  .card-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: 190px;
    margin-top: 22px;
    opacity: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .card-art img {
    width: 170px;
    height: auto;
    max-width: none;
    align-self: flex-start;
  }

  .event-mark {
    position: relative;
    inset: auto;
    width: 150px;
    height: 150px;
    margin: 24px auto 4px;
    opacity: 1;
    transform: rotate(7deg);
    flex: none;
  }
}

@media (max-width: 699px) {
  .bento-section { padding-block: 66px; }
  .bento-section .section-heading { margin: 0 0 26px; text-align: left; }
  .bento-section .section-heading p { margin-inline: 0; }
  .bento-section h2 { font-size: clamp(2.4rem, 10vw, 3.9rem); }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 160px 300px 145px 200px;
    grid-template-areas:
      "notification notification"
      "app sermons"
      "users nocode"
      "calendar calendar";
    gap: 12px;
  }

  .bento-card { border-radius: 18px; padding: 15px; }
  .bento-card h3 { font-size: clamp(1.1rem, 4.1vw, 1.5rem); }
  .bento-notice { width: min(100%, 400px); margin-bottom: 0; }
  .bento-app h3, .bento-sermons h3 { font-size: clamp(1.08rem, 4vw, 1.4rem); }
  .bento-phone { width: 84%; top: 66px; }
  .bento-player { width: 380px; top: -110px; }
  .bento-users, .bento-no-code { flex-direction: column; gap: 5px; }
  .bento-users::before, .bento-no-code::before { width: 58px; height: 48px; }
  .bento-users h3, .bento-no-code h3 { font-size: clamp(1rem, 3.8vw, 1.25rem); }
  .bento-calendar { flex-direction: column; justify-content: center; gap: 10px; }
  .bento-calendar-example { width: min(100%, 370px); padding: 10px 12px; gap: 7px; }
  .bento-calendar-example strong { font-size: .9rem; }
  .bento-calendar-example > span { font-size: .7rem; }
}

@media (max-width: 390px) {
  .bento-notice { padding: 8px; }
  .bento-notice img { width: 28px; height: 28px; }
  .bento-notice strong { font-size: .7rem; }
  .bento-notice small { font-size: .64rem; }
  .bento-notice time { font-size: .6rem; }
  .bento-player { width: 355px; top: -102px; }
}
