/* Accessibility helpers (WCAG 2.1 AA). Nothing here changes how the site looks for
   sighted mouse / touch visitors. */

/* Text for screen readers only. */
.rts-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* "Skip to content": hidden until a keyboard user presses Tab (WCAG 2.4.1). */
.rts-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.rts-skip-link:focus {
  transform: none;
  outline: 3px solid #ed1aa8;
  outline-offset: 3px;
}

/* The skip link targets <main>; don't draw a ring around the whole page area. */
main:focus {
  outline: none;
}

/* Windows High Contrast / forced colours: keep controls visibly outlined. */
@media (forced-colors: active) {
  .button,
  .rts-skip-link,
  .menu-toggle {
    border: 2px solid ButtonText;
  }
}

/* "Increase contrast" (macOS / iOS / some browsers): faint and see-through text becomes
   solid, borders get stronger. Only applies to visitors who ask for it. */
@media (prefers-contrast: more) {
  /* main site */
  .nav-links a,
  .eyebrow,
  .hero-note,
  .scroll-indicator,
  .section .tagline,
  .card small,
  .price-note,
  .email-fallback {
    opacity: 1 !important;
  }
  .monthly-inline,
  .pricing-disclaimer,
  .section-intro,
  .build-card p,
  .process-step p,
  .faq p,
  .maintenance-wrap > p,
  body > footer {
    color: #fff !important;
  }
  .build-card,
  .process-step,
  .price-card,
  .include-item,
  .faq details,
  .maintenance-wrap,
  .maintenance-item,
  .panel {
    border-color: rgba(255, 255, 255, 0.55) !important;
  }

  /* card page */
  .panel p,
  .contact-link span:first-child {
    color: #fff !important;
  }
}
