/* HomeFit — الموقع العامّ
   ألوان الشعار فقط: العنابيّ مع الأسود والأبيض، ورماديّ أرضيّة النادي المطّاطيّة للمساحات. */
:root {
  --red: #8C0010;
  --red-deep: #5E000B;
  --red-tint: #F7E8EA;
  --ink: #000;
  --ink-2: #3A3A3A;
  --ink-3: #6B6B6B;
  --paper: #fff;
  --mat: #EEEDED;
  --line: #D9D8D8;
  --display: "Baloo Bhaijaan 2", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wrap: 1160px;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--body); }
html[lang="en"] body, html[lang="fr"] body, html[lang="hi"] body { font-size: 16.5px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.aed { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; unicode-bidi: isolate; direction: ltr; }
.aed svg { height: .78em; width: auto; fill: currentColor; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* الشريط العلويّ */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand b { font: 800 22px/1 var(--display); letter-spacing: .02em; direction: ltr; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: 15.5px; }
.nav a:hover { color: var(--red); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { font: 600 13px var(--body); text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--ink-3); }
.langs a[aria-current] { background: var(--ink); color: #fff; }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }
@media (max-width: 960px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: block; }
  .langs { margin-inline-start: 0; }
  .top.open .nav { display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 68px; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .top.open .nav a { padding: 10px 0; font-size: 17px; }
}

/* الواجهة: العنوان + لوحة الجدول */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); letter-spacing: -.01em; line-height: 1.02; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--red); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 30em; margin-top: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; position: relative; }
.store svg { width: 24px; height: 24px; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store b { display: block; font: 600 16px/1.2 var(--body); direction: ltr; }
.store[aria-disabled] { background: #2b2b2b; cursor: default; }
.store .soon { position: absolute; top: -9px; inset-inline-end: -8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.hero-meta { display: flex; gap: 22px; margin-top: 34px; color: var(--ink-3); font-size: 15px; flex-wrap: wrap; }
.hero-meta b { color: var(--ink); font-weight: 600; }

.pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pick > span { font-weight: 600; margin-inline-end: 4px; }
.chip { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; font: 600 15px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--red); color: var(--red); }

/* لوحة الجدول: ورقة مثبّتة على لوح كأنّها معلّقة في جيم منزليّ */
.board { position: relative; background: var(--mat); border-radius: 20px; padding: 26px 18px 18px; }
.board::before { content: ""; position: absolute; top: -10px; left: 50%; width: 118px; height: 26px; transform: translateX(-50%); background: var(--ink); border-radius: 8px 8px 14px 14px; }
.sheet { background: #fff; border-radius: 12px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0,0,0,.35); overflow: hidden; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 2px solid var(--ink); }
.sheet-head h3 { font-size: 24px; }
.sheet-head p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.tabs { display: flex; background: var(--mat); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: 600 14px var(--body); cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.week button { border: 0; border-inline-end: 1px solid var(--line); background: #fff; padding: 10px 2px 8px; cursor: pointer; font: 600 13px var(--body); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.week button:last-child { border-inline-end: 0; }
.week button i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.week button i.off { background: transparent; border: 1.5px solid var(--line); }
.week button[aria-selected="true"] { background: var(--ink); color: #fff; }
.week button[aria-selected="true"] i.off { border-color: #fff; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px 6px; gap: 10px; }
.day-head b { font: 700 19px var(--display); }
.day-head span { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.ex { list-style: none; margin: 0; padding: 4px 12px 12px; }
.ex li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.ex li + li { border-top: 1px dashed var(--line); border-radius: 0; }
.thumb { width: 64px; height: 52px; border-radius: 8px; background: var(--mat); position: relative; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb img + img { animation: flip 2.4s steps(1) infinite; }
@keyframes flip { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.ex .n { font-weight: 600; line-height: 1.35; }
.ex .m { color: var(--ink-3); font-size: 13.5px; }
.ex .sr-x { font: 700 15px var(--body); direction: ltr; unicode-bidi: isolate; background: var(--red-tint); color: var(--red); border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.restbox { margin: 10px 20px 22px; padding: 22px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; color: var(--ink-2); }
.restbox b { display: block; font: 700 20px var(--display); color: var(--ink); margin-bottom: 4px; }
.food { padding: 6px 12px 14px; }
.totals { display: flex; gap: 10px; padding: 14px 8px 10px; }
.totals div { flex: 1; background: var(--mat); border-radius: 10px; padding: 10px 12px; }
.totals b { font: 800 24px/1 var(--display); direction: ltr; display: inline-block; }
.totals small { color: var(--ink-3); display: block; font-size: 13px; }
.meal { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 8px; border-top: 1px dashed var(--line); }
.meal .slot { font-size: 12.5px; color: var(--red); font-weight: 600; }
.meal .nm { font-weight: 600; line-height: 1.4; grid-column: 1; }
.meal .kc { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: end; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.meal .kc small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.demo-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; text-align: center; }

@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .sheet-head { flex-direction: column; }
  .week button { font-size: 11.5px; }
  .ex li { grid-template-columns: 52px 1fr auto; gap: 10px; padding: 8px 4px; }
  .thumb { width: 52px; height: 44px; }
}

/* أقسام عامّة */
section { scroll-margin-top: 76px; }
.sec { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(34px, 5vw, 52px); }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 12px; }
.dark { background: var(--ink); color: #fff; }
.dark .sec-head p { color: #c9c9c9; }
.mat { background: var(--mat); }

/* داخل التطبيق: قائمة الشاشات + هاتف حيّ */
.inside .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.screens { list-style: none; margin: 0; padding: 0; border-top: 1px solid #333; }
.screens button { width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid #333; color: #fff; padding: 18px 4px; cursor: pointer; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; font: inherit; }
.screens b { font: 700 24px var(--display); color: #8a8a8a; }
.screens span { color: #a8a8a8; }
.screens button[aria-selected="true"] b { color: #fff; }
.screens button[aria-selected="true"] span { color: #fff; }
.screens button[aria-selected="true"] b::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }
.phone-slot { display: flex; justify-content: center; }
@media (max-width: 920px) {
  .inside .wrap { grid-template-columns: 1fr; gap: 36px; }
  .screens button { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
  .screens b { font-size: 21px; }
}

/* كيف يعمل: خطوات متسلسلة */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; border-inline-start: 2px solid var(--ink); padding-inline: 22px 18px; }
.steps li::before { content: counter(s); display: block; font: 800 64px/1 var(--display); color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li::before { font-size: 48px; } }

/* الميزات: قائمة ذات عمودين بخطوط، لا بطاقات */
.feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.feat { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.feat svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.feat h3 { font-size: 21px; margin-bottom: 4px; }
.feat p { color: var(--ink-2); }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* الأسعار */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px 20px; display: flex; flex-direction: column; position: relative; }
.price.best { border: 2px solid var(--red); }
.price .tag { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 2px 12px; }
.price h3 { font-size: 22px; }
.price .amount { font: 800 38px/1.1 var(--display); margin: 14px 0 2px; }
.price .per { color: var(--ink-3); font-size: 14px; }
.price .eq { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 4px; min-height: 1.6em; }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.price li { padding: 5px 0; padding-inline-start: 22px; position: relative; }
.price li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 10px; height: 5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.price .trial { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; }
.store-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink-2); font-size: 15px; }
.store-note svg { width: 20px; height: 20px; fill: var(--ink); flex-shrink: 0; }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }

/* الشراكات: كتلتان متجاورتان */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > div { padding: 64px 48px; }
.duo > div:first-child { background: var(--red); color: #fff; }
.duo > div:last-child { background: var(--ink); color: #fff; }
.duo h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 14em; }
.duo p { margin: 14px 0 26px; max-width: 30em; color: rgba(255,255,255,.86); }
.duo .btn { background: #fff; color: var(--ink); border-color: #fff; }
.duo .btn:hover { background: transparent; color: #fff; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo > div { padding: 48px 20px; } }

/* الأسئلة: سؤال مفتوح واحد، وأيقونة ؟ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 700 20px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "؟"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 17px var(--body); }
html[lang="en"] .faq summary::after, html[lang="fr"] .faq summary::after, html[lang="hi"] .faq summary::after { content: "?"; }
.faq details[open] summary::after { background: var(--red); border-color: var(--red); color: #fff; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* التنزيل والإشعار عند الإطلاق */
.dl .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dl h2 { font-size: clamp(32px, 4.6vw, 48px); }
.dl p { color: var(--ink-2); margin-top: 12px; }
.notify { display: flex; gap: 8px; margin-top: 20px; }
.notify input { flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 20px; font: 16px var(--body); background: #fff; }
.ok { margin-top: 14px; color: var(--red); font-weight: 600; }
.err { color: var(--red); font-size: 14px; margin-top: 6px; }
.dl .big-mark { justify-self: center; width: min(320px, 70%); }
@media (max-width: 820px) { .dl .wrap { grid-template-columns: 1fr; } .dl .big-mark { display: none; } .notify { flex-direction: column; } }

/* التذييل */
.foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14.5px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }

/* الصفحات الداخليّة والنماذج */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); max-width: 15em; }
.page-hero p { font-size: 19px; color: var(--ink-2); margin-top: 14px; max-width: 36em; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 40px 0 96px; align-items: start; }
.points { list-style: none; padding: 0; margin: 0; }
.points li { border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.points b { font: 700 22px var(--display); display: block; margin-bottom: 4px; }
.points span { color: var(--ink-2); }
.form { background: var(--mat); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px; padding: 10px 14px; font: 16px var(--body); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form textarea { min-height: 110px; resize: vertical; }
.form input[type=email], .form input[type=tel], .form input[type=url], .form input[inputmode=numeric] { direction: ltr; text-align: start; }
html[dir="rtl"] .form input[type=email], html[dir="rtl"] .form input[type=tel], html[dir="rtl"] .form input[type=url] { text-align: right; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; font-weight: 500; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 16px; cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.trap { position: absolute; inset-inline-start: -9999px; }
.thanks { background: var(--ink); color: #fff; border-radius: 18px; padding: 40px 28px; text-align: center; font: 700 22px var(--display); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .form .row { grid-template-columns: 1fr; } .form { padding: 20px; } }

.legal { max-width: 760px; padding: 48px 0 96px; }
.legal h1 { font-size: 44px; margin-bottom: 24px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }

/* الهنديّة (ديفاناغاري) والأرديّة (نستعليق): الخطّ يُحمَّل من Google Fonts للغة الصفحة فقط */
html[lang="hi"] { --display: "Noto Sans Devanagari", "Baloo Bhaijaan 2", system-ui, sans-serif; --body: "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; }
html[lang="hi"] .hero h1 { line-height: 1.2; }
html[lang="ur"] { --display: "Noto Nastaliq Urdu", "Baloo Bhaijaan 2", serif; --body: "Noto Nastaliq Urdu", "IBM Plex Sans Arabic", serif; }
html[lang="ur"] body { line-height: 2; font-size: 16px; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { font-weight: 700; line-height: 1.9; }
html[lang="ur"] .hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 2; }
html[lang="ur"] .legal h1 { font-size: 38px; }
html[lang="ur"] :is(.faq summary, .points b, .screens b, .day-head b, .restbox b, .ex .n, .meal .nm, .chip, .btn, .tabs button, .langs a) { line-height: 1.9; }
html[lang="ur"] .store small { line-height: 1.6; }
/* الشعار والأرقام تبقى بخطّ العلامة */
html[lang="hi"] .brand b, html[lang="ur"] .brand b, html[lang="hi"] .price .amount, html[lang="ur"] .price .amount, html[lang="ur"] .steps li::before, html[lang="hi"] .steps li::before { font-family: "Baloo Bhaijaan 2", system-ui, sans-serif; }
