/* Shared UI layer (UX pass, October 2026). Loaded last on every page, after site.css and the page stylesheet, so the
 * whole site shares one set of interface tokens and components: the header, buttons, focus, form fields, the cookie
 * bar and motion. Calm and minimal: generous space, one filled action per screen, everything else quiet.
 * Brand tokens only (var(--q-*)); the --ui-* names below are derived from them, so both themes follow automatically
 * (site.css remaps the --q-* tokens for html:not([data-theme="light"])). */

:root {
  /* Pivot words and small champagne-family type: champagne ink, 6.7:1 on white and 6.1:1 on the grey tile.
   * In the dark theme --q-hue-deep is remapped to bright champagne (10.9:1 on charcoal). */
  --ui-accent-text: var(--q-accent-ink, var(--q-hue-deep));
  --ui-surface: var(--q-ground, var(--q-white));
  --ui-surface-soft: var(--q-tile);
  --ui-line: var(--q-hairline);
  --ui-ink: var(--q-ink, var(--q-black));
  --ui-ink-soft: var(--q-ink-mid);
  --ui-radius-field: 14px;
  --ui-radius-card: 24px;
  /* Focus ring: champagne ink on light grounds (6.7:1, clears the 3:1 non-text minimum; light champagne would be
   * 1.7:1), bright champagne in the dark theme. */
  --ui-ring: 0 0 0 3px var(--q-hue-deep);
  --ui-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ui-fast: 160ms;
  --ui-slow: 420ms;
}

/* Metric-matched fallback for Inter Tight. Until the web font arrives text renders in Arial / Helvetica, which is
 * wider, so a headline could wrap to more lines and then snap back (a layout shift measured at 0.27 on /pricing).
 * Scaled to Inter Tight's advance widths (measured: 95.5% at 400, 93% at 600, 95.4% at 700) and its vertical metrics
 * (ascent 0.969, descent 0.242), the fallback wraps the same way. The token stacks gain the fallback after
 * Inter Tight and are otherwise the kit's. */
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  font-weight: 100 500;
  size-adjust: 95.5%;
  ascent-override: 101.4%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial Bold"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arial"), local("Helvetica");
  font-weight: 501 650;
  size-adjust: 93%;
  ascent-override: 104.2%;
  descent-override: 26%;
  line-gap-override: 0%;
}
/* Bold display headings (700, the home hero): Inter Tight Bold measured 2.6% wider than the 600 match. */
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial Bold"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arial"), local("Helvetica");
  font-weight: 651 900;
  size-adjust: 95.4%;
  ascent-override: 101.5%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
/* The pivot word (Instrument Serif italic) gets the same treatment against Times New Roman italic, which ships on
 * Windows and macOS (Liberation Serif on Linux has the same metrics): measured 88.5%. */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic");
  font-style: italic;
  font-weight: 400;
  size-adjust: 88.5%;
}
:root {
  --q-font-pivot: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  --q-font-display: 'Inter Tight', 'Inter Tight Fallback', Helvetica, Arial, sans-serif;
  --q-font-body: 'Inter Tight', 'Inter Tight Fallback', Helvetica, Arial, sans-serif;
}

html:not([data-theme="light"]) body {
  --ui-accent-text: var(--q-hue-deep);
  --ui-surface: var(--q-ground);
  --ui-surface-soft: var(--q-tile);
  --ui-line: var(--q-hairline);
  --ui-ink: var(--q-ink);
  --ui-ink-soft: var(--q-ink-mid);
}

/* ------------------------------------------------------------------ type: contrast-safe accents */

.pivot,
h1 .pivot, h2 .pivot,
.site-home .pivot { color: var(--ui-accent-text); }
/* On black panels the pivot is the champagne serif italic (home.css), the product-sheet second line. */
.site-home :is(.h-agents, .h-contact-card, .h-hero.is-dark) .pivot { color: var(--qm-l-accent-deep); }
body .v3-media .v3-step,
body .v3-media .v3-cap-title em { color: var(--ui-accent-text); }
body .v3-media .v3-cap-note { color: var(--ui-ink-soft); }

/* ------------------------------------------------------------------ focus: one ring everywhere */

:focus-visible {
  outline: 2px solid var(--ui-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
:is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--ui-ink);
  box-shadow: var(--ui-ring);
}

/* Header, menu, drawer and footer: see "chrome (workstream 2)" at the end of this file. */

/* ------------------------------------------------------------------ buttons: filled primary, quiet secondary */

.cta, .cta-ghost {
  transition: background-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease),
    box-shadow var(--ui-fast) var(--ui-ease), transform var(--ui-fast) var(--ui-ease);
}
.cta-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ui-line);
}
.cta-ghost:hover {
  background: var(--ui-surface-soft);
  color: var(--ui-ink);
  box-shadow: inset 0 0 0 1px var(--ui-ink);
}
.cta:active, .cta-ghost:active { transform: scale(0.98); }

/* ------------------------------------------------------------------ form fields: soft, roomy, clear */

:is(.form, .panel) :is(input[type="email"], input[type="url"], input[type="text"], input[type="tel"], select, textarea) {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-field);
  background: var(--ui-surface);
  color: var(--ui-ink); /* text always pairs with the field surface (dark theme read black-on-black) */
  transition: border-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease);
}
:is(.form, .panel) :is(input[type="email"], input[type="url"], input[type="text"], input[type="tel"], select, textarea):hover {
  border-color: var(--ui-ink-soft);
}

/* ------------------------------------------------------------------ cookie bar: small, out of the way
 * consent.js builds the same markup; only its footprint changes. On phones it is a slim bar along the bottom edge
 * (text, then Reject / Accept side by side), so it no longer covers the hero action. Reject and Accept keep equal
 * weight. */

.consent {
  max-width: 26rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
  animation: ui-rise var(--ui-slow) var(--ui-ease) both;
}
.consent-title { font-size: var(--q-step--1); font-weight: 600; margin-block-end: 0.25rem; }
.consent-text { font-size: 0.8125rem; line-height: 1.45; margin-block-end: 0.75rem; }
.consent-actions { gap: 0.5rem; flex-wrap: nowrap; }
.consent-actions .cta-ghost { flex: 1 1 0; min-height: 44px; padding: 0.375rem 1rem; font-size: 0.9375rem; }

@media (max-width: 639px) {
  .consent {
    inset-inline: 0.5rem;
    inset-block-end: 0.5rem;
    max-width: none;
    padding: 0.75rem 0.875rem;
    border-radius: 18px;
  }
  /* Title and text stay separate blocks (16 Nov 2026): run inline, the whole section was one text block and became
     the page's LCP candidate on Arabic phones (larger than the hero lede). Split, each is far smaller than the hero
     copy. The bar is fixed, so its height never shifts the page (no CLS). */
  .consent-title { display: block; margin: 0 0 0.125rem; }
  .consent-text { display: block; margin: 0; }
  .consent-actions { margin-block-start: 0.625rem; }
}

/* ------------------------------------------------------------------ motion: short, subtle, optional */

.reveal-ready .reveal-on-scroll {
  transform: translateY(12px);
  transition: opacity 0.5s var(--ui-ease), transform 0.5s var(--ui-ease);
}

@keyframes ui-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-head :is(.sign-in, .lang-switch, .theme-toggle), .cta, .cta-ghost,
  :is(.form, .panel) :is(input, select, textarea) { transition: none; }
  .consent { animation: none; }
  .reveal-ready .reveal-on-scroll { transform: none; transition: none; }
}

/* ------------------------------------------------------------------ interior pages: calm hero, clear reading order
 * One column: headline, then the supporting line, then the actions, so the eye never has to cross the page to find
 * the next step. The grid backdrop and the second ring go; one soft champagne disc stays as the brand moment (desktop
 * only, smaller), so the headline owns the first screen. */

body.os-page .hero-block {
  background-image: none;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
/* A headline sized to share the first screen with its supporting line and action (long keyword titles included). */
body.os-page .hero-block h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.25rem);
  max-width: 12em; /* em, not ch: ch follows the font, so a swap could change where the line breaks */
  line-height: 1;
}
body.os-page .hero-block::after,
body.os-page .hero-block > .wrap::before { display: none; }
body.os-page .hero-block::before {
  inline-size: clamp(200px, 24vw, 380px);
  inset-inline-start: auto;
  inset-inline-end: -5vw;
  top: 8%;
  bottom: auto;
  translate: none;
  box-shadow: none;
  opacity: 0.55;
}

@media (min-width: 900px) {
  body.os-page .hero-block > .wrap > :is(.lede, .note, .form-status, .actions, .price-line) {
    grid-column: 1 / 8;
    grid-row: auto;
    align-self: start;
  }
  body.os-page .hero-block > .wrap > .actions { margin-block: 0.75rem 0; }
  body.os-page .hero-block > .wrap > .price-line { margin-block-start: 1rem; }
}

@media (max-width: 899px) {
  body.os-page .hero-block::before { display: none; }
}

/* Breadcrumb in plain small type instead of tracked capitals. */
.page-breadcrumb {
  font-family: var(--q-font-body);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ui-ink-soft);
}
.page-breadcrumb a { color: var(--ui-ink-soft); }
.page-breadcrumb a:hover { color: var(--ui-ink); }
.page-breadcrumb [aria-current="page"] { color: var(--ui-ink); }
.page-breadcrumb:lang(ar) { font-family: var(--q-font-arabic); }

/* Section headings: one calm size; the alternate stacked sections no longer jump to poster size. */
@media (min-width: 900px) {
  body:not([data-page="privacy"]):not([data-page="terms"]) .section:nth-of-type(odd):not(.hero-block) > .wrap > h2 {
    font-size: clamp(2.25rem, 1rem + 3vw, 4rem);
  }
}

/* The order steps: a quiet numbered row that wraps, not a run of outlined pills. */
.steps-inline {
  gap: 0.25rem 1.25rem;
  font-family: var(--q-font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}
.steps-inline li {
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0;
  color: var(--ui-ink-soft);
}
.steps-inline li::before {
  display: inline-grid;
  place-items: center;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  border-radius: 50%;
  background: var(--ui-surface-soft);
  color: var(--ui-ink);
  content: counter(si);
  letter-spacing: 0;
}
.steps-inline li:first-child { color: var(--ui-ink); }
.steps-inline li:first-child::before { background: var(--q-hue); }

/* ------------------------------------------------------------------ order form: a soft card with plain labels */

.panel {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-card);
}
.panel h3, .tier-picker legend {
  font-family: var(--q-font-body);
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none;
}
.lang-ar :is(.panel h3, .tier-picker legend) { font-family: var(--q-font-arabic); }
.tier-option {
  border: 1px solid var(--ui-line);
  transition: background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease);
}
.tier-option:hover { border-color: var(--ui-ink-soft); }
@media (prefers-reduced-motion: reduce) { .tier-option { transition: none; } }
/* Selected option: the 2px edge is drawn inside (inset ring), so selecting never shifts the layout. */
.tier-option:has(input:checked) {
  border-width: 1px;
  border-color: var(--ui-ink);
  padding: 1.125rem 1.375rem;
  box-shadow: inset 0 0 0 1px var(--ui-ink);
}

/* /pricing: the headline price is "$5 / AED 18" until currency.js knows the visitor's currency, then one half. On its
 * own line the price never changes how many lines the headline takes, so the switch causes no layout shift. */
body[data-page="pricing"] .hero-block h1 .pivot { display: block; }

/* Display headings measured in em, not ch. A ch is the width of the font's "0", and Inter Tight's is far wider than
 * the fallback's, so a ch measure grows when the web font arrives and a headline rewraps (the home hero went from
 * three lines to two, a layout shift). The em values keep each heading's width with Inter Tight (1ch = 0.655em). */
.h-hero h1 { max-width: 9.8em; }
.h-hero.is-glass h1 { max-width: 7.9em; }
.site-home .section[data-section="clients"] > .wrap > h2 { max-width: 10.5em; }
.cta-band h2 { max-width: 7.9em; }
.offer h2, .offer h1 { max-width: 9.2em; }
body.os-page--error .hero-block h1, body.os-page--campaign .hero-block h1 { max-width: 10.5em; }

/* ------------------------------------------------------------------ conversational order form (intake.js)
 * One question at a time: the current step shows its question and fields; each step already answered folds into one
 * line (question, answer, Change); later steps wait. Without intake.js none of this applies. */

.form.is-stepped[data-intake-current="1"] > [data-intake-step]:not([data-intake-head]):not([data-intake-step="1"]):not([data-intake-step="next"]),
.form.is-stepped[data-intake-current="2"] > [data-intake-step]:not([data-intake-head]):not([data-intake-step="2"]):not([data-intake-step="next"]),
.form.is-stepped[data-intake-current="3"] > [data-intake-step]:not([data-intake-head]):not([data-intake-step="3"]):not([data-intake-step="next"]),
.form.is-stepped[data-intake-current="4"] > [data-intake-step]:not([data-intake-head]):not([data-intake-step="4"]):not([data-intake-step="next"]) { display: none !important; }
.form.is-stepped > .intake-head:not(.is-done):not(.is-current) { display: none !important; }

.intake-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.125rem 1rem;
  margin: 0;
}
.intake-progress {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ui-ink-soft);
}
.form .intake-q {
  grid-column: 1;
  margin: 0 0 0.5rem !important;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.intake-q:focus { outline: none; }
.intake-q:focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 4px; }
.intake-answer, .intake-change { display: none; }

/* An answered step: one quiet row. */
.intake-head.is-done {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--ui-line);
}
.intake-head.is-done .intake-progress { display: none; }
.form .intake-head.is-done .intake-q {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500;
  color: var(--ui-ink-soft);
}
.intake-head.is-done .intake-answer {
  display: block;
  grid-column: 1;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.intake-head.is-done .intake-change {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  min-height: var(--tap-min-height);
  padding-inline: 0.875rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ui-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.intake-head.is-done .intake-change:hover { background: var(--ui-surface-soft); }
.intake-head.is-current { margin-block-start: 0.75rem; }
.lang-ar :is(.intake-q, .intake-progress, .intake-answer, .intake-change) { font-family: var(--q-font-arabic); }

.form.is-stepped > .intake-next { justify-self: start; margin-block-start: 0.5rem; }
.form.is-stepped > [data-intake-step]:not([data-intake-head]) { animation: ui-rise var(--ui-slow) var(--ui-ease) both; }
@media (prefers-reduced-motion: reduce) { .form.is-stepped > [data-intake-step] { animation: none; } }

/* Forced colours (Windows high contrast): hairlines become system-colour edges again. */
@media (forced-colors: active) {
  .panel, .tier-option, .consent { border: 2px solid CanvasText; }
  .intake-head.is-done { border-bottom-color: CanvasText; }
  .site-head :is(.sign-in, .lang-switch, .theme-toggle) { border: 1px solid ButtonText; }
}

/* "On this page" index: fixed-width cells instead of pills that wrap by text width, so the web font swapping in for
   its metric-matched fallback can never move an item to a new row and shift the page below (desktop CLS on the hubs,
   28 October 2026). A long title is cut with an ellipsis; its full text is the section heading it links to. */
@media (min-width: 48rem) {
  .page-index > .wrap { flex-wrap: nowrap; align-items: flex-start; }
  .page-index p { flex: none; line-height: var(--tap-min-height); }
  .page-index ol { flex: 1 1 0; min-inline-size: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
  .page-index a { display: block; min-inline-size: 0; line-height: var(--tap-min-height); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-index a > span { margin-inline-end: 0.625rem; }
}

/* Numbered feature list (`feature-list` section, Growth Audit, November 2026; champagne 16 Nov 2026). A near-black
   stage, the items as an ordered list: two per row from 48rem, one on phones. Big champagne number, a champagne icon tile,
   a white title and one line in an outlined pill. Colours come from the light-theme captures (--qm-l-*, site.css) so
   the stage stays black with light type in both themes. Logical properties only, so RTL mirrors without overrides. */
.feature-list-section .fl-stage {
  background: var(--qm-l-stage);
  color: var(--qm-l-white);
  border-radius: var(--ui-radius-card);
  padding: clamp(1.75rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}
/* Product-sheet pill tag: a small white pill with a tiny dot ("● 10 THINGS"), white on the near-black stage. */
.feature-list-section .fl-stage .eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  gap: 0.5rem;
  border-radius: var(--q-radius-pill);
  background: var(--qm-l-white);
  color: var(--qm-l-on-accent);
}
.feature-list-section .fl-stage .eyebrow::before { inline-size: 6px; block-size: 6px; background: var(--qm-l-accent-ink); }
.feature-list-section .fl-stage h2 { color: var(--qm-l-white); margin-block-end: clamp(1.5rem, 4vw, 2.75rem); }
.feature-list-section .fl-stage h2 .pivot { color: var(--qm-l-accent-deep); }
.feature-list-section .fl-stage .lede, .feature-list-section .fl-stage .note { color: var(--qm-l-hairline); }
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 48rem) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; min-inline-size: 0; }
.fl-top { display: flex; align-items: center; gap: 0.75rem; min-inline-size: 0; }
.fl-n {
  flex: none;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--qm-l-accent);
  font-variant-numeric: tabular-nums;
}
.fl-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  flex: none;
  border-radius: var(--q-radius-mark);
  background: var(--qm-l-accent);
  color: var(--qm-l-on-accent);
}
.feature-list-section .fl-title {
  margin: 0;
  min-inline-size: 0;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--qm-l-white);
}
.fl-badge {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--q-radius-pill);
  /* One of the few lavender accents left (a tiny "Coming soon" tag, docs/brand/colour-and-type.md). */
  background: var(--q-lavender);
  color: var(--qm-l-on-accent);
  font-size: var(--q-step--1);
  font-weight: 600;
  line-height: 1.2;
}
.feature-list-section .fl-line {
  margin: 0;
  max-inline-size: 100%;
  padding: 0.625rem 1.125rem;
  border: 1px solid color-mix(in srgb, var(--qm-l-white) 55%, var(--qm-l-black));
  border-radius: var(--q-radius-pill);
  color: var(--qm-l-white);
  font-size: var(--q-step-0);
  line-height: 1.35;
}
.feature-list-section .fl-stage .actions { margin-block-start: clamp(1.75rem, 4vw, 2.75rem); }
.feature-list-section .fl-stage .cta { background: var(--qm-l-accent-light); color: var(--qm-l-on-accent); }
@media (forced-colors: active) {
  .feature-list-section .fl-stage, .fl-line, .fl-badge { border: 1px solid CanvasText; }
}

/* ================================================================== REDESIGN SYSTEM (workstream 1, 16 Nov 2026)
 * The stage look from our brand film: near-black ground with a faint hairline grid, big white grotesk headlines with a
 * champagne serif-italic accent, mono labels with a dot, white pill tags, champagne used like jewellery.
 * Contract: docs/plans/redesign-plan.md; reference and snippets: docs/brand/redesign-system.md.
 * Tokens only (var(--*) from quixo-tokens.css). Logical properties only, so /ar mirrors without overrides.
 * The header and footer blocks of this file belong to the chrome workstream; everything below is the shared kit. */

/* ------------------------------------------------------------------ component variables (theme-aware)
 * Dark stage by default; html[data-theme="light"] swaps to the white editorial set. A .qx-stage is always dark and a
 * .qx-band is always light champagne, whatever the theme (a .qx-card is a small stage too). Every ink/ground pair here clears WCAG AA (4.5:1):
 * white on #0B0B0B 19.6:1, #A3A3A3 on #141414 7.3:1, champagne on #0B0B0B 11.6:1, #111 on #E2D9F9 13.7:1,
 * champagne-ink on white 6.7:1, champagne-ink on #E2D9F9 4.8:1, #5A5A5A on white 6.9:1. */
body, html[data-theme="light"] :is(.qx-stage, .qx-card), .qx-stage, .qx-card {
  --qx-ground: var(--q-stage);
  --qx-raised: var(--q-stage-raised);
  --qx-ink: var(--qm-l-white);
  --qx-muted: var(--q-stage-muted);
  --qx-line: var(--q-stage-line);
  --qx-grid: var(--q-stage-grid);
  --qx-accent: var(--q-accent);
  --qx-serif: var(--q-accent);
  --qx-dot: var(--q-accent);
  --qx-pill-bg: var(--qm-l-white);
  --qx-pill-ink: var(--q-on-accent);
  --qx-pill-dot: var(--q-accent-ink);
  --qx-row-light: var(--qm-l-white);
}
html[data-theme="light"] body {
  --qx-ground: var(--qm-l-white);
  --qx-raised: var(--qm-l-tile);
  --qx-ink: var(--qm-l-black);
  --qx-muted: var(--q-ink-mid);
  --qx-line: var(--qm-l-hairline);
  --qx-grid: var(--q-grid);
  --qx-accent: var(--q-accent-ink);
  --qx-serif: var(--q-accent-ink);
  --qx-dot: var(--q-accent-ink);
  --qx-pill-bg: var(--qm-l-black);
  --qx-pill-ink: var(--qm-l-white);
  --qx-pill-dot: var(--q-accent);
  --qx-row-light: var(--qm-l-white);
}
.qx-band, html[data-theme="light"] .qx-band {
  --qx-ground: var(--q-accent-light);
  --qx-raised: var(--q-accent-soft);
  --qx-ink: var(--q-on-accent);
  --qx-muted: var(--q-accent-ink);
  --qx-line: var(--q-accent-deep);
  --qx-accent: var(--q-accent-ink);
  --qx-serif: var(--q-accent-ink);
  --qx-dot: var(--q-on-accent);
  --qx-pill-bg: var(--q-on-accent);
  --qx-pill-ink: var(--qm-l-white);
  --qx-pill-dot: var(--q-accent);
}

/* ------------------------------------------------------------------ .qx-stage: ground + hairline grid */
.qx-stage {
  position: relative;
  isolation: isolate;
  background-color: var(--qx-ground);
  color: var(--qx-ink);
}
.qx-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--qx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--qx-grid) 1px, transparent 1px);
  background-size: clamp(4rem, 12.5vw, 10rem) clamp(4rem, 12.5vw, 10rem);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, var(--qm-l-black) 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 30%, var(--qm-l-black) 30%, transparent 78%);
}
.qx-stage--plain::before { content: none; }
.qx-stage :is(h1, h2, h3) { color: var(--qx-ink); }
.qx-band { background-color: var(--qx-ground); color: var(--qx-ink); }
.qx-band :is(h1, h2, h3) { color: var(--qx-ink); }

/* ------------------------------------------------------------------ .qx-label: mono + dot ("● AI-ENABLED MARKETING · DUBAI") */
.qx-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--q-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--qx-muted);
}
.qx-label::before {
  content: "";
  flex: none;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--qx-dot);
}
/* Arabic has no case and no tracking: keep it plain and a touch larger. */
:lang(ar) .qx-label, .qx-label:lang(ar) { font-family: var(--q-font-arabic); letter-spacing: 0; font-size: 0.8125rem; }

/* ------------------------------------------------------------------ .qx-accent: champagne serif-italic second line */
.qx-accent {
  font-family: var(--q-font-pivot);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--qx-serif);
}
/* No Latin serif on Arabic: weight contrast instead, upright (docs/brand/colour-and-type.md). */
:lang(ar) .qx-accent, .qx-accent:lang(ar) { font-family: inherit; font-style: normal; font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------------------ .qx-pill: white tag + tiny dot */
.qx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--q-radius-pill);
  background: var(--qx-pill-bg);
  color: var(--qx-pill-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.qx-pill::before {
  content: "";
  flex: none;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--qx-pill-dot);
}
.qx-pill:lang(ar), :lang(ar) .qx-pill { letter-spacing: 0; font-size: 0.75rem; }
.qx-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ .qx-btn: pill buttons
 * Primary: light champagne pill with #111 text and a #111 arrow disc (13.3:1). Outline: transparent with a 1px ink
 * edge. 48px tall (touch target), the arrow mirrors in RTL, and the edge is an inset shadow so hover never shifts. */
.qx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-block-size: 48px;
  padding-block: 0.375rem;
  padding-inline: 1.375rem;
  border: 0;
  border-radius: var(--q-radius-pill);
  background: transparent;
  color: var(--qx-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--qx-ink);
  transition: background-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease), transform var(--ui-fast) var(--ui-ease);
}
.qx-btn:hover { background: var(--qx-ink); color: var(--qx-ground); text-decoration: none; }
.qx-btn:active { transform: scale(0.98); }
.qx-btn--outline { box-shadow: inset 0 0 0 1px var(--qx-line); }
.qx-btn--outline:hover { box-shadow: inset 0 0 0 1px var(--qx-ink); }
.qx-btn--primary {
  padding-inline: 1.375rem 0.375rem;
  background: var(--q-accent-light);
  color: var(--q-on-accent);
  box-shadow: none;
}
.qx-btn--primary::after {
  content: "\2192";
  content: "\2192" / "";
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  background: var(--q-on-accent);
  color: var(--q-accent-light);
  font-weight: 500;
  transition: transform var(--ui-fast) var(--ui-ease);
}
.qx-btn--primary:hover { background: var(--qm-l-white); color: var(--q-on-accent); }
.qx-btn--primary:hover::after { transform: translateX(3px); }
[dir="rtl"] .qx-btn--primary::after { transform: scaleX(-1); }
[dir="rtl"] .qx-btn--primary:hover::after { transform: scaleX(-1) translateX(3px); }
/* On a champagne band the primary turns #111 so it still stands out. */
.qx-band .qx-btn--primary { background: var(--q-on-accent); color: var(--q-accent-light); }
.qx-band .qx-btn--primary::after { background: var(--q-accent-light); color: var(--q-on-accent); }
.qx-band .qx-btn--primary:hover { background: var(--q-stage-raised); color: var(--qm-l-white); }
.qx-btn:focus-visible { outline: 2px solid var(--qx-ink); outline-offset: 3px; }
.qx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ------------------------------------------------------------------ .qx-features: numbered list 01-05
 * Each row: mono number, title + one line, a line icon. Rows are raised dark by default, .is-light rows are white and
 * one .is-highlight row is light champagne (both carry #111). */
.qx-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.qx-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 12px;
  background: var(--qx-raised);
  color: var(--qx-ink);
  box-shadow: inset 0 0 0 1px var(--qx-line);
  --qx-row-muted: var(--qx-muted);
}
.qx-feature.is-light { background: var(--qx-row-light); color: var(--q-on-accent); box-shadow: inset 0 0 0 1px var(--qm-l-hairline); --qx-row-muted: color-mix(in srgb, var(--q-on-accent) 72%, var(--qm-l-white)); }
html[data-theme="light"] .qx-feature.is-light { background: var(--qm-l-white); }
html[data-theme="light"] .qx-features:not(.qx-stage .qx-features) .qx-feature:not(.is-light, .is-highlight) { background: var(--qm-l-tile); color: var(--qm-l-black); }
.qx-feature.is-highlight { background: var(--q-accent-light); color: var(--q-on-accent); box-shadow: none; --qx-row-muted: var(--q-accent-ink); }
.qx-feature__n {
  font-family: var(--q-font-mono);
  font-size: 0.75rem;
  color: var(--qx-row-muted);
  font-variant-numeric: tabular-nums;
}
.qx-feature__body { display: grid; gap: 0.2rem; min-inline-size: 0; }
.qx-feature__title { margin: 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: inherit; }
.qx-feature__line { margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--qx-row-muted); }
.qx-feature__icon { display: inline-grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; color: inherit; }
.qx-feature__icon svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ .qx-tabs: the service strip
 * A white strip of service names; the current one is #111 and bold, the rest grey. Scrolls sideways on phones, with
 * snap points. Use <nav class="qx-tabs"><a aria-current="page">..</a> for links, or role="tablist" + aria-selected. */
.qx-tabs {
  display: flex;
  max-inline-size: 100%;
  min-inline-size: 0;
  gap: 0.25rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border-radius: var(--q-radius-pill);
  background: var(--qm-l-white);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
html[data-theme="light"] .qx-tabs:not(.qx-stage .qx-tabs) { background: var(--qm-l-tile); }
.qx-tabs::-webkit-scrollbar { display: none; }
.qx-tabs > li { flex: none; display: flex; }
.qx-tab, .qx-tabs > a, .qx-tabs > li > a, .qx-tabs > button {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 1.125rem;
  border: 0;
  border-radius: var(--q-radius-pill);
  background: transparent;
  color: var(--q-ink-mid);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: start;
  cursor: pointer;
  transition: color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease);
}
html:not([data-theme="light"]) .qx-tabs :is(.qx-tab, a, button) { color: color-mix(in srgb, var(--q-on-accent) 72%, var(--qm-l-white)); }
.qx-tabs :is(.qx-tab, a, button):hover { color: var(--q-on-accent); background: var(--q-accent-soft); }
.qx-tabs :is([aria-current]:not([aria-current="false"]), [aria-selected="true"], .is-active) {
  color: var(--q-on-accent);
  font-weight: 700;
  background: var(--q-accent-light);
}
.qx-tabs :is(.qx-tab, a, button):focus-visible { outline: 2px solid var(--q-on-accent); outline-offset: -4px; }

/* ------------------------------------------------------------------ .qx-ctabar: action | note | arrow tile */
.qx-ctabar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "action arrow" "note arrow";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 0.75rem;
  padding-inline-start: clamp(1rem, 3vw, 2rem);
  border-radius: 16px;
  background: var(--qx-raised);
  color: var(--qx-ink);
  box-shadow: inset 0 0 0 1px var(--qx-line);
  text-decoration: none;
  transition: background-color var(--ui-fast) var(--ui-ease);
}
.qx-ctabar:hover { background: var(--qx-ground); text-decoration: none; color: var(--qx-ink); }
.qx-ctabar__action { grid-area: action; font-size: clamp(1.125rem, 0.9rem + 1.1vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.qx-ctabar__note { grid-area: note; font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--qx-muted); }
.qx-ctabar__note:lang(ar), :lang(ar) .qx-ctabar__note { font-family: var(--q-font-arabic); letter-spacing: 0; }
.qx-ctabar__arrow {
  grid-area: arrow;
  display: inline-grid;
  place-items: center;
  inline-size: clamp(3.25rem, 6vw, 4.5rem);
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--q-accent-light);
  color: var(--q-on-accent);
  font-size: 1.5rem;
}
.qx-ctabar__arrow::before { content: "\2197"; content: "\2197" / ""; transition: transform var(--ui-fast) var(--ui-ease); }
[dir="rtl"] .qx-ctabar__arrow::before { content: "\2196"; content: "\2196" / ""; }
.qx-ctabar:hover .qx-ctabar__arrow::before { transform: translate(2px, -2px); }
[dir="rtl"] .qx-ctabar:hover .qx-ctabar__arrow::before { transform: translate(-2px, -2px); }
@media (min-width: 48rem) {
  .qx-ctabar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "action note arrow"; column-gap: 2rem; }
  .qx-ctabar__note { padding-inline-start: 2rem; border-inline-start: 1px solid var(--qx-line); align-self: stretch; display: flex; align-items: center; }
}

/* ------------------------------------------------------------------ .qx-giant: giant display word behind a subject
 * <div class="qx-giant"><span class="qx-giant__word" aria-hidden="true">GROWTH</span><img class="qx-giant__subject" ...></div>
 * The word is decoration (aria-hidden) when it repeats a heading; the subject sits on top, centred. */
.qx-giant { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.qx-giant > * { grid-area: 1 / 1; }
.qx-giant__word {
  z-index: 0;
  font-family: var(--q-font-display);
  font-size: clamp(4.5rem, 21vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
  white-space: nowrap;
  color: var(--qx-ink);
  user-select: none;
}
.qx-giant--quiet .qx-giant__word { color: var(--qx-raised); }
.qx-giant__subject { position: relative; z-index: 1; max-inline-size: min(80%, 36rem); block-size: auto; }

/* ------------------------------------------------------------------ .qx-stat: "[6] SIGNALS · ONE SCORE" (true stats only) */
.qx-stat { display: inline-flex; align-items: baseline; gap: 0.625rem; margin: 0; color: var(--qx-ink); }
.qx-stat__n {
  font-family: var(--q-font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.qx-stat__n::before, .qx-stat__n::after { color: var(--qx-accent); font-weight: 400; }
.qx-stat__n::before { content: "["; }
.qx-stat__n::after { content: "]"; }
.qx-stat__label { font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--qx-muted); }
.qx-stat__label:lang(ar), :lang(ar) .qx-stat__label { font-family: var(--q-font-arabic); letter-spacing: 0; font-size: 0.8125rem; }

/* ------------------------------------------------------------------ .qx-card--streaks: the black social card */
.qx-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: var(--q-stage-raised);
  color: var(--qm-l-white);
  box-shadow: inset 0 0 0 1px var(--q-stage-line);
}
.qx-card--streaks {
  background-image:
    linear-gradient(118deg, transparent 0 34%, var(--q-stage-line) 34.2% 34.5%, transparent 34.7% 52%, var(--q-stage-grid) 52.2% 60%, transparent 60.2%);
  background-color: var(--q-stage-raised);
}

/* ------------------------------------------------------------------ grid-draw + Q-mark intro (qx-motion.js) */
.qx-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.qx-line { position: absolute; display: block; background: var(--q-stage-line); }
.qx-line--h { inset-inline: 0; block-size: 1px; transform-origin: 0 50%; }
.qx-line--v { inset-block: 0; inline-size: 1px; transform-origin: 50% 0; }
.qx-line--h:nth-of-type(1) { inset-block-start: 25%; }
.qx-line--h:nth-of-type(2) { inset-block-start: 50%; }
.qx-line--h:nth-of-type(3) { inset-block-start: 75%; }
.qx-line--v:nth-of-type(4) { inset-inline-start: 25%; }
.qx-line--v:nth-of-type(5) { inset-inline-start: 50%; }
.qx-line--v:nth-of-type(6) { inset-inline-start: 75%; }
[dir="rtl"] .qx-line--h { transform-origin: 100% 50%; }
.qx-intro { display: inline-flex; align-items: center; gap: 0.75rem; }
.qx-qmark { display: block; flex: none; }

/* ------------------------------------------------------------------ motion (qx-motion.js)
 * No CSS here hides anything: content is visible without script, at any scroll position and in full-page captures.
 * qx-motion.js animates an element (Web Animations API, transform and opacity only) only as it enters the viewport,
 * and not at all under prefers-reduced-motion. The hooks (.qx-reveal, [data-qx-stagger], [data-qx-draw], .qx-intro,
 * [data-qx-count]) carry no styles of their own; .is-in is added once an element has entered. */

/* ------------------------------------------------------------------ legacy components on the dark default
 * Until the page workstreams restyle them, the existing primary CTA takes the film's light-champagne pill with a #111
 * disc on the stage (13.3:1) instead of the dimmed champagne of the old dark theme. */
html:not([data-theme="light"]) :is(.cta, .tier-card.is-primary > .cta, .tier-card.is-featured .cta) { background: var(--q-accent-light); color: var(--q-on-accent); }
html:not([data-theme="light"]) :is(.cta, .tier-card.is-primary > .cta, .tier-card.is-featured .cta)::after { background: var(--q-on-accent); color: var(--q-accent-light); }
html:not([data-theme="light"]) :is(.cta, .tier-card.is-primary > .cta, .tier-card.is-featured .cta):hover { background: var(--qm-l-white); color: var(--q-on-accent); }
html:not([data-theme="light"]) :is(.cta, .tier-card.is-primary > .cta, .tier-card.is-featured .cta):hover::after { background: var(--q-on-accent); color: var(--qm-l-white); }
/* The circular CTA moment (.cta-band): the big disc behind it becomes a quiet raised circle with a hairline, and the
 * circle button itself is the light-champagne fill, so #111 text never lands on the near-black ground. */
html:not([data-theme="light"]) .section:has(> .wrap > .cta-band)::before { background: var(--q-stage-raised); box-shadow: inset 0 0 0 1px var(--q-stage-line); }
html:not([data-theme="light"]) .section:has(> .wrap > .cta-band)::after { background: var(--q-accent); }
@media (min-width: 900px) {
  html:not([data-theme="light"]) .cta-band .actions .cta { background: var(--q-accent-light); color: var(--q-on-accent); }
  html:not([data-theme="light"]) .cta-band .actions .cta:hover { background: var(--qm-l-white); color: var(--q-on-accent); }
}

@media (forced-colors: active) {
  .qx-pill, .qx-btn, .qx-feature, .qx-tabs, .qx-ctabar, .qx-ctabar__arrow, .qx-card { border: 1px solid CanvasText; }
  .qx-label::before, .qx-pill::before { background: CanvasText; }
}

/* ================================================================== chrome (workstream 2, Direction H2, 16 November 2026)
 * Header and footer (src/render/page.mjs siteHead / siteFoot; the hand-written pages are synced by
 * scripts/sync-chrome.mjs). Owner decisions 16 Nov 2026: the header keeps only the lockup, the language switch, Sign in
 * and Sign up (portal /signup); every other link, the theme toggle and the audit action live in the footer site map.
 * Direction H2 (design/direction-h2/SPEC.md): a white header (the kit's black Q tile lockup, quiet links, a black Sign up
 * pill) and a white/light footer. Black, white and greys only: no accent in the chrome (pages own their one lavender
 * touch). Links grow an underline and pills shift their fill and slide the arrow, on hover and on :focus-visible alike.
 * Theme variables only (--q-ground, --q-ink, --q-ink-mid, --q-hairline...), so the CMS theme and the dark theme
 * (site.css remaps them) restyle the chrome; logical properties only, so /ar mirrors. */

.site-head, .site-foot {
  --ch-ground: var(--q-ground);
  --ch-alt: color-mix(in srgb, var(--q-ground) 97%, var(--q-ink));
  --ch-ink: var(--q-ink);
  --ch-ink-soft: var(--q-ink-deep, var(--q-ink));
  --ch-ink-mute: var(--q-ink-mid);
  --ch-line: var(--q-hairline);
  --ch-hover: color-mix(in srgb, var(--q-ink) 6%, transparent);
  --ch-pill: var(--q-ink);
  --ch-on-pill: var(--q-ground);
  --ch-ease: var(--ui-ease);
  --ch-mono: var(--q-font-mono);
  color: var(--ch-ink);
}
:is(.site-head, .site-foot) :focus-visible { outline: 2px solid var(--ch-ink); outline-offset: 3px; }

/* Shared hover/focus language: a growing underline for text links (a 1px ::after line scaled from 0 on transform, so
 * it costs nothing until used; a background-image underline on ~100 footer links measurably slowed first paint), a
 * fill shift and an arrow slide for pills. */
.site-head :is(.lang-switch, .sign-in), .site-foot .foot-links a { position: relative; transition: color var(--ui-fast) var(--ch-ease); }
.site-head :is(.lang-switch, .sign-in)::after, .site-foot .foot-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(50% - 0.8em);
  block-size: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: var(--ch-origin, left);
  transition: transform var(--ui-fast) var(--ch-ease);
  pointer-events: none;
}
[dir="rtl"] :is(.site-head, .site-foot) { --ch-origin: right; }
.site-head :is(.lang-switch, .sign-in)::after { inset-inline: 0.875rem; }
.site-head :is(.lang-switch, .sign-in):is(:hover, :focus-visible)::after, .site-foot .foot-links a:is(:hover, :focus-visible)::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ the header: white, one black pill */

.site-head {
  position: relative;
  background: var(--ch-ground);
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* A fixed row box: the bar is exactly --head-h tall and every control is a 44px box with line-height 1, so a web font
 * (Inter Tight, the Arabic face) arriving late cannot move or resize anything (CLS). */
.site-head .nav { gap: 1rem; block-size: var(--head-h); min-height: 0; padding-block: 0; }
.site-head .brand { block-size: var(--tap-min-height); padding-block: 0; }
.site-head .brand img { height: 30px; }
.site-head .nav-actions { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; }
.site-head .nav-actions > * { flex-shrink: 0; }
.site-head :is(.lang-switch, .sign-in, .sign-up) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  block-size: var(--tap-min-height);
  min-height: 0;
  padding-block: 0;
  padding-inline: 0.875rem;
  border: 0;
  border-radius: var(--q-radius-pill);
  color: var(--ch-ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-head :is(.lang-switch, .sign-in) { background: transparent; }
.site-head :is(.lang-switch, .sign-in):is(:hover, :focus-visible) { color: var(--ch-ink); }
.site-head .lang-switch:lang(ar), .lang-ar .site-head :is(.sign-in, .sign-up) { font-family: var(--q-font-arabic); }
/* Sign up: the one filled action in the header, a black pill; hover and focus soften the fill. */
.site-head .sign-up {
  margin-inline-start: 0.375rem;
  padding-inline: 1.25rem;
  background: var(--ch-pill);
  color: var(--ch-on-pill);
  font-weight: 600;
  transition: background-color var(--ui-fast) var(--ch-ease);
}
.site-head .sign-up:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ch-pill) 80%, var(--ch-ground)); color: var(--ch-on-pill); }

@media (max-width: 899px) {
  .site-head .brand img { height: 24px; }
  .site-head :is(.lang-switch, .sign-in) { padding-inline: 0.625rem; font-size: 0.8125rem; }
  .site-head .sign-up { padding-inline: 1rem; font-size: 0.8125rem; }
}
/* Phones: one slim row from 320px. Below 480px the lockup is cropped to its Q tile (site.css). */
@media (max-width: 480px) {
  .site-head .brand img { height: 30px; width: 30px; }
  .site-head .nav-actions { gap: 0; }
  .site-head :is(.lang-switch, .sign-in) { padding-inline: 0.5rem; }
  .site-head .sign-up { block-size: 40px; padding-inline: 0.875rem; }
}
@media (max-width: 359px) {
  .site-head :is(.lang-switch, .sign-in, .sign-up) { font-size: 0.75rem; padding-inline: 0.375rem; }
  .site-head .sign-up { padding-inline: 0.625rem; }
}

/* ------------------------------------------------------------------ the footer: white/light and compact
 * Owner request (16 Nov 2026): a compact footer. The brand and the audit call-out share one row; five short columns
 * (a few picks plus the hub link each); one small bottom row for legal, contact, social, cookies and the theme. On
 * phones each column is a closed <details> accordion (no script; the links are in the HTML either way); from 700px
 * the columns are always open (::details-content), and where a browser cannot force that, they stay usable as
 * accordions. */

.site-foot {
  border-top: 1px solid var(--ch-line);
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem) 1.5rem;
  background: linear-gradient(180deg, var(--ch-ground) 0%, var(--ch-alt) 100%);
  color: var(--ch-ink-soft);
}
.site-foot::after { display: none; }
/* One column: stronger than site.css's twelve-column footer grid, which would squeeze the rows. */
.site-foot .wrap.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 3.5vw, 2.5rem); }
.site-foot .wrap.foot > * { grid-column: 1 / -1; margin: 0; }

/* Mono label with a tiny dot (● SERVICES), as .qx-label. */
.site-foot :is(.foot-label, .foot-powered) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--ch-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--q-tracking-micro, 0.16em);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ch-ink-mute);
}
.site-foot :is(.foot-label, .foot-powered)::before {
  content: "";
  flex: none;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lang-ar .site-foot :is(.foot-label, .foot-powered) { font-family: var(--q-font-arabic); letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }

/* Top row: the lockup and powered-by line, then the audit call-out. */
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: center; }
.foot-id { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.site-foot .foot-brand { display: inline-flex; min-height: var(--tap-min-height); align-items: center; }
.site-foot .foot-brand img { inline-size: clamp(180px, 20vw, 240px); height: auto; }

/* The audit call-out: a white rounded card with a soft shadow and the black audit pill. */
.foot-audit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.125rem 1.25rem 1.125rem 1.5rem;
  border: 1px solid var(--ch-line);
  border-radius: var(--q-radius-card, 26px);
  background: var(--ch-ground);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ch-ink) 4%, transparent), 0 12px 32px -18px color-mix(in srgb, var(--ch-ink) 22%, transparent);
}
.foot-audit-copy { flex: 1 1 16rem; min-inline-size: 0; }
.foot-audit-copy p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.site-foot .foot-audit-title { margin-block-end: 0.25rem; color: var(--ch-ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
/* One selector for both themes, stronger than the shared dark-default .cta rule (whose :is() list carries
 * .tier-card.is-featured .cta), so the footer pill always follows the chrome's pill colours. */
html:not([data-theme="none"]) .site-foot .foot-audit .cta.foot-audit-cta { min-height: 44px; border: 0; background: var(--ch-pill); color: var(--ch-on-pill); font-size: 0.9375rem; transition: background-color var(--ui-fast) var(--ch-ease); }
html:not([data-theme="none"]) .site-foot .foot-audit .cta.foot-audit-cta::after { background: var(--ch-on-pill); color: var(--ch-pill); transition: transform var(--ui-fast) var(--ch-ease); }
html:not([data-theme="none"]) .site-foot .foot-audit .cta.foot-audit-cta:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ch-pill) 80%, var(--ch-ground)); color: var(--ch-on-pill); }
html:not([data-theme="none"]) .site-foot .foot-audit .cta.foot-audit-cta:is(:hover, :focus-visible)::after { background: var(--ch-on-pill); color: var(--ch-pill); transform: translateX(3px); }
html[dir="rtl"]:not([data-theme="none"]) .site-foot .foot-audit .cta.foot-audit-cta:is(:hover, :focus-visible)::after { transform: translateX(-3px); }

/* The columns: an accordion on phones. */
.foot-map { display: grid; grid-template-columns: minmax(0, 1fr); border-block-start: 1px solid var(--ch-line); }
.foot-col { min-inline-size: 0; border-block-end: 1px solid var(--ch-line); }
/* .site-foot .foot-col > summary outranks the inline-flex label rule, so the chevron reaches the far edge. */
.site-foot .foot-col > summary {
  display: flex;
  inline-size: 100%;
  align-items: center;
  justify-content: space-between;
  min-block-size: 48px;
  cursor: pointer;
  list-style: none;
}
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col > summary::after {
  content: "\203A";
  content: "\203A" / "";
  margin-inline-start: auto;
  font-family: var(--q-font-body);
  font-size: 1.125rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform var(--ui-fast) var(--ch-ease);
}
.foot-col[open] > summary::after { transform: rotate(-90deg); }
/* U+203A is a bidi-mirrored character: in RTL it renders as U+2039, so the rotations swap to keep it pointing down. */
[dir="rtl"] .foot-col > summary::after { transform: rotate(-90deg); }
[dir="rtl"] .foot-col[open] > summary::after { transform: rotate(90deg); }
.site-foot .foot-col .foot-links { padding-block-end: 0.75rem; }
.site-foot .foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding-inline: 0; list-style: none; }
.site-foot .foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ch-ink-soft);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}
.site-foot .foot-links a:is(:hover, :focus-visible) { color: var(--ch-ink); }
.site-foot .foot-links a[aria-current="page"] { color: var(--ch-ink); font-weight: 600; }
/* The hub link ("All services →"): ink, with an arrow that slides on hover and focus. */
.site-foot .foot-all a { color: var(--ch-ink); font-weight: 600; }
.site-foot .foot-all a::before { content: "\2192"; content: "\2192" / ""; order: 2; margin-inline-start: 0.375rem; transition: transform var(--ui-fast) var(--ch-ease); }
[dir="rtl"] .site-foot .foot-all a::before { content: "\2190"; content: "\2190" / ""; }
.site-foot .foot-all a:is(:hover, :focus-visible)::before { transform: translateX(3px); }
[dir="rtl"] .site-foot .foot-all a:is(:hover, :focus-visible)::before { transform: translateX(-3px); }

/* Bottom row: legal and contact as small inline lists, social, cookies, theme, the owner line. */
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
}
.site-foot .foot-base .foot-links { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
.site-foot .foot-base .foot-links a { min-height: 32px; font-size: 0.8125rem; color: var(--ch-ink-mute); }
.site-foot .foot-base .foot-links a:is(:hover, :focus-visible) { color: var(--ch-ink); }
.site-foot .foot-contact a { overflow-wrap: anywhere; }
.site-foot .foot-social { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.site-foot .foot-social a {
  display: inline-grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid var(--ch-line);
  border-radius: 10px;
  background: var(--ch-ground);
  color: var(--ch-ink);
  transition: background-color var(--ui-fast) var(--ch-ease);
}
.site-foot .foot-social svg { inline-size: 18px; block-size: 18px; }
.site-foot .foot-social a:is(:hover, :focus-visible) { background: var(--ch-hover); color: var(--ch-ink); transform: none; }
.site-foot .foot-cookies { margin: 0; }
.site-foot .foot-cookies button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ch-ink-mute);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.site-foot .foot-cookies button:is(:hover, :focus-visible) { color: var(--ch-ink); }
.site-foot .foot-owner { flex-basis: 100%; max-width: none; margin: 0; padding: 0.75rem 0 0; border: 0; border-block-start: 1px solid var(--ch-line); color: var(--ch-ink-mute); font-size: 0.75rem; }
/* The theme toggle (theme.js): hidden until the script has set html[data-theme] (site.css), then a quiet pill. */
.site-foot .theme-toggle {
  gap: 0.5rem;
  inline-size: auto;
  min-height: 36px;
  padding-inline: 0.75rem 0.875rem;
  border: 1px solid var(--ch-line);
  border-radius: var(--q-radius-pill);
  background: var(--ch-ground);
  color: var(--ch-ink-soft);
  font-size: 0.75rem;
}
.site-foot .theme-toggle:is(:hover, :focus-visible) { background: var(--ch-hover); color: var(--ch-ink); }
.site-foot .theme-toggle-text { font-family: var(--ch-mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.6875rem; }
.lang-ar .site-foot .theme-toggle-text { font-family: var(--q-font-arabic); letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
/* The currency picker (currency.js puts it before the owner line). */
.site-foot .currency-pick { margin: 0; }
.site-foot .currency-pick label { color: var(--ch-ink-mute); }
.site-foot .currency-pick select { min-height: 36px; background: var(--ch-ground); color: var(--ch-ink); box-shadow: inset 0 0 0 1px var(--ch-line); }

@media (min-width: 700px) {
  /* Columns always open: a heading and its links, no accordion. */
  .foot-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-block-start: 1.75rem; }
  .foot-col { border: 0; }
  .foot-col::details-content { content-visibility: visible; block-size: auto; }
  .site-foot .foot-col > summary { min-block-size: 0; margin-block-end: 0.5rem; cursor: default; pointer-events: none; }
  .foot-col > summary::after { display: none; }
  .site-foot .foot-col .foot-links { padding-block-end: 0; }
}
@media (min-width: 1000px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .foot-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .site-head *, .site-foot *, .site-head *::after, .site-foot *::after, .site-foot *::before { transition: none !important; }
}
@media (forced-colors: active) {
  .site-head .sign-up, .site-foot :is(.foot-audit, .theme-toggle, .foot-social a) { border: 1px solid ButtonText; }
}

/* ------------------------------------------------------------------ page aura (owner, 16 Nov 2026)
 * Light pages (the home, and interior pages on the light theme) sit on --q-page-tint with a soft lavender gradient
 * that drifts slowly behind the content. Lavender tokens only: the dark theme remaps --q-sky / --q-peach to dark mixes,
 * while the --q-accent* family is never remapped. One fixed, decorative layer animated with transform only
 * (compositor, no layout or paint per frame), so it never affects LCP or CLS. Sections are transparent over it; cards
 * stay white.
 * Reduced motion keeps the gradient and stops the drift. Body text stays AA on the strongest blob (#5A5A5A ≈ 5.5:1). */
:is(body.site-home, html[data-theme="light"] body.os-page) { isolation: isolate; background: var(--q-page-tint); }
:is(body.site-home, html[data-theme="light"] body.os-page)::before {
  content: "";
  position: fixed;
  z-index: -1;
  /* Viewport-sized, not overscanned with inset: -20%: a fixed layer 140% of the viewport cost 150-490 ms of main-thread
     rendering on mobile (Lighthouse TBT 315 ms median on /). The drift overscans with scale instead (TBT 0 ms); an edge
     that shows during the drift reveals only --q-page-tint, the same colour as the body. */
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 14%, color-mix(in srgb, var(--q-accent) 55%, transparent), transparent 70%),
    radial-gradient(34% 30% at 84% 24%, color-mix(in srgb, var(--q-accent-deep) 30%, transparent), transparent 70%),
    radial-gradient(42% 36% at 68% 84%, color-mix(in srgb, var(--q-accent-light) 75%, transparent), transparent 72%),
    radial-gradient(30% 28% at 10% 74%, color-mix(in srgb, var(--q-accent) 35%, transparent), transparent 70%),
    radial-gradient(26% 22% at 46% 48%, color-mix(in srgb, var(--qm-l-white) 70%, transparent), transparent 70%);
  animation: qm-aura 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes qm-aura {
  0% { transform: scale(1.15); }
  50% { transform: translate3d(-4%, 3%, 0) rotate(5deg) scale(1.22); }
  100% { transform: translate3d(3%, -2%, 0) rotate(-4deg) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  :is(body.site-home, html[data-theme="light"] body.os-page)::before { animation: none; }
}
