/* =====================================================================================================================
   Home hero v4 (2026-10-17): نظيف — نص ثم هاتف واحد بلا تداخل ولا أيقونات متحركة. فاتح ومسطّح (بلا بنفسجي/داكن)، من 320 لـ 2560.
   كل القياسات منطقية (inline/block) فتنقلب تلقائيًا في RTL. الحركة تتوقف مع prefers-reduced-motion.
   ===================================================================================================================== */
.hx { --hx-brand: #0a7f69; --hx-brand-d: #066f5a; --hx-ink: #0b1220; --hx-dim: #4d5a6d; --hx-line: #e1e7ee;
  position: relative; isolation: isolate; overflow: clip; background: #fff; color: var(--hx-ink);
  padding: clamp(112px, 11vw, 148px) 0 clamp(40px, 5vw, 64px); }
.dark .hx { background: var(--color-background-9, #1f252f); color: #fcfcfc; --hx-ink: #fcfcfc; --hx-dim: #b8c2d0; --hx-line: rgb(255 255 255 / .12); }

/* خلفية هادئة: كتلة خضراء ناعمة + نقاط تتلاشى */
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-bg::before { content: ""; position: absolute; inset-block-start: -18%; inset-inline-end: -12%; width: min(820px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(10 143 114 / .16), transparent 72%); }
.hx-dots { position: absolute; inset: 0; background: radial-gradient(rgb(11 18 32 / .07) 1px, transparent 1.2px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 25%, #000 20%, transparent 75%); }
.dark .hx-dots { background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px); }

/* الشبكة: موبايل عمود واحد (النص ثم الهاتف) — ديسكتوب عمودان */
.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 56px); align-items: center; }
@media (min-width: 1024px) { .hx-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 96px); align-items: start; } .hx-copy { padding-top: clamp(20px, 4vw, 64px); } }

/* ---- النص ---- */
.hx-copy { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
@media (min-width: 1024px) { .hx-copy { align-items: flex-start; text-align: start; } }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #cfeae1;
  color: var(--hx-brand-d); font-size: .86rem; font-weight: 600; line-height: 1.2; box-shadow: 0 10px 26px -18px rgb(10 127 105 / .6); max-width: 100%; }
.dark .hx-eyebrow { background: rgb(255 255 255 / .06); border-color: rgb(52 227 190 / .35); color: #6fe9cf; }
.hx-live { width: 9px; height: 9px; border-radius: 50%; background: #1fcf9d; animation: hx-pulse 2.4s ease-out infinite; flex: none; }
@keyframes hx-pulse { 0% { box-shadow: 0 0 0 0 rgb(31 207 157 / .5); } 70%, 100% { box-shadow: 0 0 0 9px rgb(31 207 157 / 0); } }

.hx h1 { margin: 22px 0 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(1.95rem, 7.4vw, 3.4rem); text-wrap: balance; color: var(--hx-ink); }
@media (min-width: 640px) { .hx h1 { font-size: clamp(2.8rem, 5.4vw, 3.8rem); } }
@media (min-width: 1024px) { .hx h1 { font-size: clamp(2.5rem, 3.3vw, 3.6rem); } }
html[lang^="ar"] .hx h1, html[lang="ur"] .hx h1 { line-height: 1.3; letter-spacing: 0; font-weight: 800; }
.hx-mark { white-space: nowrap; color: var(--hx-brand-d); background-image: linear-gradient(transparent 66%, rgb(43 201 168 / .34) 66% 94%, transparent 94%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 66%, rgb(43 201 168 / .34) 66% 94%, transparent 94%) no-repeat; background-size: 0% 100%; background-position: 100% 0; animation: hx-mark 1s .5s cubic-bezier(.2, .8, .2, 1) forwards; }
[dir="ltr"] .hx-mark { background-position: 0 0; }
@keyframes hx-mark { to { background-size: 100% 100%; } }
.dark .hx-mark { color: #6fe9cf; }

.hx-lead { margin: 22px 0 0; max-width: 540px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.8; color: var(--hx-dim); }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; justify-content: center; }
@media (min-width: 1024px) { .hx-cta { justify-content: flex-start; } }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 16px; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s, color .18s; }
.hx-btn-main { background: linear-gradient(180deg, #0c9078, #0a7f69); color: #fff; box-shadow: 0 16px 30px -14px rgb(10 127 105 / .75), inset 0 1px 0 rgb(255 255 255 / .22); }
.hx-btn-main:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -14px rgb(10 127 105 / .8), inset 0 1px 0 rgb(255 255 255 / .22); }
[dir="rtl"] .hx-btn-main svg { transform: scaleX(-1); }
.hx-btn-ghost { background: #fff; color: var(--hx-ink); border: 1px solid #d5dde7; }
.hx-btn-ghost:hover { border-color: var(--hx-brand); color: var(--hx-brand-d); transform: translateY(-2px); }
.dark .hx-btn-ghost { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .2); }
.hx-btn:focus-visible, .hx .x-tab:focus-visible, .hx .x-pp:focus-visible { outline: 3px solid rgb(23 105 224 / .55); outline-offset: 3px; }
.hx-micro { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .88rem; color: var(--hx-dim); }
.hx-micro svg { color: var(--hx-brand); flex: none; }

/* ---- بطاقة العرض: تابات السيناريو فوق، الهاتف في الوسط، الشرح تحت — حواف علوية وسفلية أنيقة ---- */
.hx-visual { position: relative; min-width: 0; width: min(100%, 392px); justify-self: center; padding-top: 26px; display: flex; justify-content: center; }
html .hx .x-stage.hx-card { position: relative; width: 100%; max-width: 392px; margin: 0; padding: 0; border-radius: 34px; overflow: visible; color: var(--hx-ink);
  background: linear-gradient(180deg, #f0faf6 0%, #fff 34%, #fff 100%) !important; border: 1px solid #d6ece4 !important;
  box-shadow: 0 60px 100px -52px rgb(10 127 105 / .5), 0 2px 0 rgb(255 255 255 / .9) inset !important; }
.dark html .hx .x-stage.hx-card, html.dark .hx .x-stage.hx-card { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03)) !important; border-color: rgb(255 255 255 / .12) !important; }
.hx-card-top { padding: 16px 16px 14px; border-bottom: 1px solid #e3f1ec; border-radius: 34px 34px 0 0; background: rgb(255 255 255 / .6); }
.hx .x-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 0; overflow: visible; }
.hx .x-tab { --p: 0; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 12px; border: 1px solid #dbe6ee; background: #fff; color: #33445a; font-size: .8rem; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.hx .x-tab:hover { border-color: #9fd6c6; transform: translateY(-1px); }
.hx .x-tab-ic { display: inline-flex; color: var(--hx-brand); transition: color .2s; }
.hx .x-tab-tx { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.hx .x-tab-bar { display: block; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #14b894, #1769e0); transform: scaleX(var(--p)); transform-origin: left; }
[dir="rtl"] .hx .x-tab-bar { transform-origin: right; }
.hx .x-tab[aria-selected="true"] { background: linear-gradient(180deg, #0c9078, #0a7f69); border-color: #0a7f69; color: #fff; box-shadow: 0 10px 20px -12px rgb(10 127 105 / .8); }
.hx .x-tab[aria-selected="true"] .x-tab-ic { color: #fff; }
.hx .x-stage-body { position: relative; display: block; min-height: 0; height: auto; padding: 22px 0 0; }
.hx .x-dash, .hx .x-toast { display: none !important; }
.hx .x-phone-wrap { position: relative; inset: auto; top: auto; width: min(228px, 70%); margin-inline: auto; filter: drop-shadow(0 30px 28px rgb(11 18 32 / .2)); }
.hx .wa-phone { --wa-w: 100%; width: 100%; }
.hx-card-bot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 18px 18px; margin-top: -2px; border-top: 1px solid #e3f1ec; border-radius: 0 0 34px 34px; background: rgb(246 251 249 / .9); text-align: center; }
.hx-cap { margin: 0; min-height: 1.5em; font-size: 1rem; font-weight: 800; color: var(--hx-ink); }
.hx-card-ctl { display: flex; align-items: center; gap: 12px; }
.hx .x-pp { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--hx-line); color: var(--hx-dim); }
.hx .x-note { margin: 0; max-width: 320px; font-size: .76rem; line-height: 1.6; color: var(--hx-dim); text-align: start; }

/* أيقونات عائمة هادئة حول البطاقة (على نمط easyconfirm) */
.hx-bub { position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--hx-brand); border: 1px solid #d6ece4;
  box-shadow: 0 20px 36px -18px rgb(11 18 32 / .4); animation: hx-float 6s ease-in-out infinite alternate; pointer-events: none; }
.hx-b1 { inset-block-start: 30%; inset-inline-start: -30px; --dy: -12px; background: linear-gradient(145deg, #25d366, #0fa86a); color: #fff; border-color: transparent; }
.hx-b2 { inset-block-start: -36px; inset-inline-end: 10%; --dy: 10px; animation-delay: -1.5s; color: #1769e0; }
.hx-b3 { inset-block-end: 24%; inset-inline-end: -28px; --dy: -10px; animation-delay: -3s; color: #e08a00; }
.hx-b4 { inset-block-end: 9%; inset-inline-start: -22px; --dy: 12px; animation-delay: -4.5s; color: #0a7f69; width: 44px; height: 44px; border-radius: 15px; }
@keyframes hx-float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(var(--dy, -10px)) rotate(2deg); } }
@media (max-width: 1023.98px) { .hx .x-phone-wrap { width: min(280px, 76%); } .hx-bub { width: 44px; height: 44px; border-radius: 15px; } .hx-b1 { inset-inline-start: -6px; } .hx-b3 { inset-inline-end: -6px; } .hx-b4 { inset-inline-start: -4px; } .hx-b2 { inset-inline-end: 6%; } }
@media (max-width: 639.98px) { .hx-b1 { display: none; } }
@media (max-width: 479.98px) { .hx .x-tab { height: 36px; padding: 0 11px; font-size: .78rem; } .hx .x-tab-ic { display: none; } .hx-b4 { display: none; } }

/* ---- شريط الأرقام ---- */
.hx-statbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--hx-line); border-radius: 22px; background: rgb(255 255 255 / .85); box-shadow: 0 24px 50px -36px rgb(11 18 32 / .3); }
.dark .hx-statbar { background: rgb(255 255 255 / .05); }
.hx-stat { padding: clamp(18px, 2.4vw, 28px) clamp(14px, 2.4vw, 32px); text-align: center; }
.hx-stat + .hx-stat { border-inline-start: 1px solid var(--hx-line); }
.hx-stat b { display: block; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--hx-brand-d); }
.dark .hx-stat b { color: #6fe9cf; }
.hx-stat span { display: block; margin: 6px auto 0; max-width: 220px; font-size: clamp(.78rem, 1.2vw, .92rem); line-height: 1.5; color: var(--hx-dim); }
@media (max-width: 559.98px) {
  .hx-statbar { grid-template-columns: 1fr; }
  .hx-stat { display: flex; align-items: center; gap: 16px; text-align: start; padding: 16px 20px; }
  .hx-stat + .hx-stat { border-inline-start: 0; border-top: 1px solid var(--hx-line); }
  .hx-stat b { min-width: 76px; font-size: 1.7rem; } .hx-stat span { margin: 0; max-width: none; font-size: .9rem; }
  .hx-btn { width: 100%; } .hx-cta { width: 100%; }
  .hx { padding-top: 138px; }
}
@media (min-width: 560px) and (max-width: 1023.98px) { .hx { padding-top: 132px; } }
@media (max-width: 359.98px) { .hx h1 { font-size: 2.1rem; } .hx-eyebrow { font-size: .78rem; padding-inline: 12px; } }
@media (min-width: 1700px) { .hx-visual { width: min(100%, 460px); } .hx .x-stage { max-width: 460px; } .hx .x-phone-wrap { width: min(280px, 72%); } }
@media (prefers-reduced-motion: reduce) {
  .hx-live, .hx-bub { animation: none; }
  .hx-mark { animation: none; background-size: 100% 100%; }
  .hx-btn, .hx .x-tab { transition: none; }
}

/* نقاط القوة + التكاملات تحت زر البدء (تملأ العمود وتشرح القيمة بسرعة) */
.hx-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 11px; width: 100%; max-width: 540px; }
.hx-points li { display: flex; align-items: center; gap: 12px; font-size: .96rem; font-weight: 600; color: var(--hx-ink); text-align: start; }
.hx-points svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 9px; background: #e6f6f1; color: var(--hx-brand-d); }
.hx-integ { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.hx-integ small { font-size: .8rem; font-weight: 700; color: var(--hx-dim); }
.hx-integ > div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1023.98px) { .hx-points { justify-items: start; margin-inline: auto; } .hx-integ { justify-content: center; } .hx-integ > div { justify-content: center; } }

/* ---- v6: بطاقة أصغر، أيقونات واقعية (شعارات حقيقية) داخل البطاقة نفسها وعلى الجانبين فقط ---- */
.hx-visual { width: min(100%, 372px); }
html .hx .x-stage.hx-card { max-width: 372px; }
.hx .x-phone-wrap { width: min(214px, 68%); }
.hx-bub { width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 1px solid #e3ede9; color: inherit; box-shadow: 0 22px 40px -20px rgb(11 18 32 / .42); background-image: none; }
.hx-bub img { width: 30px; height: 30px; object-fit: contain; display: block; }
.hx-b1 { inset-block-start: 118px; inset-inline-start: -34px; inset-inline-end: auto; inset-block-end: auto; --dy: -12px; background: #fff; }
.hx-b2 { inset-block-start: 250px; inset-inline-end: -34px; inset-inline-start: auto; inset-block-end: auto; --dy: 12px; animation-delay: -1.6s; }
.hx-b3 { inset-block-end: 150px; inset-inline-start: -30px; inset-inline-end: auto; inset-block-start: auto; --dy: -10px; animation-delay: -3.2s; }
.hx-b4 { inset-block-end: 78px; inset-inline-end: -26px; inset-inline-start: auto; inset-block-start: auto; --dy: 10px; animation-delay: -4.4s; width: 48px; height: 48px; border-radius: 16px; }
.hx-b4 img { width: 26px; height: 26px; }
@media (max-width: 1023.98px) { .hx-bub { width: 46px; height: 46px; border-radius: 15px; } .hx-bub img { width: 25px; height: 25px; } .hx-b1 { inset-inline-start: -10px; } .hx-b2 { inset-inline-end: -10px; } .hx-b3 { inset-inline-start: -8px; } .hx-b4 { inset-inline-end: -8px; display: grid; } }
@media (max-width: 479.98px) { .hx-b1, .hx-b2, .hx-b3 { display: grid; } .hx-b4 { display: none; } .hx-b2 { inset-block-start: 230px; } }
@media (min-width: 1700px) { .hx-visual { width: min(100%, 400px); } html .hx .x-stage.hx-card { max-width: 400px; } .hx .x-phone-wrap { width: min(232px, 68%); } }

/* تابات السيناريو: شبكة 3×2 متساوية */
.hx .x-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hx .x-tab { justify-content: center; min-width: 0; padding: 0 8px; height: 38px; font-size: .78rem; }
.hx .x-tab-tx { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479.98px) { .hx .x-tab-ic { display: inline-flex; } .hx .x-tab { gap: 4px; padding: 0 6px; font-size: .72rem; } .hx .x-tab svg { width: 14px; height: 14px; } }
/* شعارات التكامل: صف واحد قابل للتمرير على الموبايل */
@media (max-width: 1023.98px) { .hx-integ { flex-direction: column; align-items: center; } .hx-integ > div { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 2px 4px 6px; scrollbar-width: none; } .hx-integ > div::-webkit-scrollbar { display: none; } .hx-integ > div > * { flex: none; } }

/* Animated headline: words rise in one by one, the highlighted phrase shimmers, caption swaps with a slide */
@media (prefers-reduced-motion: no-preference) {
  .hx-h1 .hx-w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: hx-rise .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .hx-mark { animation: hx-mark 1s .9s cubic-bezier(.2, .8, .2, 1) forwards, hx-glow 3.6s 2.2s ease-in-out infinite; }
  .hx-cap.is-swap { animation: hx-cap-in .45s ease both; }
}
@keyframes hx-rise { to { opacity: 1; transform: none; } }
@keyframes hx-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 9px rgb(43 201 168 / .55)); } }
@keyframes hx-cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* phones: cleaner stage. The floating logo bubbles sat on the card edges and the phone was too narrow for its own header */
@media (max-width: 639.98px) { .hx-bub { display: none; } .hx .x-phone-wrap { width: min(300px, 90%); } }

/* Stores and carriers that follow the visitor's country (row 89): the anchor only wraps a logo, the "+N" chip shows the rest. */
.x-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-reg-i { display: contents; }
.x-reg-more { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 52px; padding: 0 14px; border: 1px dashed var(--x-line, #d6dde6); border-radius: 14px; background: transparent; color: var(--x-dim, #5b6678); font-weight: 800; cursor: pointer; }
.x-reg-more:hover { color: var(--x-text, #0b1220); border-color: var(--color-primary-400, #2dd4a8); }
.hx-reg { display: flex; flex-wrap: wrap; gap: 8px; }
