/* The laptop, component markers and service controls form one shared surface. */
.hero-grid {
  grid-template-columns: 45% 55%;
  min-height: 740px;
  padding-block: 38px 40px;
}

.hero-workbench {
  position: relative;
  min-width: 0;
  background: var(--white);
}

.workbench-stage {
  position: relative;
  aspect-ratio: 3 / 2;
}

.workbench-visual {
  position: absolute;
  inset: 0;
}

.hero-device {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.device-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.device-marker {
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-workbench[data-hero-preview="repair"] [data-marker="repair"],
.hero-workbench[data-hero-preview="cleaning"] [data-marker="cleaning"],
.hero-workbench[data-hero-preview="upgrade"] [data-marker="upgrade"] {
  opacity: 1;
}

.device-marker-line {
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-marker-ring {
  fill: #ffffff24;
  stroke: var(--orange);
  stroke-width: 4;
}

.device-marker-dot {
  fill: var(--orange);
  stroke: var(--white);
  stroke-width: 4;
}

.workbench-caption {
  margin: 2px 0 20px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.hero-service-controls {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.hero-workbench[data-hero-enhanced="true"] .hero-service-controls {
  display: grid;
}

.hero-service-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 8px;
  min-width: 0;
  min-height: 108px;
  padding: 15px 17px 16px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-service-button + .hero-service-button {
  border-left: 1px solid var(--ink);
}

.hero-service-button > .icon {
  grid-column: 1 / -1;
  width: 21px;
  height: 21px;
}

.hero-service-state {
  align-self: center;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hero-service-button[aria-pressed="true"] {
  background: var(--orange);
}

.hero-service-button[aria-pressed="true"] .hero-service-state {
  background: var(--ink);
}

.hero-service-button:hover {
  background: #fff1e5;
}

.hero-service-button[aria-pressed="true"]:hover {
  background: var(--orange);
}

.hero-service-button:focus-visible {
  z-index: 1;
  outline-offset: 4px;
}

.hero-service-detail {
  min-height: 128px;
  padding: 18px 0 15px;
  border-bottom: 1px solid var(--line);
}

#hero-service-description {
  max-width: 540px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

#hero-service-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 28px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 600;
}

#hero-service-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

#hero-service-link:hover .icon {
  transform: translateX(4px);
}

@media (max-width: 1199px) and (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 46% 54%;
    min-height: 690px;
  }

  .hero-service-button {
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero-service-detail {
    min-height: 143px;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
    padding-block: 40px 32px;
  }

  .hero-workbench {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }

  .workbench-caption {
    margin: 6px 0 18px;
  }

  .hero-service-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-service-button {
    grid-template-columns: 23px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 18px;
    font-size: 16px;
  }

  .hero-service-button > .icon {
    grid-column: auto;
    width: 21px;
    height: 21px;
  }

  .hero-service-button + .hero-service-button {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .hero-service-detail {
    min-height: 145px;
    padding-block: 17px 18px;
  }

  #hero-service-link {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-marker,
  #hero-service-link .icon {
    transition: none;
  }
}
