/* Money Luster — mobile-first, RTL-aware (logical properties), no external assets.
   Brand: primary #4169E1 · secondary #739AEA · dark #00247F · light #BDD8FF · accent #F8D146 · black #000000
   Theme tokens below are checked for WCAG AA contrast by `npm run check` (pairs listed in scripts/check.mjs).
   Keep every colour token on one line as `--name: #hex;` so the checker can read it. */

/* ---------- fonts (self-hosted, SIL OFL — see /fonts/OFL-*.txt) ----------
   Latin: Saira, substitute for the brand's Arian LT (commercial, not licensed for the web here).
   Arabic: Almarai (المراعي). unicode-range keeps each file for its own script. */
@font-face {
  font-family: "ML Saira"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/saira-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-205F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ML Almarai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/almarai-arabic-regular.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "ML Almarai"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/almarai-arabic-bold.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "ML Almarai"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/almarai-arabic-extrabold.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- theme tokens: light ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #eef4ff;
  --text: #0b1638;
  --heading: #00247f;
  --muted: #3f4c70;
  --border: #cfdcf5;
  --link: #2a4fcb;
  --focus: #4169e1;
  --primary: #4169e1;
  --on-primary: #ffffff;
  --accent: #f8d146;
  --on-accent: #000000;
  --ico-bg: #e3edff;
  --ico: #2a4fcb;
  --hero-bg-1: #00247f;
  --hero-bg-2: #0d3291;
  --hero-text: #ffffff;
  --hero-muted: #dce8ff;
  --footer-bg: #00247f;
  --footer-text: #ffffff;
  --footer-muted: #bdd8ff;
  --warn-bg: #fff6d6;
  --warn-border: #b8952a;
  --ok: #1d7a46;
  --danger: #b42318;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 36, 127, .06), 0 8px 24px rgba(0, 36, 127, .07);
  --font: "ML Saira", "ML Almarai", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  color-scheme: light dark;
}
/* ---------- theme tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000b2e;
    --surface: #04194f;
    --tint: #021340;
    --text: #f3f7ff;
    --heading: #ffffff;
    --muted: #bdd8ff;
    --border: #22408f;
    --link: #bdd8ff;
    --focus: #f8d146;
    --primary: #4169e1;
    --on-primary: #ffffff;
    --accent: #f8d146;
    --on-accent: #000000;
    --ico-bg: #0b2a77;
    --ico: #f8d146;
    --hero-bg-1: #00134a;
    --hero-bg-2: #00247f;
    --hero-text: #ffffff;
    --hero-muted: #dce8ff;
    --footer-bg: #00071d;
    --footer-text: #ffffff;
    --footer-muted: #bdd8ff;
    --warn-bg: #2b250c;
    --warn-border: #a88a2b;
    --ok: #6fdc9c;
    --danger: #ff9a8f;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--heading); font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { width: 1.4em; height: 1.4em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 8px; top: -80px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: .5em 1em; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.logo-gem { height: 38px; width: auto; display: block; }
.logo-type { height: 17px; width: auto; display: block; }
.lang-switch {
  color: var(--heading); text-decoration: none; font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--border); border-radius: 999px; padding: .25em 1em; min-height: 44px; display: inline-flex; align-items: center;
}
.lang-switch:hover { border-color: var(--primary); }
.main-nav { order: 3; flex: 1 0 100%; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6em; border-radius: 999px;
  color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 600;
}
.main-nav a:hover { background: var(--tint); }
.main-nav a[aria-current="page"] { background: var(--tint); color: var(--heading); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px; }
@media (min-width: 820px) {
  .header-row { flex-wrap: nowrap; padding-block: 10px; }
  .main-nav { order: 0; flex: 1 1 auto; margin-inline: 28px 0; }
  .main-nav a { padding: 0 .85em; }
  .main-nav ul { padding: 0; }
  .logo-gem { height: 42px; }
  .logo-type { height: 19px; }
}

/* ---------- crystal pattern (decorative only — never behind body text) ---------- */
.crystal-divider {
  height: 10px;
  background: url("/brand/pattern.svg") center / 520px auto repeat-x;
  opacity: .4;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .6em 1.4em; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn .ico { width: 1.25em; height: 1.25em; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { box-shadow: 0 6px 18px rgba(248, 209, 70, .35); transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(65, 105, 225, .35); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--hero-text); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; min-height: 44px; }
.link-arrow .ico { width: 1.1em; height: 1.1em; }
[dir="rtl"] .link-arrow .ico { transform: scaleX(-1); }

/* ---------- hero ---------- */
.hero {
  color: var(--hero-text);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(115, 154, 234, .28), transparent 60%),
    linear-gradient(160deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  padding-block: 28px 56px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-art {
  order: -1; position: relative; height: 150px; border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(rgba(0, 36, 127, .5), rgba(0, 36, 127, .5)),
    url("/brand/pattern.svg") center / cover;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(189, 216, 255, .25);
}
.hero-gem { height: 110px; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.hero-text { text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--accent); font-size: .95rem;
  border: 1px solid rgba(248, 209, 70, .5); border-radius: 999px; padding: .15em .95em; margin-bottom: 1em;
}
.kicker .ico { width: 1em; height: 1em; }
.hero h1 { color: var(--hero-text); font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: .4em; }
.hero-lead { color: var(--hero-muted); font-size: 1.1rem; max-width: 640px; margin-inline: auto; margin-bottom: 1.6em; }
.hero .btn-row { justify-content: center; }
@media (min-width: 860px) {
  .hero { padding-block: 80px 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .hero-art { order: 0; height: 380px; }
  .hero-gem { height: 230px; }
  .hero-text { text-align: start; }
  .hero-lead { margin-inline: 0; }
  .hero .btn-row { justify-content: flex-start; }
}

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(160deg, var(--hero-bg-1), var(--hero-bg-2)); color: var(--hero-text); }
.section--dark .section-title { color: var(--hero-text); }
.section--dark .section-lead { color: var(--hero-muted); }
.section-title { font-size: clamp(1.55rem, 4.6vw, 2.2rem); text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 700px; margin-inline: auto; margin-bottom: 2em; }
.about-intro .section-lead { margin-bottom: .6em; font-size: 1.08rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.areas, .features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.area { display: flex; flex-direction: column; border-top: 4px solid var(--primary); }
.area:nth-child(2) { border-top-color: var(--accent); }
.area:nth-child(3) { border-top-color: #739aea; }
.area h3 { font-size: 1.4rem; margin-bottom: .15em; }
.area p { color: var(--muted); }
.area .link-arrow { margin-top: auto; }
.area-lead { font-weight: 700; color: var(--text) !important; margin-bottom: .5em; }
.area-ico, .feature > .ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 11px; border-radius: 14px;
  background: var(--ico-bg); color: var(--ico); margin-bottom: 14px;
}
.area-ico .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

.download { display: grid; gap: 32px; text-align: center; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: .6em; min-width: 190px; min-height: 58px;
  padding: .45em 1.1em; border-radius: 12px; background: #000000; color: #ffffff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
}
.store-badge .ico { width: 1.7em; height: 1.7em; }
.badge-text { display: grid; line-height: 1.2; text-align: start; }
.badge-text small { font-size: .78rem; color: #e6ecf8; }
.badge-text > span { font-size: 1.15rem; font-weight: 700; }
.store-badge.is-soon { border-style: dashed; }
.store-badge.is-soon small { color: var(--accent); font-weight: 700; }
.shots { margin: 0; }
.shots-row { display: flex; justify-content: center; gap: 14px; }
.phone {
  width: 31%; max-width: 150px; aspect-ratio: 9 / 19; border-radius: 22px; position: relative;
  border: 3px solid rgba(189, 216, 255, .45);
  background: linear-gradient(170deg, rgba(65, 105, 225, .45), rgba(0, 20, 74, .65));
  display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px;
}
.phone::before { content: ""; position: absolute; top: 8px; width: 34%; height: 6px; border-radius: 6px; background: rgba(189, 216, 255, .45); }
.phone img { width: 38%; height: auto; opacity: .75; }
.phone span { font-size: .85rem; font-weight: 700; color: var(--hero-text); }
.phone:nth-child(2) { transform: translateY(-14px); }
.shots figcaption { margin-top: 14px; color: var(--hero-muted); font-size: .95rem; }

.cta-box { display: grid; gap: 18px; text-align: center; justify-items: center; padding: 28px; }
.cta-box h2 { font-size: 1.5rem; }
.cta-box p { color: var(--muted); margin: 0; }
.cta-box .btn-row { justify-content: center; }

@media (min-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 80px; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
  .download { grid-template-columns: 1fr 1.1fr; align-items: center; text-align: start; }
  .download .section-title, .download .section-lead { text-align: start; margin-inline: 0; }
  .badges { justify-content: flex-start; }
  .cta-box { grid-template-columns: 1fr auto; text-align: start; justify-items: start; }
}

/* ---------- inner pages ---------- */
.page-head {
  position: relative; overflow: hidden; color: var(--hero-text); padding-block: 40px 44px;
  background: linear-gradient(160deg, var(--hero-bg-1), var(--hero-bg-2));
}
/* pattern sits in the far corner, outside the text column */
.page-head::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: min(26vw, 280px);
  background: url("/brand/pattern.svg") center / cover; opacity: .35;
  -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent);
}
[dir="rtl"] .page-head::after { -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--hero-text); font-size: clamp(1.75rem, 5.4vw, 2.6rem); margin: 0; max-width: calc(100% - min(26vw, 280px)); }
.page-lead { color: var(--hero-muted); margin: .6em 0 0; max-width: min(720px, calc(100% - min(26vw, 280px))); }
@media (max-width: 599px) {
  .page-head::after { width: 100%; height: 10px; inset-block: auto 0; opacity: .6; -webkit-mask-image: none; mask-image: none; background-size: 520px auto; background-repeat: repeat-x; }
  .page-head h1, .page-lead { max-width: none; }
}
.page-body { padding-block: 32px 56px; }
.page-body h2 { font-size: 1.4rem; margin-top: 1.4em; }
.page-body > section:first-child h2, .page-body > .card:first-child h2 { margin-top: 0; }
.prose-wrap { max-width: 820px; padding-block: 32px 56px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: .6em 1em; border-inline-start: 4px solid var(--primary); background: var(--tint); border-radius: 8px; }
.prose code { background: var(--tint); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5em .7em; text-align: start; vertical-align: top; }
.prose th { background: var(--tint); color: var(--heading); }
.toc { background: var(--tint); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.toc h2 { font-size: 1rem; margin-bottom: .4em; }
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 18px 20px; margin-block: 0 20px; }
.notice > .ico { margin-top: .2em; color: var(--ico); }
.notice h2, .notice strong { font-size: 1.1rem; display: block; margin: 0 0 .25em; }
.notice p { margin: 0 0 .4em; }
.notice p:last-child { margin: 0; }
.notice--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.notice--info { background: var(--tint); border: 1px solid var(--border); }
mark.ph { background: var(--warn-bg); color: inherit; border: 1px dashed var(--warn-border); border-radius: 5px; padding: 0 .3em; }
.fineprint { font-size: .9rem; color: var(--muted); }

/* courses */
.course-list { display: grid; gap: 18px; margin-bottom: 28px; }
.course { scroll-margin-top: 16px; }
.course-head { display: flex; gap: 14px; align-items: flex-start; }
.course-head h2 { margin: 0; font-size: 1.5rem; }
.course h3 { font-size: 1.05rem; margin-top: 1em; }
.course > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45em; }
.ticks li { display: flex; gap: .55em; align-items: flex-start; }
.ticks .ico { color: var(--ok); width: 1.2em; height: 1.2em; margin-top: .3em; }
@media (min-width: 900px) { .course-list { grid-template-columns: repeat(3, 1fr); } }

/* about */
.principles { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.principles li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; }
.principles .ico { color: var(--ok); margin-top: .25em; }
.principles h3 { font-size: 1.1rem; margin-bottom: .2em; }
.principles p { margin: 0; color: var(--muted); }
.operator { margin-top: 28px; border-inline-start: 4px solid var(--accent); }
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; } }

/* support */
.contact-cards { list-style: none; padding: 0; display: grid; gap: 14px; margin: 0 0 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); height: 100%; }
.contact-card:hover { border-color: var(--primary); }
.contact-card > .ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--ico-bg); color: var(--ico); }
.contact-card > span { display: grid; min-width: 0; }
.contact-card strong { font-size: 1.1rem; color: var(--heading); }
.contact-addr { color: var(--link); font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.contact-sub { color: var(--muted); font-size: .92rem; }
.faq { margin-block: 40px 40px; max-width: 820px; margin-inline: auto; }
.faq details { margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; min-height: 48px; list-style-position: inside; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.prose--support { max-width: 820px; margin: 24px auto 32px; }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* delete account */
.page-intro { font-size: 1.1rem; margin-bottom: 20px; }
.del-summary { margin-bottom: 28px; border-inline-start: 4px solid var(--accent); }
.del-summary h2 { margin-top: 0; font-size: 1.25rem; }
.del-step { margin-bottom: 18px; }
.del-step h2 { font-size: 1.25rem; margin-top: 0; }
.num-list { margin: 0 0 1em; padding-inline-start: 1.4em; }
.num-list li { margin-bottom: .3em; }
.mail-request { display: grid; gap: 10px; justify-items: start; margin: 1em 0 1.4em; background: var(--tint); box-shadow: none; }
.hint { font-size: .92rem; color: var(--muted); margin: 0; }

/* verify */
.verify-form { display: grid; gap: 16px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--heading); }
.field input {
  font: inherit; color: var(--text); background: var(--bg); width: 100%;
  border: 2px solid var(--border); border-radius: 10px; padding: .6em .8em; min-height: 48px;
}
.field input:focus { border-color: var(--primary); outline: 3px solid var(--focus); outline-offset: 2px; }
.verify-form .btn { justify-self: start; }
.verify-result:empty { display: none; }
.verify-result { margin-bottom: 20px; }
.verify-box { border: 1px solid var(--border); background: var(--tint); }
.verify-box--ok { border: 2px solid var(--ok); }
.verify-box--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.verify-box h2 { font-size: 1.25rem; }
.verify-data { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 .8em; }
.verify-data dt { font-weight: 700; color: var(--muted); }
.verify-data dd { margin: 0; }
.verify-id code { background: var(--surface); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }

/* 404 + redirects */
.not-found { text-align: center; padding-block: 56px; max-width: 640px; }
.nf-gem { height: 96px; width: auto; }
.nf-code { font-size: clamp(3.5rem, 16vw, 6rem); font-weight: 800; line-height: 1; margin: .1em 0 .2em; color: var(--primary); }
.nf-en { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.nf-en h2 { font-size: 1.3rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); font-size: .95rem; }
.site-footer .crystal-divider { opacity: .7; }
.site-footer a { color: var(--footer-text); }
.footer-grid { display: grid; gap: 28px; padding-top: 36px; }
.footer-brand .logo-gem { height: 44px; }
.footer-brand .logo-type { height: 20px; }
.footer-brand p { margin: .4em 0 0; }
.footer-tagline { color: var(--accent); font-weight: 700; }
.footer-h { color: var(--footer-text); font-size: 1rem; margin-bottom: .5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(189, 216, 255, .2); margin-top: 28px; padding-block: 18px 26px; font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom p { margin: 0; }
.footer-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(189, 216, 255, .5); border-radius: 999px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .crystal-divider, .page-head::after { display: none; }
  .card, .store-badge, .btn { border: 1px solid CanvasText; }
}
