.homepage-cta:focus-visible,
#about a:focus-visible {
  outline: 3px solid #4f46e5;
  outline-offset: 4px;
}

.workflow-mobile { display: none; }
.workflow-desktop { width: 100%; }

/* Wrap the tool comparison in two real columns, including on narrow phones. */
#problem + section .divide-y > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 767px) {
  .workflow-desktop { display: none; }
  .workflow-mobile { display: block; }
  .workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .875rem;
    border: 1px solid #cbd5e1;
    border-radius: .375rem;
    background: #f8fafc;
    font-size: .875rem;
  }
  .workflow-step span { color: #64748b; font-size: .75rem; }
  .workflow-active { border: 2px solid #4f46e5; background: #eef2ff; }
  .workflow-arrow { text-align: center; color: #4f46e5; line-height: 1; padding: .625rem; font-size: 1.375rem; }
  .workflow-caption { margin: 0 0 .75rem; text-align: center; font-size: .75rem; color: #64748b; }
  .workflow-tracks { display: grid; gap: .625rem; }
  .workflow-track { border: 1px solid #cbd5e1; border-radius: .375rem; padding: .875rem; font-size: .8125rem; }
  .workflow-track p { margin: .375rem 0 0; color: #475569; line-height: 1.5; }
  .workflow-revision { margin-top: .625rem; border-left: 3px solid #d97706; padding: .375rem .625rem; background: #fffbeb; color: #92400e; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .animate-pulse { animation: none; }
}
