/* Saree3 website — product-style design system. French/Arabic, RTL-aware (logical properties), mobile first.
   Shared by index.html, guide-ar.html and 404.html. */
:root {
  --blue: #2f6fd8;
  --blue-dark: #1f56b8;
  --blue-soft: #eef4ff;
  --tile: #eef4ff;       /* soft yellow behind module icons (brand sheet) */
  --brand-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --accent: #ffcb57;
  --accent-2: #f5b52e;
  --sky: #7ab3f5;
  --sky-soft: #e3efff;
  --green: #12a150;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --night: #061232;   /* navy: dark panels (Pro plan, data banner, guide header) */
  --night-2: #0b1d4d;
  --ink: #0b1530;
  --ink-2: #45464d;
  --muted: #6e7079;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 1px rgba(11, 16, 32, .04);
  --shadow: 0 12px 32px -12px rgba(11, 16, 32, .18), 0 2px 6px rgba(11, 16, 32, .05);
  --shadow-lg: 0 40px 80px -24px rgba(11, 16, 32, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
  --max: 1200px;
  --header-h: 68px;
}
[dir='rtl'] { --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 112px; }
.section-tight { padding-block: 40px; }
.section.alt { background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%); border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2, .activation h2, .faq-side h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head p, .lead { color: var(--ink-2); font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); background: var(--blue-soft); border: 1px solid #dbe6fb; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
[dir='rtl'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px -8px rgba(255, 176, 32, .7); }
.btn-primary:hover { background: #ffd36b; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(122, 179, 245, .7); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn-light { background: var(--ink); color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* Header — transparent over the dark hero, frosted white once scrolled */
.header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; transition: background .25s, border-color .25s, box-shadow .25s; border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: grid; gap: 3px; }
.wordmark { direction: ltr; unicode-bidi: isolate; display: inline-flex; align-items: center; font-family: var(--brand-font); font-weight: 800; font-size: 1.32rem; letter-spacing: -.04em; line-height: 1; }
[dir='rtl'] .wordmark, [dir='rtl'] .brand small { justify-self: end; }
.wordmark b { color: var(--blue); font-weight: 800; }
.wordmark em { font-style: normal; font-family: var(--brand-font); font-size: .5rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); border: 1.5px solid currentColor; border-radius: 5px; padding: 2px 4px 2px 5px; line-height: 1; margin-left: 8px; }
.brand small { direction: ltr; display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1; white-space: nowrap; }
.brand small span { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; color: inherit; }
.brand small i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: 7px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(11, 16, 32, .05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: rgba(11, 16, 32, .05); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.lang button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .8rem; min-width: 34px; padding: 5px 8px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.lang button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; }
.header.scrolled, .header:has(.nav-links.open) { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-color: var(--line); }
.header:not(.scrolled):not(:has(.nav-links.open)) .brand { color: #fff; }
.header:not(.scrolled):not(:has(.nav-links.open)) .brand small { color: rgba(255, 255, 255, .55); }
.header:not(.scrolled):not(:has(.nav-links.open)) .wordmark b, .header:not(.scrolled):not(:has(.nav-links.open)) .wordmark em { color: #cfe0ff; }
.header:not(.scrolled):not(:has(.nav-links.open)) .nav-links a { color: rgba(255, 255, 255, .72); }
.header:not(.scrolled):not(:has(.nav-links.open)) .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header:not(.scrolled):not(:has(.nav-links.open)) .lang { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.header:not(.scrolled):not(:has(.nav-links.open)) .lang button { color: rgba(255, 255, 255, .6); }
.header:not(.scrolled):not(:has(.nav-links.open)) .lang button.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.header:not(.scrolled):not(:has(.nav-links.open)) .btn-light { background: #fff; color: var(--ink); }
.header:not(.scrolled):not(:has(.nav-links.open)) .menu-btn { color: #fff; }
.header:not(.scrolled):not(:has(.nav-links.open)) .brand img { border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45), 0 6px 16px -6px rgba(0, 0, 0, .35); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(to bottom, transparent calc(100% - 200px), var(--bg) calc(100% - 200px)), linear-gradient(165deg, #020714 0%, #040e29 50%, #06153d 100%); padding-top: calc(var(--header-h) + 72px); }
.hero-bg { position: absolute; inset: 0 0 200px 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(47, 111, 216, .3) 0%, transparent 70%),
    radial-gradient(30% 30% at 85% 30%, rgba(47, 111, 216, .30) 0%, transparent 70%),
    radial-gradient(30% 30% at 15% 40%, rgba(47, 111, 216, .18) 0%, transparent 70%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 920px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); padding: 6px 14px 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 28px; transition: background .2s, border-color .2s; }
.badge:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.badge i { display: inline-flex; opacity: .6; }
.badge svg { width: 14px; height: 14px; }
[dir='rtl'] .badge svg { transform: scaleX(-1); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; margin-bottom: 24px; }
[dir='rtl'] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 span { display: block; }
.grad { background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 50%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero .grad { background: none; color: var(--accent); }
.hero-text { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 680px; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 28px; justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }
.hero-shot { position: relative; z-index: 1; max-width: 1120px; margin-top: 72px; }
.hero-shot::before { content: ''; position: absolute; inset: 10% 8% auto; height: 60%; background: radial-gradient(closest-side, rgba(122, 179, 245, .55), transparent); filter: blur(40px); z-index: -1; }
.hero-shot .window { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 10px rgba(255, 255, 255, .04), var(--shadow-lg); border-color: rgba(255, 255, 255, .1); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); color: var(--ink); padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--shadow); font-weight: 600; font-size: .88rem; animation: float 6s ease-in-out infinite; }
[dir='rtl'] .chip { padding: 10px 10px 10px 16px; }
.chip i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.chip svg { width: 17px; height: 17px; }
.chip.c1 { inset-inline-start: -8px; top: 22%; }
.chip.c1 i { background: var(--tile); color: var(--ink); }
.chip.c2 { inset-inline-end: -8px; top: 62%; animation-delay: -3s; }
.chip.c2 i { background: var(--tile); color: var(--ink); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* App window frame (hero + screenshots) */
.window { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.window-bar { position: relative; display: flex; align-items: center; height: 38px; padding-inline: 14px; background: linear-gradient(#fafbfc, #f2f4f7); border-bottom: 1px solid var(--line); direction: ltr; }
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar .dots i:nth-child(2) { background: #febc2e; }
.window-bar .dots i:nth-child(3) { background: #28c840; }
.window-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: .76rem; font-weight: 500; color: var(--muted); font-family: 'Inter', sans-serif; }
.window img { width: 100%; }

/* Trades */
.trades-band { padding-block: 56px 24px; }
.trades-label { text-align: center; color: var(--muted); font-weight: 500; font-size: .95rem; margin-bottom: 24px; }
.trades { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trade { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px 9px 14px; font-weight: 500; font-size: .92rem; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s, transform .2s; }
[dir='rtl'] .trade { padding: 9px 14px 9px 18px; }
.trade:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); background: var(--blue-soft); }
.trade svg { width: 20px; height: 20px; color: var(--ink); }
.trades-text { text-align: center; color: var(--muted); font-size: .92rem; max-width: 640px; margin: 22px auto 0; }

/* Stats */
.stats-wrap { padding-block: 48px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 28px 28px; display: grid; gap: 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; background: linear-gradient(180deg, var(--ink), #3b4566); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #f7f9fe 0%, #fff 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; }

.tile-copy { padding: 30px 30px 24px; }
.tile-copy h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tile-copy p { color: var(--ink-2); font-size: .95rem; margin: 0; max-width: 560px; }
svg .a { stroke: var(--blue); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tile); color: var(--ink); margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.tile-media { margin-top: auto; padding-inline: 30px; height: 280px; overflow: hidden; }
.tile-wide .tile-media { height: 320px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -8px 30px -12px rgba(11, 16, 32, .25); transition: transform .5s; }
.tile-media img.pin-start { object-position: top left; }
.tile:hover .tile-media img { transform: translateY(-6px); }
.tile-dark { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(60% 120% at 100% 0%, rgba(122, 179, 245, .35), transparent 60%), var(--night); border-color: var(--night); color: #fff; }
[dir='rtl'] .tile-dark { background: radial-gradient(60% 120% at 0% 0%, rgba(122, 179, 245, .35), transparent 60%), var(--night); }
.tile-dark .tile-copy { padding: 34px; }
.tile-dark .tile-copy p { color: rgba(255, 255, 255, .65); }
.tile-dark .ico { background: rgba(255, 255, 255, .08); color: #fff; }
.tile-dark .ico svg .a { stroke: var(--accent); }
.tile-dark { padding-inline-end: 34px; }
.offline { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); font-family: var(--mono); font-size: .95rem; color: #fff; white-space: nowrap; direction: ltr; }
.offline i { display: inline-flex; color: #fff; }
.offline svg .a { stroke: var(--accent); }
.offline svg { width: 22px; height: 22px; }

.more-title { text-align: center; font-size: 1.3rem; margin: 88px 0 36px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.feature .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h4 { font-size: 1rem; margin-bottom: 4px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .92rem; line-height: 1.6; }

/* Modules — the 18 icons of the app on the brand yellow */
.modules { position: relative; overflow: hidden; background: radial-gradient(50% 60% at 50% 0%, rgba(47, 111, 216, .35), transparent 70%), var(--night); color: #fff; }
.modules .section-head p { color: rgba(255, 255, 255, .7); }
.modules .eyebrow { color: #cfe0ff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.mods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; border-radius: 18px; padding: 24px 10px 20px; box-shadow: 0 1px 0 rgba(17, 17, 17, .06); transition: transform .2s, box-shadow .2s; }
.mod:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
.mod .ico { order: -2; width: 60px; height: 60px; border-radius: 16px; margin: 0 0 12px; }
.mod .ico svg { width: 28px; height: 28px; }
.mod b { font-weight: 700; font-size: .98rem; color: var(--ink); }
.mod span { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: .9rem; color: var(--muted); }
[dir='rtl'] .mod span { order: -1; font-weight: 700; font-size: 1rem; color: var(--ink); }
[dir='rtl'] .mod b { font-weight: 500; font-size: .86rem; color: var(--muted); font-family: 'Inter', sans-serif; }

/* Screens */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 500; font-size: .9rem; padding: 8px 16px; border-radius: 9px; cursor: pointer; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); background: var(--bg-2); }
.tabs button.on { background: var(--ink); color: #fff; }
.screen { max-width: 1080px; margin: 0 auto; }
.screen img { cursor: zoom-in; }
.screen p { text-align: center; color: var(--ink-2); margin: 22px auto 0; font-size: 1rem; max-width: 720px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.step .num { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: 40px; display: flex; align-items: center; gap: 12px; }
.step .num::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--line-2), transparent); }
[dir='rtl'] .step .num::after { background: linear-gradient(to left, var(--line-2), transparent); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* Download */
.download { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; background: var(--night); color: #fff; border-radius: 28px; padding: 64px; }
.download::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(47, 111, 216, .45), transparent); pointer-events: none; }
[dir='rtl'] .download::before { inset: -40% auto auto -10%; }
.download > * { position: relative; min-width: 0; }
.download h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.download p { color: rgba(255, 255, 255, .7); font-size: 1.06rem; margin-bottom: 28px; }
.download-logo { width: 56px; margin-bottom: 24px; border-radius: 15px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); }
.download-meta { margin-top: 14px; font-size: .85rem; color: rgba(255, 255, 255, .5); font-family: var(--mono); }
[dir='rtl'] .download-meta { font-family: var(--font); }
.download .download-steps { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 28px; margin: 0; color: rgba(255, 255, 255, .85); }
.download .download-steps .n { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.download-steps .n svg { width: 16px; height: 16px; }
.download-help a { color: var(--accent); font-weight: 600; }

/* Activation */
.activation { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.act-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.act-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.act-list .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .85rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-soft); border: 1px solid #dbe6fb; color: #1f3f7a; padding: 14px 16px; border-radius: 12px; font-size: .93rem; }
.note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.mock { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; border: 1px solid var(--line); }
.mock h4 { margin: 0 0 22px; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.mock h4 img { width: 28px; }
.mock label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.mock .field { border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: .9rem; margin-bottom: 18px; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock .field.id { font-size: 1.1rem; font-weight: 600; color: var(--blue); letter-spacing: .06em; }
.mock .row { display: flex; gap: 10px; }
.mock .row .btn { flex: 1; }

/* Pricing (cards rendered by main.js) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.popular { background: radial-gradient(80% 60% at 50% 0%, rgba(122, 179, 245, .35), transparent 70%), var(--night); color: #fff; border-color: var(--night); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: 20px; inset-inline-end: 20px; background: var(--accent); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; font-weight: 600; }
.plan .tagline { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; font-size: 2.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .once { color: var(--muted); font-size: .85rem; margin: 8px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.plan.popular .tagline, .plan.popular .once, .plan.popular .price small { color: rgba(255, 255, 255, .55); }
.plan.popular .once { border-color: rgba(255, 255, 255, .12); }
.plan.popular li { color: rgba(255, 255, 255, .82); }
.plan.popular li svg { color: #4ade80; }
.pricing-foot { text-align: center; margin-top: 40px; color: var(--muted); display: grid; gap: 6px; justify-items: center; font-size: .93rem; }
.pricing-foot strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.pricing-foot strong svg { width: 18px; height: 18px; color: var(--blue); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.guide-card { margin-top: 32px; padding: 26px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.guide-card i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tile); color: var(--ink); margin-bottom: 16px; }
.guide-card i svg { width: 20px; height: 20px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.guide-card p { color: var(--ink-2); font-size: .93rem; margin-bottom: 18px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; transition: color .15s; }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1020' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--bg-2); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 640px; }

/* CTA */
.cta-wrap { padding-bottom: 96px; }
.cta { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, #1f56c4 0%, #2f6fd8 60%, #3b7be0 100%); color: #fff; border-radius: 28px; padding: 88px 32px; }
.cta::before { content: ''; position: absolute; inset: auto 10% -60% 10%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.cta::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; }
[dir='rtl'] .cta h2 { letter-spacing: 0; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.cta .hero-cta { margin-bottom: 0; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-2); padding-block: 56px 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-made { margin-top: 14px; color: var(--muted); max-width: 320px; }
.footer h4 { color: var(--ink); margin: 0 0 14px; font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .brand { color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted); }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(37, 211, 102, .15), 0 12px 28px -6px rgba(18, 140, 75, .55); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Lightbox + toast */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7, 11, 24, .9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; z-index: 90; font-weight: 600; box-shadow: var(--shadow-lg); max-width: min(560px, calc(100vw - 32px)); text-align: center; line-height: 1.6; animation: fade .25s; }
.toast span { font-weight: 400; opacity: .75; font-size: .9rem; }
@keyframes fade { from { opacity: 0; } }

/* Scroll reveal (class added by main.js only when motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

.hero-inner > *, .activation > *, .plans > *, .features > *, .bento > *, .faq-layout > * { min-width: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 7px 8px; font-size: .88rem; }
}
@media (max-width: 960px) {
  .section { padding-block: 88px; }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: var(--header-h); inset-inline: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; border-radius: 0; }
  .nav-links a:hover { background: transparent; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .activation, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
  .faq-side { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mods { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .download { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .chip.c1 { inset-inline-start: 12px; top: auto; bottom: 16px; }
  .chip.c2 { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 72px; }
  .hero { padding-top: calc(var(--header-h) + 40px); background: linear-gradient(to bottom, transparent calc(100% - 80px), var(--bg) calc(100% - 80px)), linear-gradient(165deg, #020714 0%, #040e29 50%, #06153d 100%); }
  .hero-bg { inset-block-end: 80px; }
  .hero-shot { margin-top: 48px; }
  .window-bar { height: 28px; }
  .window-bar .dots i { width: 8px; height: 8px; }
  .window-title { display: none; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
  .chip { display: none; }
  .brand small { display: none; }
  .wordmark { font-size: 1.2rem; }
  .bento, .features, .footer-grid { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-copy { padding: 24px 22px 20px; }
  .tile-media, .tile-wide .tile-media { height: 220px; padding-inline: 22px; }
  .tile-dark { flex-direction: column; align-items: flex-start; }
  .tile-dark .tile-copy { padding: 26px 22px 0; }
  .tile-dark { padding-inline-end: 0; }
  .offline { margin: 0 22px 26px; }
  .tabs-wrap { justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; }
  .download, .cta { border-radius: 22px; }
  .download { padding: 32px 20px; }
  .download .btn-lg { width: 100%; }
  .cta { padding: 64px 20px; }
  .mock { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ Arabic guide (guide-ar.html) ============ */
.guide-hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 50% 0%, rgba(122, 179, 245, .4), transparent 70%), var(--night); color: #fff; padding-block: calc(var(--header-h) + 64px) 64px; }
.guide-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); pointer-events: none; }
.guide-hero .container { position: relative; }
.guide-hero .eyebrow { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.guide-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.guide-hero p { color: rgba(255, 255, 255, .68); font-size: 1.1rem; max-width: 720px; margin: 0; }
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-block: 56px 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 4px 0; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc h4 { margin: 0 0 12px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; font-size: .9rem; border-inline-start: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; color: var(--ink-2); padding: 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; transition: color .15s, border-color .15s; }
.toc a::before { content: counter(toc) '. '; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--blue); font-weight: 600; border-color: var(--blue); }
.doc { min-width: 0; font-size: 1.04rem; max-width: 820px; }
.doc section { padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 14px; }
.doc h2 .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: .95rem; font-weight: 700; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc ul, .doc ol { padding-inline-start: 24px; }
.doc li { margin-bottom: 6px; }
.doc figure { margin: 26px 0; }
.doc figure img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; }
.doc figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 12px; }
.doc kbd { display: inline-block; font-family: var(--mono); font-size: .82em; background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; direction: ltr; }
.doc code { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.tip, .warn, .info { border-radius: 12px; padding: 16px 18px; margin: 20px 0; border: 1px solid; font-size: .98rem; }
.tip { background: #f0fdf4; border-color: #bbf7d0; }
.warn { background: #fffbeb; border-color: #fde68a; }
.info { background: var(--blue-soft); border-color: #c7d4fe; }
.tip b:first-child, .warn b:first-child, .info b:first-child { display: block; margin-bottom: 4px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.flow span { background: #fff; border: 1px solid var(--line-2); color: var(--ink); border-radius: 9px; padding: 7px 14px; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow-sm); }
.flow em { color: var(--muted); font-style: normal; font-size: 1.1rem; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: .95rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: start; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--bg-2); font-weight: 600; }
.table-wrap { overflow-x: auto; }
body:not(.home) .footer { padding-block: 0 28px; }
body:not(.home) .footer .bottom { border-top: 0; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; padding: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
  .toc ol { border: 0; }
  .toc a { border: 0; padding-inline: 0; }
}
@media print {
  .header, .toc, .wa-float, .footer { display: none !important; }
  .guide-layout { display: block; padding: 0; }
  .guide-hero { background: none; color: var(--ink); padding: 0 0 20px; }
  .guide-hero::before { display: none; }
  .guide-hero p { color: var(--ink-2); }
  .doc section { break-inside: avoid-page; }
}
