/* الصفحة الرئيسية. الفكرة: الصفحة كلها حول لحظة رنين الجوال لما يجي الدور.
   الحركة بـ GSAP و ScrollTrigger من /vendor، ولها بديل ثابت لمن يفضّل تقليل الحركة. */
/* الفكرة: الصفحة كلها مبنية حول لحظة واحدة، الجوال يرن لما يجي الدور.
   الهيرو يمثّل النداء قدامك، وقسم «كيف تشتغل» يمشي معك خطوة خطوة على شاشة جوال ثابتة وأنت تنزل.
   الحركة: GSAP + ScrollTrigger، مع بديل ثابت لمن يفضّل تقليل الحركة. */
:root {
  color-scheme: light;
  --bg: #F4ECE2; --bg-2: #ECE7DA; --surface: #FFFDF8; --ink: #141833; --muted: #5A5F75; --line: #E2DCCD;
  --acc: #C53F2A;
  --acc-2: color-mix(in srgb, var(--acc) 78%, #000);
  --acc-soft: color-mix(in srgb, var(--acc) 12%, var(--bg));
  --acc-text: var(--acc);
  --sun: #FFD84D; --sun-ink: #1A1400;
  --deep: #0D1240; --deep-2: #161D5A; --on-deep: #F3F3FF; --on-deep-muted: #B3B8DA;
  --nav-bg: rgba(255, 253, 248, .86); --bar: #CBD0E6; --good: #12925F; --phone: #0B0E24; --bad: #B4271C;
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
::selection { background: var(--acc); color: #fff; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1180px; margin-inline: auto; }
.acc { color: var(--acc-text); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-weight: 600; font-size: .95rem; color: var(--acc-text); }

/* أزرار */
.btn { --lift: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 26px; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transform: translateY(var(--lift)); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s; }
.btn:hover { --lift: -2px; }
.btn:active { --lift: 1px; transition-duration: .08s; }
.btn .arr { transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(-4px); }
.btn.primary { background: var(--acc); color: #fff; box-shadow: 0 14px 30px -14px var(--acc); }
.btn.primary:hover { box-shadow: 0 20px 36px -14px var(--acc); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--sun-ink); }
.btn.sm { min-height: 42px; padding: 6px 18px; font-size: .9375rem; }

/* شريط التنقل */
.nav-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20; display: flex; justify-content: center; padding-block: 12px 0; }
.nav { display: flex; align-items: center; gap: 6px; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 12px; max-width: 100%; transition: box-shadow .3s var(--ease-out); }
.nav.scrolled { box-shadow: 0 14px 34px -20px rgba(20, 24, 51, .45); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; padding-inline: 10px 4px; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: auto; height: 58px; }
@media (max-width: 400px) { .brand img { height: 50px; } }
/* الجوال: زر البداية ما ينكسر لسطرين بعد ما انضاف رابط الدخول */
.nav .btn.sm { white-space: nowrap; }
.nav .brand { flex: none; margin-inline-end: auto; }
@media (max-width: 430px) {
  .brand img { height: 42px; }
  .nav { gap: 2px; }
  .nav .lang-btn, .nav-login { padding-inline: 8px; }
  .nav .btn.sm { padding-inline: 14px; }
}
.nav-links { display: none; gap: 2px; padding-inline: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* الهيرو */
.hero { position: relative; padding-block: 48px 40px; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, var(--acc-soft), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.15; letter-spacing: -.01em; margin: 14px 0 20px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
.wi { display: inline-block; }
.hero .lead { color: var(--muted); font-size: 1.1875rem; max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--good); flex: none; }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i { position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; }

/* الجوال */
.phone { position: relative; width: 268px; aspect-ratio: 9 / 18.6; border-radius: 46px; background: var(--phone); padding: 10px; box-shadow: 0 50px 90px -40px rgba(13, 18, 64, .55), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.notch { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: var(--phone); z-index: 3; }
.screen { position: absolute; inset: 10px; border-radius: 36px; background: var(--surface); overflow: hidden; color: var(--ink); }
.scr { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 54px 20px 28px; text-align: center; }
.scr .venue { position: absolute; top: 52px; inset-inline: 0; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.t-label { font-size: .875rem; color: var(--muted); }
.t-num { font-family: var(--f-display); font-weight: 700; font-size: 5.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.t-sub { font-weight: 600; font-size: 1rem; }
.meter { width: 70%; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 10px; }
.meter b { display: block; height: 100%; width: 70%; border-radius: inherit; background: var(--acc); transform-origin: right; }
.t-hint { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.scr.called { background: var(--sun); color: var(--sun-ink); opacity: 0; }
.scr.called .big { font-family: var(--f-display); font-weight: 700; font-size: 2.3rem; line-height: 1.2; }
.scr.called .t-num { font-size: 3.4rem; }
.scr.called p { font-weight: 600; font-size: .95rem; }
.bell-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-ink); color: var(--sun); margin-bottom: 6px; }

/* بطاقة الكاشير فوق الجوال */
.cashier { position: absolute; inset-inline-end: max(0px, calc(50% - 300px)); bottom: 36px; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: 0 24px 50px -24px rgba(20, 24, 51, .45); display: grid; gap: 8px; z-index: 2; }
.cashier .lbl { font-size: .75rem; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.q-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; }
.q-row .n { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.q-row .who { flex: 1; font-size: .875rem; line-height: 1.3; }
.q-row .who small { display: block; color: var(--muted); font-size: .75rem; }
.call { border: 0; background: var(--acc); color: #fff; font-weight: 700; font-size: .875rem; border-radius: 999px; padding: 7px 16px; min-height: 38px; cursor: pointer; transition: transform .15s var(--ease-out); }
.call:active { transform: scale(.94); }
.call[disabled] { background: var(--good); cursor: default; }
.replay { justify-self: start; border: 0; background: transparent; color: var(--acc-text); font-weight: 700; font-size: .8125rem; cursor: pointer; padding: 4px 2px; min-height: 32px; }
.toast { position: absolute; top: 70px; inset-inline-start: max(0px, calc(50% - 290px)); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .875rem; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 16px 30px -16px rgba(20, 24, 51, .4); opacity: 0; z-index: 2; }
.toast svg { color: var(--good); }

@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } .hero { padding-block: 70px 60px; } }
@media (max-width: 520px) { .stage { min-height: 560px; } .phone { width: 236px; } .cashier { width: 220px; bottom: 10px; inset-inline-end: 0; } .toast { inset-inline-start: 0; top: 30px; } }

/* شريط الأنشطة المتحرك */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; direction: ltr; }
.track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.track ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; direction: rtl; }
.track li { display: inline-flex; align-items: center; gap: 18px; padding: 18px 22px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); white-space: nowrap; }
.track li::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--acc); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .track, .marquee.is-off .track { animation-play-state: paused; }

/* أقسام */
.section { padding-block: clamp(72px, 10vw, 128px); }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; letter-spacing: -.01em; margin: 8px 0 14px; }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 36em; }
.head.center { text-align: center; margin-inline: auto; }
.head.center p { margin-inline: auto; }

/* قصة الخطوات مع الجوال الثابت */
.story { display: grid; gap: 24px; }
.story-stage { position: sticky; top: 76px; z-index: 2; display: grid; place-items: center; padding-block: 10px 18px; background: linear-gradient(var(--bg) 82%, transparent); }
.story-stage .phone { width: 160px; border-radius: 34px; padding: 8px; }
.story-stage .screen { inset: 8px; border-radius: 27px; }
.story-stage .notch { top: 15px; width: 60px; height: 18px; margin-left: -30px; }
.progress { position: absolute; bottom: 4px; inset-inline: 20%; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: right; }
.frame { opacity: 0; }
.frame.on { opacity: 1; }
.steps { display: grid; }
.step { min-height: 56vh; display: grid; align-content: center; gap: 10px; padding-block: 24px; opacity: .3; transition: opacity .4s var(--ease-out); }
.step.on { opacity: 1; }
.step .k { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--acc-text); display: inline-flex; align-items: center; gap: 10px; }
.step .k::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.step h3 { font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; }
.step p { color: var(--muted); font-size: 1.0625rem; max-width: 30em; }
/* شاشة الجوال في الخطوات: نفس ثيم صفحة العميل الحقيقية (أخضر غامق، تذكرة كريمية، رقم بخط المسيري) */
.story-stage .screen { container-type: inline-size; background: #0d1027 radial-gradient(120% 55% at 50% -5%, #222a6e, transparent 75%) no-repeat; color: #f4ece2; }
.cs { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 5cqw; padding: 20cqw 7cqw 10cqw; text-align: center; }
.cs-venue { font-family: "El Messiri", var(--f-display); font-weight: 600; font-size: 8.5cqw; line-height: 1.3; }
.cs-hint { color: #c4c7da; font-size: 4.4cqw; line-height: 1.5; }
.stub { color: #141833; filter: drop-shadow(0 3cqw 6cqw rgba(0, 0, 0, .35)); }
.stub-p { position: relative; background: #f4ece2; padding: 5cqw 4cqw; }
.stub-t { border-radius: 7cqw 7cqw 0 0; padding-bottom: 4cqw; -webkit-mask-image: radial-gradient(circle 4.2cqw at 0 100%, #0000 97%, #000), radial-gradient(circle 4.2cqw at 100% 100%, #0000 97%, #000); mask-image: radial-gradient(circle 4.2cqw at 0 100%, #0000 97%, #000), radial-gradient(circle 4.2cqw at 100% 100%, #0000 97%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.stub-b { border-radius: 0 0 7cqw 7cqw; padding-top: 4cqw; -webkit-mask-image: radial-gradient(circle 4.2cqw at 0 0, #0000 97%, #000), radial-gradient(circle 4.2cqw at 100% 0, #0000 97%, #000); mask-image: radial-gradient(circle 4.2cqw at 0 0, #0000 97%, #000), radial-gradient(circle 4.2cqw at 100% 0, #0000 97%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.stub-b::before { content: ""; position: absolute; top: -1px; inset-inline: 6cqw; border-top: .7cqw dashed #a9a6b8; }
.stub-only { border-radius: 7cqw; }
.stub-lbl { color: #4d5270; font-weight: 500; font-size: 5cqw; }
.stub-num { display: block; font-family: "El Messiri", serif; font-weight: 700; font-size: 31cqw; line-height: 1.05; font-variant-numeric: lining-nums; }
.stub-ahead { font-family: "El Messiri", var(--f-display); font-weight: 700; font-size: 7.6cqw; line-height: 1.3; }
.stub-eta { color: #4d5270; font-size: 4.6cqw; }
.cs-field { display: grid; gap: 1.5cqw; text-align: start; font-size: 4.6cqw; font-weight: 600; }
.cs-field b { background: #fff; border: .5cqw solid #a9a6b8; border-radius: 3cqw; padding: 2.6cqw 3.4cqw; font-weight: 500; font-size: 5cqw; }
.cs-btn { margin-top: 4cqw; background: #e8604a; color: #141833; border-radius: 999px; padding: 3.4cqw; font-weight: 700; font-size: 5cqw; }
.qr-card { position: relative; background: #f4ece2; border-radius: 7cqw; padding: 6cqw; display: grid; justify-items: center; gap: 3cqw; color: #141833; font-weight: 600; font-size: 4.6cqw; }
.qr { width: 58cqw; height: 58cqw; border-radius: 3cqw; background: #fff; padding: 3cqw; }
.scan { position: absolute; inset-inline: 14%; top: 10%; height: .9cqw; background: #e8604a; border-radius: 1cqw; box-shadow: 0 0 4cqw #e8604a; }
.cs.called { background: #e8604a; color: #141833; }
.cs.called .stub { filter: none; }
.cs.called .cs-venue { font-size: 11cqw; font-weight: 700; }
.cs.called.on .stub-num { animation: throb 1.2s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.07); } }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .story-stage { order: 2; top: 110px; height: calc(100vh - 140px); background: none; padding: 0; }
  .story-stage .phone { width: 268px; border-radius: 46px; padding: 10px; }
  .story-stage .screen { inset: 10px; border-radius: 36px; }
  .story-stage .notch { top: 20px; width: 86px; height: 24px; margin-left: -43px; }
  .step { min-height: 78vh; }
  .progress { bottom: 0; inset-inline: 30%; }
}

/* المقارنة */
.versus { display: grid; gap: 18px; }
.vcard { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.vcard h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.vcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vcard li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.vcard li small { display: block; font-size: .8125rem; font-weight: 700; opacity: .7; }
.vcard.old li small { opacity: 1; color: var(--muted); }
.mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 3px; }
.old { background: var(--bg-2); color: var(--muted); }
.old .mark { background: var(--line); }
.old h3 { color: var(--ink); }
.new { background: var(--acc); color: #fff; box-shadow: 0 40px 70px -40px var(--acc); }
.new .mark { background: rgba(255, 255, 255, .18); }
.pager { width: 44px; height: 44px; border-radius: 12px; background: var(--line); display: grid; place-items: center; color: var(--muted); }
.newic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }

/* الأرقام */
.dark { background: linear-gradient(180deg, var(--deep), var(--deep-2)); color: var(--on-deep); border-radius: var(--r-xl); margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
.dark .head h2 .acc { color: var(--sun); }
.dark .head p { color: var(--on-deep-muted); }
.dark .eyebrow { color: var(--sun); }
.dash { display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 20px; }
.kpi b { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--on-deep-muted); font-size: .9375rem; }
.chart { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.chart-head b { font-family: var(--f-display); font-size: 1.1rem; }
.chart-head small, .chart-foot { color: var(--muted); font-size: .8125rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--bar); transform-origin: bottom; }
.bars i.peak { background: var(--acc); }
.axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .dash { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* الباقات */
.billing { display: inline-flex; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { position: relative; z-index: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; color: var(--muted); min-height: 42px; transition: color .25s; }
.billing button[aria-pressed="true"] { color: #fff; }
.billing .pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--ink); transition: inset-inline-start .35s var(--ease-out), width .35s var(--ease-out); }
.billing-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.plans { display: grid; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(20, 24, 51, .5); }
.plan .tag { font-size: .875rem; font-weight: 700; color: var(--muted); }
.plan h3 { font-size: 1.75rem; margin: 4px 0 16px; }
.price { color: var(--muted); font-size: .9375rem; }
.price b { font-family: var(--f-display); font-size: 3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.yr { font-size: .8125rem; color: var(--muted); min-height: 1.6em; }
/* سعر الإطلاق: شارة صغيرة، وبجانبها السعر الأساسي اللي بيصير بعد الإطلاق. */
/* عدّاد عرض المؤسسين: مقاعد ممتلئة وفاضية، بالأرقام الحقيقية */
.founders { max-width: 620px; margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.founders[hidden] { display: none; }
.founders p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.founders b { color: var(--ink); }
.seats { display: flex; gap: 6px; direction: rtl; }
.seats i { width: 18px; height: 26px; border-radius: 5px; border: 2px solid var(--acc); background: transparent; position: relative; }
.seats i::after { content: ""; position: absolute; inset-inline: 2px; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--acc) 45%, transparent); }
.seats i.taken { background: var(--acc); opacity: .35; }
.seats i.taken::after { display: none; }
.launch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .8125rem; color: var(--muted); }
.launch-tag { background: var(--acc-soft); color: var(--acc-text); font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.launch .base { display: inline-flex; align-items: baseline; gap: 4px; }
.launch .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 18px 0 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 1rem; }
/* شارة «جديد» جنب الميزة الجديدة في الباقة. */
.plan .new-tag { display: inline-block; margin-inline-end: 4px; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; line-height: 1.6; background: var(--sun); color: var(--sun-ink); vertical-align: 1px; }
.plan li::before { content: "✓"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--acc-soft); color: var(--acc-text); margin-top: 3px; }
.plan .btn { width: 100%; }
/* «اشترك الحين» تحت زر التجربة: رابط هادي، لأن التجربة هي الطريق الأساسي. */
/* بدون شفافية: على البطاقة الحمراء كانت تنزل التباين تحت 4.5:1 */
.sub-now { display: block; margin-top: 10px; text-align: center; font-size: .9375rem; font-weight: 600; color: inherit; text-underline-offset: 4px; min-height: 44px; line-height: 44px; }
.sub-now:hover { text-decoration-thickness: 2px; }
/* نموذج الطلب له وضعين: تجربة واشتراك، وكل نص يظهر في وضعه. */
.lead[data-mode="trial"] .m-sub, .lead[data-mode="sub"] .m-trial { display: none; }
.f-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f-row select { font: inherit; font-size: 1rem; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.f-row select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.plan.featured { background: var(--acc); color: #fff; border-color: transparent; box-shadow: 0 40px 70px -40px var(--acc); }
.plan.featured .tag { color: var(--sun); }
.plan.featured .price, .plan.featured .yr { color: #fff; }
.plan.featured .price b { color: #fff; }
.plan.featured .launch { color: #fff; }
.plan.featured .launch-tag { background: var(--sun); color: var(--sun-ink); }
.plan.featured ul { border-top-color: rgba(255, 255, 255, .2); }
.plan.featured li::before { background: rgba(255, 255, 255, .18); color: #fff; }
.trial { position: relative; z-index: 1; text-align: center; color: var(--muted); margin-top: 52px; font-size: .9375rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan.featured { transform: translateY(-14px); } .plan.featured:hover { transform: translateY(-18px); } }

/* الأسئلة */
.faq-grid { display: grid; gap: 24px; }
.faq-side .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--acc-text); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.faq-side .more svg { transition: transform .25s var(--ease-out); }
.faq-side .more:hover svg { transform: translateX(-4px); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .faq-side { position: sticky; top: 120px; margin-bottom: 0; } }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 22px; font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; line-height: 1.5; min-height: 44px; transition: color .2s; }
.faq summary:hover, .faq details[open] summary { color: var(--acc-text); }
.faq details p { max-width: 40em; }

/* رمز الريال */
.sar { display: inline-block; width: .8em; height: .88em; vertical-align: -.08em; fill: currentColor; }
.price .sar { width: 1.5em; height: 1.65em; vertical-align: -.3em; margin-inline-start: 2px; }
#plans[data-billing="monthly"] .only-y, #plans[data-billing="yearly"] .only-m { display: none; }

/* طلب التجربة */
.lead { position: relative; max-width: 560px; margin: 28px auto 0; text-align: start; }
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 28px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(5, 10, 60, .55); }
.lead-form h3 { font-size: 1.25rem; }
.f-row { display: grid; gap: 6px; }
.f-row label { font-weight: 600; font-size: .9375rem; }
.f-row input { font: inherit; font-size: 1rem; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.f-row input[dir="ltr"] { text-align: end; }
.f-row input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.f-row input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.f-row input[aria-invalid="true"] { border-color: var(--bad); }
/* رقم الجوال: زر مفتاح الدولة يسار الخانة (القائمة الأصلية شفافة فوقه، فتفتح قائمة الجوال نفسها) */
.phone-field { display: flex; gap: 8px; }
.phone-field input { flex: 1; min-width: 0; text-align: left; }
.phone-field input[dir="ltr"] { text-align: left; }
.cc { position: relative; flex: none; display: flex; }
.cc-show { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 10px 30px 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; transition: border-color .2s, box-shadow .2s; }
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; border: 0; }
.cc:focus-within .cc-show { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.cc:hover .cc-show { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.err { color: var(--bad); font-size: .875rem; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.lead-submit { width: 100%; }
.lead-form .lead-legal { margin: 0; font-size: .875rem; line-height: 1.7; color: var(--ink); opacity: .72; text-align: center; max-width: none; }
.lead-form .lead-legal a { color: inherit; text-underline-offset: 3px; }
.lead-form .sub-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.6; cursor: pointer; }
.lead-form .sub-agree input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent, currentColor); }
.lead-form .sub-agree a { color: inherit; text-underline-offset: 3px; }
.lead-form .err { color: var(--bad); }
/* عمود النموذج ما يتجاوز عرضه على الجوال (القوائم وخانة الجوال كانت توسّعه فيطلع الزر برا) */
.lead-form { grid-template-columns: minmax(0, 1fr); }
.lead-form > *, .f-row { min-width: 0; }
.f-row select, .f-row input { width: 100%; min-width: 0; }
.phone-field { min-width: 0; }
.phone-field input { width: auto; flex: 1 1 0; }
.lead-form .hint-l { font-size: .8125rem; color: var(--ink); opacity: .65; }
.lead[data-mode="sub"] .f-row.m-trial { display: none; }
.lead-form .sub-note { margin: 0; color: var(--ink); font-size: .875rem; line-height: 1.6; opacity: .72; text-align: center; max-width: none; }
.legal { color: var(--muted); font-size: .8125rem; text-align: center; }
.lead-done { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 30px 24px; display: grid; gap: 6px; text-align: center; }
.lead-done:focus { outline: none; }
.lead-done b { font-family: var(--f-display); font-size: 1.5rem; }
.lead-done small { color: var(--muted); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; transition: transform .3s var(--ease-out); font-style: normal; font-weight: 700; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; animation: drop .35s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* الختام */
.final { padding-block: 20px 100px; }
.final-card { position: relative; overflow: hidden; background: var(--acc); color: #fff; border-radius: 40px; padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 64px); text-align: center; }
.final-card h2 { font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.15; margin-bottom: 16px; position: relative; }
.final-card h2 .hl { color: var(--sun); }
.final-card p { color: rgba(255, 255, 255, .82); max-width: 32em; margin: 0 auto 30px; position: relative; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.final-card .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.note { font-size: .8125rem; color: rgba(255, 255, 255, .7); margin-top: 14px; position: relative; }
.float-t { position: absolute; width: 120px; opacity: .16; color: #fff; pointer-events: none; }
.float-t.a { top: 12%; inset-inline-start: 6%; transform: rotate(-14deg); }
.float-t.b { bottom: 10%; inset-inline-end: 7%; width: 150px; transform: rotate(12deg); }
.float-t.c { top: 18%; inset-inline-end: 18%; width: 70px; transform: rotate(24deg); }

footer { border-top: 1px solid var(--line); padding-block: 26px 110px; color: var(--muted); font-size: .9375rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
/* واتساب: زر عائم في الزاوية، ورابط بالشعار أسفل الصفحة */
.wa-foot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wa-foot svg { color: #25d366; }
.wa-foot:hover bdi { text-decoration: underline; text-underline-offset: 3px; }
.wa-float { position: fixed; z-index: 25; inset-inline-end: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); inline-size: 56px; block-size: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(10, 60, 30, .55); transition: transform .25s var(--ease-out, ease-out), box-shadow .25s; animation: wa-in .5s 1.2s both var(--ease-out, ease-out); }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 28px -8px rgba(10, 60, 30, .6); }
.wa-float:active { transform: scale(.96); }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(.8); } }
@media (max-width: 600px) { .wa-float { inline-size: 50px; block-size: 50px; } .wa-float svg { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .btn, .plan, .faq summary i, .billing .pill { transition: none; }
  .faq details p { animation: none; }
}

/* بدائل للتنسيق المكتوب داخل العناصر (سياسة الأمان تمنعه) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.q-row.dim { opacity: .6; }
.section.tight-top { padding-top: 0; }
.lang-btn { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .875rem; padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.lang-btn:hover { color: var(--ink); background: var(--bg-2); }
/* دخول أصحاب الأنشطة: رابط هادي جنب زر البداية، عشان ما ينافسه */
.nav-login { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.nav-login:hover { background: var(--bg-2); }
.form-err { margin: 0; }
.lead-submit[disabled] { opacity: .7; cursor: progress; }
.price, .yr .only-y { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.yr .only-y { gap: 4px; }

/* الإنجليزي: الأسهم والأشرطة تنعكس، ورمز الريال قبل الرقم كما تطلب تعليمات البنك المركزي */
[dir="ltr"] .arr { transform: scaleX(-1); }
[dir="ltr"] .btn:hover .arr { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .faq-side .more svg { transform: scaleX(-1); }
[dir="ltr"] .faq-side .more:hover svg { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .meter b, [dir="ltr"] .progress b { transform-origin: left; }
[dir="ltr"] .step .k::before { order: 0; }
[dir="ltr"] .price .sar { order: 1; }
[dir="ltr"] .price .amt { order: 2; }
[dir="ltr"] .price .per { order: 3; }
[dir="ltr"] .yr .only-y .sar { order: 1; }
[dir="ltr"] .yr .only-y .num { order: 2; }
[dir="ltr"] .yr .only-y .per { order: 3; }
[dir="ltr"] .launch .base .sar { order: 1; }
[dir="ltr"] .launch .base .num { order: 2; }
[dir="ltr"] .hero h1 { letter-spacing: -.02em; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; }
