/* ======================================================================
   النسخة 51 — طبقة القوة (Power pass)
   ما نقلناه من رحمة كير: شريط تنقّل عائم فوق البطل، بطل داكن سينمائي
   بعناوين ثقيلة جدًا، شريط تطريز يغلق المشهد، كتل لونية واثقة بحقول
   مستديرة، أزرار وشرائح أجرأ، وعرض حيّ «شاهدها تعمل».
   تُحمَّل أخيرًا في كل صفحة. لإلغائها كلها: احذف سطرها من build.mjs.
   ====================================================================== */
:root {
  --pill-h: 64px;
  --pill-gap: 12px;
  --nav-total: calc(var(--pill-h) + var(--pill-gap));
  --field-r: clamp(28px, 3vw, 44px);
  --ink-deep: #17110f;
}
@media (max-width: 639px) { :root { --pill-h: 58px; --pill-gap: 8px; } }
html { scroll-padding-top: calc(var(--nav-total) + 16px); }
[id] { scroll-margin-top: calc(var(--nav-total) + 56px); }

/* ———— خط العرض: كوفي ثقيل في كل العناوين ———— */
h1, h2, .h2 { font-weight: var(--display-w); letter-spacing: 0; }
.hx__h1, .phero h1, .h2, .feat__h, .cta-band h2, .manifesto, .foot__tag, .nl__h, .shead h2, .shead .h2 { letter-spacing: 0; }
.card h3, .story h3, .post h3, .tile h3, .pcard h3, .splan h3, .sea h3, .plan h3, .season h3, .cause__t b, .fs__b b, .hx-card__t, .mock__h, .bp-card h3 { font-weight: 700; letter-spacing: 0; }

/* ———— الأزرار والشرائح: أجرأ وأوضح تباينًا ———— */
.btn { font-weight: 700; border-radius: 12px; min-height: var(--btn); padding: 0 24px; letter-spacing: 0; }
.btn--sm { min-height: var(--btn-sm); padding: 0 18px; }
.btn--sm { font-size: 15px; }
.btn--lg { min-height: var(--btn-lg); padding: 0 32px; font-size: 17px; }
.btn--red { background: var(--red); box-shadow: 0 10px 26px -12px rgba(196, 37, 47, .85), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn--red:hover { background: #d02e38; box-shadow: 0 14px 30px -12px rgba(196, 37, 47, .95), inset 0 -2px 0 rgba(0, 0, 0, .2); transform: translateY(-1px); }
.btn--ink { background: var(--ink); box-shadow: 0 10px 24px -14px rgba(27, 22, 19, .9); }
.btn--ink:hover { background: #000; transform: translateY(-1px); }
.btn--line { border: 1.5px solid var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn--line, .hero .btn--line, .phero--photo .btn--line, .start .btn--line, .cta-band .btn--line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.dark .btn--line:hover, .phero--photo .btn--line:hover, .start .btn--line:hover, .cta-band .btn--line:hover { background: #fff; color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.chip { font-weight: 700; }
.link { font-weight: 700; }
.bp-chip, .dx-chip { font-weight: 700; }

/* ———— شريط التنقل العائم (حبّة مستديرة فوق البطل) ———— */
.crisis { position: relative; z-index: 51; background: var(--ink-deep); }
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: var(--pill-gap) 12px 0; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
@media (min-width: 640px) { .nav-wrap { padding-inline: 20px; } }
.nav-wrap > * { pointer-events: auto; }
.nav { max-width: calc(var(--container) - 2 * var(--gutter) + 40px); height: var(--pill-h); padding-inline: 14px 10px; border-radius: 18px;
  background: rgba(250, 248, 244, .94); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 0 0 1px rgba(27, 22, 19, .07), 0 1px 2px rgba(27, 22, 19, .06), 0 18px 40px -22px rgba(27, 22, 19, .55);
  transition: box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) linear; }
@media (min-width: 640px) { .nav { padding-inline: 20px; } }
.brand { color: var(--ink); gap: 0; flex: none; }
.brand .brand__logo { display: block; height: 40px; width: auto; aspect-ratio: 268.39 / 64.2; flex: none; }
@media (max-width: 639px) { .brand .brand__logo { height: 34px; width: auto; } }
/* الهواتف الضيّقة (320–389): الشعار العربي + EN + «تبرع» + القائمة لا تتّسع في الحبّة بالمقاسات العادية،
   فيفيض الرأس يسارًا وتُفتح الصفحة مزاحة. نصغّر الشعار قليلًا ونضغط الفراغات، ونُبقي زر القائمة 44px. */
@media (max-width: 399px) {
  .nav-wrap { padding-inline: 10px; }
  .nav { padding-inline: 12px 8px; gap: 8px; }
  .nav .brand { flex: 0 1 auto; min-width: 0; gap: 8px; }
  .brand .brand__icon { width: 34px; height: 34px; border-radius: 9px; }
  .brand .brand__logo { height: 28px; min-width: 0; }
  .nav .nav__end { gap: 2px; flex: none; }
  .nav .nav__end .nav__lang[data-lang="en"] { margin-inline: 0; padding-inline: 7px; min-width: 36px; justify-content: center; }
  .nav .nav__end .btn--red { padding-inline: 12px; margin-inline-start: 0; }
}
@media (max-width: 349px) { [dir="rtl"] .brand .brand__icon { display: none; } }
.mega__btn, .mega__link { color: var(--ink); font-weight: 600; font-size: 15px; padding: 0 12px; }
.mega__btn:hover, .mega__link:hover, .mega__item:hover .mega__btn { background-color: rgba(27, 22, 19, .05); }
.mega__btn::after { opacity: .8; }
.mega__panel { top: calc(100% + 16px); border-radius: 18px; padding: 22px 24px 18px; background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 22, 19, .07), 0 30px 60px -24px rgba(27, 22, 19, .45); }
.mega__panel::before { inset: -18px 0 auto; height: 18px; }
.mega__h { color: var(--red-ink); font-weight: 700; border-bottom-color: var(--line); }
.mega__panel a { font-weight: 500; position: relative; padding-inline-start: 22px; }
.mega__panel a::before { content: ""; position: absolute; inset-inline-start: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--line-strong); transition: background-color var(--dur-1) linear, transform var(--dur-2) var(--ease); }
.mega__panel a:hover::before { background: var(--red); transform: scale(1.3); }
.nav__lang { color: var(--ink); font-weight: 600; }
/* زر اللغة: هدف لمس 44px على الشاشات اللمسية في كل صفحة (كان 44×32)، والحاسوب كما هو */
@media (pointer: coarse) { .nav .nav__end .nav__lang[data-lang] { min-height: 44px; min-width: 44px; } }
.nav__end { gap: 4px; }
.nav__end .btn--red { min-height: var(--btn-sm); padding-inline: 20px; font-size: 15px; border-radius: 12px; }
.nav__login[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
/* القائمة الجوالة: بطاقة تحت الحبّة */
.menu { max-width: calc(var(--container) - 2 * var(--gutter) + 40px); margin: 8px auto 0; padding: 4px 18px 18px; border-radius: 18px; background: #fbf9f5;
  box-shadow: 0 0 0 1px rgba(27, 22, 19, .07), 0 30px 60px -24px rgba(27, 22, 19, .5); max-height: calc(100dvh - var(--nav-total) - 60px); overflow-y: auto; overscroll-behavior: contain; }

/* الأشرطة اللاصقة تحت الحبّة */
.subnav, .dx-bar, .bp-tabs, .ac-tabs { top: calc(var(--nav-total) + 4px); }
.subnav { background: rgba(248, 245, 239, .96); }
/* حين يلتصق شريط تحت الحبّة: شريط كريمي يملأ الفراغ فوقه، فلا يظهر محتوى الصفحة ولا خطوطه بين الرأس والشريط (main.js يضع is-stuck) */
.subnav.is-stuck, .dx-bar.is-stuck, .bp-tabs.is-stuck, .ac-tabs.is-stuck { background: #f8f5ef; -webkit-backdrop-filter: none; backdrop-filter: none; border-top-color: transparent; box-shadow: 0 10px 24px -18px rgba(27, 22, 19, .35); }
.subnav.is-stuck::before, .dx-bar.is-stuck::before, .bp-tabs.is-stuck::before, .ac-tabs.is-stuck::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: calc(var(--nav-total) + 8px); background: #f8f5ef; pointer-events: none;
}
/* على الجوال: الشريط الفرعي قائمة قفز تحت الرأس، لا شريطًا ثالثًا ثابتًا */
@media (max-width: 639px) { .subnav { position: static; } }

/* ———— البطل الرئيسي: داكن، سينمائي، يمتد تحت شريط التنقل ———— */
.hx { margin: 0; margin-top: calc(-1 * var(--nav-total)); border-radius: 0 0 clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px); min-height: clamp(620px, calc(100svh - 44px), 880px); background: var(--ink-deep); }
.hx__photo img { object-position: 50% 74%; filter: saturate(.78) contrast(1.14) brightness(.8) sepia(.08); }
.hx__photo::before { background:
  linear-gradient(to bottom, rgba(23, 17, 15, .72) 0, rgba(23, 17, 15, 0) 22%),
  linear-gradient(to left, rgba(23, 17, 15, .92) 0%, rgba(23, 17, 15, .78) 34%, rgba(23, 17, 15, .34) 66%, rgba(23, 17, 15, .2) 100%),
  linear-gradient(to top, var(--ink-deep) 0%, rgba(23, 17, 15, .6) 22%, transparent 48%); }
.hx__photo figcaption { top: auto; bottom: 74px; inset-inline-end: 20px; padding: 5px 10px; border-radius: 6px; background: rgba(23, 17, 15, .78); color: #eae2d1; }
/* شريط التطريز الذي يغلق المشهد */
.hx::after { content: ""; position: absolute; z-index: 0; inset-inline: 0; bottom: 0; height: clamp(44px, 5vw, 72px); pointer-events: none;
  background: url("../assets/tatreez/hero-cloth.svg") center bottom / auto 100% repeat-x;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 40%); mask: linear-gradient(to bottom, transparent, #000 40%); }
.hx__inner { padding-top: calc(var(--nav-total) + clamp(48px, 5vw, 80px)); padding-bottom: clamp(88px, 7vw, 104px); }
.hx__live { padding: 0; background: none; box-shadow: none; gap: 12px; font-size: 14.5px; color: #e9dfcc; }
.hx__live::before { content: ""; width: 40px; height: 2px; background: var(--red); order: -1; }
.hx__live i { display: none; }
.hx__live b { padding: 2px 10px; border-radius: 6px; font-size: 13px; }
.hx__h1 { margin-top: 22px; font-weight: 800; font-size: clamp(46px, 6.7vw, 98px); line-height: 1.22; color: #f6efe2; }
.hx__lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.75; color: #e9dfcc; max-width: 36rem; }
.hx-search { margin-top: 34px; min-height: 72px; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
.hx-search .btn { min-height: 56px; padding-inline: 32px; font-size: 17px; }
.hx-chip { min-height: 44px; padding: 0 18px; font-weight: 700; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hx-chip:hover { background: #f6efe2; color: var(--ink); box-shadow: inset 0 0 0 1.5px #f6efe2; }
.hx-chip--hot { background: var(--red); box-shadow: none; }
.hx-chip--hot i { background: #fff; animation: pulse 2s infinite; }
.hx-chip--olive { background: rgba(85, 100, 42, .55); box-shadow: inset 0 0 0 1.5px rgba(196, 214, 140, .55); }
.hx-chip--all { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hx-card { border-radius: 20px; }
@media (min-width: 1080px) { .hx-card { transform: rotate(-1.2deg); } .hx-card:hover { transform: translateY(-6px) rotate(0); } }
.hx-card__t { font-size: 20px; }
@media (max-width: 639px) {
  .hx { margin: 0; margin-top: calc(-1 * var(--nav-total)); min-height: 0; border-radius: 0 0 32px 32px; }
  .hx__photo::before { background: linear-gradient(to bottom, rgba(23, 17, 15, .7), rgba(23, 17, 15, .72) 40%, rgba(23, 17, 15, .86) 75%, var(--ink-deep)); }
  .hx__inner { padding-top: calc(var(--nav-total) + 48px); padding-bottom: 96px; }
  .hx__h1 { font-size: clamp(40px, 11.4vw, 52px); line-height: 1.3; }
  .hx__photo figcaption { bottom: 52px; inset-inline-end: 12px; font-size: 10.5px; }
}

/* الشريط الحي: يجلس تحت البطل بدل أن يخفي التطريز */
.live { margin-top: clamp(-36px, -2.5vw, -20px); }
.live__card { border-radius: 20px; box-shadow: 0 0 0 1px rgba(27, 22, 19, .06), 0 30px 60px -30px rgba(27, 22, 19, .55); }
.live__nums dd b { font-weight: 700; }
.live__feed { background: var(--ink); color: #f6efe2; }
.live__tag { color: #ff8a90; }
.live__list li em { color: rgba(233, 223, 204, .75); }
.live__list li a { text-decoration-color: rgba(233, 223, 204, .4); }
@media (max-width: 639px) { .live { margin-top: -18px; } }

/* ———— رؤوس الأقسام: لافتة حمراء + عنوان ثقيل ———— */
.hhead__k, .shead__n, .eyebrow, .feat__k, .splan__k, .campaign__kicker { font-weight: 700; }
.hhead__k { color: var(--red-ink); gap: 10px; }
.hhead__k:not(:has(i))::after { content: ""; flex: none; width: 36px; height: 8px; background: currentColor; -webkit-mask: url("../assets/brand/stitch.svg") 0 50% / 12px 8px repeat-x; mask: url("../assets/brand/stitch.svg") 0 50% / 12px 8px repeat-x; }


/* ———— كتل لونية: حقول مستديرة واثقة ———— */
/* .zk هنا كتلة الزكاة في الرئيسية فقط (صفحة الزكاة تلفّ محتواها بـ div.zk) */
.hsec--tint, .spon, [data-page="home"] .zk, .trust, .sec--tint, .sec.dark { margin-inline: 12px; border-radius: var(--field-r); }
@media (max-width: 639px) { .hsec--tint, .spon, [data-page="home"] .zk, .trust, .sec--tint, .sec.dark { margin-inline: 8px; } }
.sec--tint + .sec, .sec.dark + .sec, .sec + .sec--tint, .sec + .sec.dark { margin-top: 12px; }
.hsec--tint { background: #efe6d4; }
.spon { background: #e9dcc3; }
[data-page="home"] .zk { background: #e3e8c8; }
[data-page="home"] .zk .h2, .zk__copy .h2 { color: #232a0d; }
.feat__h { font-family: var(--display); font-weight: 800; font-size: var(--fs-h2-xl); line-height: var(--lh-h2-xl); }
.feat__card { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(27, 22, 19, .06), 0 40px 80px -40px rgba(27, 22, 19, .5); }
.start__card { border-radius: var(--field-r); }
.cause, .sea, .fs__item { border-radius: var(--r-md); }
.cause__t b { font-size: clamp(19px, 1.9vw, 24px); }

/* الثقة: كتلة حبر داكنة يفتحها شريط تطريز */
.trust { position: relative; overflow: hidden; background: var(--ink-deep); color: #f6efe2; padding-top: calc(clamp(64px, 7vw, 104px) + 28px); }
.trust::before { content: ""; position: absolute; inset: 0 0 auto; height: clamp(34px, 3.4vw, 48px); background: url("../assets/tatreez/hero-cloth.svg") center top / auto 100% repeat-x; -webkit-mask: linear-gradient(to top, transparent, #000 60%); mask: linear-gradient(to top, transparent, #000 60%); }
.trust .h2 { color: #f6efe2; }
.trust .hhead__k { color: #ff9ba1; }

.trust .link { color: #ffb4b8; }
.trust__nums { background: rgba(233, 223, 204, .14); box-shadow: none; }
.trust__nums > div { background: rgba(255, 255, 255, .04); }
.trust__nums b { color: #fff; }
.trust__nums span { color: rgba(233, 223, 204, .8); }
.trust__list li { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .14); }
.trust__list li:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .3); }
.trust__list b { color: #fff; }
.trust__list span { color: rgba(233, 223, 204, .8); }
.trust__list svg { background: rgba(196, 37, 47, .22); stroke: #ff8a90; }

/* ———— شاهدها تعمل: هكذا يصل تبرعك ———— */
.demo { padding-block: clamp(72px, 8vw, 120px); }
.demo__head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.demo__head .lead { margin-inline: auto; margin-top: 6px; }
.demo__field { display: grid; gap: 12px; padding: 12px; border-radius: var(--field-r); background: #e3e8c8; }
@media (min-width: 960px) { .demo__field { grid-template-columns: 1fr 1.05fr; padding: 16px; gap: 16px; } }
.demo__side { display: grid; align-content: center; gap: 14px; padding: clamp(8px, 2vw, 28px); }
.demo__steps { display: grid; gap: 6px; }
.demo__steps button { position: relative; width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; text-align: start; color: #232a0d; transition: background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); overflow: hidden; }
.demo__steps button:hover { background: rgba(255, 255, 255, .45); }
.demo__steps button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(27, 22, 19, .06), 0 20px 40px -24px rgba(45, 54, 18, .55); }
.demo__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(85, 100, 42, .14); color: var(--olive); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease); }
.demo__steps button.is-done .demo__n { background: var(--olive); color: #fff; }
.demo__steps button[aria-selected="true"] .demo__n { background: var(--red); color: #fff; transform: scale(1.06); }
.demo__t { display: grid; gap: 2px; }
.demo__t b { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); }
.demo__t > span { font-size: 15px; line-height: 1.65; color: #4a5229; }
.demo__steps button:not([aria-selected="true"]) .demo__t > span { display: none; }
@media (min-width: 960px) { .demo__steps button:not([aria-selected="true"]) .demo__t > span { display: block; opacity: .7; } }
.demo__bar { position: absolute; inset-inline: 18px; bottom: 0; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; opacity: 0; }
.demo.is-playing .demo__steps button[aria-selected="true"] .demo__bar { opacity: 1; animation: demoBar var(--demo-ms, 4200ms) linear both; }
@keyframes demoBar { to { transform: scaleX(1); } }
.demo__play { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: rgba(85, 100, 42, .14); color: #232a0d; font-weight: 700; font-size: 15px; transition: background-color var(--dur-1) linear; }
.demo__play:hover { background: rgba(85, 100, 42, .24); }
.demo__play svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.demo__play .i-play { display: none; fill: currentColor; stroke: none; }
.demo.is-paused .demo__play .i-play { display: block; }
.demo.is-paused .demo__play .i-pause { display: none; }
.demo__stage { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(440px, 40vw, 540px); display: grid; place-items: center; padding: 40px 20px 52px; border-radius: calc(var(--field-r) - 8px); background: var(--olive); }
.demo__cloth { position: absolute; inset: 0; z-index: -1; background: rgba(233, 240, 200, .32); -webkit-mask: url("../assets/tatreez/field-mask.svg") center / cover no-repeat; mask: url("../assets/tatreez/field-mask.svg") center / cover no-repeat; }
.demo__card { position: relative; display: grid; width: min(100%, 360px); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 24, 6, .75), 0 0 0 1px rgba(0, 0, 0, .04); }
.demo__scr { grid-area: 1 / 1; position: relative; display: grid; align-content: start; gap: 12px; padding: 20px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility .45s; }
.demo__scr.is-on { opacity: 1; visibility: visible; transform: none; }
.demo__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.demo__top b { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); }
.demo__chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.demo__chip--red { background: var(--red); color: #fff; }
.demo__chip i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.demo__img { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--ink); }
.demo__img--tall { aspect-ratio: 4 / 3.4; }
.demo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.demo__scr.is-on .demo__img img { animation: demoZoom 5s var(--ease) both; }
@keyframes demoZoom { from { transform: scale(1.12); } }
.demo__title { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.45; }
.demo__nums { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink-2); }
.demo__nums b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo__nums span { margin-inline-start: auto; font-weight: 800; color: var(--red-ink); }
.demo__scr .hx-bar > span { transform: scaleX(0); }
.demo__scr.is-on .hx-bar > span { transform: scaleX(1); }
.demo__amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.demo__amts span { display: grid; place-items: center; min-height: 64px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.demo__amts .is-on { box-shadow: inset 0 0 0 2.5px var(--red); color: var(--red-ink); background: rgba(196, 37, 47, .05); }
.demo__scr.is-on .demo__amts .is-on { animation: demoPick .9s .5s var(--ease) both; }
@keyframes demoPick { 0% { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); background: #fff; } 60% { transform: scale(1.06); } }
.demo__what { font-size: 15px; font-weight: 600; color: var(--ink); }
.demo__pay { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 10px 24px -12px rgba(196, 37, 47, .9); }
.demo__scr.is-on .demo__pay { animation: demoPress .5s 1.4s var(--ease) both; }
@keyframes demoPress { 50% { transform: scale(.96); } }
.demo__ok { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--olive); }
.demo__ok i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 12.5l3.2 3 6.8-7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.demo__scr.is-on .demo__ok { animation: hxRise .6s 1.9s var(--ease) both; }
.demo__stamp { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 14px; border: 2.5px solid #fff; border-radius: 8px; background: var(--red); color: #fff; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 16px; transform: rotate(-6deg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.demo__scr.is-on .demo__stamp { animation: demoStamp .55s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes demoStamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } }
.demo__checks { display: grid; gap: 4px; margin-top: 4px; }
.demo__checks li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; background: hsl(var(--tint)); font-weight: 600; font-size: 15px; }
.demo__checks i { width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 12.5l3.2 3 6.8-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.demo__scr.is-on .demo__checks li { animation: hxRise .5s var(--ease) both; animation-delay: calc(.3s + var(--k, 0) * .28s); }
.demo__checks li:nth-child(2) { --k: 1; } .demo__checks li:nth-child(3) { --k: 2; } .demo__checks li:nth-child(4) { --k: 3; }
.demo__note { position: absolute; bottom: 16px; inset-inline: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: rgba(246, 239, 226, .8); }
@media (max-width: 639px) {
  .demo__stage { min-height: 460px; padding: 28px 14px 46px; }
  .demo__steps button { grid-template-columns: 38px 1fr; padding: 12px; gap: 12px; }
  .demo__n { width: 38px; height: 38px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo__scr, .demo__scr * { transition: none !important; animation: none !important; }
  .demo__bar { display: none; }
}

/* ———— الصفحات الداخلية: الرأس السينمائي يمتد تحت الحبّة ———— */
main > .phero--photo:first-child { margin: 0; margin-top: calc(-1 * var(--nav-total)); border-radius: 0 0 clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px); padding-top: calc(var(--nav-total) + 56px); padding-bottom: clamp(56px, 5vw, 72px); background: var(--ink-deep); }
.phero--photo > img, .phero--photo > picture > img { filter: saturate(.8) contrast(1.12) brightness(.82) sepia(.06); }
.phero--photo::after { background:
  linear-gradient(to bottom, rgba(23, 17, 15, .7) 0, transparent 24%),
  linear-gradient(to left, rgba(23, 17, 15, .88) 0%, rgba(23, 17, 15, .6) 40%, rgba(23, 17, 15, .2) 100%),
  linear-gradient(to top, var(--ink-deep) 0%, rgba(23, 17, 15, .5) 30%, transparent 60%); }
main > .phero--photo:first-child::before { content: ""; position: absolute; z-index: 0; inset-inline: 0; bottom: 0; height: clamp(34px, 3.4vw, 48px); pointer-events: none;
  background: url("../assets/tatreez/hero-cloth.svg") center bottom / auto 100% repeat-x; -webkit-mask: linear-gradient(to bottom, transparent, #000 60%); mask: linear-gradient(to bottom, transparent, #000 60%); }
.phero--photo h1 { font-weight: 800; color: #f6efe2; }
.phero--photo .phero__cap, .phero--photo figcaption { bottom: clamp(44px, 4vw, 60px); }
.phero h1 { font-weight: 800; }

/* ———— الأقسام الداكنة والدعوة ———— */
.dark, .stats, .how, .inst { background: var(--ink-deep); }
.cta-band { border-radius: var(--field-r); }
.cta-band h2 { font-weight: 800; }

/* ———— التذييل: كتلة حبر بهوية كاملة ———— */
.foot { background: var(--ink-deep); color: #e9dfcc; margin-top: clamp(48px, 6vw, 96px); border-radius: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px) 0 0; overflow: hidden; }
.foot .band { height: clamp(34px, 3.4vw, 48px); background: url("../assets/tatreez/hero-cloth.svg") center top / auto 100% repeat-x; -webkit-mask: linear-gradient(to top, transparent, #000 60%); mask: linear-gradient(to top, transparent, #000 60%); }
.foot__hero { border-bottom-color: rgba(233, 223, 204, .16); }
.foot__logo { width: clamp(190px, 18vw, 250px); }
.foot__tag { color: #f6efe2; font-weight: 800; }
.foot__sub p { color: rgba(233, 223, 204, .85); }
.foot h3 { color: #ff9ba1; font-weight: 700; }
.foot ul a { color: #f6efe2; }
.foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.foot__fine { color: rgba(233, 223, 204, .7); border-top-color: rgba(233, 223, 204, .16); }
.foot__bar { color: rgba(233, 223, 204, .78); }
.foot__bar a { color: #f6efe2; }
.foot .news-form { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .16); color: #f6efe2; }
.foot .news-form span { color: rgba(233, 223, 204, .8); }
.foot .news-form input { background: #fff; color: var(--ink); }
.foot .btn:focus-visible, .foot a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: none; }
#newsMsg { color: #f6efe2; }

/* ———— الحركة: واضحة ومهذّبة ———— */
@media (prefers-reduced-motion: no-preference) {
  .hx__h1 span { animation-duration: 1.1s; }
}

/* أيقونة الكوفي المربع بجانب اسم المنصة */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 2px 8px rgba(23,17,15,.18); }
@media (max-width: 640px) { .brand__icon { width: 36px; height: 36px; border-radius: 9px; } }

/* ———— نظام الطوب الكوفي (خفيف): مقاطع من علامة الشعار، لا خلفية مكررة ————
   .brick             مربع واحد بلون الفعل (نقطة الباء)
   .brick-rule        فاصل: ثلاث طوبات، آخرها حمراء
   ul.bricks          نقاط قائمة مربعة
   الكيكرات (.eyebrow/.shead__n/.hhead__k) بغرزة تطريز واحدة — انظر أدناه */
:root { --brick: 6px; --brick-gap: 3px; }
.brick { display: inline-block; flex: none; width: .5em; height: .5em; background: var(--red); vertical-align: .1em; }
.brick--ink { background: currentColor; }
.brick-rule::before {
  content: ""; flex: none; width: calc(var(--brick) * 3 + var(--brick-gap) * 2); height: var(--brick); border-radius: 0;
  background: linear-gradient(90deg, var(--red) 0 var(--brick), transparent 0 calc(var(--brick) + var(--brick-gap)), currentColor 0 calc(var(--brick) * 2 + var(--brick-gap)), transparent 0 calc(var(--brick) * 2 + var(--brick-gap) * 2), currentColor 0);
}
.shead__n::before { content: none; }
/* كيكر واحد للموقع كله: أحمر حبري 14/700 + غرزة تطريز بعده (shead__n · eyebrow · hhead__k) */
.eyebrow { color: var(--red-ink); gap: 10px; }
.eyebrow::before { display: none; }
.eyebrow::after { content: ""; flex: none; width: 36px; height: 8px; background: currentColor; -webkit-mask: url("../assets/brand/stitch.svg") 0 50% / 12px 8px repeat-x; mask: url("../assets/brand/stitch.svg") 0 50% / 12px 8px repeat-x; }
.dark .eyebrow:not(.eyebrow--light), .shead--light .eyebrow { color: #f0b3b7; }
.eyebrow--light, .phero--photo .eyebrow { color: var(--linen-ink); }
hr.brick-rule, .brick-rule { display: flex; justify-content: center; border: 0; height: auto; margin: clamp(28px, 4vw, 48px) auto; color: var(--ink); background: none; }
hr.brick-rule::before { opacity: .85; }
ul.bricks > li, .prose ul > li { position: relative; padding-inline-start: 18px; list-style: none; }
ul.bricks > li::before, .prose ul > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; background: var(--red); }
.prose ul { padding-inline-start: 0; list-style: none; }

/* ———— التذييل: لحظة علامة واحدة مدمجة + شريط ثقة ———— */
.foot__top { display: grid; gap: 28px; padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid rgba(233, 223, 204, .16); }
@media (min-width: 960px) { .foot__top { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: end; } }
.foot__id { display: grid; gap: 14px; justify-items: start; }
.foot__logo { width: clamp(150px, 13vw, 180px); }
.foot .foot__tag { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; letter-spacing: 0; }
.foot__tag em::after { height: 6px; bottom: -.3em; } /* Alexandria: الغرزة تحت نقاط «يبقى» لا فوقها */
.foot__about { max-width: 36rem; color: rgba(233, 223, 204, .85); font-size: 15px; line-height: 1.8; }
.foot .news-form { margin: 0; grid-template-columns: 1fr; align-self: end; }
.foot .news-form > div:first-child { gap: 4px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
@media (min-width: 900px) { .foot__cols { grid-template-columns: repeat(5, 1fr); } }
.foot__cols h3 { display: flex; align-items: center; gap: 8px; }
.foot__cols h3::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.foot ul a { display: flex; min-height: 44px; align-items: center; font-size: 15px; }
.foot__trust { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 44px); padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-md, 16px); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .14); }
@media (min-width: 1000px) { .foot__trust { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; } }
.foot__reg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin: 0; }
.foot__reg dt { font-size: 12.5px; color: rgba(233, 223, 204, .66); margin-bottom: 2px; }
.foot__reg dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #f6efe2; }
.foot__reg a { color: #f6efe2; text-decoration: underline; text-underline-offset: 4px; }
.foot__pay-h { font-size: 12.5px; color: rgba(233, 223, 204, .66); margin-bottom: 10px; }
.paymarks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 6px; background: #f6efe2; color: #1b1613; font: 700 13px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap; }
.pm--visa span { font-style: italic; font-weight: 800; letter-spacing: .04em; color: #1a1f71; font-size: 14px; }
.pm--mc { color: #1b1613; } .pm--mc svg circle:first-child { fill: #c4252f; opacity: 1; } .pm--mc svg circle:last-child { fill: #e8a13a; opacity: .9; }
.pm--mc span { font-weight: 600; font-size: 12.5px; }
.pm--pp b { color: #1a3f8f; } .pm--pp span { color: #1b8fd6; font-style: italic; }
.pm--bank { font-weight: 600; }
.foot__pay-note { margin-top: 10px; font-size: 13px; line-height: 1.7; color: rgba(233, 223, 204, .75); }

/* ======================================================================
   النسخة 53 — سلّم واحد، إيقاع واحد (يأتي أخيرًا عمدًا)
   الرموز في styles.css :root. هنا فقط ما يلزم أن يغلب قواعد الصفحات القديمة.
   ====================================================================== */
/* اللافتات فوق العناوين: دور واحد = شكل واحد */
.eyebrow, .hhead__k, .hg__k, .shead__n, .tile__n { font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }

/* عناوين البطاقات: طبقتان فقط */
.plan h3, .season h3, .splan h3, .sea h3 { font-size: var(--fs-h3-lg); line-height: var(--lh-h3-lg); }
.tile h3, .pcard h3, .card h3, .story h3, .post h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

/* حركة المرور: رفعة واحدة وتكبير واحد لكل البطاقات */
@media (hover: hover) {
  .bp-card:hover, .card:hover, .pcard:hover, .plan:hover, .splan:hover, .pa__c:hover, .fs__item:hover, .sea:hover, .cause:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .bp-card:hover .bp-card__media img, .card:hover img, .pcard:hover img, .fs__item:hover img, .sea:hover img, .cause:hover img { transform: scale(1.04); }
}

/* الجوال: حين يظهر شريط تبرع الحملة لا يتكرر زر «تبرع» الأحمر في الرأس */
@media (max-width: 1023px) { html:has(.bp-dock.on) .nav__end .btn--red { visibility: hidden; } }

/* التذييل في الرئيسية (النشرة لها قسمها هناك): الهوية على اليمين، والتعريف والزر على اليسار، بلا نصف فارغ */
@media (min-width: 960px) {
  [data-page="home"] .foot__top { grid-template-columns: 1fr; }
  [data-page="home"] .foot__id { grid-template-columns: 1.15fr 1fr; grid-template-areas: "logo about" "tag cta"; column-gap: 56px; row-gap: 14px; align-items: end; }
  [data-page="home"] .foot__logo { grid-area: logo; }
  [data-page="home"] .foot__tag { grid-area: tag; }
  [data-page="home"] .foot__about { grid-area: about; }
  [data-page="home"] .foot__id > .btn { grid-area: cta; justify-self: start; }
}

/* ===== LTR (English): the dark side of hero overlays follows the copy ===== */
html[dir="ltr"] .hx__photo::before { background: linear-gradient(to bottom, rgba(23, 17, 15, .72) 0, rgba(23, 17, 15, 0) 22%), linear-gradient(to right, rgba(23, 17, 15, .92) 0%, rgba(23, 17, 15, .78) 34%, rgba(23, 17, 15, .34) 66%, rgba(23, 17, 15, .2) 100%), linear-gradient(to top, var(--ink-deep) 0%, rgba(23, 17, 15, .6) 22%, transparent 48%); }
html[dir="ltr"] .phero--photo::after { background: linear-gradient(to bottom, rgba(23, 17, 15, .7) 0, transparent 24%), linear-gradient(to right, rgba(23, 17, 15, .88) 0%, rgba(23, 17, 15, .6) 40%, rgba(23, 17, 15, .2) 100%), linear-gradient(to top, var(--ink-deep) 0%, rgba(23, 17, 15, .5) 30%, transparent 60%); }
html[dir="ltr"] .demo__bar { transform-origin: left; }
/* الإطلاق بالعملات الرقمية: شارة العملات المنشورة في التذييل */
.pm--cx { gap: 7px; font-weight: 700; letter-spacing: .02em; }
.pm--cx svg { flex: none; }
.paymarks:not(:has(> li:not([hidden]))) { display: none; }

/* ===== قائمة اللغات (build.mjs → langMenu): زر واحد صغير في الرأس يفتح ست لغات بأسمائها، وشبكة في القائمة الجوالة ===== */
.lsw { position: relative; flex: none; }
.lsw > summary { list-style: none; cursor: pointer; }
.lsw > summary::-webkit-details-marker { display: none; }
.nav__end .lsw__btn { gap: 6px; min-height: 44px; min-width: 44px; margin-inline: 2px; padding-inline: 9px; border-radius: 10px; font-size: 13px; letter-spacing: .04em; box-shadow: inset 0 0 0 1.5px rgba(27, 22, 19, .22); }
.nav__end .lsw__btn:hover, .lsw[open] > .lsw__btn { box-shadow: inset 0 0 0 1.5px var(--ink); background: none; }
.lsw__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lsw__ico { flex: none; opacity: .8; }
.lsw__cur[lang="ar"], .lsw__cur[lang="ur"] { font-family: "IBM Plex Sans Arabic", var(--text, sans-serif); letter-spacing: 0; font-size: 14px; }
.lsw__list { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 196px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #fbf9f5;
  box-shadow: 0 0 0 1px rgba(27, 22, 19, .08), 0 24px 48px -20px rgba(27, 22, 19, .45); }
.lsw__list a, .menu__langs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding-inline: 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.lsw__list a:hover { background: rgba(27, 22, 19, .05); }
.lsw__list a[aria-current="true"], .menu__langs a[aria-current="true"] { color: var(--red-ink, #a51f28); }
.lsw__list a[aria-current="true"]::after, .menu__langs a[aria-current="true"]::after { content: ""; flex: none; width: 7px; height: 7px; background: var(--red); }
.lsw__list a:is([lang="ar"], [lang="ur"]), .menu__langs a:is([lang="ar"], [lang="ur"]) { font-family: "IBM Plex Sans Arabic", var(--text, sans-serif); }
.menu .menu__langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; padding-block: 4px 2px; }
.menu .menu__langs a { min-height: 48px; padding-inline: 10px; border: 0; font-size: 16px; background: rgba(27, 22, 19, .03); }
@media (max-width: 399px) { .nav__end .lsw__btn { padding-inline: 7px; } .nav__end .lsw__btn .lsw__ico { display: none; } }

/* آخر قائمتين منسدلتين (قرب حافة الشاشة) تنفتحان نحو الداخل، فلا تتجاوز اللوحة عرض الشاشة على 1024–1280 */
.mega__item:nth-last-child(-n+2) .mega__panel { inset-inline-start: auto; inset-inline-end: 0; }
.mega__panel { max-width: calc(100vw - 32px); }
/* عناوين القائمة العلوية سطر واحد دائمًا (الفرنسية «À propos» كانت تنكسر) */
.mega__btn, .nav__end > a { white-space: nowrap; }
