/* iHomeegy Help Center
   Layout: a glass header over a deep-navy (or icy) ground; sidebar of topics, reading column, "on this page" rail.
   The palette is the app's own Cool theme: navy cards, emerald for what is on, the logo's green-to-indigo gradient. */

:root {
  /* light (Frost) */
  --bg: #eef3fa;
  --bg-2: #e3eaf4;
  --ground-1: #f7f9fd;
  --ground-2: #e6edf7;
  --panel: rgba(255, 255, 255, .78);
  --panel-solid: #ffffff;
  --panel-2: #f3f6fb;
  --line: rgba(22, 32, 43, .10);
  --line-strong: rgba(22, 32, 43, .18);
  --text: #16202b;
  --text-2: #2c3a49;
  --muted: #5b6878;
  --accent: #0b8f64;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 143, 100, .10);
  --accent-2: #0a83a3;
  --accent-3: #4b5ad6;
  --glow-1: rgba(52, 211, 153, .30);
  --glow-2: rgba(91, 107, 234, .22);
  --glow-3: rgba(34, 211, 238, .20);
  --warn: #a8620a;
  --warn-soft: rgba(245, 158, 11, .12);
  --danger: #c2333a;
  --danger-soft: rgba(194, 51, 58, .09);
  --info: #2f5fd0;
  --info-soft: rgba(47, 95, 208, .09);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 80px -30px rgba(16, 24, 40, .35);
  --header: rgba(247, 249, 253, .72);
  --code-bg: rgba(22, 32, 43, .06);
  --phone-1: #2b3542;
  --phone-2: #10161e;

  --font-en: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font: var(--font-en);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lh: 1.75;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 64px;
  --side-w: 280px;
  --toc-w: 220px;
  --read: 760px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1622;
    --bg-2: #0e1c2b;
    --ground-1: #123049;
    --ground-2: #07111b;
    --panel: rgba(19, 38, 58, .62);
    --panel-solid: #13263a;
    --panel-2: #172d44;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #e7eff7;
    --text-2: #c7d4e2;
    --muted: #8fa3b9;
    --accent: #34d399;
    --accent-ink: #04251b;
    --accent-soft: rgba(52, 211, 153, .12);
    --accent-2: #22d3ee;
    --accent-3: #7c8cff;
    --glow-1: rgba(52, 211, 153, .22);
    --glow-2: rgba(110, 127, 243, .22);
    --glow-3: rgba(34, 211, 238, .14);
    --warn: #f5b544;
    --warn-soft: rgba(245, 181, 68, .12);
    --danger: #ff7a8a;
    --danger-soft: rgba(255, 122, 138, .10);
    --info: #8db4ff;
    --info-soft: rgba(141, 180, 255, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .75);
    --header: rgba(11, 22, 34, .66);
    --code-bg: rgba(255, 255, 255, .07);
    --phone-1: #3a4656;
    --phone-2: #0a0f15;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1622;
  --bg-2: #0e1c2b;
  --ground-1: #123049;
  --ground-2: #07111b;
  --panel: rgba(19, 38, 58, .62);
  --panel-solid: #13263a;
  --panel-2: #172d44;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e7eff7;
  --text-2: #c7d4e2;
  --muted: #8fa3b9;
  --accent: #34d399;
  --accent-ink: #04251b;
  --accent-soft: rgba(52, 211, 153, .12);
  --accent-2: #22d3ee;
  --accent-3: #7c8cff;
  --glow-1: rgba(52, 211, 153, .22);
  --glow-2: rgba(110, 127, 243, .22);
  --glow-3: rgba(34, 211, 238, .14);
  --warn: #f5b544;
  --warn-soft: rgba(245, 181, 68, .12);
  --danger: #ff7a8a;
  --danger-soft: rgba(255, 122, 138, .10);
  --info: #8db4ff;
  --info-soft: rgba(141, 180, 255, .10);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .75);
  --header: rgba(11, 22, 34, .66);
  --code-bg: rgba(255, 255, 255, .07);
  --phone-1: #3a4656;
  --phone-2: #0a0f15;
  color-scheme: dark;
}

:root[lang="ar"] { --font: var(--font-ar); --lh: 1.95; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.25em; height: 1.25em; flex: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* the ground: a slow aurora in the app's colours */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, var(--ground-1), transparent 60%), linear-gradient(180deg, var(--bg), var(--ground-2));
}
.ground i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .9;
  will-change: transform; animation: drift 28s var(--ease) infinite alternate;
}
.ground i:nth-child(1) { background: var(--glow-1); top: -24vmax; inset-inline-start: -12vmax; }
.ground i:nth-child(2) { background: var(--glow-2); top: -18vmax; inset-inline-end: -20vmax; animation-duration: 34s; animation-delay: -8s; }
.ground i:nth-child(3) { background: var(--glow-3); bottom: -34vmax; inset-inline-start: 20vmax; animation-duration: 40s; animation-delay: -16s; opacity: .7; }
.ground::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 55%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(.96); }
}

/* header */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  background: var(--header);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  view-transition-name: top;
}
.top-in {
  height: 100%; display: flex; align-items: center; gap: 12px;
  max-width: 1480px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 12px rgba(23, 190, 140, .35)); }
.brand b { font-size: 18px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: -4px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.25; }
.top-sp { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: border-color .2s, background .2s;
  width: min(360px, 34vw);
}
.search-btn:hover { border-color: var(--line-strong); }
.search-btn svg, .hero-search svg { width: 18px; height: 18px; }
.cta-btn svg { width: 17px; height: 17px; }
.search-btn span { flex: 1; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.search-btn kbd, .kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--panel-2); }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  cursor: pointer; transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); text-decoration: none; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn { width: auto; padding: 0 12px; font-weight: 700; font-size: 14px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn[lang="ar"] { font-family: var(--font-ar); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 8px 24px -10px var(--accent);
}
.cta-btn:hover { text-decoration: none; filter: brightness(1.06); }
.menu-btn { display: none; }
.scrim { display: none; }
[data-theme-icon] { display: none; }

/* page frame */
.shell {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w); gap: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.shell.wide { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.side {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); align-self: start;
  height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain; padding-block: 28px 40px; padding-inline-end: 8px;
  scrollbar-width: thin; view-transition-name: side;
}
.side h4 {
  margin: 22px 10px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
:root[lang="ar"] .side h4 { letter-spacing: 0; font-size: 13px; text-transform: none; }
.side h4:first-child { margin-top: 0; }
.side a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500; line-height: 1.45; position: relative;
  transition: background .2s, color .2s;
}
.side a svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.side a:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.side a[aria-current="page"] svg { opacity: 1; }
.side a[aria-current="page"]::before {
  content: ""; position: absolute; inset-inline-start: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent);
}

main { min-width: 0; padding-block: 34px 80px; view-transition-name: main; }
.article { max-width: var(--read); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
:root[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

.page-head { margin-bottom: 30px; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
:root[lang="ar"] .page-head .eyebrow { letter-spacing: 0; font-size: 14px; }
.page-head .eyebrow svg { width: 16px; height: 16px; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
:root[lang="ar"] h1 { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: 18.5px; color: var(--text-2); margin: 0; max-width: 62ch; }
:root[lang="ar"] .lead { font-size: 19px; }

.article h2 {
  font-size: 26px; line-height: 1.3; letter-spacing: -.015em; margin: 56px 0 14px; font-weight: 800; text-wrap: balance;
  display: flex; align-items: center; gap: 10px;
}
:root[lang="ar"] .article h2 { letter-spacing: 0; line-height: 1.5; }
.article h3 { font-size: 19px; line-height: 1.4; margin: 34px 0 8px; font-weight: 750; font-weight: 700; }
.article h2 .anchor, .article h3 .anchor { opacity: 0; color: var(--muted); font-weight: 400; transition: opacity .2s; font-size: .8em; }
.article h2:hover .anchor, .article h3:hover .anchor { opacity: 1; text-decoration: none; }
.article p { margin: 0 0 16px; color: var(--text-2); max-width: 70ch; }
.article ul.list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.article ul.list li { position: relative; padding-inline-start: 26px; color: var(--text-2); }
.article ul.list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 0 0 4px var(--accent-soft);
}
.article strong { color: var(--text); font-weight: 700; }
.article code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; word-break: break-word; }
.ui {
  display: inline; font-weight: 700; font-size: .92em; color: var(--text); overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; line-height: 1.6;
}
.article a { font-weight: 600; }

/* callouts */
.callout {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); margin: 22px 0;
  background: var(--info-soft); border: 1px solid var(--line); color: var(--text-2);
}
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--info); }
.callout p { margin: 0 !important; }
.callout b.t { display: block; color: var(--text); margin-bottom: 2px; }
.callout.tip { background: var(--accent-soft); }
.callout.tip svg { color: var(--accent); }
.callout.warn { background: var(--warn-soft); }
.callout.warn svg { color: var(--warn); }
.callout.danger { background: var(--danger-soft); }
.callout.danger svg { color: var(--danger); }

/* steps */
.steps { list-style: none; margin: 20px 0 28px; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps > li { position: relative; padding-inline-start: 56px; padding-bottom: 22px; counter-increment: s; }
.steps > li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px var(--accent);
}
.steps > li::after {
  content: ""; position: absolute; inset-inline-start: 18px; top: 44px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent); opacity: .35; border-radius: 2px;
}
.steps > li:last-child::after { display: none; }
.steps h4 { margin: 6px 0 4px; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.45; }
.steps p { margin: 0 !important; }

/* phone frames */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 30px 0 34px; }
.shots.many { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 22px; scrollbar-width: thin; margin-inline: -4px; }
.shots.many figure { scroll-snap-align: center; }
figure.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; }
figure.shot figcaption { font-size: 13.5px; color: var(--muted); text-align: center; max-width: 260px; line-height: 1.55; }
.phone {
  --w: 254px;
  width: var(--w); max-width: 100%;
  position: relative; border-radius: 40px; padding: 9px;
  background: linear-gradient(145deg, var(--phone-1), var(--phone-2) 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px rgba(0, 0, 0, .4);
  cursor: zoom-in; border: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; inset-inline-end: -3px; top: 110px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: var(--phone-1); }
.phone::after { content: ""; position: absolute; inset-inline-start: -3px; top: 96px; width: 3px; height: 40px; border-radius: 3px 0 0 3px; background: var(--phone-1); }
.phone .scr { border-radius: 32px; overflow: hidden; position: relative; background: #000; aspect-ratio: var(--ar, 9 / 19.5); }
.phone .scr img { border-radius: 32px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.partial .scr::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.phone:hover { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 2px rgba(0, 0, 0, .4); }
.shots.one .phone { --w: 290px; }
.tag-lang { position: absolute; z-index: 2; top: 18px; inset-inline-end: 18px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; letter-spacing: .04em; backdrop-filter: blur(6px); }

/* text + phone */
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; margin: 30px 0 34px; }
.split .txt > :last-child { margin-bottom: 0; }
.split.flip { grid-template-columns: auto minmax(0, 1fr); }
.split.flip .txt { order: 2; }

/* topic grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 22px 0 30px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden;
}
a.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
}
a.tile:hover::after { opacity: 1; }
.tile .ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.tile .ic svg { width: 21px; height: 21px; }
.tile b { color: var(--text); font-size: 16px; line-height: 1.4; }
.tile span { font-size: 14px; line-height: 1.6; }
.tile .go { position: absolute; top: 18px; inset-inline-end: 16px; width: 18px; height: 18px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: .3s var(--ease); }
:root[dir="rtl"] .tile .go { transform: translateX(4px) scaleX(-1); }
a.tile:hover .go { opacity: 1; transform: none; }
:root[dir="rtl"] a.tile:hover .go { transform: scaleX(-1); }

/* table */
.tbl { overflow-x: auto; margin: 20px 0 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: .03em; background: var(--panel-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--text); font-weight: 600; }
.tbl .yes { color: var(--accent); font-weight: 800; }
.tbl .yes svg { width: 20px; height: 20px; }
.tbl td:not(:first-child) { color: var(--text-2); }

/* faq */
.faq { display: grid; gap: 10px; margin: 20px 0 30px; }
.faq details { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--text); display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-inline-start: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 18px 16px; color: var(--text-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 14px; color: var(--text); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.pill.prem { background: rgba(245, 181, 68, .14); color: var(--warn); }
.pill.ios { background: var(--info-soft); color: var(--info); }

/* toc */
.toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 34px); align-self: start; padding-top: 34px; max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; scrollbar-width: none; }
.toc h5 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .toc h5 { letter-spacing: 0; font-size: 13px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 5px 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; border-inline-start: 2px solid transparent; margin-inline-start: -1px; transition: color .2s, border-color .2s; }
.toc a.sub { padding-inline-start: 26px; font-size: 13px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* prev / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: border-color .3s, transform .3s var(--ease); }
.pn a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.pn a small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pn a b { font-size: 16px; }
.pn .next { text-align: end; grid-column: 2; }
.helped { margin-top: 30px; padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 15px; }
.helped .copy { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 12px; }
.helped .copy svg { width: 16px; height: 16px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.foot-in {
  max-width: 1480px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 34px 40px;
  color: var(--muted); font-size: 14px;
}
.foot .brand { margin-bottom: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text-2); font-weight: 600; }
.foot .mail { font-family: var(--mono); color: var(--text); user-select: all; }

/* search */
.search-dlg {
  width: min(680px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 80px)); padding: 0; border: 1px solid var(--line-strong);
  border-radius: 20px; background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
  margin-top: 9vh;
}
.search-dlg::backdrop { background: rgba(5, 12, 20, .55); backdrop-filter: blur(4px); }
.search-dlg[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.sbox { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sbox svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.sbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; outline: none; }
.sres { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(640px, 100vh - 80px) - 120px); }
.sres li a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.sres li a:hover, .sres li a.sel { background: var(--accent-soft); text-decoration: none; }
.sres li a b { display: block; font-size: 15px; }
.sres li a small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sres li a small.pg { color: var(--accent); font-weight: 700; font-size: 12px; -webkit-line-clamp: 1; }
.sres mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sempty { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }
.sfoot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(4, 10, 18, .78); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; padding: 24px; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-height: 88vh; width: auto; max-width: min(92vw, 520px); border-radius: 26px; box-shadow: var(--shadow-lg); transform: scale(.92); transition: transform .4s var(--ease); }
.lb.on img { transform: none; }
.lb button { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); }
.lb p { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); color: #dfe8f1; font-size: 14px; margin: 0; text-align: center; padding: 0 20px; }

/* reveal: everything rests visible; it rises in once when it first scrolls into view */
.rv.go { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* page transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(main) { animation: vt-out .22s ease both; }
::view-transition-new(main) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- landing ---------- */
.home main { padding-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 56px 30px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; }
:root[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.grad {
  background: linear-gradient(100deg, #8be04e, #17be8c 35%, #22d3ee 60%, #6e7ff3 85%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
:root:not([data-theme="dark"]) .grad { background-image: linear-gradient(100deg, #3c9d16, #0b8f64 35%, #0a83a3 60%, #4b5ad6 85%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(100deg, #8be04e, #17be8c 35%, #22d3ee 60%, #6e7ff3 85%); } }
@keyframes sheen { to { background-position: 200% center; } }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 22px; }
:root[dir="rtl"] .hero .eyebrow { padding: 6px 8px 6px 14px; }
.hero .eyebrow i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-style: normal; }
.hero .eyebrow i svg { width: 13px; height: 13px; }
.hero p.sub { font-size: 19px; color: var(--text-2); max-width: 54ch; margin: 0 0 28px; }
.hero-search {
  display: flex; align-items: center; gap: 12px; width: min(560px, 100%); height: 58px; padding: 0 10px 0 18px; border-radius: 18px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--muted); cursor: text; font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
:root[dir="rtl"] .hero-search { padding: 0 18px 0 10px; }
.hero-search:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.hero-search svg { width: 22px; height: 22px; flex: none; }
.hero-search span { flex: 1; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15.5px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn.pri { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); color: var(--accent-ink); border-color: transparent; box-shadow: 0 14px 32px -14px var(--accent); }
.btn svg { width: 18px; height: 18px; }
:root[dir="rtl"] .btn svg.dir { transform: scaleX(-1); }

.stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
.stage .phone { --w: 300px; cursor: default; transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); animation: float 8s ease-in-out infinite; }
:root[dir="rtl"] .stage .phone { transform: rotateY(14deg) rotateX(6deg) rotateZ(-1deg); }
@keyframes float { 50% { translate: 0 -12px; } }
/* the reel in the hero phone: four screens fade in over the first, one after the other, every 20 seconds */
.stage .scr.show { position: relative; overflow: hidden; }
.stage .scr .reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: reel 20s var(--ease) infinite both; }
@keyframes reel { 0% { opacity: 0; transform: translateY(14px) scale(1.03); } 3%, 19% { opacity: 1; transform: none; } 23%, 100% { opacity: 0; transform: none; } }
.stage .ring { position: absolute; width: 470px; height: 470px; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.stage .ring.r2 { width: 360px; height: 360px; animation-duration: 40s; animation-direction: reverse; opacity: .6; }
@keyframes spin { to { rotate: 360deg; } }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.chip small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.chip .dot svg { width: 17px; height: 17px; }
.chip.c1 { top: 12%; inset-inline-start: 2%; }
.chip.c2 { top: 46%; inset-inline-end: -2%; animation-delay: -2.4s; }
.chip.c3 { bottom: 10%; inset-inline-start: 6%; animation-delay: -4.6s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.sec { padding-block: 44px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sec-h h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; line-height: 1.2; font-weight: 800; text-wrap: balance; }
:root[lang="ar"] .sec-h h2 { letter-spacing: 0; line-height: 1.45; }
.sec-h p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: q; }
/* the start page's 16 topics: 4 × 4 on a big screen, 2 or 1 per row on smaller ones */
.landing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .landing .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .landing .grid { grid-template-columns: minmax(0, 1fr); } }
.demo .txt { max-width: 46ch; }
.quick a {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden; counter-increment: q; transition: transform .35s var(--ease), border-color .35s;
}
.quick a:hover { text-decoration: none; transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.quick a::before { content: counter(q); position: absolute; inset-inline-end: 18px; top: 6px; font-size: 84px; font-weight: 800; line-height: 1; color: var(--line); }
.quick b { font-size: 19px; color: var(--text); }
.quick .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px -12px var(--accent); }
.quick .ic svg { width: 24px; height: 24px; }

.feature-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-band div { padding: 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.feature-band svg { width: 26px; height: 26px; color: var(--accent); }
.feature-band b { display: block; margin: 10px 0 4px; font-size: 17px; color: var(--text); }
.feature-band p { margin: 0; color: var(--text-2); font-size: 15px; }

.works { display: flex; flex-wrap: wrap; gap: 12px; }
.works a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 700; transition: transform .3s var(--ease), border-color .3s; }
.works a:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.works a svg { width: 20px; height: 20px; color: var(--accent); }

.cta-band { margin-block: 30px 10px; padding: 34px; border-radius: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel-solid)), color-mix(in srgb, var(--accent-3) 20%, var(--panel-solid))); border: 1px solid var(--line-strong); }
.cta-band h3 { margin: 0 0 6px; font-size: 24px; color: var(--text); }
.cta-band p { margin: 0; color: var(--text-2); }

/* ---------- interactive demo (a small copy of the app's cards) ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 26px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); margin: 24px 0 34px; }
.demo .txt h3 { margin: 0 0 8px; font-size: 22px; }
.demo .txt p { margin: 0 0 10px; color: var(--text-2); }
.demo .hint { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.demo .hint svg { width: 16px; height: 16px; }
.sim {
  --c-bg: #0d1b2a; --c-card: #13263a; --c-lit: #17304a; --c-line: rgba(255, 255, 255, .08); --c-text: #e7eff7; --c-muted: #8da2b8; --c-on: #34d399;
  width: 330px; max-width: 100%; border-radius: 30px; padding: 14px; color: var(--c-text);
  background: linear-gradient(180deg, #143049, #0d1b2a 45%, #08121d);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-family: var(--font); direction: inherit;
}
.sim .sim-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.sim .sim-h b { font-size: 15px; }
.sim .sim-h small { color: var(--c-muted); font-size: 11.5px; }
.sim .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.sim .card {
  position: relative; min-height: 98px; border-radius: 18px; padding: 10px; background: var(--c-card); border: 1px solid var(--c-line);
  display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background .35s, border-color .35s, transform .18s var(--ease), box-shadow .35s; text-align: start;
}
.sim .card:active { transform: scale(.96); }
.sim .card .i { width: 22px; height: 22px; color: var(--c-muted); transition: color .35s, filter .35s; }
.sim .card .n { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--c-text); }
.sim .card .s { font-size: 10.5px; font-weight: 700; color: var(--c-muted); display: flex; align-items: center; gap: 5px; }
.sim .card .s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted); }
.sim .card.on { background: linear-gradient(160deg, rgba(52, 211, 153, .22), var(--c-lit) 60%); border-color: rgba(52, 211, 153, .45); box-shadow: 0 10px 26px -14px rgba(52, 211, 153, .8); }
.sim .card.on .i { color: #ffd166; filter: drop-shadow(0 0 8px rgba(255, 209, 102, .6)); }
.sim .card.on .s { color: var(--c-on); }
.sim .card.on .s::before { background: var(--c-on); }
.sim .card.wide { grid-column: span 2; }
.sim .card .pct { position: absolute; top: 9px; inset-inline-end: 10px; font-size: 10.5px; font-weight: 800; color: var(--c-on); }
.sim input[type="range"] { width: 100%; accent-color: var(--c-on); margin: 4px 0 0; height: 18px; }
.sim .cover { position: relative; height: 26px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: 6px 0 2px; }
.sim .cover i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--open, 100%); background: repeating-linear-gradient(90deg, #2d7a93 0 6px, #2a6f86 6px 12px); transition: width 1.6s linear; }
.sim .btns { display: flex; gap: 4px; }
.sim .btns button { flex: 1; height: 24px; border-radius: 8px; border: 1px solid var(--c-line); background: rgba(255, 255, 255, .05); color: var(--c-text); font-size: 10.5px; font-weight: 800; cursor: pointer; }
.sim .btns button:hover { border-color: var(--c-on); }
.sim .fan .i { transition: color .35s; }
.sim .card.spin .i { animation: spin 1.2s linear infinite; color: var(--c-on); }
.sim .card.spin.s2 .i { animation-duration: .7s; }
.sim .card.spin.s3 .i { animation-duration: .4s; }
.sim .card.locked .i { color: var(--c-on); }
.sim .temp { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.sim .temp b { font-size: 18px; }
.sim .temp button { width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--c-line); background: rgba(255, 255, 255, .06); color: var(--c-text); font-weight: 800; cursor: pointer; }
.sim .toast { margin-top: 10px; min-height: 34px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--c-muted); font-size: 11.5px; display: flex; align-items: center; gap: 8px; }
.sim .toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-on); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* the start page uses the whole width on big screens: its topic tiles are the menu */
@media (min-width: 981px) {
  .home .side, .home .scrim { display: none; }
  .home .shell.wide { grid-template-columns: minmax(0, 1fr); max-width: 1300px; }
  .home .top-in { max-width: 1300px; }
}

/* the contact card */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; margin: 8px 0 28px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.contact-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-card small { color: var(--muted); font-size: 13px; font-weight: 600; }
.contact-card b { font-family: var(--mono); font-size: 18px; color: var(--text); user-select: all; overflow-wrap: anywhere; }
.contact-card .copy {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--panel-solid);
  color: var(--text); border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 14.5px; font-weight: 700;
}
.contact-card .copy:hover { border-color: var(--accent); }
.contact-card .copy svg { width: 16px; height: 16px; }

/* ---------- small screens ---------- */
@media (max-width: 1240px) {
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 60px; }
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-btn { display: inline-grid; }
  .side {
    position: fixed; z-index: 70; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); height: 100vh;
    background: var(--panel-solid); border-inline-end: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 14px 40px max(14px, env(safe-area-inset-left, 0px));
    transform: translateX(-104%); transition: transform .4s var(--ease); visibility: hidden;
  }
  :root[dir="rtl"] .side { transform: translateX(104%); padding: calc(env(safe-area-inset-top, 0px) + 20px) max(14px, env(safe-area-inset-right, 0px)) 40px 14px; }
  .side.open { transform: none !important; visibility: visible; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(4, 10, 18, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .search-btn { width: auto; }
  .search-btn span, .search-btn kbd { display: none; }
  .brand small { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 34px; gap: 10px; }
  .stage { min-height: 520px; }
  .quick, .feature-band { grid-template-columns: minmax(0, 1fr); }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .txt { order: 0; }
  .split .shots, .split > figure { justify-self: center; }
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (max-width: 640px) {
  .tbl:not(.stack) table { min-width: 0; font-size: 14px; }
  .tbl:not(.stack) th, .tbl:not(.stack) td { padding: 10px 12px; }
  .tbl.stack table, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; min-width: 0; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { padding: 0; border: 0; }
  .tbl.stack td:first-child { font-size: 16px; margin-bottom: 2px; }
  .tbl.stack td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--muted);
  }
  :root[lang="ar"] .tbl.stack td[data-label]::before { letter-spacing: 0; font-size: 13px; }
  .top .cta-btn { display: none; }
  .top-in { gap: 8px; }
  .lang-btn { padding: 0 10px; }
  .lang-btn svg { display: none; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn .next { grid-column: 1; }
  .article h2 { font-size: 23px; margin-top: 44px; }
  .phone { --w: 236px; }
  .shots { gap: 22px; }
  .stage .phone { --w: 256px; }
  .stage .ring { width: 360px; height: 360px; }
  .stage .ring.r2 { width: 290px; height: 290px; }
  .chip { font-size: 12px; padding: 8px 11px; }
  .chip.c2 { inset-inline-end: 0; }
  .cta-band { padding: 24px; }
  .sim { width: 100%; }
}
@media (max-width: 420px) {
  .brand .bt { display: none; }
}
@media (max-width: 380px) {
  .brand b { font-size: 16px; }
  .icon-btn { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ground i { animation: none; }
  @view-transition { navigation: none; }
  .stage .scr .reel { display: none; }
}
