/* A4-5: the approved design (2 + 1) for every new-design page: colours, Urdu headings, the Lite
   switch in the language control, status badges, and the phone header. Pages add their own CSS. */
:root { --a4-bg: #F5F7FC; --a4-ink: #101C38; --a4-muted: #5B6B86; --a4-line: rgba(16, 28, 56, .12); --a4-accent: #00B8D9; --a4-cyan: #00D9FF; --a4-violet: #8055FF; --a4-emerald: #14E6A2; --a4-amber: #FFB547; }
body { background: var(--a4-bg); color: var(--a4-ink); }
html[dir=rtl] h1, html[dir=rtl] h2, html[dir=rtl] h3 { font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif; letter-spacing: 0 !important; line-height: 1.9; }

/* Header: the Lite switch beside the languages. */
.languages .lite-btn { border-inline-start: 1px solid var(--a4-line) !important; border-radius: 0 24px 24px 0; margin-inline-start: 4px; font-size: 12px; font-weight: 600; }
html[dir=rtl] .languages .lite-btn { border-radius: 24px 0 0 24px; }
header { position: relative; z-index: 5; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.badge.for-sale { color: #0B7A57; } .badge.licence { color: #8A5A12; } /* A4-7: darker, 4.5:1 or more on white */
.solution-card .badge { color: #6A4A8C; }

/* Phones: the menu sat on top of the hero (also on the live site, found in A4-3). The header grows
   to fit, and the menu becomes one row that scrolls sideways. */
@media (max-width: 800px) {
  header { height: auto; flex-wrap: wrap; row-gap: 10px; padding: 16px 5% 8px; }
  header nav { order: 3; width: 100%; display: flex; justify-content: flex-start; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 6px 2px 8px; scrollbar-width: none; }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { flex: none; }
}

/* A4-7: an Urdu visitor's page stays hidden until its Urdu text is in (lang-early.js, at most 1.5 s),
   and sections drawn by a script keep a screen's height until they are, so nothing jumps (CLS). */
html.ud-pending body { visibility: hidden; }
#solutions:empty, #assessment:empty { min-height: 100vh; }

/* A4-8: the quiet cinematic layer behind the page (ambient3d.js); never over the content. */
.ambient-layer { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
