/* ==========================================================================
   Clopra — الصفحة الرئيسية / Home page
   --------------------------------------------------------------------------
   ★ كلُّ قاعدةٍ هنا تحت `.hm` — فلا تمسّ «من نحن» ولا «الشركاء» ولا «اتصل بنا»،
   ويُحمَّل الملفّ على الرئيسية وحدها من `parts/header.php`.
   ★ Every rule here is scoped under `.hm`, so no other page is touched; the
   file loads on the home page only (see parts/header.php).

   ★ الألوان من رموز `main.css` (الورق والحبر والبرتقاليّ) لا أرقامٌ جديدة.
   والبرتقاليّ نصًّا يُكتب بدرجته الداكنة (`brand-700`) لأن `#EE861C` على
   الأبيض ٢٫٦:١ — دون حدّ القراءة. وعلى الأزرار البرتقالية النصُّ حبرٌ داكن.
   ★ Colours come from main.css tokens. Orange as *text* uses brand-700:
   #EE861C on white is 2.6:1, below the readable minimum.
   ========================================================================== */

.hm {
    --hm-ink:       var(--ink, #1C1917);
    --hm-ink-0:     var(--ink-0, #0C0A09);
    --hm-soft:      var(--ink-soft, #6B6259);
    --hm-line:      var(--line, #E4DDD4);
    --hm-line-2:    var(--line-2, #CFC5B8);
    --hm-paper:     var(--paper, #FDFCFB);
    --hm-paper-2:   var(--paper-2, #F7F4F0);
    --hm-brand:     var(--brand-500, #EE861C);
    --hm-brand-400: var(--brand-400, #F4A23E);
    --hm-brand-600: var(--brand-600, #C66715);
    --hm-brand-700: var(--brand-700, #A8520F);
    --hm-brand-100: var(--brand-100, #FCE6C6);
    --hm-brand-50:  var(--brand-50, #FFF6EA);
    --hm-cocoa:     var(--cocoa, #7A3617);
    --hm-dark:      var(--navy-900, #1E140B);
    --hm-dark-2:    var(--navy-800, #2A1D11);
    --hm-ok:        var(--ok, #2F7D5B);
    --hm-ok-soft:   var(--ok-soft, #EAF6F0);
    --hm-radius:    18px;
    --hm-shadow:    0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .06);
    --hm-shadow-lg: 0 2px 6px rgba(28, 25, 23, .05), 0 24px 60px rgba(28, 25, 23, .12);

    /* الزخارف (الوهج والعوائم) لا تُنشئ تمريرًا أفقيًّا على الهاتف */
    overflow-x: clip;
}

/* ------------------------------------------------------------------ أساس */
.hm-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.hm-section--alt {
    background: var(--hm-paper-2);
    border-block: 1px solid var(--hm-line);
}

.hm-head {
    max-width: 46rem;
    margin: 0 auto clamp(2.2rem, 4vw, 3.25rem);
    text-align: center;
}
.hm-head--start { margin-inline: 0; text-align: start; }

.hm-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--hm-brand-700);
    margin-bottom: .85rem;
}
.hm-kicker::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.hm-h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.65rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0 0 .85rem;
    letter-spacing: -.015em;
    text-wrap: balance;
}
html[lang="ar"] .hm-h2 { letter-spacing: 0; line-height: 1.35; }

.hm-sub {
    font-size: clamp(1rem, .96rem + .22vw, 1.12rem);
    line-height: 1.85;
    color: var(--hm-soft);
    margin: 0;
}

/* الأزرار: `.btn` في main.css يصغّر الخطّ لكلّ الأحجام — نعيده للكبير هنا */
.hm .btn-lg { font-size: 1rem; }
.hm .btn-accent {
    background: var(--hm-brand);
    border-color: var(--hm-brand);
    color: var(--hm-ink-0);
    box-shadow: 0 8px 24px rgba(238, 134, 28, .28);
}
.hm .btn-accent:hover {
    background: var(--hm-brand-400);
    border-color: var(--hm-brand-400);
    color: var(--hm-ink-0);
    transform: translateY(-2px);
}

.hm-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}
.hm-checks li {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--hm-ink);
}
.hm-checks li i {
    color: var(--hm-ok);
    margin-top: .18rem;
    flex: 0 0 auto;
}

/* ====================================================================== */
/* ١) الواجهة / Hero                                                      */
/* ====================================================================== */
.hm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h, 76px) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(55% 55% at 72% 18%, rgba(238, 134, 28, .16), transparent 70%),
        radial-gradient(40% 45% at 12% 30%, rgba(122, 54, 23, .07), transparent 70%);
}
.hm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--hm-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hm-line) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 25%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 25%, transparent 75%);
}

.hm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hm-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding-block: .38rem;
    padding-inline: .4rem .95rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    box-shadow: var(--hm-shadow);
    font-size: .86rem;
    font-weight: 700;
    color: var(--hm-ink);
}
.hm-pill b {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .14rem .6rem;
    border-radius: 999px;
    background: var(--hm-brand-50);
    border: 1px solid var(--hm-brand-100);
    color: var(--hm-brand-700);
    font-size: .76rem;
}

.hm-h1 {
    font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem);
    line-height: 1.16;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0 0 1.25rem;
    letter-spacing: -.025em;
    text-wrap: balance;   /* لا كلمةٌ يتيمة في سطرٍ وحدها */
}
html[lang="ar"] .hm-h1 { letter-spacing: 0; line-height: 1.32; }
/* سطريٌّ لا كتلة: يلتفّ مع الجملة (الإنجليزية أطول)، والتدرّج يُعاد لكل سطر */
.hm-h1 em {
    font-style: normal;
    display: inline;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
    padding-block: .02em .12em;
    background: linear-gradient(90deg, var(--hm-brand-600), var(--hm-cocoa));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hm-lead {
    font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
    line-height: 1.85;
    color: var(--hm-soft);
    max-width: 36rem;
    margin: 0 0 2rem;
}

.hm-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.6rem;
}

.hm-assure {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    font-size: .9rem;
    color: var(--hm-soft);
}
.hm-assure li { display: inline-flex; align-items: center; gap: .4rem; }
.hm-assure i { color: var(--hm-ok); }

/* --- لقطة اللوحة: صورةٌ توضيحيّة مبنيّة بـHTML (حادّة وثنائيّة اللغة) --- */
.hm-shot { position: relative; }

.hm-win {
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    box-shadow: var(--hm-shadow-lg);
    overflow: hidden;
}
.hm-win-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .9rem;
    background: var(--hm-paper-2);
    border-bottom: 1px solid var(--hm-line);
}
.hm-win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-line-2); }
/* ⚠️ لا `direction: ltr` على الحبّة نفسها: الهامشُ المنطقيّ يُحسب باتّجاه العنصر،
   فكانت تُدفع إلى الطرف الآخر تحت البطاقة العائمة. الاتّجاهُ على النصّ داخلها. */
.hm-win-url {
    flex: 1;
    max-width: 15rem;
    margin-inline: .6rem auto;
    padding: .2rem .6rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 6px;
    font-size: .75rem;
    color: var(--hm-soft);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-win-body {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
}
.hm-win-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .85rem 0;
    background: var(--hm-dark);
}
.hm-win-side span {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .5);
    font-size: .95rem;
}
.hm-win-side span.is-on { background: rgba(238, 134, 28, .2); color: var(--hm-brand-400); }

.hm-win-main {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    background: var(--hm-paper);
}
.hm-win-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.hm-win-head b { font-size: .95rem; color: var(--hm-ink); }
.hm-win-head small { font-size: .75rem; color: var(--hm-soft); }

.hm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.hm-kpi {
    padding: .7rem .8rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 12px;
}
.hm-kpi small { display: block; font-size: .7rem; color: var(--hm-soft); margin-bottom: .2rem; }
/* القيمة والفرق صفٌّ مرن بفجوة: هامشٌ منطقيّ على عنصرٍ `dir="ltr"` ينقلب إلى
   جهته الأخرى، فيلتصق «+12%» بالرقم في الصفحة العربية. */
.hm-kpi-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.hm-kpi b {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hm-ink);
    font-variant-numeric: tabular-nums;
}
.hm-kpi em {
    font-style: normal;
    font-size: .75rem;
    font-weight: 700;
    color: var(--hm-ok);
}

.hm-chart {
    padding: .75rem .85rem .7rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 12px;
}
.hm-chart-head { display: flex; justify-content: space-between; font-size: .75rem; color: var(--hm-soft); }
.hm-chart-head b { color: var(--hm-ink); font-size: .78rem; }
.hm-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6%;
    height: 86px;
    margin-top: .6rem;
}
.hm-chart-bars span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 5px 5px 2px 2px;
    background: var(--hm-brand-100);
}
.hm-chart-bars span.is-top { background: linear-gradient(180deg, var(--hm-brand), var(--hm-brand-600)); }

.hm-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 12.5rem;
    padding: .65rem .85rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    box-shadow: var(--hm-shadow-lg);
    font-size: .8rem;
}
.hm-float .ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
}
.hm-float b { display: block; font-size: .86rem; color: var(--hm-ink); }
.hm-float small { font-size: .75rem; color: var(--hm-soft); }
/* العوائم تتدلّى عن زاويتين متقابلتين ولا تغطّي أرقام اللوحة */
.hm-float--pts { inset-inline-start: -2rem; bottom: -2.4rem; }
.hm-float--pts .ic { background: var(--hm-brand-50); color: var(--hm-brand-700); }
.hm-float--kds { inset-inline-end: -1.5rem; top: -1.4rem; }
.hm-float--kds .ic { background: var(--hm-ok-soft); color: var(--hm-ok); }

/* ====================================================================== */
/* ٢) شريط الإثبات / Proof strip                                          */
/* ====================================================================== */
.hm-proof {
    padding-block: 1.6rem;
    background: #fff;
    border-block: 1px solid var(--hm-line);
}
.hm-proof-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem 2rem;
}
.hm-proof-label { flex: 0 0 auto; font-size: .9rem; font-weight: 700; color: var(--hm-soft); }
.hm-proof-list {
    flex: 1 1 26rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
}
.hm-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-block: .32rem;
    padding-inline: .32rem .85rem;
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--hm-ink);
}
.hm-chip-av {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--hm-brand-50);
    border: 1px solid var(--hm-brand-100);
    color: var(--hm-brand-700);
    font-size: .8rem;
    font-weight: 800;
}
.hm-chip-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hm-proof-stats { flex: 0 0 auto; display: flex; align-items: center; gap: 1.4rem; }
.hm-proof-stats b {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hm-ink);
    font-variant-numeric: tabular-nums;
}
.hm-proof-stats small { font-size: .76rem; color: var(--hm-soft); }
.hm-proof-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.25rem;            /* هدفُ إصبعٍ لا هدفُ فأرة (القاعدة ١٤) */
    padding-inline: .25rem;
    font-size: .86rem;
    font-weight: 700;
    color: var(--hm-brand-700);
    text-decoration: none;
}
.hm-proof-link:hover { color: var(--hm-cocoa); }

/* ====================================================================== */
/* ٣) النتائج / Outcomes                                                   */
/* ====================================================================== */
.hm-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
    gap: 1.25rem;
}
.hm-out {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
}
.hm-out-ic {
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--hm-brand-50);
    border: 1px solid var(--hm-brand-100);
    color: var(--hm-brand-700);
    font-size: 1.35rem;
}
.hm-out h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; color: var(--hm-ink); }
.hm-out p { margin: 0; font-size: .97rem; line-height: 1.8; color: var(--hm-soft); }

/* ====================================================================== */
/* ٤) المنصّة — شبكة «بنتو» / Platform bento                               */
/* ====================================================================== */
.hm-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.1rem;
}
.hm-tile {
    grid-column: span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hm-tile:hover { border-color: var(--hm-line-2); box-shadow: var(--hm-shadow); transform: translateY(-2px); }
.hm-tile--lg { grid-column: span 7; }
.hm-tile--md { grid-column: span 5; }
.hm-tile--sm { grid-column: span 3; }
.hm-tile--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: center;
}
.hm-tile-txt { display: flex; flex-direction: column; gap: .75rem; }
.hm-tile-ic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--hm-paper-2);
    border: 1px solid var(--hm-line);
    color: var(--hm-brand-700);
    font-size: 1.2rem;
}
.hm-tile h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--hm-ink); }
.hm-tile p { margin: 0; font-size: .93rem; line-height: 1.75; color: var(--hm-soft); }
.hm-tile .hm-checks li { font-size: .9rem; }
.hm-tile-art { margin-top: auto; }

/* لقطة الصندوق الصغيرة / mini till */
.hm-pos {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: .6rem;
    padding: .7rem;
    background: var(--hm-paper-2);
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    font-size: .75rem;
}
.hm-pos-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; align-content: start; }
.hm-pos-items span {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 9px;
    color: var(--hm-ink);
    font-weight: 700;
    line-height: 1.3;
}
.hm-pos-items span b { font-weight: 600; color: var(--hm-soft); font-variant-numeric: tabular-nums; }
.hm-pos-items span.is-on { border-color: var(--hm-brand); box-shadow: inset 0 0 0 1px var(--hm-brand); }
.hm-pos-ticket {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .6rem;
    background: var(--hm-dark);
    border-radius: 10px;
    color: rgba(255, 255, 255, .78);
}
.hm-pos-line, .hm-pos-total { display: flex; justify-content: space-between; gap: .4rem; }
.hm-pos-line b, .hm-pos-total b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.hm-pos-total {
    margin-top: auto;
    padding-top: .45rem;
    border-top: 1px dashed rgba(255, 255, 255, .2);
    color: #fff;
    font-weight: 800;
}
.hm-pos-pay {
    padding: .4rem;
    border-radius: 8px;
    background: var(--hm-brand);
    color: var(--hm-ink-0);
    text-align: center;
    font-weight: 800;
}

/* بطاقة العضو / member card */
.hm-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--hm-brand) 0%, var(--hm-brand-600) 45%, var(--hm-cocoa) 100%);
    box-shadow: 0 14px 34px rgba(122, 54, 23, .28);
}
.hm-card::after {
    content: "";
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: -20%;
    width: 70%;
    height: 140%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.hm-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.hm-tier {
    padding: .15rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: .75rem;
}
.hm-card small { position: relative; display: block; font-size: .75rem; color: rgba(255, 255, 255, .82); }
.hm-card-pts {
    position: relative;
    display: block;
    margin: .1rem 0 .7rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hm-card-bar {
    position: relative;
    height: 6px;
    margin-bottom: .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
}
.hm-card-bar i {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--w, 50%);
    border-radius: inherit;
    background: #fff;
}

/* ====================================================================== */
/* ٥) تعدّد الفروع / Multi-branch spotlight                                 */
/* ====================================================================== */
.hm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hm-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 1.1rem;
}
.hm-list li { display: flex; gap: .9rem; align-items: flex-start; }
.hm-list .ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    font-size: 1rem;      /* وإلّا ورث حجم الوصف من `.hm-list span` أدناه */
    line-height: 1;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--hm-brand-50);
    border: 1px solid var(--hm-brand-100);
    color: var(--hm-brand-700);
}
.hm-list b { display: block; margin-bottom: .15rem; font-size: 1rem; color: var(--hm-ink); }
.hm-list div > span { font-size: .93rem; line-height: 1.7; color: var(--hm-soft); }

.hm-board {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 20px;
    box-shadow: var(--hm-shadow-lg);
}
.hm-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1rem;
}
.hm-board-head b { font-size: 1rem; color: var(--hm-ink); }
.hm-board-head small { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--hm-soft); }
.hm-board-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hm-ok); }
.hm-board-row {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    padding: .7rem 0;
    border-top: 1px solid var(--hm-line);
    font-size: .88rem;
}
.hm-board-row .nm { font-weight: 700; color: var(--hm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-board-row .bar { height: 8px; border-radius: 999px; background: var(--hm-paper-2); overflow: hidden; }
.hm-board-row .bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--hm-brand), var(--hm-brand-600)); }
.hm-board-row b { font-variant-numeric: tabular-nums; color: var(--hm-ink); }
.hm-board-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .6rem;
    padding: .8rem .9rem;
    background: var(--hm-paper-2);
    border-radius: 12px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--hm-ink);
}
.hm-board-foot span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.hm-switch {
    flex: 0 0 auto;
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--hm-ok);
}
.hm-switch::after {
    content: "";
    position: absolute;
    inset-block: 3px;
    inset-inline-end: 3px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
}

/* ====================================================================== */
/* ٦) خطوات البدء / Getting started                                         */
/* ====================================================================== */
.hm-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.hm-steps::before {
    content: "";
    position: absolute;
    inset-inline: 10%;
    top: 2.95rem;
    border-top: 2px dashed var(--hm-line-2);
    z-index: 0;
}
.hm-step {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.3rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
}
.hm-step-n {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hm-ink);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}
.hm-step:last-child .hm-step-n { background: var(--hm-brand); color: var(--hm-ink-0); }
.hm-step h3 { margin: 0 0 .45rem; font-size: 1.05rem; font-weight: 800; color: var(--hm-ink); }
.hm-step p { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--hm-soft); }

/* ====================================================================== */
/* ٧) القطاعات / Industries                                                 */
/* ====================================================================== */
.hm-inds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.hm-ind {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hm-ind:hover { border-color: var(--hm-brand-100); box-shadow: var(--hm-shadow); }
.hm-ind .ic {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--hm-paper-2);
    border: 1px solid var(--hm-line);
    color: var(--hm-brand-700);
    font-size: 1.3rem;
}
.hm-ind b { display: block; margin-bottom: .2rem; font-size: 1.02rem; color: var(--hm-ink); }
.hm-ind span { font-size: .9rem; line-height: 1.7; color: var(--hm-soft); }

/* ====================================================================== */
/* ٨) الأسعار / Pricing                                                     */
/* ====================================================================== */
.hm-billing-wrap { display: flex; justify-content: center; margin-bottom: 2.25rem; }
.hm-billing {
    display: inline-flex;
    gap: .25rem;
    padding: .3rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
}
.hm-billing[hidden] { display: none; }
.hm-bill-opt {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    color: var(--hm-soft);
    cursor: pointer;
}
.hm-bill-opt.is-on { background: var(--hm-ink); color: #fff; }
.hm-save {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--hm-brand-50);
    border: 1px solid var(--hm-brand-100);
    color: var(--hm-brand-700);
    font-size: .75rem;
}
.hm-bill-opt.is-on .hm-save { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }

.hm-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    max-width: 1080px;
    margin-inline: auto;
}
.hm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem 1.75rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 20px;
}
.hm-plan.is-hot {
    border: 2px solid var(--hm-brand);
    box-shadow: 0 18px 50px rgba(238, 134, 28, .16);
}
.hm-plan-badge {
    position: absolute;
    top: -.85rem;
    inset-inline: 0;
    width: max-content;
    margin-inline: auto;
    padding: .28rem .9rem;
    border-radius: 999px;
    background: var(--hm-brand);
    color: var(--hm-ink-0);
    font-size: .78rem;
    font-weight: 800;
}
.hm-plan h3 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 800; color: var(--hm-ink); }
.hm-plan-for { margin: 0 0 1.3rem; font-size: .9rem; color: var(--hm-soft); }
.hm-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.hm-plan .price-amount {
    margin: 0;
    font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--hm-ink);
    font-variant-numeric: tabular-nums;
}
.hm-plan .price-unit { display: inline; font-size: .92rem; font-weight: 600; color: var(--hm-soft); }
.hm-plan-alt { min-height: 1.4em; margin: .55rem 0 0; font-size: .84rem; font-weight: 700; color: var(--hm-brand-700); }
.hm-plan-sep { height: 1px; margin: 1.4rem 0; background: var(--hm-line); }
.hm-plan .hm-checks { margin-bottom: 1.75rem; }
.hm-plan .btn { margin-top: auto; width: 100%; justify-content: center; }

.hm-includes {
    max-width: 1080px;
    margin: 1.75rem auto 0;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem 1.5rem;
    border: 1px dashed var(--hm-line-2);
    border-radius: 16px;
    font-size: .9rem;
    color: var(--hm-soft);
}
.hm-includes b { color: var(--hm-ink); }
.hm-includes span { display: inline-flex; align-items: center; gap: .4rem; }
.hm-includes i { color: var(--hm-ok); }

/* ====================================================================== */
/* ٩) الأسئلة / FAQ  — يعيد استعمال `.faq-item` (سلوكه في main.js)           */
/* ====================================================================== */
.hm-faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    grid-template-rows: auto 1fr;          /* الصفّ الثاني يمتصّ طول القائمة فيبقى الصندوق تحت العنوان */
    grid-template-areas: "head list" "help list";
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 1.6rem;
    align-items: start;
}
.hm-faq-head { grid-area: head; margin: 0; }
.hm-faq .faq-wrap { grid-area: list; max-width: none; margin: 0; }
.hm-faq .hm-help { grid-area: help; margin-top: 0; }
.hm-faq .faq-q { font-size: 1.02rem; color: var(--hm-ink); }
.hm-faq .faq-a p { color: var(--hm-soft); line-height: 1.85; }
.hm-help {
    margin-top: 1.6rem;
    padding: 1.25rem 1.3rem;
    background: var(--hm-paper-2);
    border: 1px solid var(--hm-line);
    border-radius: 16px;
}
.hm-help b { display: block; margin-bottom: .3rem; color: var(--hm-ink); }
.hm-help p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.7; color: var(--hm-soft); }
.hm-help-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.hm-help a.hm-mail {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.25rem;
    font-weight: 700;
    color: var(--hm-brand-700);
    text-decoration: none;
    unicode-bidi: isolate;   /* العنوان LTR داخل سطرٍ عربيّ — بلا قلب هوامش العنصر */
}

/* ====================================================================== */
/* ١٠) الدعوة الأخيرة / Final CTA                                           */
/* ====================================================================== */
.hm-final { padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem); }
.hm-final-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 4rem);
    border-radius: 28px;
    background: var(--hm-dark);
    color: #fff;
    text-align: center;
}
.hm-final-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 80% at 85% 0%, rgba(238, 134, 28, .35), transparent 70%),
        radial-gradient(40% 60% at 10% 100%, rgba(238, 134, 28, .16), transparent 70%);
}
.hm-final-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hm-final h2 {
    margin: 0 0 .9rem;
    font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}
.hm-final p {
    max-width: 38rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .74);
}
.hm-final .hm-cta { justify-content: center; margin-bottom: 1.1rem; }
.hm-final small { font-size: .86rem; color: rgba(255, 255, 255, .58); }

/* ====================================================================== */
/* الاستجابة / Responsive — في آخر الملف لتغلب ما فوقها (القاعدة ١٤)        */
/* ====================================================================== */
@media (max-width: 1199.98px) {
    .hm-float--pts { inset-inline-start: -.6rem; }
    .hm-float--kds { inset-inline-end: -.4rem; }
}

@media (max-width: 991.98px) {
    .hm-hero-grid,
    .hm-split,
    .hm-faq { grid-template-columns: minmax(0, 1fr); }

    .hm-copy { text-align: center; }
    .hm-lead { margin-inline: auto; }
    .hm-cta, .hm-assure { justify-content: center; }
    .hm-shot { width: 100%; max-width: 620px; margin-inline: auto; }
    .hm-float--pts { inset-inline-start: .75rem; bottom: -1.4rem; }
    .hm-float--kds { inset-inline-end: .75rem; top: -1.4rem; }

    .hm-proof-row { justify-content: center; text-align: center; }

    .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-tile, .hm-tile--sm { grid-column: span 1; }
    .hm-tile--lg, .hm-tile--md, .hm-tile--wide-t { grid-column: span 2; }

    .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-steps::before { display: none; }

    .hm-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-faq {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "head" "list" "help";
    }
}

@media (max-width: 767.98px) {
    .hm-prices { grid-template-columns: minmax(0, 1fr); max-width: 27rem; }
    .hm-plan.is-hot { order: -1; }
}

@media (max-width: 575.98px) {
    .hm-pill { font-size: .78rem; text-align: start; }
    .hm-float { display: none; }
    .hm-win-side { display: none; }
    .hm-win-body { grid-template-columns: minmax(0, 1fr); }
    .hm-win-url { max-width: 11rem; }

    .hm-cta .btn { flex: 1 1 100%; justify-content: center; white-space: normal; }

    .hm-bento,
    .hm-steps,
    .hm-inds { grid-template-columns: minmax(0, 1fr); }
    .hm-tile, .hm-tile--sm, .hm-tile--lg, .hm-tile--md, .hm-tile--wide-t { grid-column: auto; }
    .hm-tile--split { grid-template-columns: minmax(0, 1fr); }

    .hm-proof-stats { width: 100%; justify-content: center; }
    .hm-board-row { grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr) auto; }
    .hm-bill-opt { padding-inline: .9rem; }
}
