/* =========================================================================
   سكينة | Sakina — website stylesheet
   Static, dependency-free. Palette from SAKINA_SPEC.md §6.1.
   Fonts are bundled locally (SIL Open Font License, see assets/fonts/).
   ========================================================================= */

/* ---------- Fonts (local only, no CDN) ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --primary: #0E5E4E;
  --primary-strong: #0A4A3E;
  --primary-container: #D6EDE6;
  --on-primary-container: #0A3F35;
  --gold: #C9A24D;
  --gold-text: #7E5F1A;      /* gold for text on light surfaces (AA) */
  --bg: #FBF8F1;             /* soft paper */
  --surface: #FFFFFF;
  --surface-2: #F4F0E6;
  --text: #1C2321;
  --muted: #4B5753;
  --link: #0E5E4E;
  --border: rgba(14, 94, 78, 0.16);
  --shadow: 0 1px 2px rgba(28, 35, 33, 0.05), 0 8px 24px rgba(14, 94, 78, 0.08);
  --focus: #C9A24D;
  --hero-from: #0E5E4E;
  --hero-to: #073A30;
  --pattern-opacity: 0.07;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --maxw: 1120px;
  --readw: 760px;

  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  --font-display: "Amiri", "IBM Plex Sans Arabic", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #0E5E4E;
    --primary-strong: #0E5E4E;
    --primary-container: #17332C;
    --on-primary-container: #CFE9E0;
    --gold: #C9A24D;
    --gold-text: #DDBD6E;
    --bg: #0B1412;
    --surface: #13201D;
    --surface-2: #182824;
    --text: #E9EFEC;
    --muted: #A8B7B2;
    --link: #82D5BF;
    --border: rgba(214, 237, 230, 0.12);
    --shadow: none;
    --hero-from: #0E5E4E;
    --hero-to: #06241E;
    --pattern-opacity: 0.06;
  }
}
:root[data-theme="dark"] {
  --primary: #0E5E4E;
  --primary-strong: #0E5E4E;
  --primary-container: #17332C;
  --on-primary-container: #CFE9E0;
  --gold-text: #DDBD6E;
  --bg: #0B1412;
  --surface: #13201D;
  --surface-2: #182824;
  --text: #E9EFEC;
  --muted: #A8B7B2;
  --link: #82D5BF;
  --border: rgba(214, 237, 230, 0.12);
  --shadow: none;
  --hero-from: #0E5E4E;
  --hero-to: #06241E;
  --pattern-opacity: 0.06;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="en"] { line-height: 1.65; }

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

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--text);
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

ul, ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
li { margin-block: 0.3em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

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

/* ---------- Bilingual behaviour ----------
   Without JS: both languages are shown stacked.
   With JS (lang.js): <html> gets .js + .show-ar / .show-en. */
html.show-ar .l-en,
html.show-en .l-ar { display: none !important; }

/* No-JS: separate stacked language blocks visually */
html:not(.js) section.l-en,
html:not(.js) article.l-en,
html:not(.js) div.l-en {
  border-top: 1px dashed var(--border);
}
html:not(.js) .i.l-en::before {
  content: "·";
  margin-inline: 0.4em;
  opacity: 0.6;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header { background: var(--bg); }
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  margin-inline-end: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}
.brand-ar {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--primary);
}
.brand-sep { color: var(--gold); margin-inline: 6px; }
.brand-en { font-size: 1.05rem; letter-spacing: 0.02em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-ar { color: var(--gold-text); }
}
:root[data-theme="dark"] .brand-ar { color: var(--gold-text); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { background: var(--primary-container); color: var(--on-primary-container); }
.site-nav a[aria-current="page"] {
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle svg { width: 18px; height: 18px; flex: none; }
.lang-toggle[hidden] { display: none; }

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding-inline: 10px; font-size: 0.93rem; }
}

/* ---------- Geometric pattern (8-point star / girih), drawn here ---------- */
.pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C9A24D' stroke-width='1.6'%3E%3Crect x='26' y='26' width='44' height='44'/%3E%3Crect x='26' y='26' width='44' height='44' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 0L26 26M96 0L70 26M0 96L26 70M96 96L70 70'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.on-dark .pattern { opacity: 0.12; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 77, 0.16), transparent 60%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 112px);
  text-align: center;
}
.hero .pattern { z-index: -1; }
.hero-star {
  position: absolute;
  z-index: -1;
  width: min(720px, 120vw);
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.09;
  color: var(--gold);
}
[dir="rtl"] .hero-star { transform: translate(50%, -50%); }

.hero-icon {
  width: clamp(104px, 18vw, 148px);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 162, 77, 0.35);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 18px;
}
.hero h1 .name-ar {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 2rem + 6vw, 5.4rem);
  line-height: 1.15;
  color: #F1DDA6;
}
.hero h1 .name-sep { color: var(--gold); font-size: 2rem; }
.hero h1 .name-en {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  letter-spacing: 0.02em;
}
.hero .tagline {
  max-width: 40rem;
  margin: 8px auto 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: #E2F1EC;
}
.hero .tagline strong { color: #fff; font-weight: 600; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 22px auto 0;
}
.hero-points li {
  margin: 0;
  padding: 4px 14px;
  border: 1px solid rgba(241, 221, 166, 0.45);
  border-radius: 999px;
  font-size: 0.92rem;
  color: #F7EBC8;
  background: rgba(0, 0, 0, 0.12);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 200px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #0B1412;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: start;
  transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}
.badge:hover { transform: translateY(-2px); border-color: var(--gold); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge small { display: block; font-size: 0.72rem; line-height: 1.2; opacity: 0.85; }
.badge b { display: block; font-size: 1.12rem; line-height: 1.25; font-weight: 600; }
.badge-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #CFE6DE;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 44rem; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  margin-bottom: 8px;
}
[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.ornament {
  display: block;
  width: 72px;
  height: 14px;
  margin: 0 auto 14px;
  color: var(--gold);
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  position: relative;
  margin: 0;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset-inline-end: -28px;
  top: -28px;
  width: 96px;
  height: 96px;
  opacity: 0.08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C9A24D' stroke-width='3'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-container);
  color: var(--primary);
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-icon { color: var(--gold-text); }
}
:root[data-theme="dark"] .card-icon { color: var(--gold-text); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0.6em; }
.card ul {
  margin: 0;
  padding-inline-start: 1.1em;
  color: var(--muted);
  font-size: 0.96rem;
}
.card li { margin-block: 0.15em; }
.card li::marker { color: var(--gold); }

/* ---------- Offline & private ---------- */
.private {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(150deg, var(--hero-from), var(--hero-to));
}
.private .pattern { z-index: -1; }
.private h2, .private h3 { color: #fff; }
.private .eyebrow { color: #F1DDA6; }
.private .section-head p { color: #DCEEE8; }
.private-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.private-grid li {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(241, 221, 166, 0.22);
}
.private-grid h3 { font-size: 1.08rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.private-grid h3 svg { width: 22px; height: 22px; color: #F1DDA6; flex: none; }
.private-grid p { margin: 0; color: #DCEEE8; font-size: 0.97rem; }
.private-cta { text-align: center; margin: 32px 0 0; }
.private a { color: #F1DDA6; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.btn:hover { background: var(--primary-strong); }
.btn-ghost { background: transparent; border-color: rgba(241, 221, 166, 0.6); color: #F7EBC8; }
.private .btn-ghost { color: #F7EBC8; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Screenshot placeholders ---------- */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
/* Centre when there is room, without clipping when the strip overflows */
.shots li:first-child { margin-inline-start: auto; }
.shots li:last-child { margin-inline-end: auto; }
.shots li { margin: 0; flex: none; scroll-snap-align: center; }
.phone {
  position: relative;
  width: 184px;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  padding: 9px;
  background: #1C2321;
  box-shadow: 0 0 0 1px rgba(201, 162, 77, 0.35), 0 16px 36px rgba(11, 20, 18, 0.22);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(170deg, #12715E, #083F34);
}
.phone-screen .pattern { opacity: 0.14; z-index: -1; background-size: 64px 64px; }
.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 56px;
  height: 16px;
  border-radius: 999px;
  background: #1C2321;
  transform: translateX(-50%);
}
.phone-screen svg { width: 44px; height: 44px; color: #F1DDA6; }
.phone-title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.phone-soon {
  font-size: 0.74rem;
  line-height: 1.3;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(241, 221, 166, 0.65);
  color: #F7EBC8;
}
.shots-hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  padding-block: clamp(36px, 6vw, 64px);
}
.page-hero .pattern { z-index: -1; opacity: 0.1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin-bottom: 6px; }
.page-hero p { color: #DCEEE8; margin: 0; }

/* ---------- Prose (legal / support) ---------- */
.prose-wrap { padding-block: clamp(36px, 6vw, 64px); }
.prose {
  max-width: var(--readw);
  margin-inline: auto;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prose h2::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 63% 25%, 93% 25%, 75% 50%, 93% 75%, 63% 75%, 50% 100%, 37% 75%, 7% 75%, 25% 50%, 7% 25%, 37% 25%);
}
.prose h2:first-of-type { margin-top: 1em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.summary-box {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 1.5em;
  border-inline-start: 4px solid var(--gold);
}
.summary-box p:last-child, .summary-box ul:last-child { margin-bottom: 0; }
.summary-box a { color: inherit; }
.meta-line { color: var(--muted); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
th, td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; background: var(--surface-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin: 0 0 2em; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 14px 20px 6px; }
.faq .answer p, .faq .answer li { color: var(--text); }

.contact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 2em;
}
.contact-card .pattern { z-index: -1; opacity: 0.08; }
.contact-card h2 { justify-content: center; margin-top: 0; }
.contact-card h2::before { display: none; }
.email-link {
  font-size: 1.15rem;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 40px 28px;
  font-size: 0.94rem;
  color: var(--muted);
}
.site-footer .pattern { z-index: -1; opacity: 0.05; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}
.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-block: 6px; }
.site-footer a { color: var(--link); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); line-height: 1; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bottom p { margin: 0; }

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

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .badge:hover { transform: none; }
}

@media (forced-colors: active) {
  .pattern, .hero-star, .card::after { display: none; }
  .badge, .lang-toggle, .faq details, .card { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .skip-link, .badges, .pattern, .hero-star, .shots { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .private { background: none; color: #000; }
  .hero h1, .page-hero h1, .private h2, .private h3, .private p, .page-hero p { color: #000; }
}
