/* Shared interaction and motion safeguards. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .15s ease;
}

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

.rsa-voice-widget {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 9998;
}

.rsa-mobile-demo-link { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #67e8f9 !important;
  outline-offset: 3px !important;
}

.table-wrap[tabindex="0"]:focus-visible,
.tbl[tabindex="0"]:focus-visible,
.a-table-wrap[tabindex="0"]:focus-visible {
  border-color: #67e8f9;
}

@media (max-width: 768px) {
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between !important;
  }
  .nav-links.site-navigation {
    position: static;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    padding-top: .5rem;
  }
  .nav-links.site-navigation a {
    display: flex;
    min-height: 44px;
    align-items: center;
    margin-left: 0;
    padding: .65rem .8rem;
  }
  .nav-inner.navigation-enhanced { flex-wrap: nowrap; }
  .nav-inner.navigation-enhanced .nav-toggle { display: inline-flex; }
  .nav-inner.navigation-enhanced .nav-links.site-navigation {
    position: absolute;
    top: calc(100% + .65rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .25rem;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: #0f0d1a;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  }
  .nav-inner.navigation-enhanced .nav-links.site-navigation.is-open {
    display: flex;
  }
  /* The third-party widget opens as a large fixed card that obscures the
     mobile hero and form. Keep the full widget on wider screens and provide a
     stable, non-overlaying path to the live-demo section on small screens. */
  .rsa-voice-widget { display: none; }
  .rsa-mobile-demo-link {
    display: flex;
    width: max-content;
    max-width: calc(100% - 2rem);
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
