/* ============================================================
   মিহরাব (Mubarok Mihrab) — Landing Site Stylesheet
   Pure CSS, no frameworks. Light/Dark + RTL + Responsive.
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #FAF8F2;
  --bg-soft: #F2EEE3;
  --surface: #FFFFFF;
  --surface-2: #FCFAF5;
  --text: #182B23;
  --muted: #58695F;
  --line: #E5DFCF;
  --line-soft: #ECE7D9;

  --brand: #0E5A43;
  --brand-2: #12795A;
  --brand-ink: #0A3D2E;
  --brand-soft: #E3EFE8;

  --gold: #A97B24;
  --gold-2: #C9A227;
  --gold-soft: #F5E8C8;

  --danger: #B3472E;
  --ok: #1E7F4F;

  --shadow-1: 0 1px 2px rgba(20, 40, 32, .05), 0 4px 16px rgba(20, 40, 32, .06);
  --shadow-2: 0 2px 6px rgba(20, 40, 32, .07), 0 14px 38px rgba(20, 40, 32, .12);
  --shadow-glow: 0 0 0 6px rgba(201, 162, 39, .14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --font-bn: 'Noto Sans Bengali', 'Hind Siliguri', 'Bangla MN', 'Nirmala UI',
             'SolaimanLipi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Noto Naskh Arabic', 'Geeza Pro', 'Amiri', 'Traditional Arabic',
             'Segoe UI', system-ui, sans-serif;

  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #0B1410;
  --bg-soft: #0E1A14;
  --surface: #12211A;
  --surface-2: #16281F;
  --text: #E8F0EA;
  --muted: #9CB2A6;
  --line: #23382D;
  --line-soft: #1C2E25;

  --brand: #45BD8F;
  --brand-2: #5BD1A4;
  --brand-ink: #0C1F18;
  --brand-soft: #143327;

  --gold: #D9B45B;
  --gold-2: #E8C876;
  --gold-soft: #2E2716;

  --danger: #E0765A;
  --ok: #5BD1A4;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 16px 42px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 0 6px rgba(217, 180, 91, .12);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-bn);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body, [lang="ar"] body, html[lang="ar"] {
  font-family: var(--font-ar);
  line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

::selection { background: var(--gold-2); color: #1D1608; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Skip link */
.skip {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip:focus { transform: translateY(0); text-decoration: none; }

/* ---------- 3. Solidarity banner ---------- */
.solidarity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #131313, #1E1E1E);
  color: #F2EFE6;
  font-size: .88rem;
  text-align: center;
}
.solidarity:hover { text-decoration: none; background: #101010; }
.solidarity .flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.solidarity .go { transition: transform .2s; }
.solidarity:hover .go { transform: translateX(3px); }
[dir="rtl"] .solidarity:hover .go { transform: scaleX(-1) translateX(3px); }
.solidarity .wide { opacity: .75; }
@media (max-width: 640px) { .solidarity .wide { display: none; } }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brandline img { width: 34px; height: 34px; border-radius: 8px; }
.brandline:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 8px;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 860px) { .site-nav { display: none; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme toggle icon swap */
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* language picker */
.langpicker { position: relative; }
.langpicker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .2s;
}
.langpicker summary::-webkit-details-marker { display: none; }
.langpicker summary:hover { border-color: var(--brand); }
.langpicker summary svg { width: 15px; height: 15px; }
.langpicker[open] summary { border-color: var(--brand); background: var(--brand-soft); }
.langpicker ul {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  z-index: 60;
}
.langpicker li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .93rem;
}
.langpicker li a:hover { background: var(--bg-soft); text-decoration: none; }
.langpicker li a[aria-current="true"] { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.header-cta:hover { text-decoration: none; transform: translateY(-1px); background: var(--brand-2); box-shadow: var(--shadow-1); }
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, .16), transparent 60%),
    radial-gradient(900px 460px at 0% 0%, rgba(14, 90, 67, .14), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 78%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(217, 180, 91, .1), transparent 60%),
    radial-gradient(900px 460px at 0% 0%, rgba(69, 189, 143, .12), transparent 55%),
    linear-gradient(180deg, #0E1A14, var(--bg) 78%);
}

/* sky band — animated dawn gradient */
.hero-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  background: linear-gradient(180deg,
    #F6D9A0 0%, #EFC08E 22%, #D89C8B 45%, #8FAE9C 72%, transparent 100%);
  opacity: .35;
  animation: skyShift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
[data-theme="dark"] .hero-sky {
  background: linear-gradient(180deg,
    #23372C 0%, #1C3A2C 30%, #14302A 55%, transparent 100%);
  opacity: .8;
}
@keyframes skyShift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(-14deg) brightness(1.06); }
}

/* geometric ornament */
.hero-art {
  position: absolute;
  inset-inline-end: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  color: var(--brand);
  opacity: .1;
  animation: slowSpin 90s linear infinite;
  pointer-events: none;
}
[dir="rtl"] .hero-art { inset-inline-end: auto; inset-inline-start: -140px; }
@keyframes slowSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hero .wrap { position: relative; }

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
  box-shadow: var(--shadow-1);
}
.eyebrow-chip .dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}

.hero h1 {
  margin: 22px 0 14px;
  max-width: 21ch;
  font-size: clamp(2.1rem, 5.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--text) 55%, var(--brand) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .sub {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  font-size: .92rem;
  font-weight: 500;
}
.trust svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241B05;
  box-shadow: 0 8px 24px rgba(169, 123, 36, .35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(169, 123, 36, .45); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 19px; height: 19px; flex: none; }

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 30px;
  color: var(--muted);
  font-size: .88rem;
}
.hero .meta .dot { opacity: .45; }
.hero .meta a { font-weight: 500; }

/* ---------- 6. Section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tinted { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:lang(ar) .eyebrow, html[lang="ar"] .eyebrow { letter-spacing: 0; }

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 14px;
}
.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ---------- 7. Download section ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.dl-card h3 { font-size: 1.25rem; margin-bottom: 18px; }

.steps { display: grid; gap: 16px; counter-reset: step; }
.steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: .98rem;
}
[dir="rtl"] .steps li { flex-direction: row-reverse; }
.steps b { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.dl-action {
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(420px 240px at 50% -10%, color-mix(in srgb, var(--gold-2) 14%, transparent), transparent 70%),
    var(--surface);
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
}
.dl-action .apk-btn { margin: 18px 0 6px; font-size: 1.06rem; padding: 16px 34px; }
.dl-action .file-note { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

.qr-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.qr-box img { width: 148px; height: 148px; }
.qr-box figcaption { color: var(--muted); font-size: .8rem; }

.spec-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  font-size: .9rem;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.spec-list span { color: var(--muted); }
.spec-list b { font-weight: 600; }

/* ---------- 8. Features ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-2);
}
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--gold-soft) 55%, var(--surface)));
  color: var(--brand);
  border: 1px solid var(--line-soft);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- 9. Screenshots gallery ---------- */
.shot-strip {
  position: relative;
}
.shot-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shot-row figure {
  flex: 0 0 clamp(200px, 24vw, 252px);
  scroll-snap-align: start;
  margin: 0;
  cursor: zoom-in;
}
.shot-row img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .25s, box-shadow .25s;
}
.shot-row figure:hover img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-2);
}
.shot-row figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

.strip-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.strip-btn:hover { border-color: var(--brand); color: var(--brand); }
.strip-btn svg { width: 20px; height: 20px; }
.strip-btn.prev { inset-inline-start: -8px; }
.strip-btn.next { inset-inline-end: -8px; }
@media (max-width: 700px) { .strip-btn { display: none; } }

.spread {
  margin: 34px 0 0;
}
.spread img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  cursor: zoom-in;
}
.spread figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 14, 11, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: min(86vh, 1600px);
  max-width: 92vw;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox .lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 18px; inset-inline-end: 18px; }
.lightbox .lb-prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 86vw;
  color: #E8F0EA;
  font-size: .92rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[dir="rtl"] .lightbox .lb-prev { inset-inline-start: auto; inset-inline-end: 18px; }
[dir="rtl"] .lightbox .lb-next { inset-inline-end: auto; inset-inline-start: 18px; }

/* ---------- 10. Privacy ---------- */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-size: .92rem;
}
.privacy-badge svg { width: 16px; height: 16px; }

/* ---------- 11. FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: transform .25s;
}
.faq-list summary .pm svg { width: 14px; height: 14px; }
.faq-list details[open] summary .pm { transform: rotate(45deg); }
.faq-list .faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .97rem;
}
.faq-list .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-bottom: 34px;
}
.foot-grid h2 { font-size: 1.02rem; margin-bottom: 10px; }
.foot-grid p, .foot-grid li { color: var(--muted); font-size: .94rem; }
.foot-grid li { margin-bottom: 7px; }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}
.foot-brand img { width: 30px; height: 30px; border-radius: 7px; }
.colophon {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

/* back to top */
.to-top {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 13. Reveal animations (JS-gated: no JS = always visible) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. RTL helpers ---------- */
[dir="rtl"] .trust li svg { transform: scaleX(1); }
[dir="rtl"] .cta-row { direction: rtl; }

/* ---------- 15. Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .hero-art { width: 380px; height: 380px; opacity: .07; }
  .card { padding: 22px 20px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .to-top { bottom: 14px; inset-inline-end: 14px; }
}
