/* Shared base for the three ClickChat direction prototypes. */
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(en) { font-family: Inter, "IBM Plex Sans Arabic", system-ui, sans-serif; }
h1, h2, h3, .font-display { font-family: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif; }

/* Isolate Latin runs (prices, numbers, brand names) inside Arabic text. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Accessibility floor shared by all directions. */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: #0B1B3A; color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus, #087F62); outline-offset: 2px; border-radius: 8px; }
[id] { scroll-margin-top: 96px; }

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

/* Prototype-only direction switcher (not part of any design). */
.proto-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(13,16,19,.88); color: #F5F8FB; font: 500 12px/1 Inter, "IBM Plex Sans Arabic", sans-serif;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.4); direction: ltr;
}
.proto-switch a { padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; }
.proto-switch a[aria-current="page"] { background: #12C99B; color: #0B1B3A; font-weight: 600; }
.proto-switch a:hover:not([aria-current="page"]) { background: rgba(255,255,255,.1); }
/* On phones the switcher would cover page content; use the Overview page to switch instead. */
@media (max-width: 639px) { .proto-switch { display: none; } }
