/* ╔══════════════════════════════════════════╗
   ║  ACCESSIBILITY WIDGET — INKcoming        ║
   ║  Floating button + side panel            ║
   ╚══════════════════════════════════════════╝ */

.a11y-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1d6fd6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(29, 111, 214, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.a11y-fab:hover { transform: scale(1.08); background: #2a82ec; }
.a11y-fab:focus-visible { outline: 3px solid #ffff00; outline-offset: 4px; }
.a11y-fab svg { width: 28px; height: 28px; }

.a11y-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 200;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 22px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.a11y-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.a11y-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.a11y-panel__title {
  font-family: "Heebo", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.a11y-panel__close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.a11y-panel__close:hover { color: var(--text); background: var(--surface-2); }

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-family: "Heebo", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}
.a11y-btn:hover { border-color: var(--purple); background: var(--purple-soft); }
.a11y-btn.active {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple-2);
}
.a11y-btn svg { width: 22px; height: 22px; }

.a11y-reset {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: "Heebo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.a11y-reset:hover { border-color: var(--purple); color: var(--text); }

.a11y-statement {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
}
.a11y-statement:hover { color: var(--purple-2); text-decoration: underline; }

/* ── Modifier classes applied to <html> ── */
html.a11y-font-lg     { font-size: 112%; }
html.a11y-font-xl     { font-size: 125%; }
html.a11y-spacing     { letter-spacing: 0.04em; }
html.a11y-spacing *   { line-height: 1.8 !important; word-spacing: 0.08em; }
html.a11y-contrast,
html.a11y-contrast body {
  background: #000 !important;
  color: #ffffff !important;
}
html.a11y-contrast * {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffff00 !important;
  text-shadow: none !important;
}
html.a11y-contrast a,
html.a11y-contrast a * { color: #ffff00 !important; }
html.a11y-contrast button,
html.a11y-contrast .btn,
html.a11y-contrast .btn * {
  background: #000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}
html.a11y-contrast img,
html.a11y-contrast video { filter: grayscale(1) contrast(1.2); }

html.a11y-links a,
html.a11y-links button { text-decoration: underline !important; }

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
html.a11y-no-motion video { animation: none !important; }
html.a11y-no-motion .marquee-track { animation: none !important; transform: none !important; }
html.a11y-no-motion .reviews-track { animation: none !important; }

html.a11y-grayscale,
html.a11y-grayscale body { filter: grayscale(1); }

html.a11y-cursor *, html.a11y-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23000' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M3 2l7 18 2-7 7-2z'/%3E%3C/svg%3E") 0 0, auto !important;
}

@media (max-width: 640px) {
  /* Keep a11y FAB on the same baseline as the floating WhatsApp CTA on the left */
  .a11y-fab  { bottom: 24px; right: 16px; width: 52px; height: 52px; }
  .a11y-fab svg { width: 26px; height: 26px; }
  .a11y-panel { bottom: 86px; right: 16px; }
}
