.guide-flow {
  margin: 2rem 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #a5b4fc26;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 50% 0, #6366f11a, transparent 75%), #ffffff03;
}

.guide-flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
}

.guide-device {
  display: grid;
  justify-items: center;
  gap: .75rem;
  min-width: 0;
  color: #e5e7eb;
  text-align: center;
  font-size: .95rem;
  line-height: 1.6;
}

.guide-device-icon {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 3.75rem;
  border: 2px solid #a5b4fc;
  border-radius: .55rem;
  background: linear-gradient(145deg, #818cf826, #818cf805);
}

.guide-device-icon::after {
  content: "";
  position: absolute;
  bottom: .3rem;
  left: 35%;
  width: 30%;
  height: 2px;
  border-radius: 2px;
  background: #a5b4fc;
}

.guide-device-icon--mac {
  width: 4.5rem;
  height: 3rem;
  border-radius: .4rem;
}

.guide-device-icon--mac::after {
  bottom: -.5rem;
  left: -12%;
  width: 124%;
  height: .2rem;
}

.guide-connection {
  display: grid;
  gap: .75rem;
  color: #a5b4fc;
  text-align: center;
  font-size: .8rem;
  line-height: 1.6;
}

.guide-connection-line {
  position: relative;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #818cf826, #a5b4fc, #818cf826);
}

.guide-connection-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: calc(50% - 6px);
  width: 12px;
  height: 6px;
  border-radius: 1rem;
  background: #c7d2fe;
  box-shadow: 0 0 14px #818cf880;
}

.guide-flow figcaption {
  margin-top: 1.5rem;
  color: #9ca3af;
  font-size: .8rem;
  line-height: 1.7;
}

.guide-motion-control {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  color: #c7d2fe;
  font-size: .85rem;
  line-height: 1.6;
  cursor: pointer;
}

.guide-motion-control input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #a5b4fc;
}

.guide-motion-control input:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 4px;
}

.guide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.5rem 0;
}

.guide-jump a {
  border: 1px solid #a5b4fc30;
  border-radius: 2rem;
  padding: .5rem .85rem;
  color: #c7d2fe;
  font-size: .9rem;
  line-height: 1.6;
  text-decoration: none;
}

.guide-jump a:hover {
  border-color: #a5b4fc80;
  background: #818cf810;
}

.guide-option {
  margin: 1.25rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #ffffff14;
  border-radius: 1rem;
  background: #ffffff02;
  scroll-margin-top: 2rem;
}

.guide-option h3 {
  margin: 0 0 .75rem;
  color: #f3f4f6;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.guide-option h2 {
  margin-top: 0;
}

.guide-option p,
.guide-option li {
  margin-top: .75rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.guide-option ol {
  padding-left: 1.4rem;
  list-style: decimal;
}

.guide-note {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid #818cf8;
  color: #cbd5e1;
  line-height: 1.8;
}

@media (prefers-reduced-motion: no-preference) {
  .guide-connection-line::after {
    animation: guide-arrive 3s ease-in-out infinite;
  }

  .guide-flow:has(.guide-motion-control input:checked) .guide-connection-line::after {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-motion-control { display: none; }
}

@keyframes guide-arrive {
  0% { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; }
}

@media (max-width: 420px) {
  .guide-flow-track { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guide-connection { width: min(100%, 12rem); justify-self: center; }
}
