/* Public site — CUBE CSS.
   Layers: tokens → global → composition → utilities → blocks → exceptions.
   Logical properties only, so right-to-left languages need no overrides.
   No @import, no url() to other origins: CSP style-src 'self'. */

/* ---------- fonts (self-hosted, see static/fonts/FONTS.md) ---------- */
@font-face { font-family: "App Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/roboto-latin-variable.woff2) format("woff2"); }
/* IBM Plex Sans for Latin, IBM Plex Sans Arabic for Arabic script. The
   Arabic faces carry a unicode-range, so the browser picks them per glyph
   and Latin words inside Arabic text still render in Plex Sans. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/plex-sans-v23-regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/plex-sans-v23-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/plex-sans-v23-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/plex-sans-arabic-v15-regular.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/plex-sans-arabic-v15-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/plex-sans-arabic-v15-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }

/* Metric-matched fallbacks. Until a Plex face arrives (the 700 face is not
   preloaded, nor is the Latin face on Arabic pages) its text
   is drawn in a local font scaled to Plex's widths and given Plex's
   ascent and descent, so the swap barely moves a line break or a baseline.
   Each local font has its own family, because each needs its own scale;
   a family whose local() font is missing fails to load and the browser
   moves on to the next one in --font-sans. Latin: Helvetica Neue (Apple
   systems), then Arial (Windows, and Apple systems without the first).
   Arabic: Geeza Pro (Apple systems), then Arial, whose Windows and macOS
   builds carry Arabic. Android has none of them and keeps today's
   system-ui fallback. Each weight names a real bold or medium face, so no
   bold is synthesized.
   The unicode-range lists only characters the matching Plex face has
   (read from its cmap), so once Plex has loaded no character is ever
   drawn in a fallback: the swapped page is exactly what it was, and a
   character Plex lacks still falls through to system-ui.
   Measured 2026-09-22 in Chrome on macOS: canvas measureText at 1000px
   over the site's own text (every word of the built English pages, every
   Arabic word of the Arabic pages), fontBoundingBoxAscent/Descent, and a
   line-height: normal box for the line gap. size-adjust is the Plex width
   over the local width; the overrides are Plex's ascent (1025 Latin, 1085
   Arabic, per 1000), descent (275, 415) and line gap (0) divided by
   size-adjust, since the browser scales them by it. Re-measured with the
   descriptors applied: widths within 0.01% of Plex, ascent and descent
   exact. Unscaled, at 1000px: Helvetica Neue 952/213 (gap 28), Medium and
   Bold 975/217 (29); Arial 905/212 (33); Geeza Pro 895/331 (136). Widths
   against Plex 400/600/700: Helvetica Neue 425.2k/441.0k/455.6k to
   430.2k/446.8k/453.4k; Arial 420.5k/455.6k/455.6k to the same; Geeza Pro
   273.6k/326.4k/326.4k to 300.6k/316.4k/323.0k; Arial Arabic
   254.1k/259.8k/259.8k to the same. */
@font-face { font-family: "Plex Sans fallback Helvetica"; font-weight: 400; src: local("Helvetica Neue"), local("HelveticaNeue"); size-adjust: 101.17%; ascent-override: 101.32%; descent-override: 27.18%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Sans fallback Helvetica"; font-weight: 600; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"); size-adjust: 101.32%; ascent-override: 101.17%; descent-override: 27.14%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Sans fallback Helvetica"; font-weight: 700; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"); size-adjust: 99.52%; ascent-override: 103%; descent-override: 27.63%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Sans fallback Arial"; font-weight: 400; src: local("Arial"), local("ArialMT"); size-adjust: 102.29%; ascent-override: 100.2%; descent-override: 26.88%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Sans fallback Arial"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 98.07%; ascent-override: 104.52%; descent-override: 28.04%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Sans fallback Arial"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 99.52%; ascent-override: 102.99%; descent-override: 27.63%; line-gap-override: 0%; unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic fallback Geeza"; font-weight: 400; src: local("Geeza Pro Regular"), local("GeezaPro"); size-adjust: 109.87%; ascent-override: 98.76%; descent-override: 37.77%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }
@font-face { font-family: "Plex Arabic fallback Geeza"; font-weight: 600; src: local("Geeza Pro Bold"), local("GeezaPro-Bold"); size-adjust: 96.94%; ascent-override: 111.92%; descent-override: 42.81%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }
@font-face { font-family: "Plex Arabic fallback Geeza"; font-weight: 700; src: local("Geeza Pro Bold"), local("GeezaPro-Bold"); size-adjust: 98.97%; ascent-override: 109.62%; descent-override: 41.93%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }
@font-face { font-family: "Plex Arabic fallback Arial"; font-weight: 400; src: local("Arial"), local("ArialMT"); size-adjust: 118.29%; ascent-override: 91.72%; descent-override: 35.08%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }
@font-face { font-family: "Plex Arabic fallback Arial"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 121.77%; ascent-override: 89.1%; descent-override: 34.08%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }
@font-face { font-family: "Plex Arabic fallback Arial"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 124.32%; ascent-override: 87.27%; descent-override: 33.38%; line-gap-override: 0%; unicode-range: U+0600-0604, U+0606-061B, U+061E-06A1, U+06A3-06FF, U+0750-077F; }

/* ---------- tokens ---------- */
:root {
  /* Ya Hala homepage: palette, type, spacing and illustration tokens. */
  --c-landing-canvas: #f7faff;
  --c-landing-text: #0a2b66;
  --c-landing-muted: #4b6080;
  /* Brand artwork and large accents use blue; action/link variants keep small text legible. */
  --c-landing-blue: #0a7cff;
  --c-landing-action: #0068e0;
  --c-landing-cyan: #3ec5ff;
  --c-landing-navy: #0a2b66;
  --c-landing-surface: #fff;
  --c-landing-link: #0063d6;
  --c-landing-tint: #e8f3ff;
  --c-landing-line: #d8e4f5;
  --c-landing-deep: #071a3d;
  --size-home-header: 80px;
  --space-home-gutter: clamp(24px,5vw,80px);
  --font-home-latin: Manrope, Arial, sans-serif;
  --font-home-arabic: "Home Plex Arabic", Manrope, Arial, sans-serif;
  --step-notfound-title: clamp(2.75rem,5.2vw,4.5rem);
  --step-notfound-art: clamp(8rem,18vw,17rem);
  --step-download-title: clamp(3.25rem,5.5vw,5rem);
  --c-landing-header: #fffffff2;
  --c-landing-explore: #eaf3ff;
  --c-landing-hero-text: #ffffff;
  --c-hero-glow: #0a7cff80;
  --c-hero-edge: #004ba9;
  --c-voice-copy-muted: #c8dafa;
  --c-voice-accent: #8edbff;
  --c-voice-tab-border: #5176ad;
  --c-voice-tab-base: #163d79;
  --c-voice-tab-hover: #224c87;
  --c-voice-stage-glow: #0a7cff66;
  --c-app-canvas: #fff;
  --c-app-ink: #1d1b20;
  --c-app-message-ink: #49454f;
  --c-app-muted: #626774;
  /* Small white labels need the accessible blue variant, not the artwork blue. */
  --c-app-text-surface: var(--c-landing-action);
  --c-app-preview-meta: var(--c-app-muted);
  --c-app-preview-sent-meta: #fff;
  --c-app-wave-unplayed: #fff9;
  --c-app-media-scrim: #000b;
  --c-app-bubble: #f2f2f6;
  --c-app-input: #f2f2f3;
  --c-app-line: #d1d5db;
  --c-app-verified: #2c7c17;
  --c-app-reaction-name: #925b05;
  --c-app-reaction-selected: #e3eaff;
  --shadow-explore-picker: 0 8px 12px #00000026;
  --shadow-app-menu: 0 4px 8px 3px #00000026, 0 1px 3px #0000004d;
  --c-app-danger: #b00020;
  --c-app-divider: #00000026;
  --c-app-sent-meta: #fff;
  --c-app-group-one: var(--c-landing-action);
  --c-app-group-two: #7650a1;
  --c-app-group-three: #0c7682;
  --font-app-latin: "App Roboto", Roboto, Arial, sans-serif;
  --shadow-app-screen: 0 32px 80px #020d3040, 0 0 0 1px #ffffff40;
  --shadow-app-preview: 0 16px 48px #0a2b661a, 0 0 0 1px #0a2b6612;
  --space-home-56: 56px;
  --space-home-64: 64px;
  --space-home-72: 72px;
  --radius-home-36: 36px;
  --c-home-illustration: #a8d6ff;
  --c-home-illustration-2: #09263f;
  --c-home-button: #0a7cff1a;
  --c-home-button-2: #0055bd;
  --c-home-feature-menu: #0a2b6610;
  --c-home-mega-inner: #82bcff;
  --c-home-mega-icon: #bfdcff;
  --c-home-hero-shade: #082553e6;
  --c-home-hero-shade-2: #08255399;
  --c-home-hero-shade-3: #08255310;
  --c-home-hero-copy: #ecf8ff;
  --c-home-floating-chat: #0a203326;
  --c-home-small-avatar: #d8eaff;
  --c-home-small-avatar-2: #135b9e;
  --c-home-floating-chat-2: #4a6082;
  --c-home-floating-chat-3: #566b88;
  --c-home-floating-reply: #cce7ff;
  --c-home-floating-reply-2: #133657;
  --c-home-floating-reply-3: #10283b20;
  --c-home-floating-call: #fffc;
  --c-home-floating-call-2: #ffffffa0;
  --c-home-floating-call-3: #0e293626;
  --c-home-avatar-stack: #badfff;
  --c-home-avatar-stack-2: #7db8e8;
  --c-home-avatar-stack-3: #175a90;
  --c-home-floating-call-4: #344b70;
  --c-home-hello-strip: #203d5210;
  --c-home-hello-strip-2: #d5ebff;
  --c-home-hello-strip-3: #4b6b8b;
  --c-home-hello-strip-bottom: #bddfff;
  --c-home-art-disc: #e1efff;
  --c-home-phone: #0c2957;
  --c-home-phone-2: #152d3a1a;
  --c-home-phone-3: #eef5ff;
  --c-home-chat-header: #d5e3f8;
  --c-home-chat-body: #d7e7ff;
  --c-home-chat-date: #fff9;
  --c-home-msg: #0a2b6615;
  --c-home-msg-out: #cae6ff;
  --c-home-msg-time: #536775;
  --c-home-msg-2: #17629d;
  --c-home-chat-compose: #546987;
  --c-home-chat-compose-2: #42628a;
  --c-home-message-sticker: #223b4a1a;
  --c-home-message-sticker-2: #a3d6ff;
  --c-home-message-sticker-3: #1c4f80;
  --c-home-call-art: #dfeaff;
  --c-home-call-tabs: #b4cdf0;
  --c-home-phone-call: #144a95;
  --c-home-phone-call-2: #081d44;
  --c-home-call-safe: #b9cfdf;
  --c-home-call-type: #c2d3e0;
  --c-home-call-portrait: #ffffff24;
  --c-home-call-portrait-2: #ffffff04;
  --c-home-wave: #8bc8ff;
  --c-home-call-caption: #b9cddd;
  --c-home-call-controls: #ffffff18;
  --c-home-call-controls-2: #bc3544;
  --c-home-phone-call-3: #ffffff80;
  --c-home-people: #163b74;
  --c-home-people-2: #658cbe;
  --c-home-people-3: #d2ecff;
  --c-home-people-4: #a8d3f2;
  --c-home-people-5: #122d43;
  --c-home-people-6: #2362b8;
  --c-home-people-7: #c7d8e5;
  --c-home-call-sticker: #cde7ff;
  --c-home-call-sticker-2: #173952;
  --c-home-call-sticker-3: #203a5020;
  --c-home-security: #071b42;
  --c-home-security-2: #f7fafb;
  --c-home-security-3: #bcd3f5;
  --c-home-security-4: #62c7ff;
  --c-home-security-5: #d6e6ff;
  --c-home-orbit: #305992;
  --c-home-orbit-: #0a7cff18;
  --c-home-orbit--2: #3ec5ff15;
  --c-home-security-lock: #aad9ff;
  --c-home-security-lock-2: #357fbe;
  --c-home-security-lock-3: #112e46;
  --c-home-security-lock-4: #b8dcfa;
  --c-home-security-lock-5: #d4edff60;
  --c-home-security-lock-6: #1586df33;
  --c-home-secure-bubble: #e2f2ff;
  --c-home-secure-bubble-2: #17374e;
  --c-home-secure-bubble-3: #0002;
  --c-home-security-seal: #c7dfff;
  --c-home-coverage: #d4e6ff;
  --c-home-group-art: #d8efff;
  --c-home-group-photo: #293b3b20;
  --c-home-group-tag: #d2e9ff;
  --c-home-learn-card: #d3e2f8;
  --c-home-learn-icon: #bad9ff;
  --c-home-closing: #005bc7;
  --c-home-closing-2: #e2eeff;
  --c-home-footer-top: #b5ccef;
  --c-home-footer-bottom: #2b4570;
  --c-home-footer-bottom-2: #d8e6ff;
  --c-home-dialog: #071b4840;
  --c-home-dialog-2: #071b48b8;
  --c-home-dialog-close: #dceaf5;
  --c-home-closing-action: #071b4826;
  --c-home-closing-action-2: #e6f3ff;
  --c-home-footer-top-2: #90d5ff;
  --c-home-hero-shade-4: #082553eb;
  --c-home-hero-shade-5: #082553a6;
  --c-home-hero-shade-6: #082553d9;
  --c-home-hero-shade-7: #08255394;
  --c-home-hero-shade-8: #0825530d;
  --space-home-24: 24px;
  --step-home-16: 16px;
  --step-home-10: 10px;
  --space-home-12: 12px;
  --space-home-20: 20px;
  --radius-home-12: 12px;
  --space-home-16: 16px;
  --space-home-25: 25px;
  --radius-home-100: 100px;
  --step-home-14: 14px;
  --space-home-5: 5px;
  --space-home-10: 10px;
  --step-home-15: 15px;
  --space-home-30: 30px;
  --space-home-9: 9px;
  --step-home-27: 27px;
  --space-home-8: 8px;
  --step-home-13: 13px;
  --space-home-13: 13px;
  --space-home-22: 22px;
  --space-home-18: 18px;
  --space-home-32: 32px;
  --radius-home-20: 20px;
  --radius-home-24: 24px;
  --step-home-12: 12px;
  --radius-home-26: 26px;
  --space-home-65: 65px;
  --space-home-60: 60px;
  --space-home-140: 140px;
  --step-home-64: 64px;
  --step-home-86: 86px;
  --space-home-28: 28px;
  --space-home-26: 26px;
  --step-home-17: 17px;
  --radius-home-16: 16px;
  --radius-home-4: 4px;
  --radius-home-8: 8px;
  --step-home-11: 11px;
  --step-home-9: 9px;
  --space-home-4: 4px;
  --step-home-20: 20px;
  --space-home-6: 6px;
  --space-home-14: 14px;
  --space-home-17: 17px;
  --radius-home-17: 17px;
  --space-home-7: 7px;
  --space-home-negative-7: -7px;
  --space-home-3: 3px;
  --space-home-36: 36px;
  --space-home-90: 90px;
  --space-home-50: 50px;
  --space-home-15: 15px;
  --step-home-23: 23px;
  --step-home-32: 32px;
  --step-home-36: 36px;
  --step-home-53: 53px;
  --space-home-44: 44px;
  --space-home-48: 48px;
  --space-home-95: 95px;
  --step-home-42: 42px;
  --step-home-61: 61px;
  --radius-home-43: 43px;
  --radius-home-2: 2px;
  --radius-home-1: 1px;
  --radius-home-50: 50px;
  --radius-home-10: 10px;
  --step-home-8: 8px;
  --radius-home-6: 6px;
  --step-home-24: 24px;
  --radius-home-30: 30px;
  --radius-home-15: 15px;
  --step-home-26: 26px;
  --step-home-25: 25px;
  --space-home-34: 34px;
  --space-home-35: 35px;
  --step-home-22: 22px;
  --space-home-27: 27px;
  --step-home-18: 18px;
  --space-home-45: 45px;
  --space-home-110: 110px;
  --step-home-43: 43px;
  --step-home-62: 62px;
  --radius-home-28: 28px;
  --space-home-2: 2px;
  --space-home-70: 70px;
  --step-home-40: 40px;
  --step-home-57: 57px;
  --space-home-23: 23px;
  --space-home-75: 75px;
  --space-home-85: 85px;
  --space-home-40: 40px;
  --step-home-52: 52px;
  --radius-home-22: 22px;
  --step-home-49: 49px;
  --radius-home-38: 38px;
  --space-home-negative-38: -38px;
  --step-home-50: 50px;
  --step-home-82: 82px;
  --space-home-130: 130px;
  --space-home-55: 55px;
  --step-home-37: 37px;
  --space-home-1: 1px;
  --step-home-29: 29px;
  --step-home-78: 78px;
  --step-home-19: 19px;
  --step-home-33: 33px;
  --step-home-55: 55px;
  --space-home-11: 11px;
  --step-home-21: 21px;
  --step-home-38: 38px;
  --step-home-46: 46px;
  --step-home-48: 48px;
  --step-home-72: 72px;
  --step-home-35: 35px;
  --step-home-70: 70px;
  --step-home-63: 63px;
  --step-home-45: 45px;
  --step-home-59: 59px;
  --radius-home-23: 23px;
  --step-home-65: 65px;
  --step-home-39: 39px;
  --radius-home-37: 37px;
  --space-home-80: 80px;
  --step-home-28: 28px;
  --space-home-21: 21px;
  --step-home-31: 31px;
  --step-home-44: 44px;
  --step-home-41: 41px;
  --space-home-negative-28: -28px;
  --space-home-100: 100px;
  --step-home-56: 56px;
  --step-home-30: 30px;
  --step-home-34: 34px;
  --shadow-home-depth-1: 0 6px 18px var(--c-home-button);
  --shadow-home-depth-2: 0 20px 30px var(--c-home-feature-menu);
  --shadow-home-depth-3: 0 10px 40px var(--c-home-floating-chat);
  --shadow-home-depth-4: 0 12px 30px var(--c-home-floating-reply-3);
  --shadow-home-depth-5: 0 12px 45px var(--c-home-floating-call-3);
  --shadow-home-depth-6: 0 5px 20px var(--c-home-hello-strip);
  --shadow-home-depth-7: 0 24px 42px var(--c-home-phone-2);
  --shadow-home-depth-8: 0 1px 2px var(--c-home-msg);
  --shadow-home-depth-9: 0 8px 28px var(--c-home-message-sticker);
  --shadow-home-depth-10: 0 0 0 10px var(--c-home-call-portrait-2);
  --shadow-home-depth-11: 0 7px 25px var(--c-home-call-sticker-3);
  --shadow-home-depth-12: inset 0 1px 25px var(--c-home-security-lock-5),0 15px 80px var(--c-home-security-lock-6);
  --shadow-home-depth-13: 0 8px 30px var(--c-home-secure-bubble-3);
  --shadow-home-depth-14: 0 12px 30px var(--c-home-group-photo);
  --shadow-home-depth-16: 0 30px 90px var(--c-home-dialog);
  --shadow-home-depth-17: 0 8px 24px var(--c-home-closing-action);
  --space-home-negative-20: -20px;
  --space-home-negative-10: -10px;
  --c-home-art-muted: #4b6080;

  color-scheme: light dark;

  /* Plex first, each followed by its metric-matched fallbacks (above); the
     system stack only shows where none of those local fonts exists, or
     for a character Plex does not have. */
  --font-sans: var(--font-latin);
  --font-arabic: "IBM Plex Sans Arabic", "Plex Arabic fallback Geeza", "Plex Arabic fallback Arial", "IBM Plex Sans", "Plex Sans fallback Helvetica", "Plex Sans fallback Arial", system-ui, sans-serif;
  --font-latin: "IBM Plex Sans", "Plex Sans fallback Helvetica", "Plex Sans fallback Arial", "IBM Plex Sans Arabic", "Plex Arabic fallback Geeza", "Plex Arabic fallback Arial", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;

  /* fluid type: clamp(min, preferred, max) */
  --step--1: clamp(0.80rem, 0.78rem + 0.15vw, 0.89rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.80rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.20vw, 2.40rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 4.25rem);

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-s:   0.75rem;
  --space-m:   1rem;
  --space-l:   1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  /* Between homepage sections: one idea, breathing room, next idea. */
  --space-section: clamp(4rem, 2.5rem + 5vw, 8rem);

  --radius-s: 0.375rem;
  --radius-m: 0.75rem;
  --radius-l: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --page-measure: 75rem;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --step-display: clamp(3.25rem, 1.8rem + 4.5vw, 5.75rem);
  --step-section: clamp(2rem, 1.3rem + 2.2vw, 3.5rem);
  --step-page: clamp(2.6rem, 1.6rem + 3.3vw, 4.8rem);
  --space-page-section: clamp(3rem, 2rem + 3vw, 5rem);
  /* Small preview text belongs to decorative conversation illustrations. */
  --step-preview-time: 0.53rem;
  --step-preview-date: 0.6rem;
  --step-preview-subtitle: 0.62rem;
  --step-preview-name: 0.63rem;
  --step-preview-small: 0.65rem;
  --step-preview-note: 0.7rem;
  --step-caption: 0.72rem;
  --step-preview-body: 0.77rem;
  --step-preview-title: 0.79rem;
  --step-scene: clamp(5rem, 10vw, 10rem);
  --step-scene-mobile: clamp(5rem, 20vw, 10rem);
  --step-display-arabic: clamp(2.6rem, 1.5rem + 3.8vw, 4.6rem);
  --step-display-tablet: clamp(3rem, 5.8vw, 4.5rem);
  --step-display-small: 2.85rem;
  --space-3xl: 6rem;
  --space-panel: clamp(1.5rem, 5vw, 4.5rem);
  --c-deep: #0A2B66;
  --c-on-deep: #ffffff;
  --c-on-deep-muted: #c9d8ed;
  --c-demo-warm: #faeee3;
  --c-demo-warm-ink: #805437;
  --c-demo-sage: #e8f0eb;
  --c-demo-sage-ink: #395a48;
  --c-demo-lilac: #eeebf5;
  --c-demo-lilac-ink: #645579;
  --measure: 40rem;

  /* Homepage study: neutral surfaces and rounded controls from the app's
     updated onboarding designs. Primary blue remains a brand/state colour;
     action fills keep the accessible darker blue used throughout the site. */
  --c-home-bg: #ffffff;
  --c-home-surface: #f5f5f7;
  --c-home-raised: #ffffff;
  --c-home-text: #17181c;
  --c-home-muted: #62656d;
  --c-home-border: #e3e5e9;
  --c-home-border-strong: #767981;
  --c-home-blue-wash: #e6f2ff;
  --c-home-cyan-wash: #effaff;
  --c-home-glass: rgb(255 255 255 / 88%);
  --c-home-device-edge: #e9eaed;
  --c-home-device-line: #d4d6dc;
  --c-home-inverse: #171a21;
  --c-home-on-inverse: #ffffff;
  --c-home-inverse-muted: #b9bfca;
  --c-home-inverse-line: #363b47;
  --c-home-inverse-surface: #272c36;
  --c-home-inverse-link: #8ed7ff;
  --c-home-ink: #101216;
  --shadow-home-card: 0 2px 4px rgb(20 32 52 / 3%), 0 16px 44px rgb(20 32 52 / 7%);
  --shadow-home-device: 0 2px 3px rgb(20 32 52 / 7%), 0 28px 65px rgb(20 32 52 / 15%);
  --radius-device: 2.8rem;
  --radius-home-card: 1.75rem;
  --step-home-display: clamp(3.25rem, 2.2rem + 4.2vw, 6rem);
  --step-home-display-ar: clamp(2.5rem, 1.8rem + 3.4vw, 4.75rem);
  --step-home-section: clamp(2rem, 1.3rem + 2.1vw, 3.25rem);
  --step-home-preview: 0.875rem;
  --step-home-detail: 0.75rem;
  --step-home-name: 1rem;
  --step-home-label: 0.875rem;
  --step-home-status: 0.6875rem;
  --space-home-section: clamp(4.5rem, 3rem + 5vw, 8rem);

  /* The Ya Hala palette (2026-09-21), from the customer's brand tokens:
     soft background #F4F7FB, ice #E3F7FF, deep navy #0A2B66 for text. Every
     pair below clears 4.5:1 for text and 3:1 for interactive edges in both
     themes (checked on each background it is used on). */
  --c-bg: #F4F7FB;
  --c-surface: #ffffff;
  --c-surface-2: #E3F7FF;
  --c-text: #0A2B66;
  --c-text-muted: #4A5B78;
  --c-border: #D5DEE9;
  /* The accent blue has two shapes and one meaning each: blue text is a
     link, a blue fill is a button (the accent also marks state and focus).
     No other text is ever set in it. The tokens stay separate so the two
     can diverge later without touching components. It is the brand's
     primary blue (#0A7CFF) taken darker on the same hue to #0063D4, which
     clears 4.5:1 as text and under white button text where #0A7CFF
     (3.93:1) does not; #0A7CFF itself is the focus ring, where 3:1 is the
     bar. Dark mode uses the brand's bright cyan (#3EC5FF). */
  --c-accent: #0063D4;
  --c-accent-text: #ffffff;
  --c-accent-hover: #0054B5;
  --c-link: #0063D4;
  --c-link-hover: #0054B5;
  --c-focus: #0A7CFF;
  /* The wordmark: the one-colour mark and the name in the header. The
     brand's primary taken darker on its own hue (212°, unchanged) because
     #0A7CFF itself is only 3.93:1 on white; this is 5.62:1. The
     full-colour logo elsewhere (the favicon, the link pages' app icon)
     keeps the brand's #0A7CFF.
     Its own token, deliberately NOT an alias of --c-accent. A brand is not
     a role in this palette: it can carry more than one colour at once, and
     it may change for a season or a campaign, while the accent has to go
     on meaning exactly one thing — "you can act here". The two hold the
     same value today; that is a choice, not wiring, so the brand can move
     without dragging the action colour with it.
     It was briefly taken to #0A4A96 to pull the wordmark further off the
     buttons. That read as too dark for a brand mark and is reverted here;
     the decoupling it arrived with is kept. Same value as the panels, so
     the mark reads as one mark everywhere. */
  --c-brand: #0063D4;
  /* Secondary: reserved for emphasis that is neither a link nor a button
     (a chip, an illustration). Unused today; use it before inventing a hue. */
  --c-secondary: #0f766e;
  /* Affirmative marks (the check in front of a verdict); never used for
     text, so it only needs 3:1. The console's success green is deeper
     because it colours text on a badge. Different jobs, not drift. */
  --c-ok: #1a9d54;
  /* Interactive edges (buttons, cards, menus) need 3:1 against their
     surroundings (WCAG 1.4.11); --c-border stays lighter for dividers. */
  --c-border-strong: #6E7D93;
  --c-danger: #b42318;
  --c-danger-bg: #fdf1ee;
  /* Both shadow tokens keep the same layer count so a theme cross-fade
     can interpolate them instead of snapping. */
  --shadow-1: 0 1px 2px rgb(10 43 102 / 6%), 0 1px 3px rgb(10 43 102 / 10%);
  --shadow-2: 0 1px 2px rgb(10 43 102 / 6%), 0 8px 24px rgb(10 43 102 / 12%);

  /* Dark palette: the same cool family, near-black with a navy cast. The
     link pages copy this whole block; the admin sites keep their own
     neutrals and share only the accent. */
  --dark-bg: #0A0F1A;
  --dark-surface: #111827;
  --dark-surface-2: #1A2436;
  --dark-text: #E6EEF8;
  --dark-text-muted: #9AA9BE;
  --dark-border: #26324A;
  --dark-border-strong: #6F7F97;
  --dark-danger: #f97066;
  --dark-danger-bg: #2c1a16;
  --dark-accent: #3EC5FF;
  /* Dark: white, the brand book's own rule for the dark logo. Cyan was
     tried here and rejected: --dark-accent already holds #3EC5FF, so the
     wordmark and the call to action became one colour and the wordmark
     won the eye, which is backwards. Light keeps the accent's value
     because #0063D4 on white is far more subdued than cyan on near-black,
     and there the accent appears as a solid fill against wordmark text,
     so form separates them. 19.16:1. */
  --dark-brand: #FFFFFF;
  --dark-accent-text: #0A0F1A;
  --dark-accent-hover: #7AD7FF;
  --dark-link: #3EC5FF;
  --dark-link-hover: #7AD7FF;
  --dark-secondary: #2dd4bf;
  --dark-focus: #7AD7FF;
  --dark-ok: #4ade80;
  --dark-shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%);
  --dark-shadow-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 50%);
}

/* An explicit theme also tells the browser which way to draw its own
   parts (dialogs, form controls, scrollbars), whatever the system says. */
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-landing-canvas: #0a1224;
    --c-landing-text: #e9f2ff;
    --c-landing-muted: #b1c3df;
    --c-landing-surface: #132340;
    --c-landing-header: #0a1224f2;
    --c-landing-link: #7acfff;
    --c-landing-tint: #18375d;
    --c-landing-line: #344f74;
    --c-landing-explore: #102440;

    color-scheme: dark;
    --c-bg: var(--dark-bg); --c-surface: var(--dark-surface); --c-surface-2: var(--dark-surface-2);
    --c-text: var(--dark-text); --c-text-muted: var(--dark-text-muted); --c-border: var(--dark-border);
    --c-brand: var(--dark-brand); --c-accent: var(--dark-accent); --c-accent-text: var(--dark-accent-text); --c-accent-hover: var(--dark-accent-hover);
    --c-link: var(--dark-link); --c-link-hover: var(--dark-link-hover); --c-ok: var(--dark-ok); --c-secondary: var(--dark-secondary);
    --c-focus: var(--dark-focus); --shadow-1: var(--dark-shadow-1); --shadow-2: var(--dark-shadow-2);
    --c-border-strong: var(--dark-border-strong); --c-danger: var(--dark-danger); --c-danger-bg: var(--dark-danger-bg);
    --c-home-bg: #0e1014; --c-home-surface: #191c22; --c-home-raised: #22262e;
    --c-home-text: #f5f5f7; --c-home-muted: #b1b5bf; --c-home-border: #363c47; --c-home-border-strong: #89909e;
    --c-home-blue-wash: #172b44; --c-home-cyan-wash: #14212b; --c-home-glass: rgb(34 38 46 / 92%);
    --c-home-device-edge: #373c46; --c-home-device-line: #515865;
  }
}
:root[data-theme="dark"] {
    --c-landing-canvas: #0a1224;
    --c-landing-text: #e9f2ff;
    --c-landing-muted: #b1c3df;
    --c-landing-surface: #132340;
    --c-landing-header: #0a1224f2;
    --c-landing-link: #7acfff;
    --c-landing-tint: #18375d;
    --c-landing-line: #344f74;
    --c-landing-explore: #102440;

  color-scheme: dark;
  --c-bg: var(--dark-bg); --c-surface: var(--dark-surface); --c-surface-2: var(--dark-surface-2);
  --c-text: var(--dark-text); --c-text-muted: var(--dark-text-muted); --c-border: var(--dark-border);
  --c-brand: var(--dark-brand); --c-accent: var(--dark-accent); --c-accent-text: var(--dark-accent-text); --c-accent-hover: var(--dark-accent-hover);
  --c-link: var(--dark-link); --c-link-hover: var(--dark-link-hover); --c-ok: var(--dark-ok); --c-secondary: var(--dark-secondary);
  --c-focus: var(--dark-focus); --shadow-1: var(--dark-shadow-1); --shadow-2: var(--dark-shadow-2);
  --c-border-strong: var(--dark-border-strong); --c-danger: var(--dark-danger); --c-danger-bg: var(--dark-danger-bg);
  --c-home-bg: #0e1014; --c-home-surface: #191c22; --c-home-raised: #22262e;
  --c-home-text: #f5f5f7; --c-home-muted: #b1b5bf; --c-home-border: #363c47; --c-home-border-strong: #89909e;
  --c-home-blue-wash: #172b44; --c-home-cyan-wash: #14212b; --c-home-glass: rgb(34 38 46 / 92%);
  --c-home-device-edge: #373c46; --c-home-device-line: #515865;
}

/* ---------- global ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-block-size: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
}
/* Arabic script sits taller than Latin: more leading, no faux-tight headings. */
:lang(ar) { line-height: 1.85; }
/* A word longer than the line (a long address, a URL) breaks rather than
   pushing the page sideways; ordinary words still wrap between words. */
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.4; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p, ul, ol { margin: 0; }
/* Links carry their own hue instead of an underline at rest. Hover deepens
   the hue and fades in a thin, half-transparent underline; keyboard focus
   gets the full underline as its cue. */
a { color: var(--c-link); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 120ms ease, text-decoration-color 120ms ease; }
a:hover { color: var(--c-link-hover); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:focus-visible { text-decoration-color: currentColor; }
/* An email address has no spaces, so break-word alone cannot help it where
   a box sizes to its content; anywhere lets it break at any character. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-s); }
img, svg { max-inline-size: 100%; block-size: auto; }
[hidden] { display: none !important; }
/* Lists used for layout keep list semantics for assistive tech (role=list)
   but drop the markers and indent. */
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

/* ---------- composition ---------- */
.stack > * + * { margin-block-start: var(--stack-space, var(--space-m)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-space, var(--space-s)); align-items: center; }
.center { box-sizing: content-box; margin-inline: auto; max-inline-size: var(--center-measure, var(--measure)); padding-inline: var(--space-m); }
.main { flex: 1; padding-block: var(--space-xl) var(--space-2xl); --stack-space: var(--space-l); }
.main > * + * { margin-block-start: var(--space-xl); }
/* The homepage is a sequence of sections and gets the fluid rhythm; article
   pages keep the tighter title-to-body gap. */
[data-page="home"] .main > * + * { margin-block-start: var(--space-section); }
/* Two-column section: copy beside a product visual, alternating sides down
   the page so the layout has movement. Stacks below 48rem, in one track
   that may shrink below its content's widest word: an implicit track grows
   to fit it and pushes the page sideways at large text sizes. */
.split { --center-measure: 64rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-l) var(--space-2xl); align-items: center; }
@media (min-width: 48rem) {
  /* The visual column is exactly the mockup's width so the figure never
     floats in a wider track; the copy takes the rest. Reversed rows swap
     the tracks as well as the order, so the copy keeps the wide column. */
  .split { grid-template-columns: minmax(0, 1fr) 16rem; }
  .split--reverse { grid-template-columns: 16rem minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}
.split > .prose { max-inline-size: var(--measure); }

/* ---------- utilities ---------- */
.lead { font-size: var(--step-1); color: var(--c-text-muted); text-wrap: pretty; }
.muted { color: var(--c-text-muted); }
.skip-link { position: absolute; inset-block-start: -100%; inset-inline-start: var(--space-m); background: var(--c-surface); padding: var(--space-xs) var(--space-s); border-radius: var(--radius-s); z-index: 30; }
.skip-link:focus { inset-block-start: var(--space-xs); }
/* For a string with no break opportunities shown as text, not as a link
   (the support address under its button). */
.wrap-anywhere { overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 0 0.6em; border-radius: 999px; background: var(--c-surface-2); font-size: var(--step--1); }

/* ---------- blocks ---------- */
/* The header is fixed to the top of the window, not stuck in the page:
   when the page is pulled past its top (the rubber-band of a trackpad or
   a phone) the page moves under it and the header stays put, as the
   browser's own bar does. Fixed, it takes no room in the page, so the
   body keeps --topbar-room clear at the top, and anchored jumps stop below
   it (html's scroll-padding). The room is --topbar-size, which site.js
   keeps at the header's measured height (it changes with the language and
   with text zoom). With the script the header is one row at every width
   (up to very large text), because below the navigation's breakpoint the
   links fold behind a menu button, so the fallback used until the script
   has measured is that one row: the 2.5rem buttons, the space-s padding
   above and below them and the 1px border. In rem, so it follows the text size; measured in both
   languages (2026-09-22) at 65px with 16px text and 129px with 32px. Too
   much room is a gap, too little puts the header over the page. The
   header is opaque, above the page, below the skip link, and the size
   container the navigation and the language menu measure themselves by. */
.topbar { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 20; background: var(--c-surface); border-block-end: 1px solid var(--c-border); container: topbar / inline-size; }
:root { --topbar-fallback: calc(4rem + 1px); --topbar-room: var(--topbar-size, var(--topbar-fallback)); }
body { padding-block-start: var(--topbar-room); }
html { scroll-padding-block-start: calc(var(--topbar-room) + var(--space-s)); }
/* A short window (a phone on its side, or upright with very large text)
   cannot spare a pinned header: under 30rem of height (480px at 16px
   text) the one row is already a seventh to a fifth of the screen (65px of
   360 to 480), and more rows or larger text take a third or more. There
   the header scrolls away with the page instead and takes its room in the
   page. Relative rather than static: the folded navigation drops down
   from it. */
@media (max-height: 30rem) {
  .topbar { position: relative; }
  :root { --topbar-room: 0px; }
}
/* Without scripting nothing measures the header, and on a narrow screen
   its links take their own row below the brand, the tools the row after
   (the same breakpoint as the folding below, as a media query; the rows
   keep the document's order, so the tab order reads down the header). So
   there the header is part of the page too instead of covering its top.
   Keyed to the scripting media feature, as the folding below is: a page
   that will run site.js is folded to one row from its first paint, so
   nothing in the page moves when the script arrives (keyed to a class the
   script sets, the page jumped by the two extra rows: a 0.12 layout shift
   on a slow connection). */
@media (scripting: none) and (width < 48rem) {
  :root { --topbar-room: 0px; }
  .topbar { position: relative; }
  .topbar .topnav { flex-basis: 100%; }
  .topnav__list { --cluster-space: var(--space-2xs); }
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-xl); padding-block: var(--space-s); padding-inline: var(--page-gutter); --center-measure: var(--page-measure); }
/* The name's line is kept inside the 2.5rem row: with Arabic leading (1.85)
   the largest step of the type scale would otherwise make the row taller in
   one language than in the other. The link itself is as tall as the row,
   so its tap target does not shrink with the line. */
.brand { display: inline-flex; align-items: center; gap: 0.3em; min-block-size: 2.5rem; font-weight: 700; line-height: 1.2; text-decoration: none; color: var(--c-brand); font-size: var(--step-1); }
/* The mark leads the name in the name's colour, the way messenger sites
   show theirs; it is decoration there (aria-hidden), the name is the
   link's text. Its viewBox is cropped to the mark, so 1.3em of height sits
   it tight against the name at every size. */
.brand__mark { block-size: 1.3em; inline-size: auto; flex: none; }
.topnav { flex: 1; }
.topnav__list { justify-content: center; }
/* Each link is as tall as the icon buttons beside it, so the whole height
   of the row is its tap target without the row growing. */
.topnav a { display: inline-flex; align-items: center; min-block-size: 2.5rem; color: var(--c-text); text-decoration: none; padding: 0 var(--space-xs); border-radius: var(--radius-s); }
.topnav a:hover { background: var(--c-surface-2); }
.topnav a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }
/* The tools stay together at the end edge: if the row is too narrow for
   them beside the brand (very large text on a phone), they wrap below it
   as one group, and if even they wrap, each of their lines packs to the
   end too. */
.topbar__tools { --cluster-space: var(--space-xs); --menu-trailing: 4rem; margin-inline-start: auto; justify-content: flex-end; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 2.5rem; block-size: 2.5rem; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-s);
  background: transparent; color: var(--c-text); cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.iconbtn:hover, .menu[open] > .iconbtn, .iconbtn[aria-expanded="true"] { background: var(--c-surface-2); }
.icon { display: block; }
/* The language globe is drawn differently in the dark theme, so the pair
   is switched exactly as the sun and the moon are, below. */
.icon--globe-dark { display: none; }
:root[data-theme="dark"] .icon--globe-dark { display: block; }
:root[data-theme="dark"] .icon--globe-light { display: none; }
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--globe-dark { display: block; }
  :root:not([data-theme="light"]) .icon--globe-light { display: none; }
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}

/* The navigation folds behind a menu button where its links would
   otherwise wrap below the brand. Measured 2026-09-22, the brand, the four
   links and the two tools share one row down to 572px (35.75rem) in
   English and 560px in Arabic, with the web fonts and with the fallback
   font; the breakpoint at 37.5rem keeps 1.75rem of slack for rounding and
   zoom. A container query, not a media query, so a larger root font size
   folds it too (a media query's rem is the browser default, the header's
   is the page's). Only where scripting is enabled: without it the button
   could not open anything, so it stays hidden and the links stay in the
   header. Keyed to the scripting media feature rather than to a class the
   script sets, because the browser knows it before the first paint: the
   header is folded from the start instead of showing the links wrapped
   over the page until the deferred script runs. The cost: where scripting
   is on but site.js fails to load, the button does nothing and the links
   cannot be reached on a narrow screen.
   The button is the last of the tools, at the header's end edge. Folded,
   the navigation is taken out of the row and drops down under the header
   across its full width, one link to a row; site.js moves it in the
   document to just after the button (and back when the header widens),
   so reading and tab order stay the visual order at every width and the
   open list follows its button. It scrolls itself if it is taller than
   the window below the header; its shadow falls on the page only
   (clipped above), not back over the header row. */
.topnav__toggle { display: none; }
@media (scripting: enabled) {
  @container topbar (width < 48rem) {
    .topnav__toggle { display: inline-flex; }
    .topbar__tools { --menu-trailing: 7rem; }
    .topnav {
      position: absolute; inset-block-start: 100%; inset-inline: 0;
      padding: var(--space-xs) var(--space-xs) var(--space-s);
      max-block-size: calc(100svh - var(--topbar-room)); overflow-y: auto; overscroll-behavior: contain;
      background: var(--c-surface); border-block-end: 1px solid var(--c-border);
      box-shadow: var(--shadow-2);
      /* inset() has no logical form: its right and left values (the 2nd
         and 4th) must stay equal, or the clip would not mirror in RTL. */
      clip-path: inset(0 0 -2rem 0);
      transform-origin: top;
      display: none;
    }
    /* Shown only while its button says so. Folded, site.js has put the
       navigation right after the button, so a sibling selector suffices;
       until then (and if the script never runs) it stays hidden: closed is
       the state that needs no support from the browser. */
    [data-nav-toggle][aria-expanded="true"] + .topnav { display: block; }
    .topnav__list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
    .topnav__list a { display: flex; min-block-size: 2.75rem; }
  }
}

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + var(--space-2xs));
  /* The panel opens from the trigger's end edge towards the start. The
     trigger sits --menu-trailing from the header's end edge: 4rem (the
     theme button, the gap before it and the page padding), 7rem when the
     menu button follows as well. So the panel may be as wide as the
     header (100cqi) less that and 1rem of margin at the start side; both
     bounds give way to that, or at large text the 12rem floor alone would
     push the panel off the screen.
     TODO(deferred:menu-panel-trigger-offset): --menu-trailing is the
     layout after the trigger written out by hand; a control added after
     the language menu must update it. Anchor positioning can replace it
     once every browser the site supports has it. */
  min-inline-size: min(12rem, 100cqi - var(--menu-trailing) - 1rem); max-inline-size: min(20rem, 100cqi - var(--menu-trailing) - 1rem);
  padding: var(--space-2xs); z-index: 15;
  /* A floating panel is identified by its shadow; the soft border only
     seams the edge, so it does not need the 3:1 interactive-boundary tone. */
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  transform-origin: var(--menu-origin, right) top;
}
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__item {
  display: flex; align-items: center; gap: var(--space-xs);
  inline-size: 100%; padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-s); color: var(--c-text); text-decoration: none;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--c-surface-2); color: var(--c-text); outline-offset: -3px; }
.menu__item[aria-current="true"] { font-weight: 600; }
.menu__item[aria-current="true"]::after { content: "\2713"; margin-inline-start: auto; color: var(--c-accent); }

.hero { padding-block: var(--space-xl); text-align: center; }
.hero h1 { font-size: var(--step-4); }
.hero .cluster { justify-content: center; }
.page-header { --stack-space: var(--space-xs); }
.availability-note { max-inline-size: var(--measure); padding: var(--space-m); border: 1px solid var(--c-border); border-radius: var(--radius-m); background: var(--c-surface); color: var(--c-text-muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: var(--space-s) var(--space-l); min-block-size: 3.25rem;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-text);
  text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--c-surface-2); color: var(--c-text); }
.button--primary { background: var(--c-accent); color: var(--c-accent-text); border-color: transparent; }
.button--primary:hover { background: var(--c-accent-hover); color: var(--c-accent-text); }

/* Long-form content authored in content/<lang>/*.html */
.prose { overflow-wrap: break-word; }
.prose > * + * { margin-block-start: var(--space-m); }
.prose > h2 { margin-block-start: var(--space-xl); }
.prose > h3 { margin-block-start: var(--space-l); }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li + li { margin-block-start: var(--space-2xs); }
/* Placeholder notice on pages whose final copy is still owed: styled as a
   warning so it cannot be mistaken for an ordinary aside and shipped. */
.prose .placeholder { padding: var(--space-s) var(--space-m); border: 1px solid var(--c-danger); border-inline-start-width: 4px; border-radius: var(--radius-s); background: var(--c-danger-bg); color: var(--c-danger); font-weight: 600; }
.faq__more { margin-block-start: var(--space-xl); }

/* Product visual slot. Until real screenshots land (per language, both
   themes) it renders as a labelled placeholder so the rhythm is visible. */
.mockup { margin: 0; aspect-ratio: 9 / 16; margin-inline: auto; inline-size: 100%; max-inline-size: 16rem; border-radius: var(--radius-m); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-border-strong); box-shadow: var(--shadow-2); }
.mockup img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
/* Real screenshots ship in both themes: two images per slot, one shown. */
.mockup img.mockup__dark { display: none; }
:root[data-theme="dark"] .mockup img.mockup__light { display: none; }
:root[data-theme="dark"] .mockup img.mockup__dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mockup img.mockup__light { display: none; }
  :root:not([data-theme="light"]) .mockup img.mockup__dark { display: block; }
}
.mockup--placeholder { display: grid; place-items: center; text-align: center; padding: var(--space-m); color: var(--c-text-muted); border-style: dashed; box-shadow: none; }

/* Claims list: precise privacy statements, term and value side by side. */
/* margin-inline only: a block-start reset here would cancel the prose
   spacing rule (same specificity, later in source) and glue the list to
   its heading. Rows get a little more air than plain text. */
.claims { display: grid; gap: var(--space-xs); margin-inline: 0; }
.prose > .claims { margin-block-start: var(--space-l); }
.claims > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: var(--space-s); padding: var(--space-m); border: 1px solid var(--c-border); border-radius: var(--radius-s); background: var(--c-surface); }
.claims dt { font-weight: 600; }
.claims dd { margin: 0; }
/* Compact rows are verdicts, not links. The accent and link hues are both
   reserved for interactive things, so a verdict is plain text on a shared
   left edge with a green check mark in front, and the rows are a hairline
   list rather than cards (a boxed row with a coloured label reads as a
   button). */
.claims--compact { gap: 0; }
.claims--compact > div { grid-template-columns: minmax(9rem, 1fr) minmax(0, 1.4fr); gap: var(--space-m); align-items: baseline; padding: var(--space-s) 0; border: 0; border-block-end: 1px solid var(--c-border); border-radius: 0; background: none; }
.claims--compact > div:last-child { border-block-end: 0; }
.claims--compact dt { font-weight: 500; }
/* The mark is a box turned 45°: turning does not move its layout box, so
   the drawn tick reaches ~0.24em past it towards the text. 0.8em of gap
   leaves about half an em of visible space. */
.claims--compact dd { display: flex; align-items: baseline; gap: 0.8em; font-weight: 600; }
.claims--compact dd::before { content: ""; flex: none; margin-inline-start: 0.2em; inline-size: 0.45em; block-size: 0.85em; border: solid var(--c-ok); border-width: 0 2.5px 2.5px 0; transform: translateY(-0.05em) rotate(45deg); }
@media (max-width: 30rem) { .claims > div, .claims--compact > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }

/* Soft border: the question text and chevron identify the control, so the
   edge is a seam, not a 3:1 boundary. The padding is on the question, not
   on the card, so the whole closed card is the question's tap target (it
   was the line of text alone); the answer takes the same inset as margin. */
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius-m); background: var(--c-surface); }
.faq details + details { margin-block-start: var(--space-xs); }
/* The seam is soft at rest; hovering the item firms it up so the question
   reads as clickable before the click (the chevron only turns on open). */
/* Halfway to the strong edge, not all of it: a gentle firming, mixed from
   the two tokens so it follows the theme. */
.faq details:hover { border-color: color-mix(in oklab, var(--c-border) 50%, var(--c-border-strong)); }
.faq summary { font-weight: 600; cursor: pointer; padding: var(--space-s) var(--space-m); min-block-size: 2.75rem; border-radius: calc(var(--radius-m) - 1px); }
.faq details > :not(summary) { margin-inline: var(--space-m); }
.faq details > * + * { margin-block-start: var(--space-s); }
.faq details > summary + * { margin-block-start: 0; }
.faq details > :last-child:not(summary) { margin-block-end: var(--space-s); }
/* Open/close animates where the browser can size the answer (::details-content
   with interpolate-size); elsewhere it stays instant, which is the same as
   today. The marker turns with it. */
.faq summary::marker { content: ""; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { display: flex; align-items: baseline; gap: var(--space-s); }
.faq summary::before { content: ""; flex: none; inline-size: 0.5em; block-size: 0.5em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-0.2em) rotate(45deg); transition: transform 220ms ease; }
.faq details[open] > summary::before { transform: translateY(0) rotate(225deg); }
/* overflow: hidden, not clip: hidden makes the box a formatting context so
   the first answer's top margin is inside the animated height (clip leaves
   it outside, and it vanished in one step at the end of a collapse). */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 220ms ease, content-visibility 220ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: reduce) { .faq summary::before, .faq details::details-content { transition: none; } }

.stores { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
/* The row wraps, so at large text the "coming soon" chip moves under the
   store's name instead of past the card's edge. */
.store {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); padding: var(--space-s) var(--space-m);
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-m); background: var(--c-surface);
  color: var(--c-text); text-decoration: none; box-shadow: var(--shadow-1);
}
a.store:hover { border-color: var(--c-accent); color: var(--c-text); }
/* An unpublished store keeps full-contrast text (the chip says why); only
   the icon and border are dimmed, so nothing drops below AA. */
.store[aria-disabled="true"] { border-style: dashed; box-shadow: none; }
.store[aria-disabled="true"] .store__icon { opacity: 0.5; }
.store__icon { flex: none; display: flex; }
.store__text { display: flex; flex-direction: column; line-height: 1.25; }
.store__text small { color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step--1); }
/* Tracking separates the letterforms of a joined script. */
:lang(ar) .store__text small { letter-spacing: normal; text-transform: none; }
.store .chip { margin-inline-start: auto; }
/* site.js moves the visitor's store card to the front of the list (a DOM
   move, so keyboard order follows the visual order). */

.footer { border-block-start: 1px solid var(--c-border); background: var(--c-surface); padding-block: var(--space-2xl) var(--space-l); }
.footer__inner, .footer__bottom { --center-measure: var(--page-measure); padding-inline: var(--page-gutter); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl); }
.footer__inner > * { min-inline-size: 0; overflow-wrap: anywhere; }
.footer__intro { max-inline-size: 21rem; }
.footer__intro p { color: var(--c-text-muted); margin-block-start: var(--space-m); }
.footer .footer__brand { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--step-2); font-weight: 700; color: var(--c-brand); }
.footer__brand img { inline-size: 2.375rem; block-size: 2.375rem; }
.footer__label { font-weight: 600; margin-block-end: var(--space-m); }
.footer li + li { margin-block-start: var(--space-s); }
.footer a { display: inline-block; padding-block: var(--space-2xs); margin-block: calc(-1 * var(--space-2xs)); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); margin-block-start: var(--space-2xl); padding-block-start: var(--space-l); border-block-start: 1px solid var(--c-border); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; min-block-size: 2.75rem; }
.eyebrow { font-size: var(--step--1); font-weight: 600; line-height: 1.5; letter-spacing: 0.09em; text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: normal; }
[dir="rtl"] .icon--direction { transform: scaleX(-1); }
@media (width < 45rem) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__intro { grid-column: 1 / -1; }
}

/* ---------- exceptions ---------- */
/* transform-origin has no logical keywords; mirror it by hand for RTL. */
[dir="rtl"] .menu__panel { --menu-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] > .menu__panel { animation: menu-in 140ms cubic-bezier(0.2, 0, 0, 1); }
  .menu[data-closing] > .menu__panel { animation: menu-out 100ms ease-in forwards; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes menu-out { to { opacity: 0; transform: translateY(-4px) scale(0.98); } }
  @media (scripting: enabled) {
    @container topbar (width < 48rem) {
      .topnav { animation: menu-in 140ms cubic-bezier(0.2, 0, 0, 1); }
    }
  }
  /* Where the engine can interpolate to auto, the panel unfolds like the FAQ
     answers do (same 220 ms ease) instead of fading in at full size, but quicker (a menu should feel
     instant; the FAQ answers are a content reveal). The
     script waits for animationend, so the durations here are free to differ. */
  @supports (interpolate-size: allow-keywords) {
    .menu__panel { interpolate-size: allow-keywords; overflow: hidden; }
    .menu[open] > .menu__panel { animation: menu-unfold 160ms ease; }
    .menu[data-closing] > .menu__panel { animation: menu-fold 120ms ease forwards; }
    @keyframes menu-unfold { from { block-size: 0; padding-block: 0; opacity: 0.4; } to { block-size: auto; padding-block: var(--space-2xs); opacity: 1; } }
    @keyframes menu-fold { to { block-size: 0; padding-block: 0; opacity: 0.4; } }
  }
  /* The theme switch deliberately does NOT cross-fade. It used to, via a
     .theme-transition class on <html> carrying a 220ms transition on every
     element, torn down on a 260ms timer. Measured, that produced the
     opposite of a smooth change:

     - Elements with no colour of their own (a heading, a label) inherit
       it. They animated to the final colour ahead of their parent, then
       snapped BACKWARDS to the parent's in-flight value the moment the
       rule was removed, then eased up again -- two reversals, plainly
       visible.
     - The icons that swap on theme (the globe, the sun and the moon) were
       display:none when the transition began, so they had nothing to
       animate and popped to the final colour while the page around them
       was still fading.
     - color-scheme flips in one frame regardless, so the browser's own
       scrollbars and form controls snapped while the CSS faded anyway.

     Changing everything in one frame is both consistent and flicker-free.
     If a cross-fade is ever wanted again, it cannot be done with a
     universal rule on a timer. */
}

/* One frame with no transitions at all, while the theme swaps. The hover
   transitions elsewhere in this file (links, icon buttons, the switch
   track) are wanted on hover and NOT on a theme change, where they left a
   handful of elements easing for 120-140ms after the rest of the page had
   already changed. Unlike a duration, `none` is safe to add and remove
   around a change: nothing animates, so nothing can be caught mid-flight
   and yanked. Outside the reduced-motion query on purpose -- it removes
   motion, so it applies whatever the reader has asked for. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: none !important;
}

/* Arabic glyphs should resolve before trying the Latin font stack. */
:root:lang(ar) { --font-sans: var(--font-arabic); }
