/* Homepage only. The photographic hardware stays still; its two screens rotate together. */
.client-journey-home .hero {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.18fr);
  gap: 26px clamp(24px, 3vw, 52px);
  padding-block: clamp(48px, 5vw, 80px);
}
.client-journey-home .hero h1 { font-size: clamp(42px, 4.1vw, 64px); }
.client-journey-home .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.client-journey-home .hero > .kz-review-hero { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
.client-journey-home .hero-description { font-size: 16px; }
.hero-device-showcase { margin: 0; min-width: 0; align-self: center; grid-column: 2; grid-row: 1 / span 2; }
.hero-device-art { position: relative; width: 112%; margin-left: -5%; aspect-ratio: 3 / 2; isolation: isolate; }
.hero-device-hardware { display: block; width: 100%; height: auto; position: relative; z-index: 0; pointer-events: none; }
.hero-device-screen { position: absolute; overflow: hidden; background: #faf8f0; pointer-events: none; }
.hero-device-screen--desktop {
  left: 9.8958%; top: 10.0586%; width: 77.1484%; height: 64.8438%; z-index: 1;
}
.hero-device-phone-frame {
  position: absolute; inset: 0; width: 100%; height: auto; z-index: 2; pointer-events: none;
  /* Repaint the rounded phone above the complete laptop screen, without a square cutout. */
  clip-path: inset(40.8% 2.9% 4.6% 80.6% round 2.6% / 3.9%);
}
.hero-device-screen--phone {
  left: 81.38%; top: 42.09%; width: 14.84%; height: 51.66%; z-index: 3;
  border-radius: 13% / 5.6%;
}
.hero-device-screen--phone::after {
  content: ''; position: absolute; z-index: 3; top: 1.2%; left: 47%; width: 5.5%; aspect-ratio: 1;
  border-radius: 50%; background: #080b0b; box-shadow: inset 0 0 0 1px #252929;
}
.hero-device-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s; }
.hero-device-slide.is-active { opacity: 1; visibility: visible; }
.hero-device-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; }
.hero-device-screen--phone .hero-device-slide img { object-fit: cover; object-position: top; }
.hero-device-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; color: #44564d; font-size: 14px; }
.hero-device-caption strong { display: block; color: #243a36; font-weight: 650; }
.hero-device-caption a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; padding-block: 10px; }
.hero-device-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-device-controls[hidden], .hero-device-pause[hidden] { display: none; }
.hero-device-controls button, .hero-device-pause {
  background: transparent; border: 1px solid #c4ccc4; border-radius: 3px;
  color: #243a36; font: inherit; font-size: 14px; min-height: 44px; padding: 8px 10px;
}
.hero-device-controls button[aria-pressed="true"] { background: #243a36; border-color: #243a36; color: white; }
.hero-device-controls button:hover, .hero-device-pause:hover { border-color: #243a36; }
.hero-device-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.hero-device-pause { margin-left: auto; white-space: nowrap; }
@media (min-width: 1600px) {
  .client-journey-home .hero.shell { width: min(1680px, calc(100% - 160px)); }
  .client-journey-home .hero h1 { font-size: clamp(64px, 4vw, 78px); }
}
@media (max-width: 1050px) {
  .client-journey-home .hero { gap: 24px; }
  .client-journey-home .hero h1 { font-size: clamp(40px, 4.5vw, 48px); }
  .hero-device-art { width: 108%; margin-left: -4%; }
}
@media (max-width: 900px) {
  .client-journey-home .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .client-journey-home .hero-copy { max-width: 680px; grid-column: 1; grid-row: 1; }
  .client-journey-home .hero > .kz-review-hero { grid-column: 1; grid-row: 3; }
  .client-journey-home .hero h1 { font-size: clamp(40px, 7.4vw, 60px); }
  .hero-device-showcase { width: min(100%, 600px); justify-self: center; grid-column: 1; grid-row: 2; }
  .hero-device-art { width: 104%; margin-left: -2%; }
}
@media (max-width: 700px) {
  .client-journey-home .hero { padding-block: 34px; }
  .hero-device-caption { margin-block: 4px 12px; }
  .hero-device-toolbar { gap: 10px; }
  .hero-device-pause { margin-left: 0; }
  .hero-device-controls { gap: 5px; }
  .hero-device-controls button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-device-slide { transition: none; }
}
