.ap-workflow--illustrated .ap-section-head {
  margin-bottom: clamp(22px, 2.2vw, 32px);
}

.ap-workflow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ap-workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b7d7ee;
  border-radius: 18px;
  background: linear-gradient(128deg, #fff, #f3faff);
  box-shadow: 0 6px 16px #0a34570c;
}

.ap-workflow-card-copy {
  align-self: center;
  padding: 20px clamp(16px, 1.65vw, 26px);
}

.ap-workflow-card h3 {
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: initial;
}

.ap-workflow-card p {
  margin-top: 9px;
  color: #4c6380;
  font-size: 15px;
  line-height: 1.45;
}

/* Each square exposes just one of the two columns and three rows of the artwork. */
.ap-workflow-card-art {
  display: grid;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #53c8f7;
  border-radius: 32px 0 0 12px;
  background: #03162f;
  box-shadow: -4px 0 12px #0676bf12;
}

.ap-workflow-card-art::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-image: url("/bgb-design-20261110/services/app-development/app-premium-20261130/assets/workflow-app-scenes.webp");
  background-position: var(--scene-position);
  background-size: 200% 300%;
  background-repeat: no-repeat;
}

.ap-workflow-card-art--journeys { --scene-position: 0 0; }
.ap-workflow-card-art--accounts { --scene-position: 100% 0; }
.ap-workflow-card-art--bookings { --scene-position: 0 50%; }
.ap-workflow-card-art--dashboard { --scene-position: 100% 50%; }
.ap-workflow-card-art--integrations { --scene-position: 0 100%; }
.ap-workflow-card-art--handover { --scene-position: 100% 100%; }

@media (max-width: 1179px) {
  .ap-workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .ap-workflow-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ap-workflow-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(38%, 180px));
  }

  .ap-workflow-card-copy {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .ap-workflow--illustrated .ap-section-head h2 {
    font-size: 28px;
  }

  .ap-workflow-card p {
    font-size: 14px;
  }

  .ap-workflow-card-art {
    border-top-left-radius: 24px;
  }
}
