/* الصفحة الرئيسية لوزنة: أبيض نظيف، عناوين كبيرة كحلية، وحركات هادئة عند التمرير */
:root {
  --bg: #ffffff; --soft: #f4f6fb; --soft-2: #e9eef8; --ink: #0d1b2a; --ink-2: #4a5868; --ink-3: #7d8a97; --line: #e5eaee;
  --brand: #2346d6; --brand-2: #1a37b3; --brand-3: #3d63ec; --brand-soft: #e8eeff;
  --cta: #f2a516; --cta-2: #d88f0a; --gold-ink: #3a2600; --navy: #0a1633; --navy-2: #12224d;
  --c-purple: #7c4ddb; --c-green: #19a463; --c-pink: #e0457b; --c-orange: #e8803a; --c-blue: #2f6fe4; --c-teal: #0fa3a3;
  --radius: 16px; --shadow: 0 10px 30px rgba(13, 27, 42, .08); --shadow-lg: 0 24px 60px rgba(13, 27, 42, .14);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 "IBM Plex Sans Arabic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid #f0a53a; outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font: inherit; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.cta { background: linear-gradient(90deg, var(--cta), #f7c04a); border: 0; color: var(--navy); font-size: 19px; padding: 18px 28px; border-radius: 12px; box-shadow: 0 10px 26px rgba(242, 165, 22, .28); }
.btn.cta:hover { background: linear-gradient(90deg, var(--cta-2), var(--cta)); }
.btn.light { background: #fff; color: var(--navy); border-color: transparent; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.arrow { display: inline-block; transition: transform .2s; }
a:hover .arrow, .btn:hover .arrow { transform: translateX(-4px); }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(13,27,42,.06); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 22px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--brand); text-decoration: none; }
.top .actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.top .login { color: var(--ink); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.top .start { display: grid; justify-items: center; gap: 2px; }
.top .start .btn { padding: 9px 20px; }
.top .start small { font-size: 11px; color: var(--brand); }
.menu-btn { display: none; background: var(--soft); border: 0; border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 980px) {
  .top nav, .top .login, .top .start small { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .top nav.open { display: grid; position: absolute; top: 72px; inset-inline: 0; background: #fff; padding: 12px 20px 18px; gap: 4px; box-shadow: var(--shadow); }
  .top nav.open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* الواجهة الأولى */
.hero { position: relative; padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(700px 300px at 50% 0%, rgba(35,70,214,.07), transparent 70%),
  repeating-linear-gradient(135deg, transparent 0 46px, rgba(13,27,42,.035) 46px 47px); mask-image: linear-gradient(#000 40%, transparent 85%); }
.meteor { position: absolute; top: -10%; width: 2px; height: 120px; border-radius: 2px; background: linear-gradient(rgba(35,70,214,0), rgba(35,70,214,.45)); transform: rotate(-45deg);
  animation: meteor 7s linear infinite; opacity: 0; }
@keyframes meteor { 0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; } 8% { opacity: 1; } 60% { opacity: .9; } 100% { transform: translate(-520px, 520px) rotate(-45deg); opacity: 0; } }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 700; color: var(--ink); position: relative; z-index: 0; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .18em; background: rgba(242,165,22,.22); border-radius: 4px; z-index: -1; transform-origin: right; animation: underline 1s .6s both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero p.lead { max-width: 760px; margin: 18px auto 30px; font-size: 18px; color: var(--ink-2); }
.hero .cta-row { max-width: 640px; margin: 0 auto; display: grid; }
.ticks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--brand); }
.trust-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 26px 0 0; color: var(--ink-3); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

/* لقطة النظام داخل إطار المتصفح */
.browser { max-width: 1060px; margin: 54px auto 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); text-align: start; overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d5dce3; }
.app-mock { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.app-side { background: #0f2a6b; color: #dcefe8; padding: 16px 12px; display: grid; align-content: start; gap: 4px; font-size: 13px; }
.app-side .brandline { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.app-side .brandline img { width: 24px; height: 24px; display: block; }
.app-side span { padding: 7px 10px; border-radius: 8px; opacity: .85; }
.app-side span.on { background: rgba(255,255,255,.12); opacity: 1; }
.app-main { padding: 18px 20px; background: #f7f9f8; display: grid; gap: 14px; align-content: start; }
.app-hello { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.app-hello small { color: var(--ink-3); font-weight: 400; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quick div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.quick svg { width: 26px; height: 26px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini-kpis span { display: block; font-size: 12px; color: var(--ink-3); }
.mini-kpis b { font-size: 20px; }
.mini-kpis b.up { color: var(--c-green); }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chart-card header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.chart-card header small { color: var(--ink-3); font-weight: 400; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--brand-3), var(--brand)); transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.bars i:nth-child(even) { background: linear-gradient(#8fb0ff, #7aa2ff); }
.in .bars i { transform: scaleY(1); }
@media (max-width: 760px) {
  .app-mock { grid-template-columns: 1fr; } .app-side { display: none; }
  .quick { grid-template-columns: repeat(3, 1fr); } .quick div:nth-child(n+4) { display: none; }
  .mini-kpis b { font-size: 16px; }
}

/* الأقسام */
section.block { padding: 110px 0 0; }
.sec-title { margin-bottom: 44px; }
.sec-title .kicker { display: inline-block; color: var(--brand); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.sec-title h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; }
.sec-title p { color: var(--ink-2); font-size: 17px; margin: 12px 0 0; max-width: 640px; }
.sec-title.center { text-align: center; } .sec-title.center p { margin-inline: auto; }

/* شبكة الوحدات */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.module h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.module .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.module p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; gap: 28px; } }

/* مناسب لكل نشاط: بطاقة دعوة وشريط أنشطة متحرك */
.fields-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand-soft), #f3f6ff);
  border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.fields-cta h2 { font-size: clamp(26px, 3.4vw, 40px); }
.fields-cta p { color: var(--ink-2); max-width: 620px; margin: 10px 0 0; }
.marquee { margin-top: 28px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.marquee-track span, .marquee-track a { flex: none; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 20px; } }

/* أقسام المزايا: أكورديون ولقطة متحركة */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.feature.flip .feat-copy { order: 2; }
.tint { background: var(--soft); padding: 90px 0; margin-top: 110px; }
.tint + section.block, .tint + .tint { padding-top: 0; }
.acc { border-top: 1px solid var(--line); margin-top: 8px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 2px; cursor: pointer; font-weight: 600; font-size: 17px; }
.acc-item button:focus-visible { outline: 3px solid #f0a53a; }
.acc-item button svg.i { color: var(--ink-2); flex: none; }
.acc-item button .chev { margin-inline-start: auto; transition: transform .25s; color: var(--ink-3); }
.acc-item[aria-expanded="true"] button .chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item[aria-expanded="true"] .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; padding-inline-start: 32px; }
.feat-copy .btn.cta { margin-top: 28px; font-size: 17px; padding: 15px 24px; }
.stage { position: relative; min-height: 400px; }
.panel { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s, transform .45s; pointer-events: none; }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feat-copy { order: 0; }
  .stage { min-height: 360px; }
}

/* البطاقات داخل اللقطات */
.ui { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; }
.ui-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ui-body { padding: 12px 14px; display: grid; gap: 8px; }
.ui table { width: 100%; border-collapse: collapse; }
.ui th { text-align: start; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ui td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.ui tr:last-child td { border-bottom: 0; }
.ui tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: #fdf0e2; color: #b4620e; } .pill.blue { background: #e7efff; color: var(--c-blue); } .pill.red { background: #fde8ee; color: var(--c-pink); }
.float { position: absolute; animation: float 6s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; } .float.d3 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; white-space: nowrap; }
.chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.chip b { display: block; font-size: 15px; }
.chip small { color: var(--ink-3); }
.donut { --p: 70; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e3ece9 0); display: grid; place-items: center; }
.donut::after { content: attr(data-label); width: 86px; height: 86px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.qr { width: 64px; height: 64px; background:
  conic-gradient(from 90deg at 25% 25%, #0d1b2a 25%, transparent 0) 0 0 / 16px 16px,
  repeating-linear-gradient(90deg, #0d1b2a 0 4px, transparent 4px 9px), #fff; border: 4px solid #fff; outline: 1px solid var(--line); border-radius: 6px; }
.line-chart { width: 100%; height: 120px; }
.line-chart path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s ease; }
.in .line-chart path { stroke-dashoffset: 0; }

/* شريط داكن بديل الصورة */
.band { margin-top: 110px; background: radial-gradient(800px 400px at 85% 20%, rgba(242,165,22,.25), transparent 60%), linear-gradient(120deg, var(--navy), #14306e); color: #fff; overflow: hidden; position: relative; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 460px; padding-top: 60px; padding-bottom: 60px; }
.band h2 { font-size: clamp(30px, 4vw, 48px); }
.band p { color: #b9cdc8; font-size: 17px; }
.band a.more { color: #fff; font-weight: 600; }
.band-art { position: relative; height: 340px; }
.band-art .chip { color: var(--ink); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } .band-art { height: 300px; } }

/* كتل الجمهور */
.audience { display: grid; grid-template-columns: 1fr 1fr; margin-top: 110px; }
.aud { padding: 56px clamp(24px, 5vw, 72px); color: #fff; min-height: 320px; display: grid; align-content: center; gap: 12px; position: relative; overflow: hidden; }
.aud.navy { background: var(--navy); } .aud.brand { background: var(--brand); } .aud.navy2 { background: var(--navy-2); }
.aud small { color: rgba(255,255,255,.7); font-size: 14px; }
.aud h3 { font-size: clamp(26px, 3.2vw, 38px); }
.aud p { color: rgba(255,255,255,.78); margin: 0; }
.aud a { color: #fff; font-weight: 600; }
.aud::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 240px; height: 240px; border: 2px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 60px rgba(255,255,255,.03); }
.aud.wide { grid-column: 1 / -1; min-height: 240px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* لماذا وزنة */
.why { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; }
.why > div { padding: 40px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.why > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.why > div:nth-last-child(-n+2) { border-bottom: 0; }
.why .ic { width: 46px; height: 46px; color: var(--brand); margin-bottom: 14px; }
.why h3 { font-size: 20px; margin-bottom: 8px; }
.why p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why > div:nth-child(odd) { border-inline-end: 0; } .why > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* الأرقام */
.stats { margin-top: 110px; background: linear-gradient(120deg, #14306e, var(--navy)); color: #fff; }
.stats .wrap { padding-top: 70px; padding-bottom: 70px; }
.stats h2 { font-size: clamp(28px, 3.6vw, 42px); }
.stats .sub { color: #b9cdc8; margin: 10px 0 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.1; }
.stat span { color: #b9cdc8; font-size: 15px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* الباقات */
.billing-toggle { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 5px; margin-bottom: 30px; }
.billing-toggle button { font: inherit; border: 0; background: transparent; padding: 8px 22px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(13,27,42,.1); }
.billing-toggle .save { font-size: 12px; color: #a86a00; margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.hl { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 21px; }
.plan .sub { color: var(--ink-2); font-size: 14px; min-height: 2.6em; }
.plan .price { font-size: 42px; font-weight: 700; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.plan .per { font-size: 13px; color: var(--ink-3); min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan li svg { color: var(--brand); margin-top: 5px; }
.plan .btn { margin-top: auto; }
.plans-note { color: var(--ink-3); font-size: 14px; margin-top: 16px; }

/* الأسئلة */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* المساعدة والتواصل */
.help { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; background: var(--soft); border-radius: 24px; padding: clamp(24px, 5vw, 56px); }
.help h2 { font-size: clamp(28px, 3.4vw, 40px); }
.help p { color: var(--ink-2); }
.help .channels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form { background: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 12px; position: relative; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(35,70,214,.12); }
.field textarea { resize: vertical; min-height: 84px; }
.form .msg { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.form .msg.ok { background: var(--brand-soft); color: var(--brand); }
.form .msg.err { background: #fde8ee; color: #b42346; }
.consent { margin: 0; font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }

footer { padding: 60px 0 40px; color: var(--ink-3); font-size: 14px; margin-top: 110px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* الظهور عند التمرير */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .bars i { transform: none; } .line-chart path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ===== نافذة «اختر مجال عملك» ===== */
html.fo-lock { overflow: hidden; }
.fields-overlay { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.fields-overlay.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.fo-bar { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.fo-search { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 24px; color: var(--ink-2); }
.fo-search input { flex: 1; border: 0; font: inherit; font-size: 18px; padding: 20px 0; outline: none; background: transparent; color: var(--ink); }
.fo-close { width: 64px; align-self: stretch; border: 0; background: var(--soft); font-size: 30px; cursor: pointer; color: var(--ink); }
.fo-close:hover { background: var(--soft-2); }
.fo-body { overflow-y: auto; padding: clamp(20px, 4vw, 48px); }
.fo-groups, .fo-items { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 36px; }
.fo-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fo-group { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 8px; align-content: start; padding: 6px; border-radius: 12px; animation: fo-in .4s both; animation-delay: calc(var(--i) * 30ms); }
.fo-group:hover b, .fo-group:focus-visible b { color: var(--brand); }
.fo-group:focus-visible { outline: 3px solid #f0a53a; }
.fo-group b { font-size: 22px; line-height: 1.35; color: var(--ink); transition: color .2s; }
.fo-group > span:not(.fo-ic) { color: var(--ink-2); font-size: 14.5px; }
.fo-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.fo-arrow { color: var(--brand); font-size: 22px; display: inline-block; transition: transform .2s; }
.fo-group:hover .fo-arrow { transform: translateX(-4px); }
.fo-all { text-decoration: none; align-self: center; }
.fo-all:hover { text-decoration: none; }
.fo-group-head { max-width: 1200px; margin: 0 auto 22px; }
.fo-group-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.fo-group-head p { color: var(--ink-2); margin: 6px 0 0; }
.fo-back { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.fo-back:hover { background: var(--soft); }
.fo-item { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); animation: fo-in .4s both; animation-delay: calc(var(--i) * 25ms); transition: border-color .2s, box-shadow .2s, transform .2s; }
.fo-item:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.fo-item b { font-size: 16px; }
.fo-item span { color: var(--ink-2); font-size: 14px; }
.fo-empty { text-align: center; color: var(--ink-2); font-size: 17px; }
@keyframes fo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .fo-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fo-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fo-groups, .fo-items { grid-template-columns: 1fr; } .fo-group b { font-size: 19px; } }

/* ===== صفحة النشاط وصفحة كل المجالات ===== */
.ind-hero { padding: 60px 0 0; text-align: center; position: relative; overflow: hidden; }
.ind-hero .crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.ind-hero .crumb a { color: var(--ink-2); }
.ind-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
.ind-hero p.lead { max-width: 760px; margin: 16px auto 28px; font-size: 18px; color: var(--ink-2); }
.ind-mock { max-width: 760px; margin: 46px auto 0; position: relative; min-height: 300px; }
.ind-mock .ui { width: min(460px, 92%); margin: 0 auto; text-align: start; }
.ind-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 70px 0 0; }
.ind-feature:nth-child(even) .ind-copy { order: 2; }
.ind-copy .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.ind-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.ind-copy p { color: var(--ink-2); font-size: 17px; margin: 12px 0 0; }
.ind-art { background: var(--soft); border-radius: 22px; min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; }
.ind-art .big-ic { width: 120px; height: 120px; color: var(--brand); opacity: .9; }
.ind-art::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 2px dashed rgba(35, 70, 214, .15); animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .ind-feature { grid-template-columns: 1fr; gap: 24px; padding-top: 50px; } .ind-feature:nth-child(even) .ind-copy { order: 0; } }
.mods { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mods span { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; color: var(--ink-2); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }
.all-groups { display: grid; gap: 44px; }
.all-group h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin-bottom: 6px; }
.all-group > p { color: var(--ink-2); margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .ind-art::before { animation: none; } }

[hidden] { display: none !important; }
@media (max-width: 560px) { .ind-mock .chip { display: none; } .ind-mock { min-height: 0; } }

/* ===== زر اللغة، وتعديلات الاتجاه من اليسار لليمين ===== */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[dir=ltr] .arrow { display: inline-block; transform: scaleX(-1); }
[dir=ltr] a:hover .arrow, [dir=ltr] .btn:hover .arrow { transform: scaleX(-1) translateX(-4px); }
[dir=ltr] .hero h1 .hl::after { transform-origin: left; }
[dir=ltr] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir=ltr] .fo-group:hover .fo-arrow { transform: translateX(4px); }
[lang=en] body { letter-spacing: 0; }
/* على الجوال: الزر أيقونة ورمز قصير حتى تكفي المساحة لزر البدء والقائمة */
@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .top .actions { gap: 8px; }
  .top .start .btn { padding: 9px 14px; }
  .lang-btn { padding: 0; width: 42px; height: 42px; justify-content: center; gap: 0; }
  .lang-btn span { display: none; }
  .lang-btn::after { content: "EN"; font-size: 12px; font-weight: 700; margin-inline-start: 2px; }
  [lang=en] .lang-btn::after { content: "ع"; font-size: 15px; }
  .lang-btn svg { width: 15px; height: 15px; }
}
