/* Use Cases page */

/* Hero: laptop render, cropped to its visible area (the PNG has transparent padding top and bottom) */
.uc-hero__text p { margin-bottom: 1em; }
.uc-hero__text p:last-child { margin-bottom: 0; }
.uc-hero__media { display: grid; place-items: center; }
.uc-hero__media img { width: min(600px, 100%); aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 63%; }

/* Use-case rows */
.usecase__body { max-width: 600px; }
.usecase__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 14px; background: var(--green-100); color: var(--green);
}
.usecase__icon .icon { width: 26px; height: 26px; }
.usecase h2 { margin-bottom: 20px; text-wrap: balance; }
.usecase__summary {
  margin-bottom: 1.25em; padding-left: 16px; border-left: 3px solid var(--green);
  font-style: italic; font-size: 1.0625rem; line-height: 1.45; color: var(--ink);
}
.usecase__body .btn-row { margin-top: 32px; }

/* Product screenshots sit in a light app-window frame */
.usecase__shot {
  position: relative; margin: 0; padding-top: 30px; overflow: hidden;
  background: #f6f7f6; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.usecase__shot::before {
  content: ""; position: absolute; top: 11px; left: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: #d5dbd8; box-shadow: 14px 0 0 #d5dbd8, 28px 0 0 #d5dbd8;
}
.split__media.usecase__shot img { width: 100%; border-top: 1px solid var(--line); background: #fff; }

/* Illustrations: crop the transparent padding of the tall PNGs to a square */
.usecase__art { display: grid; place-items: center; }
.split__media.usecase__art img { width: min(440px, 100%); aspect-ratio: 1; object-fit: cover; }
.usecase__art--leadership img { object-position: 50% 35%; }
.usecase__art--collab img { object-position: 50% 41%; }

/* Closing call to action: centred variant of the shared green band */
.uc-cta { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.uc-cta p { max-width: 760px; margin-inline: auto; }
.uc-cta .btn { max-width: 100%; }

@media (max-width: 900px) {
  .uc-hero .hero__media { max-width: none; }
  .uc-hero__media img { width: min(480px, 100%); }
  .usecase__body { max-width: none; }
  .usecase .split__media.usecase__shot { max-width: none; }
  .split__media.usecase__art { max-width: none; }
  .split__media.usecase__art img { width: min(320px, 82%); }
}
@media (max-width: 480px) {
  .usecase__shot { padding-top: 22px; border-radius: 12px; }
  .usecase__shot::before { top: 8px; left: 10px; width: 6px; height: 6px; box-shadow: 10px 0 0 #d5dbd8, 20px 0 0 #d5dbd8; }
  .usecase__body .btn-row .btn { width: 100%; }
  .uc-cta .btn { padding-inline: 20px; }
}
