/* ===================================================================
   Accessibility widget + Dark theme
   Loaded after site.css. Toggled via js/accessibility.js which sets
   data-theme / data-a11y-* attributes on <html>.
=================================================================== */
html{color-scheme:light}
body{transition:background .25s ease,color .25s ease}

/* ---------- Dark theme ---------- */
[data-theme="dark"]{color-scheme:dark;--ink:#e7ecf7;--mute:#9fb0cf;--bg:#0c1428;--line:#22304e}
[data-theme="dark"] body{background:#080d1a;color:var(--ink)}
[data-theme="dark"] ::selection{background:#0b53a8;color:#fff}
[data-theme="dark"] header{background:rgba(8,13,26,.85);border-bottom-color:var(--line)}
[data-theme="dark"] .hero{background:#080d1a}
[data-theme="dark"] .hero:after{background:linear-gradient(rgba(8,13,26,0),#080d1a)}
[data-theme="dark"] .mq,[data-theme="dark"] .eco,[data-theme="dark"] #testimonials,[data-theme="dark"] .pg{background:var(--bg)}
[data-theme="dark"] .btn.o{background:#101a30;color:#dbe6ff;border-color:#26355c}
[data-theme="dark"] .pill,[data-theme="dark"] .mq img.sf,[data-theme="dark"] .sfbadge,[data-theme="dark"] .sfb,
[data-theme="dark"] .sfb:after,[data-theme="dark"] .card,[data-theme="dark"] .nd b,[data-theme="dark"] .val div,
[data-theme="dark"] .logos div,[data-theme="dark"] form,[data-theme="dark"] .tm div,[data-theme="dark"] .tmc,
[data-theme="dark"] .cst,[data-theme="dark"] .jb,[data-theme="dark"] .wtbl,[data-theme="dark"] .clc,
[data-theme="dark"] .xph,[data-theme="dark"] .xpc{background:#101a30;border-color:var(--line)}
@media(max-width:860px){[data-theme="dark"] nav{background:#101a30;border-color:var(--line)}}
[data-theme="dark"] .xpico{background:rgba(255,255,255,.08);color:#7ab8fb}
[data-theme="dark"] .xpnum{color:#3c4d76}
[data-theme="dark"] .xpch{border-color:var(--line)}
[data-theme="dark"] .card.bl{background:linear-gradient(135deg,#04225e,#0b53a8);border:0}
[data-theme="dark"] .wrow.wh{background:#0d1730}
[data-theme="dark"] .wrow .us{background:linear-gradient(90deg,#0f2447,#0d1730)}
[data-theme="dark"] .wrow:not(.wh):hover{background:#0d1730}
[data-theme="dark"] form input,[data-theme="dark"] form textarea{background:#0a1122;border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .chips span{background:rgba(255,255,255,.08);color:#cfe0ff}
[data-theme="dark"] .dots i{background:#26355c}
[data-theme="dark"] .orb:before,[data-theme="dark"] .orb:after{border-color:#26355c}
[data-theme="dark"] #ld{background:linear-gradient(135deg,#020d2b,#04225e 60%,#0b53a8)}

/* ---------- Floating accessibility button ---------- */
#a11y-btn{position:fixed;left:20px;bottom:20px;z-index:9999;width:54px;height:54px;border-radius:50%;
  background:linear-gradient(135deg,#007cf4,#36c5f0);color:#fff;border:0;display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,124,244,.4);cursor:pointer;transition:transform .2s}
#a11y-btn:hover{transform:scale(1.08)}
#a11y-btn svg{width:26px;height:26px}

/* ---------- Panel ---------- */
#a11y-overlay{position:fixed;inset:0;background:rgba(3,10,25,.4);z-index:9998;opacity:0;pointer-events:none;transition:opacity .3s}
#a11y-overlay.open{opacity:1;pointer-events:auto}
#a11y-panel{position:fixed;top:0;left:0;bottom:0;width:340px;max-width:88vw;background:#fff;z-index:10000;
  box-shadow:0 0 40px rgba(0,0,0,.25);transform:translateX(-100%);transition:transform .3s ease;
  display:flex;flex-direction:column;overflow-y:auto;font:14px/1.5 Inter,system-ui,sans-serif;color:#1d1d1f}
#a11y-panel.open{transform:translateX(0)}
#a11y-panel .a11y-hd{background:linear-gradient(135deg,#007cf4,#0047ab);color:#fff;padding:22px 50px 18px 22px;position:relative}
#a11y-panel .a11y-hd h2{font:800 20px "Inter Tight",Inter,sans-serif;margin:0}
#a11y-panel .a11y-hd small{opacity:.85;font-size:12px;display:block;margin-top:2px}
#a11y-panel .a11y-close{position:absolute;top:16px;right:16px;width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.18);border:0;color:#fff;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
#a11y-panel .a11y-close:hover{background:rgba(255,255,255,.3)}
#a11y-panel .a11y-body{padding:18px 22px 32px}
#a11y-reset{width:100%;padding:12px;border-radius:12px;border:1.5px solid #007cf4;background:#fff;color:#007cf4;
  font:600 13.5px inherit;cursor:pointer;margin-bottom:22px}
#a11y-reset:hover{background:#eaf3ff}
.a11y-sec{margin-bottom:20px}
.a11y-sec>p{font:700 11px inherit;letter-spacing:.1em;color:#8a8f9c;margin:0 0 12px;text-transform:uppercase}
.a11y-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef1f6;gap:12px}
.a11y-row:last-child{border-bottom:0}
.a11y-row span.lbl{font-weight:500}
.a11y-seg{display:flex;gap:6px}
.a11y-seg button{width:34px;height:30px;border-radius:8px;border:1px solid #d5dced;background:#fff;
  font-weight:700;cursor:pointer;font-size:12.5px;color:#1d1d1f}
.a11y-seg button.on{background:#007cf4;border-color:#007cf4;color:#fff}
.a11y-sw{position:relative;width:42px;height:24px;border-radius:99px;background:#d5dced;border:0;cursor:pointer;flex-shrink:0}
.a11y-sw:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
  background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.a11y-sw.on{background:#007cf4}
.a11y-sw.on:after{transform:translateX(18px)}

[data-theme="dark"] #a11y-panel{background:#0f1830;color:#e7ecf7}
[data-theme="dark"] #a11y-panel .a11y-row{border-bottom-color:#22304e}
[data-theme="dark"] .a11y-sec>p{color:#7c88a3}
[data-theme="dark"] .a11y-seg button{background:#0a1122;border-color:#26355c;color:#e7ecf7}
[data-theme="dark"] .a11y-sw{background:#26355c}
[data-theme="dark"] #a11y-reset{background:#0a1122;color:#7ab8fb;border-color:#26355c}
[data-theme="dark"] #a11y-reset:hover{background:#101a30}

/* ---------- Dark/light toggle in header ---------- */
#theme-btn{position:relative;width:68px;height:34px;border-radius:99px;background:#dcebff;border:1px solid #bcd6fb;padding:0;
  cursor:pointer;margin-left:8px;flex-shrink:0;transition:background .25s,border-color .25s}
#theme-btn .tt{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(3,58,157,.25);transition:transform .25s}
#theme-btn svg{position:absolute;top:50%;width:16px;height:16px;margin-top:-8px;transition:color .25s}
#theme-btn .ts{left:9px;color:#033a9d}
#theme-btn .tm{right:9px;color:#7f9ccc}
[data-theme="dark"] #theme-btn{background:#0b3d91;border-color:#1f5fc4}
[data-theme="dark"] #theme-btn .tt{transform:translateX(34px)}
[data-theme="dark"] #theme-btn .ts{color:#8fb4ee}
[data-theme="dark"] #theme-btn .tm{color:#033a9d}
/* dark mode: white nav text */
[data-theme="dark"] nav,[data-theme="dark"] nav a{color:#fff}
[data-theme="dark"] nav a:hover{color:var(--c)}
[data-theme="dark"] #mb{color:#fff}
@media(max-width:860px){#theme-btn{margin-left:auto}}

/* ---------- Feature toggles ---------- */
html[data-a11y-ls] body{letter-spacing:.035em}
html[data-a11y-lh="1.6"] p,html[data-a11y-lh="1.6"] li,html[data-a11y-lh="1.6"] blockquote,html[data-a11y-lh="1.6"] .lead{line-height:1.6!important}
html[data-a11y-lh="2"] p,html[data-a11y-lh="2"] li,html[data-a11y-lh="2"] blockquote,html[data-a11y-lh="2"] .lead{line-height:2!important}
html[data-a11y-pause] *{animation-play-state:paused!important}
html[data-a11y-highlight] a{text-decoration:underline!important;outline:2px solid #ffb200!important;
  outline-offset:2px;background:rgba(255,178,0,.15)!important}
html[data-a11y-hideimg] img{visibility:hidden!important}
html[data-a11y-dyslexia] body,html[data-a11y-dyslexia] body *{
  font-family:"Comic Sans MS","Comic Sans",Verdana,Tahoma,sans-serif!important;letter-spacing:.02em!important}

[data-theme="dark"] header .logo img.labs{filter:brightness(0) invert(1)}

/* ---------- Dark theme: text-visibility fixes ---------- */
[data-theme="dark"] .hero p,[data-theme="dark"] .hero .hc p{color:#b4c2dc}
[data-theme="dark"] .tag,[data-theme="dark"] .cll,[data-theme="dark"] .tmt span,[data-theme="dark"] .wrow.wh .us,[data-theme="dark"] .wrow .us{color:#6db3ff}
[data-theme="dark"] .bl .tag{color:#9fdcf7}
[data-theme="dark"] .accbody .tag{color:#bfe0ff}
[data-theme="dark"] .st h3,[data-theme="dark"] .val h3,[data-theme="dark"] .card h3{color:#a9d0ff}
[data-theme="dark"] .card.bl h3{color:#fff}
[data-theme="dark"] .ct .lead,[data-theme="dark"] .ct p{color:#fff}
[data-theme="dark"] .accnum{opacity:.85}
[data-theme="dark"] .cs button,[data-theme="dark"] .cn{color:#033a9d}
[data-theme="dark"] .ct{background:linear-gradient(135deg,#022a78,#0460c9)}

/* larger touch targets for widget buttons */
@media(pointer:coarse){.a11y-close,#a11y-panel button{min-width:40px;min-height:40px}}
