:root {
  color-scheme: light;
  --acvis-blue: #2563eb;
  --acvis-navy: #0f172a;
  --acvis-focus: #0ea5e9;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--acvis-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: 0.75rem;
  background: var(--acvis-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.demo-stage {
  animation: demo-stage-in 180ms ease-out;
}

.demo-option {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.demo-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #60a5fa;
  background: #eff6ff;
}

.demo-option[aria-checked="true"] {
  border-color: var(--acvis-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.demo-option:disabled {
  cursor: default;
  opacity: 1;
}

.demo-score-track {
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.demo-score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width 240ms ease;
}

@keyframes demo-stage-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .demo-stage,
  .demo-score-fill,
  .demo-option {
    animation: none;
    transition: none;
  }
}

@media (max-width: 639px) {
  .demo-option {
    padding: 0.875rem;
  }
}
