/* =========================================================
   T-149 · الورشة صفحة منتج: هيرو بلوحة حيّة، ثم أربعة أقسام متناوبة لكل منها نافذة بتبويبات،
   ثم خطوات العمل، ثم الدعوة. يُحمَّل بعد grid/grid.css ويستعمل توكناته (--t1..--t4، --line-s، --ease)
   الخلفيات: الحبر والأبيض فقط. السماوي إشارة واحدة: نقطة المرحلة الحالية في الهيرو ونقطة النبض في AP الختامي
   ========================================================= */

/* ---------- عام ---------- */
.pg-studio main { padding-block-end: 24px }
.kicker { font-size: 13px; color: var(--t3) }
.kicker b { margin-inline-end: 10px }
.kicker .sep { white-space: pre }
.btn--solid { background: var(--w); color: var(--ink); border-color: var(--w) }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #E6E6E6; color: var(--ink) }
}
.sw-more { display: inline-flex; align-items: center; min-block-size: 44px; font-size: 14px; color: var(--t2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease) }
@media (hover: hover) and (pointer: fine) { .sw-more:hover { color: var(--t1); text-decoration-color: currentColor } }
.hl { white-space: nowrap }

/* ---------- النافذة: إطار اللوحة ---------- */
.win { position: relative; background: var(--ink); border: 1px solid var(--line-s); display: flex; flex-direction: column; min-inline-size: 0 }
.win::before, .win::after { content: ""; position: absolute; inline-size: 14px; block-size: 14px; border: 0 solid var(--line-2); pointer-events: none }
.win::before { inset-block-start: -1px; inset-inline-start: -1px; border-block-start-width: 1px; border-inline-start-width: 1px }
.win::after { inset-block-end: -1px; inset-inline-end: -1px; border-block-end-width: 1px; border-inline-end-width: 1px }
.win__top { display: flex; align-items: center; gap: 14px; block-size: 44px; padding-inline: 16px 6px; border-block-end: 1px solid var(--line-s) }
.win__dots { display: flex; gap: 6px; flex: none }
.win__dots i { inline-size: 7px; block-size: 7px; border: 1px solid var(--line-2) }
.win__lab { font-size: 12px; color: var(--t3); line-height: 1.6; flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.win__play { inline-size: 40px; block-size: 40px; display: grid; place-items: center; flex: none; color: var(--t2) }
.win__play svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round }
.win__play .i-play { display: none; fill: currentColor; stroke: none }
.win__play[aria-pressed="true"] .i-pause { display: none }
.win__play[aria-pressed="true"] .i-play { display: inline }
.win__tabs { display: flex; border-block-end: 1px solid var(--line-s); overflow-x: auto; scrollbar-width: none }
.win__tabs::-webkit-scrollbar { display: none }
.win__tabs [role="tab"] { position: relative; flex: 1 0 auto; min-block-size: 48px; padding-inline: 18px; font-size: 14px; color: var(--t3); white-space: nowrap; border-inline-end: 1px solid var(--line-s); transition: color .2s var(--ease), background-color .2s var(--ease) }
.win__tabs [role="tab"]:last-child { border-inline-end: 0 }
.win__tabs [role="tab"][aria-selected="true"] { color: var(--t1); background: rgba(255, 255, 255, .06) }
.win__tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 2px; background: var(--w) }
@media (hover: hover) and (pointer: fine) {
  .win__tabs [role="tab"]:hover, .win__play:hover { color: var(--t1); background: rgba(255, 255, 255, .05) }
}
.win__body { position: relative; flex: 1; padding: clamp(18px, 2.4vw, 32px); min-block-size: 380px }
.tp { animation: tp-in .32s var(--ease) both }
.tp:focus-visible { outline-offset: 6px }
@keyframes tp-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.tp__cap { font-size: 12px; color: var(--t4); margin-block-end: 14px }
.tp__note { font-size: 13px; color: var(--t3); margin-block-start: 16px; line-height: 1.7 }
.tp__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-block-start: 18px }
.tp__row .tp__note { margin: 0 }

/* زر صغير داخل اللوحة */
.mini { display: inline-flex; align-items: center; min-block-size: 40px; padding-inline: 16px; font-size: 13px; color: var(--t1); border: 1px solid var(--line-2); transition: background-color .2s var(--ease), color .2s var(--ease), transform 160ms var(--ease) }
.mini:active { transform: scale(.97) }
.mini[disabled] { color: var(--t4); border-color: var(--line-s); cursor: default }
@media (hover: hover) and (pointer: fine) { .mini:not([disabled]):hover { background: var(--w); color: var(--ink) } }

/* شارة الحالة */
.chip { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 20px; padding: 6px 12px; font-size: 13px; color: var(--t1); border: 1px solid var(--line-2) }
.chip--on::before { content: ""; inline-size: 7px; block-size: 7px; background: var(--w); flex: none }

/* الورقة البيضاء: الكتلة الوحيدة على الأبيض، نصها حبر */
.paper { background: var(--w); color: var(--ink); padding: clamp(18px, 2.2vw, 28px); max-inline-size: 520px }
.paper__h { font-family: var(--ard); font-weight: 600; font-size: 20px; line-height: 1.4; margin-block-end: 14px }
.paper__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-block-start: 16px; padding-block-start: 12px; border-block-start: 1px solid rgba(11, 11, 11, .18); font-size: 13px; color: rgba(11, 11, 11, .72) }
.paper__st { color: var(--ink); font-weight: 500 }
.ticks { display: grid; gap: 8px }
.ticks li { position: relative; padding-inline-start: 22px; font-size: 14px; line-height: 1.7 }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; inline-size: 9px; block-size: 9px; border: 1.5px solid currentColor }
.ticks--dark li { color: var(--t2) }
.ticks--dark li::before { background: var(--w); border-color: var(--w) }
.sheet { display: grid; gap: 0 }
.sheet > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-block: 10px; border-block-start: 1px solid rgba(11, 11, 11, .14) }
.sheet > div:first-child { border-block-start: 0; padding-block-start: 0 }
.sheet dt { font-size: 12px; color: rgba(11, 11, 11, .66); line-height: 1.9 }
.sheet dd { font-size: 14px; line-height: 1.7 }

/* ---------- الهيرو ---------- */
.sw-hero { padding-block: clamp(36px, 7vh, 80px) 0 }
.sw-hero__txt { display: flex; flex-direction: column; align-items: center; text-align: center; max-inline-size: 900px; margin-inline: auto }
.sw-hero__h { font-family: var(--ard); font-weight: 600; font-size: clamp(34px, 5vw, 76px); line-height: 1.4; color: var(--t1); margin-block: 18px 18px }
.sw-hero__h > span { display: inline-block }
.sw-hero__sub { font-size: clamp(15px, 1.3vw, 18px); color: var(--t2); max-inline-size: 58ch; line-height: 1.8 }
.sw-hero__acts { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-block-start: 28px }
.js .sw-hero__txt > * { animation: settle .9s var(--ease) both }
.js .sw-hero__txt > :nth-child(2) { animation-delay: .06s }
.js .sw-hero__txt > :nth-child(3) { animation-delay: .12s }
.js .sw-hero__txt > :nth-child(4) { animation-delay: .18s }
.js .sw-hero__win { animation: settle 1s var(--ease) .24s both }

.sw-hero__win { margin-block-start: clamp(36px, 6vh, 64px); max-inline-size: 1120px; margin-inline: auto }
.sw-stage { display: grid; grid-template-columns: 220px 1fr; padding: 0; min-block-size: 420px }
.sw-stage__tabs { position: relative; display: flex; flex-direction: column; border-inline-end: 1px solid var(--line-s) }
.sw-stage__tabs [role="tab"] { display: flex; align-items: center; gap: 14px; flex: 1; min-block-size: 56px; padding-inline: 20px; font-size: 15px; color: var(--t3); text-align: start; border-block-end: 1px solid var(--line-s); transition: color .2s var(--ease), background-color .2s var(--ease) }
.sw-stage__tabs [role="tab"]:last-of-type { border-block-end: 0 }
.sw-stage__tabs [role="tab"] b { font-size: 11px; font-weight: 600; color: var(--t4); letter-spacing: .04em; position: relative }
.sw-stage__tabs [role="tab"][aria-selected="true"] { color: var(--t1); background: rgba(255, 255, 255, .06) }
.sw-stage__tabs [role="tab"][aria-selected="true"] b { color: var(--t1) }
/* الإشارة السماوية الوحيدة في الهيرو: مربع صغير بجوار المرحلة الحالية */
.sw-stage__tabs [role="tab"][aria-selected="true"] span::after { content: ""; display: inline-block; inline-size: 6px; block-size: 6px; background: var(--cy); margin-inline-start: 10px; vertical-align: middle }
@media (hover: hover) and (pointer: fine) { .sw-stage__tabs [role="tab"]:hover { color: var(--t1); background: rgba(255, 255, 255, .04) } }
/* شريط التقدّم الزمني للتقليب: تحويل لا عرض */
.sw-stage__bar { position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 2px; background: transparent; overflow: hidden; pointer-events: none }
.sw-stage__bar b { display: block; block-size: 100%; background: var(--w); transform: scaleX(0); transform-origin: right } /* rtl-ok: يملأ من البداية في RTL */
.sw-stage__bar.run b { animation: fill var(--dur, 4.2s) linear both }
@keyframes fill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.sw-stage__screens { padding: clamp(20px, 3vw, 44px); min-inline-size: 0 }

/* 01 الطلب */
.req { display: grid; gap: 0; max-inline-size: 560px }
.req > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding-block: 14px; border-block-start: 1px solid var(--line-s) }
.req > div:first-child { border-block-start: 0; padding-block-start: 0 }
.req dt { font-size: 12px; color: var(--t4); line-height: 2 }
.req dd { font-size: 16px; color: var(--t1); line-height: 1.7 }

/* 03 لوحة الهوية الصغيرة */
.brandb { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; max-inline-size: 600px }
.brandb > * { --l: var(--line-s); box-shadow: 1px 0 0 0 var(--l), 0 1px 0 0 var(--l), 1px 1px 0 0 var(--l), 1px 0 0 0 var(--l) inset, 0 1px 0 0 var(--l) inset }
.brandb__mark { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-block-size: 220px; background: var(--w); color: var(--ink) }
.brandb__mark span { font-family: var(--ard); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.4; white-space: nowrap }
.brandb__mark small { font-size: 13px; color: rgba(11, 11, 11, .7) }
.brandb__sw, .brandb__tpl { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 18px; font-size: 13px; color: var(--t2) }
.brandb__sw li { display: flex; align-items: center; gap: 10px }
.brandb__sw i { inline-size: 22px; block-size: 22px; border: 1px solid var(--line-2); flex: none }
.sw-ink { background: var(--ink) }
.sw-white { background: var(--w) }
.sw-mid { background: rgba(255, 255, 255, .62) }
.brandb__tpl { flex-direction: row; flex-wrap: wrap; align-items: center }
.brandb__tpl li { padding: 6px 10px; border: 1px solid var(--line-2) }

/* 04 الجوال */
.phone { inline-size: min(260px, 100%); border: 1px solid var(--line-2); padding: 14px; border-radius: 22px; margin-inline: auto }
.phone__top { display: flex; justify-content: space-between; align-items: center; padding-block-end: 12px; border-block-end: 1px solid var(--line-s); font-size: 13px; color: var(--t3) }
.phone__top b { font-family: var(--ard); font-weight: 700; font-size: 18px; color: var(--t1); line-height: 1.4 }
.phone__list { display: grid; gap: 8px; padding-block: 14px }
.phone__list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); padding: 8px; border: 1px solid var(--line-s) }
.phone__list i { inline-size: 28px; block-size: 28px; background: rgba(255, 255, 255, .12); flex: none }
.phone__btn { text-align: center; padding: 10px; background: var(--w); color: var(--ink); font-size: 14px; font-weight: 500 }
#hs-p4 .tp__note { text-align: center }

/* ---------- فهرس المجموعات ---------- */
.sw-idx { display: grid; grid-template-columns: repeat(5, 1fr); margin-block: clamp(56px, 9vh, 96px) 0 }
.sw-idx a { gap: 10px; padding-inline: 18px; font-size: 14px; color: var(--t2); transition: color .2s var(--ease), background-color .2s var(--ease) }
.sw-idx b { font-size: 11px; color: var(--t4); font-weight: 600 }
@media (hover: hover) and (pointer: fine) { .sw-idx a:hover { color: var(--t1); background: rgba(255, 255, 255, .05) } }

/* ---------- أقسام الخدمات: نص ونافذة، متناوبة ---------- */
.ft { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-block: clamp(72px, 12vh, 140px) 0 }
.ft--flip .ft__txt { order: 2 }
.ft__h { font-family: var(--ard); font-weight: 600; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.5; color: var(--t1); margin-block: 16px 18px }
.ft__h > span { display: block; inline-size: fit-content }
.ft__h .hl { margin-block-start: 4px }
.ft__p { color: var(--t2); max-inline-size: 46ch; line-height: 1.8 }
.ft__get { display: grid; gap: 0; margin-block-start: 24px; border-block-start: 1px solid var(--line-s) }
.ft__get li { position: relative; padding-block: 11px; padding-inline-start: 22px; font-size: 14px; color: var(--t2); line-height: 1.7; border-block-end: 1px solid var(--line-s) }
.ft__get li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: calc(11px + .62em); inline-size: 7px; block-size: 7px; background: var(--t4) }
.ft__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 26px }
.js .ft.reveal-wait > * { opacity: 0; transform: translateY(12px) }
.js .ft > * { transition: opacity .8s var(--ease), transform .8s var(--ease) }
.js .ft > .ft__win { transition-delay: .08s }

/* 01 دليل الهوية */
.guide { display: grid; gap: 0 }
.guide > * { --l: var(--line-s); box-shadow: 1px 0 0 0 var(--l), 0 1px 0 0 var(--l), 1px 1px 0 0 var(--l), 1px 0 0 0 var(--l) inset, 0 1px 0 0 var(--l) inset }
.guide__row { display: grid; grid-template-columns: 1fr 1fr }
.guide__mark { display: grid; place-items: center; min-block-size: 120px }
.guide__mark span { font-family: var(--ard); font-weight: 700; font-size: clamp(20px, 2.4vw, 38px); line-height: 1.4; white-space: nowrap; color: var(--t1) }
.guide__mark--inv { background: var(--w) }
.guide__mark--inv span { color: var(--ink) }
.guide__type { padding: 14px 18px; display: grid; gap: 8px }
.guide__type > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline }
.guide__type dt { font-size: 12px; color: var(--t4) }
.g-h { font-family: var(--ard); font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--t1) }
.g-b { font-size: 14px; color: var(--t2) }
.g-l { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: .01em }
.guide__tpl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 }
.guide__tpl li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; font-size: 12px; color: var(--t3); border-inline-end: 1px solid var(--line-s) }
.guide__tpl li:last-child { border-inline-end: 0 }
.guide__tpl i { display: block; border: 1px solid var(--line-2); background: linear-gradient(var(--w), var(--w)) no-repeat; background-size: 60% 3px; background-position: center 70% }
.t-post { inline-size: 44px; block-size: 44px }
.t-story { inline-size: 30px; block-size: 52px }
.t-doc { inline-size: 38px; block-size: 50px; background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) !important; background-size: 60% 2px, 40% 2px !important; background-position: center 35%, center 55% !important }

/* 01 الموقع بلغتين */
.site { border: 1px solid var(--line-2); padding: 16px; max-inline-size: 520px }
.site__bar { display: flex; align-items: center; justify-content: space-between; padding-block-end: 12px; border-block-end: 1px solid var(--line-s) }
.site__name { font-family: var(--ard); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--t1) }
.site[lang="en"] .site__name, .site[lang="en"] .site__h { font-family: var(--lat); font-weight: 700 }
.site[lang="en"] { font-family: var(--lat) }
.site__lang { min-block-size: 36px; padding-inline: 14px; font-size: 13px; color: var(--t1); border: 1px solid var(--line-2); transition: background-color .2s var(--ease), color .2s var(--ease) }
@media (hover: hover) and (pointer: fine) { .site__lang:hover { background: var(--w); color: var(--ink) } }
.site__h { font-family: var(--ard); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--t1); margin-block: 18px 4px }
.site__p { font-size: 14px; color: var(--t3) }
.site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 16px }
.site__grid li { display: flex; align-items: flex-end; min-block-size: 76px; padding: 8px; font-size: 12px; color: var(--t2); border: 1px solid var(--line-s); background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) no-repeat top / 100% 46% }
.site__btn { display: inline-block; padding: 8px 16px; background: var(--w); color: var(--ink); font-size: 13px; font-weight: 500 }
.site.flip > :not(.site__bar) { animation: tp-in .32s var(--ease) both }

/* 01 نموذج الطلب */
.form-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start }
.fd { display: grid; gap: 8px }
.fd__f { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--line-s) }
.fd__f span { font-size: 11px; color: var(--t4) }
.fd__f b { font-weight: 500; font-size: 14px; color: var(--t1) }
.fd__go { margin-block-start: 6px; min-block-size: 44px; background: var(--w); color: var(--ink); font-size: 14px; font-weight: 500; transition: transform 160ms var(--ease), background-color .2s var(--ease) }
.fd__go:active { transform: scale(.97) }
.fd__go[disabled] { background: rgba(255, 255, 255, .7); cursor: default }
.fd__hint { font-size: 12px; color: var(--t4) }
.mail { border: 1px dashed var(--line-2); padding: 14px; min-block-size: 132px }
.mail__wait { font-size: 13px; color: var(--t3) }
.mail__h, .mail__b, .mail__top { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease) }
.form-demo[data-state="sent"] .mail { border-style: solid }
.form-demo[data-state="sent"] .mail__wait { display: none }
.form-demo[data-state="sent"] .mail__h, .form-demo[data-state="sent"] .mail__b, .form-demo[data-state="sent"] .mail__top { opacity: 1; transform: none }
.mail__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--t4); margin-block-end: 10px }
.mail__new { color: var(--ink); background: var(--w); padding: 0 8px; opacity: 0; transition: opacity .3s var(--ease) }
.mail__h { font-size: 14px; color: var(--t1); font-weight: 500 }
.mail__b { font-size: 13px; color: var(--t3); margin-block-start: 4px }
.form-demo[data-state="sent"] .mail__new { opacity: 1 }

/* 02 مسار الطلب */
.flow { display: grid; gap: 0; counter-reset: none }
.flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; font-size: 14px; color: var(--t3); border: 1px solid var(--line-s); margin-block-start: -1px; transition: color .3s var(--ease), background-color .3s var(--ease) }
.flow b { display: grid; place-items: center; inline-size: 26px; block-size: 26px; font-size: 12px; border: 1px solid var(--line-2); color: var(--t3); flex: none; transition: background-color .3s var(--ease), color .3s var(--ease) }
.flow li.done { color: var(--t1) }
.flow li.done b { background: var(--w); color: var(--ink); border-color: var(--w) }
.flow li.now { background: rgba(255, 255, 255, .06); color: var(--t1) }
.rule { margin-block-start: 14px; padding: 10px 14px; font-size: 13px; color: var(--t2); border: 1px dashed var(--line-2); line-height: 1.7 }
.rule span { display: inline-block; margin-inline-end: 10px; font-size: 11px; color: var(--t4) }

/* 02 بعد التسليم */
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 0 }
.care li { display: flex; flex-direction: column; gap: 4px; padding: 18px; --l: var(--line-s); box-shadow: 1px 0 0 0 var(--l), 0 1px 0 0 var(--l), 1px 1px 0 0 var(--l), 1px 0 0 0 var(--l) inset, 0 1px 0 0 var(--l) inset }
.care span { font-family: var(--ard); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--t1) }
.care em { font-style: normal; font-size: 13px; color: var(--t3) }
.care em::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; background: var(--w); margin-inline-end: 8px; vertical-align: middle }

/* 03 المحادثة */
.chat { display: flex; flex-direction: column; gap: 10px; min-block-size: 150px; max-block-size: 230px; overflow-y: auto; padding-inline-end: 4px }
.msg { max-inline-size: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.7 }
.msg--in { align-self: flex-start; border: 1px solid var(--line-2); color: var(--t1) }
.msg--out { align-self: flex-end; background: var(--w); color: var(--ink) }
.msg--sys { align-self: center; font-size: 12px; color: var(--t3); padding: 4px 10px; border: 1px dashed var(--line-2) }
.msg.new { animation: tp-in .32s var(--ease) both }
.chat__q { font-size: 12px; color: var(--t4); margin-block: 16px 8px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }

/* 03 التقويم */
.cal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 }
.cal__d { font-size: 10px; color: var(--t4); text-align: center; padding-block-end: 6px; white-space: nowrap; overflow: hidden }
.cal__c { display: grid; place-items: center; aspect-ratio: 1; min-block-size: 32px; font-size: 12px; color: var(--t4); border: 1px solid var(--line-s); margin: 0 -1px -1px 0; position: relative }
button.cal__c { color: var(--t1); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease) }
button.cal__c::after { content: ""; position: absolute; inset-block-end: 5px; inline-size: 5px; block-size: 5px; background: var(--t2) }
button.cal__c[aria-pressed="true"] { background: var(--w); color: var(--ink) }
button.cal__c[aria-pressed="true"]::after { background: var(--ink) }
@media (hover: hover) and (pointer: fine) { button.cal__c:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .08) } }
.cal__info { border: 1px solid var(--line-s); padding: 14px; min-block-size: 150px }
.cal__k { font-size: 12px; color: var(--t4) }
.cal__t { font-family: var(--ard); font-weight: 600; font-size: 17px; line-height: 1.5; color: var(--t1); margin-block: 6px 6px }
.cal__m { font-size: 13px; color: var(--t3) }
.cal__s { display: inline-block; margin-block-start: 10px; font-size: 12px; padding: 3px 10px; border: 1px solid var(--line-2); color: var(--t1) }

/* 04 الأرقام */
.seg { display: inline-flex; border: 1px solid var(--line-s) }
.seg__b { min-block-size: 40px; padding-inline: 16px; font-size: 13px; color: var(--t3); transition: background-color .2s var(--ease), color .2s var(--ease) }
.seg__b + .seg__b { border-inline-start: 1px solid var(--line-s) }
.seg__b[aria-pressed="true"] { background: var(--w); color: var(--ink) }
.bars { display: grid; gap: 14px; margin-block-start: 22px }
.bars li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; font-size: 13px; color: var(--t2) }
.bars i { display: block; block-size: 18px; border: 1px solid var(--line-s) }
.bars b { display: block; block-size: 100%; background: var(--w); transform-origin: right; transform: scaleX(var(--v, .5)); transition: transform .6s var(--ease) } /* rtl-ok: يبدأ من اليمين في RTL */

/* ---------- كيف نعمل ---------- */
.how { padding-block: clamp(88px, 14vh, 160px) 0 }
.how__steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: none }
.how__steps li { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 22px 22px 24px; min-block-size: 260px }
.how__steps b { font-size: 11px; color: var(--t4); font-weight: 600; letter-spacing: .04em }
.how__steps h3 { font-family: var(--ard); font-weight: 600; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.45; color: var(--t1); margin-block-start: 28px }
.how__steps p { font-size: 14px; color: var(--t3); line-height: 1.75 }
.how__get { margin-block-start: auto; padding-block-start: 14px; border-block-start: 1px solid var(--line-s); inline-size: 100%; color: var(--t2) !important }
.how__get span { display: block; font-size: 11px; color: var(--t4) }

/* ---------- الدعوة الختامية ---------- */
.end { padding-block: clamp(96px, 14vh, 160px) 0 }
.end__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border: 1px solid var(--line-s); min-block-size: 440px }
.end__in::before, .end__in::after { content: ""; position: absolute; inline-size: 14px; block-size: 14px; border: 0 solid var(--line-2) }
.end__in::before { inset-block-start: -1px; inset-inline-start: -1px; border-block-start-width: 1px; border-inline-start-width: 1px }
.end__in::after { inset-block-end: -1px; inset-inline-end: -1px; border-block-end-width: 1px; border-inline-end-width: 1px }
.end__ap { order: 2; inline-size: 100%; block-size: 100%; min-block-size: 320px; border-inline-start: 1px solid var(--line-s) }
.end__txt { padding: clamp(28px, 4vw, 64px) }
.end__h { font-family: var(--ard); font-weight: 600; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.5; color: var(--t1) }
.end__h > span { display: block; inline-size: fit-content }
.end__h .hl { margin-block-start: 6px }
.end__p { margin-block-start: 18px; color: var(--t2) }
.end__acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-block-start: 28px }
.end__truth { margin-block-start: 28px; font-size: 13px; color: var(--t3); line-height: 1.8 }
.end__truth a { color: var(--t2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; display: inline-flex; align-items: center; min-block-size: 32px }

/* ---------- الذيل ---------- */
.sw-legal { display: grid; grid-template-columns: 1fr 1fr; margin-block-start: clamp(56px, 8vh, 96px) }

/* ---------- بلا سكربت: كل اللوحات ظاهرة متتالية، والتبويبات تختفي ---------- */
.nojs [role="tablist"], .nojs .win__play, .nojs .mini, .nojs .fd__go, .nojs .site__lang, .nojs .seg, .nojs .chat__q { display: none }
.nojs .tp[hidden] { display: block; margin-block-start: 28px; padding-block-start: 28px; border-block-start: 1px solid var(--line-s) }
.nojs .sw-stage { grid-template-columns: 1fr }

/* ---------- تابلت ---------- */
@media (max-width: 1100px) {
  .ft, .ft--flip { grid-template-columns: 1fr; gap: 36px }
  .ft--flip .ft__txt { order: 0 }
  .ft__p { max-inline-size: 60ch }
  .how__steps { grid-template-columns: repeat(3, 1fr) }
  .how__steps li:nth-child(4) { grid-column: 1 / span 2 }
  .how__steps li:nth-child(5) { grid-column: 3 }
}
@media (max-width: 900px) {
  .sw-idx { grid-template-columns: repeat(3, 1fr) }
  .end__in { grid-template-columns: 1fr }
  .end__ap { order: 0; min-block-size: 260px; border-inline-start: 0; border-block-end: 1px solid var(--line-s) }
}

/* ---------- جوال ---------- */
@media (max-width: 768px) {
  .sw-hero { padding-block-start: 28px }
  .sw-hero__acts { flex-direction: column; align-items: stretch; gap: 4px; inline-size: 100% }
  .sw-hero__acts .btn { justify-content: space-between }
  .sw-more { justify-content: center }
  .sw-stage { grid-template-columns: 1fr; min-block-size: 0 }
  .sw-stage__tabs { flex-direction: row; border-inline-end: 0; border-block-end: 1px solid var(--line-s) }
  .sw-stage__tabs [role="tab"] { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px; min-block-size: 58px; font-size: 12px; border-block-end: 0; border-inline-end: 1px solid var(--line-s); min-inline-size: 0 }
  .sw-stage__tabs [role="tab"]:last-of-type { border-inline-end: 0 }
  .sw-stage__tabs [role="tab"][aria-selected="true"] span::after { display: none }
  .sw-stage__tabs [role="tab"][aria-selected="true"] b::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: calc(100% + 5px); inline-size: 5px; block-size: 5px; margin-block-start: -2.5px; background: var(--cy) }
  .sw-stage__screens { padding: 20px 18px 24px; min-block-size: 360px }
  .req > div { grid-template-columns: 1fr; gap: 2px; padding-block: 10px }
  .req dd { font-size: 15px }
  .brandb { grid-template-columns: 1fr 1fr }
  .brandb__mark { grid-row: auto; grid-column: 1 / -1; min-block-size: 150px }
  .sw-idx { grid-template-columns: 1fr 1fr }
  .sw-idx a:last-child { grid-column: 1 / -1 }
  .ft { padding-block-start: 72px }
  .ft__acts { flex-direction: column; align-items: stretch }
  .ft__acts .btn { justify-content: space-between; block-size: auto; min-block-size: 48px; padding-block: 10px }
  .win__body { min-block-size: 0; padding: 18px 16px 22px }
  .win__tabs [role="tab"] { padding-inline: 14px; font-size: 13px }
  .form-demo, .cal { grid-template-columns: 1fr }
  .sheet > div { grid-template-columns: 82px 1fr }
  .bars li { grid-template-columns: 92px 1fr; gap: 10px }
  .how__steps { grid-template-columns: 1fr }
  .how__steps li, .how__steps li:nth-child(4), .how__steps li:nth-child(5) { grid-column: auto; min-block-size: 0 }
  .how__steps h3 { margin-block-start: 10px }
  .end__ap { min-block-size: 220px }
  .end__acts { flex-direction: column; align-items: stretch; gap: 4px }
  .end__acts .btn { justify-content: space-between }
  .sw-legal { grid-template-columns: 1fr }
}
@media (max-width: 400px) {
  .win__lab { font-size: 11px }
  .care li { padding: 14px 12px }
  .site__grid li { font-size: 11px }
}

/* ---------- الحركة المخفّضة: تبقى الشفافية وتزول الحركة المكانية ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .sw-hero__txt > *, .js .sw-hero__win { animation-name: fade }
  .tp, .msg.new, .site.flip > :not(.site__bar) { animation-name: fade }
  .js .ft.reveal-wait > * { transform: none }
  .js .ft > * { transition: opacity .6s var(--ease) }
  .mail__h, .mail__b, .mail__top { transform: none }
  .bars b { transition: none }
  .mini:active, .fd__go:active { transform: none }
  .sw-stage__bar { display: none }
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
