/*
 * Salaty website – stylesheet source.
 * build.py replaces data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(10,106,84,0.13)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(180,124,32,0.16)' stroke-width='0.6'/%3E%3C/svg%3E / data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(231,183,95,0.10)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(79,216,173,0.08)' stroke-width='0.6'/%3E%3C/svg%3E with inline SVG data URIs,
 * then writes the result to public/assets/site.<hash>.css.
 * Logical properties only (margin-inline, inset-inline …) so Arabic mirrors automatically.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;

  --radius-card: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 72rem;
  --prose: 46rem;

  /* Light – dawn over the mosque courtyard */
  --bg-top: #f7f2e7;
  --bg-mid: #eaf1f1;
  --bg-bottom: #d4ece2;
  --glow-gold: rgba(231, 183, 95, 0.30);
  --glow-emerald: rgba(19, 158, 126, 0.20);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(10,106,84,0.13)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(180,124,32,0.16)' stroke-width='0.6'/%3E%3C/svg%3E");
  --pattern-opacity: 0.9;

  --text: #0b1426;
  --text-muted: #36445a;
  --heading: #08142b;
  --gold: #6b4604;
  --gold-decor: #d49a32;
  --emerald: #0a6a54;
  --emerald-decor: #139e7e;
  --link: #0a6a54;
  --link-hover: #074c3c;

  --glass-bg: rgba(255, 255, 255, 0.60);
  --glass-bg-strong: rgba(255, 255, 255, 0.80);
  --glass-solid: #fbfaf6;
  --glass-border: rgba(11, 20, 38, 0.10);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --glass-rim-soft: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 1px 2px rgba(11, 20, 38, 0.05), 0 18px 48px -18px rgba(11, 20, 38, 0.22);

  --chip-bg: rgba(10, 106, 84, 0.08);
  --chip-border: rgba(10, 106, 84, 0.18);
  --tone-emerald-bg: linear-gradient(145deg, #1bb38f, #0b6e57);
  --tone-gold-bg: linear-gradient(145deg, #f6cf7c, #c98c24);
  --tone-night-bg: linear-gradient(145deg, #27406e, #0e1b33);
  --tone-fg: #ffffff;

  --btn-primary-fg: #1c1203;
  --btn-primary-bg: linear-gradient(180deg, #ffe3a0 0%, #e7b75f 100%);
  --btn-primary-shadow: 0 10px 28px -12px rgba(160, 108, 20, 0.65);

  --title-gradient: linear-gradient(180deg, #9a6512 0%, #6b4300 100%);
  --focus: #0a6a54;
  --focus-halo: rgba(255, 255, 255, 0.9);
  --star-dot: transparent;
  --rule: rgba(11, 20, 38, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark – night sky fading into emerald */
    --bg-top: #030813;
    --bg-mid: #0a1630;
    --bg-bottom: #093a33;
    --glow-gold: rgba(243, 196, 104, 0.16);
    --glow-emerald: rgba(79, 216, 173, 0.16);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(231,183,95,0.10)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(79,216,173,0.08)' stroke-width='0.6'/%3E%3C/svg%3E");
    --pattern-opacity: 1;

    --text: #f3f6fb;
    --text-muted: #c2cbd9;
    --heading: #ffffff;
    --gold: #f3c468;
    --gold-decor: #e7b75f;
    --emerald: #4fd8ad;
    --emerald-decor: #4fd8ad;
    --link: #7ef0c8;
    --link-hover: #b5f7df;

    --glass-bg: rgba(17, 29, 54, 0.52);
    --glass-bg-strong: rgba(17, 29, 54, 0.78);
    --glass-solid: #101b31;
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-rim: rgba(255, 255, 255, 0.30);
    --glass-rim-soft: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.7);

    --chip-bg: rgba(79, 216, 173, 0.08);
    --chip-border: rgba(79, 216, 173, 0.22);
    --tone-emerald-bg: linear-gradient(145deg, #4fd8ad, #139e7e);
    --tone-gold-bg: linear-gradient(145deg, #ffe096, #d49a32);
    --tone-night-bg: linear-gradient(145deg, #3a5a94, #16264a);
    --tone-fg: #06101f;

    --btn-primary-shadow: 0 10px 30px -12px rgba(231, 183, 95, 0.55);
    --title-gradient: linear-gradient(180deg, #fff1c9 0%, #f3c468 55%, #d9a043 100%);
    --focus: #ffe096;
    --focus-halo: rgba(3, 8, 19, 0.9);
    --star-dot: rgba(255, 255, 255, 0.75);
    --rule: rgba(255, 255, 255, 0.10);
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--text);
    --glass-bg: var(--glass-solid);
    --glass-bg-strong: var(--glass-solid);
    --glass-border: currentColor;
    --pattern-opacity: 0.35;
  }
}

/* ---------- Language blocks (root pages carry all three languages) ---------- */

html[data-lang="de"] [data-l]:not([data-l="de"]),
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="ar"] [data-l]:not([data-l="ar"]) {
  display: none !important;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-mid);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Arabic is a cursive script: never letter-space it */
:lang(ar) {
  font-family: var(--font-arabic);
  letter-spacing: normal;
}

[lang="ar"] p,
[lang="ar"] li,
[lang="ar"] dd,
[lang="ar"] summary {
  line-height: 1.85;
}

/* Sky gradient + glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  height: 100vh;
  height: 100lvh;
  background:
    radial-gradient(60rem 36rem at 50% -12%, var(--glow-gold), transparent 62%),
    radial-gradient(48rem 40rem at 100% 110%, var(--glow-emerald), transparent 60%),
    radial-gradient(40rem 32rem at -10% 70%, var(--glow-emerald), transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  pointer-events: none;
}

/* 8-point star lattice, fading out towards the bottom */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  height: 100vh;
  height: 100lvh;
  background-image: var(--pattern);
  background-size: 56px 56px;
  background-position: center top;
  opacity: var(--pattern-opacity);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-family: var(--font-rounded);
  line-height: 1.15;
  margin-block: 0 0.6em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Long German compounds must never overflow narrow screens */
:lang(de) h1,
:lang(de) h2,
:lang(de) h3 {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) h4 {
  font-family: var(--font-arabic);
  line-height: 1.4;
  letter-spacing: normal !important;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl {
  margin-block: 0 1em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

strong {
  font-weight: 650;
  color: var(--heading);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}

::selection {
  background: rgba(231, 183, 95, 0.45);
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* viewport-fit=cover: keep content clear of the notch / Dynamic Island in landscape.
     Physical properties on purpose – safe areas don't flip with text direction. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* Directional glyphs (arrows) flip in RTL */
[dir="rtl"] .icon-flip {
  transform: scaleX(-1);
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 var(--glass-rim-soft), var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}

/* Specular rim, like Liquid Glass edges catching light */
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--glass-rim) 0%, transparent 32%, transparent 68%, var(--glass-rim-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-solid);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: var(--btn-primary-fg);
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-rounded);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

:lang(ar) .btn {
  font-family: var(--font-arabic);
}

.btn-primary {
  color: var(--btn-primary-fg);
  background: var(--btn-primary-bg);
  border-color: rgba(120, 78, 8, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), var(--btn-primary-shadow);
}

.btn-primary:hover {
  color: var(--btn-primary-fg);
  filter: brightness(1.04) saturate(1.05);
}

.btn-glass {
  color: var(--heading);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-rim-soft), var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.btn-glass:hover {
  color: var(--heading);
  border-color: var(--chip-border);
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:active {
    transform: translateY(0) scale(0.98);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--glass-bg-strong);
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.pill .icon {
  color: var(--gold);
}

.kicker {
  margin-block-end: 0.5rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(ar) .kicker {
  font-size: 0.9375rem;
  letter-spacing: normal;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  padding-block: 0.9rem;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav lang";
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  text-decoration: none;
  font-family: var(--font-rounded);
  font-weight: 750;
  font-size: 1.125rem;
  border-radius: 14px;
}

.brand:hover {
  color: var(--heading);
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--glass-border), 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}

.brand-ar {
  font-family: var(--font-arabic);
  font-weight: 700;
  color: var(--gold);
}

.site-nav {
  grid-area: nav;
  justify-self: end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--chip-bg);
  color: var(--heading);
}

.nav-list a[aria-current="page"] {
  background: var(--glass-bg-strong);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* Language menu (details/summary – works without JavaScript) */
.lang-nav {
  grid-area: lang;
  justify-self: end;
}

.lang-menu {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  user-select: none;
}

.lang-button::-webkit-details-marker {
  display: none;
}

.lang-button::marker {
  content: "";
}

.lang-button .chevron {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
  .lang-button .chevron {
    transition: transform 0.2s ease;
  }
}

.lang-menu[open] .chevron {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
}

.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.lang-list a:hover {
  background: var(--chip-bg);
}

.lang-list a[aria-current="true"]::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--emerald-decor);
  box-shadow: 0 0 0 3px var(--chip-bg);
}

@media (max-width: 40rem) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
  }

  .site-nav {
    justify-self: stretch;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .nav-list a {
    padding-inline: 0.8rem;
  }
}

/* ---------- Main ---------- */

main {
  flex: 1 0 auto;
  outline: none;
}

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.section-head {
  max-width: 44rem;
  margin-block-end: clamp(1.75rem, 1rem + 2vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(2rem, 1rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  text-align: center;
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(9rem, 7rem + 8vw, 12rem);
  aspect-ratio: 1;
  max-width: 100%;
  margin-inline: auto;
  margin-block-end: 1.75rem;
}

.hero-star {
  position: absolute;
  inset: -38%;
  width: 176%;
  height: 176%;
  max-width: none;
  color: var(--gold-decor);
  opacity: 0.35;
  stroke-width: 0.35;
}

.hero-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 216, 173, 0.45), rgba(231, 183, 95, 0.18) 50%, transparent 72%);
  filter: blur(18px);
}

.app-icon {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 22.37%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 24px 50px -18px rgba(0, 0, 0, 0.55),
    0 0 60px -10px rgba(79, 216, 173, 0.35);
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--star-dot), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, var(--star-dot), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 12%, var(--star-dot), transparent 60%),
    radial-gradient(1px 1px at 48% 40%, var(--star-dot), transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 18%, var(--star-dot), transparent 60%),
    radial-gradient(1px 1px at 74% 60%, var(--star-dot), transparent 60%),
    radial-gradient(2px 2px at 86% 28%, var(--star-dot), transparent 60%),
    radial-gradient(1px 1px at 92% 74%, var(--star-dot), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, var(--star-dot), transparent 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-star {
    animation: spin 120s linear infinite;
  }

  .hero-stars {
    animation: twinkle 7s ease-in-out infinite alternate;
  }

  .app-icon {
    animation: float 9s ease-in-out infinite;
  }

  .reveal {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .reveal-2 {
    animation-delay: 0.08s;
  }

  .reveal-3 {
    animation-delay: 0.16s;
  }

  .reveal-4 {
    animation-delay: 0.24s;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero .pill {
  margin-block-end: 1.25rem;
}

.hero-title {
  margin-block-end: 0.35em;
}

.hero-title .name-ar,
.title-ar {
  font-family: var(--font-arabic);
  font-weight: 700;
  color: var(--gold);
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-block: 0.1em;
}

@media (forced-colors: active) {
  .hero-title .name-ar,
  .title-ar {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.hero-title .sep {
  color: var(--gold-decor);
  font-weight: 400;
}

.hero-tagline {
  max-width: 38rem;
  margin-inline: auto;
  margin-block-end: 0.9rem;
  color: var(--heading);
  font-family: var(--font-rounded);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

:lang(ar) .hero-tagline {
  font-family: var(--font-arabic);
  line-height: 1.6;
}

.hero-lead {
  max-width: 40rem;
  margin-inline: auto;
  margin-block-end: 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-block-end: 2.75rem;
}

.hero-actions.start {
  justify-content: flex-start;
  margin-block: 1.5rem 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.1rem 0.5rem;
}

.facts li + li {
  border-inline-start: 1px solid var(--rule);
}

.fact-value {
  color: var(--heading);
  font-family: var(--font-rounded);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact-label {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .feature.wide {
    grid-column: span 2;
  }
}

@media (min-width: 60rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature.wide-lg {
    grid-column: span 2;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
}

.feature h3 {
  margin-block: 1.1rem 0.45rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 15px;
  color: var(--tone-fg);
  background: var(--tone-emerald-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.9;
}

.tone-gold {
  background: var(--tone-gold-bg);
  color: #1c1203;
}

.tone-night {
  background: var(--tone-night-bg);
  color: #ffffff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.chips .icon {
  width: 1em;
  height: 1em;
  color: var(--emerald);
}

.feature .text-link {
  margin-block-start: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Methods ---------- */

.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.split p {
  color: var(--text-muted);
}

.method-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

@media (min-width: 36rem) {
  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.method-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  counter-increment: method;
}

.method-list li::before {
  content: counter(method);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--tone-gold-bg);
  color: #1c1203;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.checks {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-inline-start: 1.9rem;
  margin-block-end: 0.55rem;
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat,
    var(--tone-emerald-bg);
}

@media (prefers-color-scheme: dark) {
  .checks li::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2306101f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat,
      var(--tone-emerald-bg);
  }
}

/* ---------- CTA band ---------- */

.cta {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 3vw, 3.5rem);
  text-align: center;
  overflow: hidden;
}

.cta > * {
  position: relative;
}

.cta p {
  max-width: 38rem;
  color: var(--text-muted);
}

.cta .hero-actions {
  margin-block: 0.75rem 0;
}

.cta-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-block-end: 0.75rem;
  color: var(--gold-decor);
  stroke-width: 1.2;
}

/* ---------- Content pages (privacy / support / 404) ---------- */

.page-hero {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.8vw, 3.5rem);
}

.page-hero .lead {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.meta-line .icon {
  color: var(--gold);
}

.doc-layout {
  display: grid;
  gap: 1.5rem;
  padding-block-end: clamp(3rem, 2rem + 4vw, 6rem);
}

@media (min-width: 64rem) {
  .doc-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }

  .toc {
    position: sticky;
    inset-block-start: 1.5rem;
  }
}

.toc {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-md);
}

.toc h2 {
  margin-block-end: 0.6rem;
  padding-inline: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

:lang(ar) .toc h2 {
  font-size: 0.9375rem;
  letter-spacing: normal;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc);
  flex: none;
  min-width: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  background: var(--chip-bg);
  color: var(--heading);
}

.prose {
  max-width: var(--prose);
  padding: clamp(1.35rem, 1rem + 2.5vw, 3rem);
  min-width: 0;
}

.prose > section + section {
  margin-block-start: 2.5rem;
  padding-block-start: 2.5rem;
  border-block-start: 1px solid var(--rule);
}

.prose h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  scroll-margin-block-start: 1.5rem;
}

.prose h3 {
  margin-block-start: 1.75rem;
  font-size: 1.125rem;
  scroll-margin-block-start: 1.5rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.prose li {
  margin-block-end: 0.4rem;
}

.prose li::marker {
  color: var(--emerald-decor);
}

.prose address {
  font-style: normal;
}

.summary-card {
  margin-block-end: 2.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
}

.summary-card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.125rem;
  margin-block-end: 0.5rem;
}

.summary-card h2 .icon {
  color: var(--emerald);
}

.summary-card p:last-child,
.summary-card ul:last-child {
  margin-block-end: 0;
}

.legal-basis {
  padding-inline-start: 0.9rem;
  border-inline-start: 3px solid var(--gold-decor);
  color: var(--text-muted) !important;
  font-size: 0.9688rem;
}

.contact-block {
  display: inline-grid;
  gap: 0.15rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
}

/* Placeholder until src/legal.json is filled in (the Dockerfile refuses to deploy it) */
.contact-block .missing {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #fde68a;
  color: #1c1203;
  font-weight: 700;
}

/* Art. 21 GDPR: the right to object is presented separately from other information */
.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--chip-border);
  border-inline-start: 4px solid var(--emerald);
  background: var(--chip-bg);
}

.prose .notice h3 {
  margin-block: 0 0.4rem;
}

.notice p:last-child {
  margin-block-end: 0;
}

.doc-single {
  padding-block-end: clamp(3rem, 2rem + 4vw, 6rem);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Support ---------- */

.support-grid {
  display: grid;
  gap: 1.5rem;
  padding-block-end: clamp(3rem, 2rem + 4vw, 6rem);
}

@media (min-width: 64rem) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
    gap: 2rem;
  }

}

/* Sticky only when the whole card fits next to the FAQ */
@media (min-width: 64rem) and (min-height: 50rem) {
  .contact-card {
    position: sticky;
    inset-block-start: 1.5rem;
  }
}

.faq-title {
  margin-block-end: 1rem;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq {
  border-radius: var(--radius-md);
  scroll-margin-block-start: 1.5rem;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

/* The question is a span, not a heading: <summary> exposes its children as presentational */
.faq-q {
  flex: 1;
  margin: 0;
  color: var(--heading);
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

:lang(ar) .faq-q {
  font-family: var(--font-arabic);
  line-height: 1.7;
  letter-spacing: normal;
}

.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  background: var(--tone-emerald-bg);
  color: var(--tone-fg);
}

.faq-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.faq .plus {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .faq .plus {
    transition: transform 0.25s ease;
  }
}

.faq[open] .plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 1.25rem 1.25rem;
  padding-inline-start: calc(1.25rem + 2.25rem + 0.9rem);
}

@media (max-width: 30rem) {
  .faq-body {
    padding-inline-start: 1.25rem;
  }
}

.faq-body p,
.faq-body li {
  color: var(--text-muted);
}

.faq-body ol,
.faq-body ul {
  padding-inline-start: 1.25rem;
}

.faq-body li {
  margin-block-end: 0.4rem;
}

.faq-body li::marker {
  color: var(--emerald);
  font-weight: 700;
}

.faq-body > :last-child {
  margin-block-end: 0;
}

.path {
  display: inline;
  padding: 0.05em 0.4em;
  border-radius: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--heading);
  font-weight: 600;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.contact-card {
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
}

.contact-card .feature-icon {
  margin-block-end: 1rem;
}

.contact-card h2 {
  font-size: 1.5rem;
}

.contact-card p,
.contact-card li {
  color: var(--text-muted);
  font-size: 0.9688rem;
}

.contact-card .btn {
  width: 100%;
  margin-block: 0.5rem 0.75rem;
}

.mail-plain {
  text-align: center;
  font-weight: 600;
  word-break: break-all;
}

.fineprint {
  font-size: 0.875rem !important;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  text-align: center;
}

.not-found .code {
  margin-block-end: 0.5rem;
  font-family: var(--font-rounded);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.not-found p {
  max-width: 34rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-block-start: auto;
  padding-block: 2.5rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--rule);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04));
  font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  }
}

.footer-grid {
  display: grid;
  gap: 1.25rem 2rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--glass-border);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  background: var(--chip-bg);
  color: var(--heading);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-block-start: 1.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Arabic UI text & focus (late so they win over component rules) ---------- */

:lang(ar) .method-list li,
:lang(ar) .toc a,
:lang(ar) .chips li,
:lang(ar) .fact-label {
  line-height: 1.7;
}

:lang(ar) .btn {
  line-height: 1.5;
}

.btn:focus-visible,
.nav-list a:focus-visible {
  box-shadow: 0 0 0 6px var(--focus-halo);
}

/* ---------- Print ---------- */

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .hero-actions {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  .glass {
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .glass::before {
    display: none;
  }

  .faq-body {
    display: block;
  }
}

/* ---------- Landing (demo, store pills, methods, languages, FAQ teaser) ---------- */

.store-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.store-pills .pill .icon {
  color: var(--emerald);
}

.hero-tagline + .store-pills {
  margin-block-start: 1.25rem;
}

@media (min-width: 40rem) {
  .feature-grid.feature-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid-2 .feature.wide {
    grid-column: 1 / -1;
  }
}

.methods-details {
  margin-block-start: 1.1rem;
}

.methods-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--heading);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.methods-details > summary::-webkit-details-marker {
  display: none;
}

.methods-details > summary .chevron {
  width: 1em;
  height: 1em;
}

@media (prefers-reduced-motion: no-preference) {
  .methods-details > summary .chevron {
    transition: transform 0.2s ease;
  }
}

.methods-details[open] > summary .chevron {
  transform: rotate(180deg);
}

.methods-details .method-list {
  margin-block-start: 0.9rem;
}

@media (min-width: 40rem) {
  .feature .method-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 72rem) {
  .feature .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-tight {
  padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.languages {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
}

@media (min-width: 48rem) {
  .languages {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.languages h2 {
  margin-block-end: 0.25rem;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}

.languages p {
  margin: 0;
  color: var(--text-muted);
}

.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-chips li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--glass-bg-strong);
  color: var(--heading);
  font-weight: 650;
}

.faq-teaser {
  max-width: calc(52rem + 2 * var(--gutter));
}

.faq-teaser .faq-body a {
  font-weight: 650;
  white-space: nowrap;
}

.faq-more {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}

.footer-credits {
  flex-basis: 100%;
}

.footer-credits a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.footer-credits a:hover {
  color: var(--heading);
}

.sprite{position:absolute;width:0;height:0;overflow:hidden}
