/* Taghdiyati landing — design tokens mirror app/lib/core/theme/app_colors.dart */
:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #edf1eb;
  --border: #dce3da;
  --text: #15201a;
  --text-2: #4c5a52;
  --muted: #5f6c64;
  --primary: #157f5f;
  --primary-strong: #127456;
  --on-primary: #ffffff;
  --accent: #c4e538;
  --on-accent: #1a1a1a;
  --dark: #15201a;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d3cc;
  --error: #c93b32;
  --info: #1e7fd6;
  --warning: #d9661f;
  --shadow: 0 1px 2px rgba(21, 32, 26, .05), 0 12px 32px -12px rgba(21, 32, 26, .16);
  --shadow-lg: 0 30px 70px -24px rgba(21, 32, 26, .35);
  --radius: 20px;
  --maxw: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
}
:root[data-theme="dark"] {
  --bg: #0e1411;
  --surface: #17201b;
  --surface-2: #222d27;
  --border: #2e3a33;
  --text: #edf2ee;
  --text-2: #b6c2ba;
  --muted: #97a39b;
  --primary: #4cc79a;
  --primary-strong: #4cc79a;
  --on-primary: #06251a;
  --dark: #1c2621;
  --error: #ff6b61;
  --info: #4aa8f0;
  --warning: #f28c4a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-strong); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- language blocks (no-JS default = Arabic) ---- */
html[lang="ar"] .l:not([data-l="ar"]),
html[lang="fr"] .l:not([data-l="fr"]),
html[lang="en"] .l:not([data-l="en"]) { display: none !important; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 104px); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 24px -16px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--text-2); font-weight: 600; font-size: .95rem; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-btn {
  height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: .85rem; padding-inline: 12px; transition: transform .15s, background .15s;
}
.icon-btn:hover, .lang-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { position: relative; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  list-style: none; display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; text-align: start; border: 0; background: none; color: var(--text); padding: 10px 12px; border-radius: 10px; font-weight: 600;
}
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: var(--surface-2); }
.menu-btn { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 26px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-sm { min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: .92rem; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px; border-radius: 16px;
  background: #0b0f0d; color: #fff; text-decoration: none; border: 1px solid #2c3731; transition: transform .15s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: .72rem; opacity: .75; line-height: 1.2; }
.store b { display: block; font-size: 1.1rem; line-height: 1.2; }

/* ---- hero ---- */
.hero { position: relative; padding-block: clamp(36px, 7vw, 84px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; }
.hero::before { width: 460px; height: 460px; background: color-mix(in srgb, var(--primary) 30%, transparent); top: -140px; inset-inline-start: -120px; }
.hero::after { width: 380px; height: 380px; background: color-mix(in srgb, var(--accent) 40%, transparent); bottom: -120px; inset-inline-end: -100px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .85rem; color: var(--text-2);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.18; font-weight: 900; letter-spacing: -.01em; margin: 18px 0; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.25; font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-2); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--primary-strong); line-height: 1.2; }
.hero-stats span { font-size: .88rem; color: var(--muted); }

/* ---- phone mockup ---- */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  width: min(310px, 78vw); aspect-ratio: 9 / 18.6; background: #0b0f0d; border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-lg); position: relative; transform: rotate(-3deg); transition: transform .4s;
}
[dir="rtl"] .phone { transform: rotate(3deg); }
.phone:hover { transform: rotate(0); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; background: #0b0f0d; border-radius: 999px; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.s-head { display: flex; justify-content: space-between; align-items: center; }
.s-head b { font-size: .95rem; }
.s-head small { color: var(--muted); font-size: .72rem; display: block; line-height: 1.3; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.ring-card { background: var(--dark); color: var(--on-dark); border-radius: 22px; padding: 14px; display: flex; align-items: center; gap: 14px; }
:root[data-theme="dark"] .ring-card { background: var(--surface-2); }
.ring { --p: 72; width: 82px; height: 82px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.16) 0); }
.ring span { width: 64px; height: 64px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .95rem; line-height: 1.1; color: #fff; }
:root[data-theme="dark"] .ring span { background: var(--surface-2); }
.ring span small { display: block; font-size: .6rem; font-weight: 600; color: var(--on-dark-muted); }
.macros { flex: 1; display: grid; gap: 7px; font-size: .68rem; }
.macros div { display: grid; gap: 3px; }
.bar { height: 5px; border-radius: 9px; background: rgba(255,255,255,.18); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--accent); }
.bar.b i { background: #5b8def; } .bar.o i { background: #f2b53a; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.mini .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; flex: none; }
.mini b { display: block; font-size: .8rem; line-height: 1.3; }
.mini small { color: var(--muted); font-size: .68rem; }
.s-nav { margin-top: auto; background: var(--dark); border-radius: 18px; padding: 10px; display: flex; justify-content: space-around; }
:root[data-theme="dark"] .s-nav { background: var(--surface-2); }
.s-nav i { width: 30px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.28); }
.s-nav i.on { background: var(--accent); }
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; animation: bob 5s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-weight: 600; font-size: .7rem; }
.float.f1 { top: 12%; inset-inline-start: -2%; } .float.f2 { bottom: 14%; inset-inline-end: -2%; animation-delay: -2.5s; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ---- trust strip ---- */
.strip { padding-block: 22px; border-block: 1px solid var(--border); background: var(--surface); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: var(--text-2); font-weight: 700; font-size: .92rem; }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 20px; height: 20px; color: var(--primary-strong); }

/* ---- section heads / cards ---- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 6vw, 56px); }
.sec-head .kicker { display: inline-block; color: var(--primary-strong); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head p { color: var(--text-2); margin-top: 12px; font-size: 1.05rem; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--primary) 13%, var(--surface)); color: var(--primary-strong); }
.card .ic svg { width: 26px; height: 26px; }
.card p { color: var(--text-2); margin-top: 8px; font-size: .96rem; }

/* bento for audiences */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { border-radius: 28px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.panel.dark { background: var(--dark); color: var(--on-dark); border-color: transparent; }
:root[data-theme="dark"] .panel.dark { background: var(--surface-2); }
.panel.dark p, .panel.dark li { color: var(--on-dark-muted); }
.panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 10px 0 8px; }
.panel .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .78rem; background: var(--accent); color: var(--on-accent); }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--primary-strong); }
.panel.dark .checks svg { color: var(--accent); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--on-primary); font-weight: 900; margin-bottom: 16px; }
.step p { color: var(--text-2); font-size: .94rem; margin-top: 6px; }

/* professions chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.chip { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

/* payments band */
.band { background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
:root[data-theme="dark"] .band { background: var(--surface-2); }
.band p { color: var(--on-dark-muted); margin-top: 12px; }
.pay-list { display: grid; gap: 10px; }
.pay { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.pay b { display: block; line-height: 1.3; } .pay small { color: var(--on-dark-muted); }
.pay .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; font-weight: 900; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color .2s; }
details[open] { border-color: var(--primary); }
summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary-strong); transition: transform .2s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--text-2); }

/* final CTA */
.final { text-align: center; background: linear-gradient(135deg, var(--primary), #0e5a43); color: #fff; border-radius: 36px; padding: clamp(36px, 7vw, 72px) 24px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .final { background: linear-gradient(135deg, #0f3a2c, #123f31); }
.final::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--accent); opacity: .18; filter: blur(60px); top: -120px; inset-inline-end: -80px; }
.final p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 12px auto 28px; position: relative; }
.final .cta-row { justify-content: center; position: relative; z-index: 1; }

/* ---- sub pages ---- */
.page-hero { padding-block: clamp(40px, 7vw, 80px) 24px; text-align: center; }
.page-hero .lead { margin: 12px auto 0; }
.meta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.meta > span { padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--text-2); }
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding-block: 24px clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.toc b { display: block; margin-bottom: 8px; font-size: .9rem; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.toc a:hover, .toc a.active { background: var(--surface-2); color: var(--primary-strong); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow); min-width: 0; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 10px; padding-top: 4px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.doc strong { color: var(--text); }
.note { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); color: var(--text); }
.note.warn { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; } td { color: var(--text-2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; padding-block: 24px clamp(56px, 8vw, 96px); }
.channels { display: grid; gap: 14px; align-content: start; }
.channel { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.channel:hover { transform: translateY(-3px); border-color: var(--primary); }
.channel .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.channel .ic svg { width: 26px; height: 26px; }
.channel b { display: block; } .channel small { color: var(--muted); overflow-wrap: anywhere; font-size: .9rem; }
.ic.wa { background: #dcf8e6; color: #128c4a; } .ic.mail { background: #e0efff; color: #1e7fd6; } .ic.time { background: #fdecd8; color: #c4571a; } .ic.del { background: #fde4e2; color: var(--error); }
:root[data-theme="dark"] .ic.wa { background: #12301f; color: #5bd18e; } :root[data-theme="dark"] .ic.mail { background: #14283d; color: #4aa8f0; } :root[data-theme="dark"] .ic.time { background: #3a2412; color: #f28c4a; } :root[data-theme="dark"] .ic.del { background: #3a1613; }
form.box { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 16px; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.hint { color: var(--muted); font-size: .85rem; }
.hp { position: absolute; inset-inline-start: -9999px; }
.status { padding: 12px 16px; border-radius: 14px; font-weight: 600; display: none; }
.status.show { display: block; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid var(--primary); }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf b { font-size: clamp(5rem, 20vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 56px 28px; margin-top: 24px; }
:root[data-theme="dark"] .site-footer { background: #0a0f0c; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin: 0 0 12px; }
.site-footer p { font-size: .92rem; max-width: 36ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero-grid, .split, .band, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; } .hero-copy .lead { margin-inline: auto; }
  .cta-row, .hero-stats { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 14px var(--gutter) 22px; border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.35); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .site-header.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav .btn-sm.dl { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .steps, .foot-grid { grid-template-columns: 1fr; }
  .cta-row .btn, .cta-row .store { flex: 1 1 100%; justify-content: center; }
  .float { display: none; }
  .hero-stats { gap: 18px 28px; }
  .copy { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .to-top { display: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
}

/* coming-soon store badge + APK side button */
.store.soon { opacity: .62; cursor: default; position: relative; }
.store.soon:hover { transform: none; }
.store.soon small { color: var(--accent); font-weight: 800; opacity: 1; }
.apk-side {
  position: fixed; inset-inline-end: 0; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px;
  background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 800; font-size: .78rem;
  border-radius: 16px 0 0 16px; box-shadow: var(--shadow-lg); transition: padding .2s, background .2s;
}
[dir="rtl"] .apk-side { border-radius: 0 16px 16px 0; }
.apk-side:hover { background: var(--primary-strong); padding-inline: 16px; }
.apk-side svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .apk-side { top: auto; bottom: 18px; inset-inline: auto; inset-inline-start: 18px; transform: none; flex-direction: row; border-radius: 999px; padding: 12px 18px; }
  [dir="rtl"] .apk-side { border-radius: 999px; }
}
@media print { .apk-side { display: none; } }
