/* home-apple — الهوم بلغة أبل (معاينة). يعتمد على apple-site-*.css */
.sec-head { max-width: var(--ap-content); }
.sec-head .ap-body { margin-top: 12px; max-width: 720px; }
.hero { padding-block: 96px 0; }
.ico { width: 24px; height: 24px; }

/* clients */
.clients { text-align: center; padding-top: 72px; }
.clients .ap-tout { margin: 0; }
.clients__sub { margin: 8px auto 0 !important; max-width: 560px; }
.logos-wrap { overflow: hidden; margin-top: 32px; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; width: max-content; animation: logos-slide 36s linear infinite; }
.logos-wrap:hover .logos-track { animation-play-state: paused; }
.logos { list-style: none; margin: 0; padding: 0 28px 0 0; display: flex; align-items: center; gap: 56px; flex: none; }
[dir="ltr"] .logos { padding: 0 0 0 56px; }
.logos li { flex: none; }
@keyframes logos-slide { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] .logos-track { animation-name: logos-slide-ltr; }
@keyframes logos-slide-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } .logos-wrap { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } }
.logos img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .65; display: block; transition: opacity var(--ap-t-color) linear, filter var(--ap-t-color) linear; }
.logos a:hover img { filter: none; opacity: 1; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px auto 0; max-width: var(--ap-content); }
.trust b { display: block; font-size: 28px; font-weight: 600; line-height: 1.15; }
.trust span { display: block; margin-top: 2px; font-size: var(--ap-caption); color: var(--ap-ink-2); }
.trust__int { margin-top: 28px; }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin-top: 56px; }
.feat .ico { stroke: var(--ap-ink); margin-bottom: 14px; }
.feat h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.24; }
.feat p { margin: 8px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); color: var(--ap-ink-2); }

.cities { max-width: 720px; margin-top: 24px; }
@media (max-width: 1068px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 734px) { .feats { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; } }


/* bands, apps, portfolio, quotes, posts */
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; }
.band > div { max-width: 640px; }
.band .ap-body, .band .ap-body-reduced { margin-top: 8px; }
.bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ap-gap); margin-top: var(--ap-gap); }
.band--col { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.band--col .ap-tout { margin-top: 4px; }
.band--col .ap-link { margin-top: 8px; font-size: var(--ap-body-reduced); }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-gap); margin-top: 48px; }
.app h3 { margin: 14px 0 0; font-size: 21px; font-weight: 600; }
.app .ap-caption { margin-top: 4px; } .app .ap-body-reduced { margin-top: 10px; }
.app__icon { width: 56px; height: 56px; border-radius: 13px; display: block; object-fit: cover; }
.app__icon--m { display: grid; place-items: center; background: var(--ap-fill-2); font-weight: 600; font-size: 24px; }
.apps__more { margin: 32px 0 0; } .apps__more .ap-link { font-size: var(--ap-body-reduced); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-gap); margin-top: 48px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px; }
.quote blockquote { margin: 0; font-size: var(--ap-body); line-height: var(--ap-lh-body); }
.quote figcaption strong { display: block; font-size: var(--ap-body-reduced); font-weight: 600; } .quote figcaption .ap-caption { display: block; margin-top: 2px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--ap-gap); margin-top: 48px; }
.post__img { display: block; margin-bottom: 16px; } .post__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--ap-r-card); display: block; background: var(--ap-fill); }
.post h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.24; } .post h3 a { color: var(--ap-ink); text-decoration: none; }
.post .ap-body-reduced { margin-top: 8px; } .post .ap-link { display: inline-block; margin-top: 12px; font-size: var(--ap-body-reduced); }
.sim__lead { margin-top: 8px; max-width: 720px; }
.sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 24px; }
.sim a { display: block; padding: 16px 0; border-top: 1px solid var(--ap-hairline); color: var(--ap-ink); text-decoration: none; }
.sim strong { display: block; font-size: var(--ap-body-reduced); font-weight: 600; } .sim span { display: block; margin-top: 2px; font-size: var(--ap-caption); color: var(--ap-ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; } .stores img { height: 44px; width: auto; display: block; } .stores__soon { opacity: .42; }
@media (max-width: 1068px) { .apps, .quotes, .posts, .sim { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bands { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 734px) {
  .apps, .quotes, .posts, .sim { grid-template-columns: minmax(0, 1fr); }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hero { padding-block: 56px 0; }
  .clients { padding-top: 56px; } .logos { gap: 36px; } .logos img { height: 26px; }
}
.faq { width: min(var(--ap-content), 92vw); margin: 40px auto 0; }

/* trust badges */

/* hero trio stage */
.hero__stage.hero__stage--trio { height: auto; overflow: visible; padding: 48px 40px; border-radius: var(--ap-r-card); max-width: 1100px; }
.hero__stage.hero__stage--trio::after { content: none; }
.trio { display: flex; justify-content: center; gap: 20px; align-items: flex-start; }
.card { flex: none; box-sizing: border-box; width: 320px; height: 300px; background: var(--ap-surface); border: 1px solid var(--ap-hairline); border-radius: var(--ap-r-card); overflow: hidden; text-align: start; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ap-ease-in), transform 400ms var(--ap-ease-in); }
.hero__stage--trio.is-in .trio > * { opacity: 1; transform: translateY(0); }
.hero__stage--trio.is-in .trio > :nth-child(2) { transform: translateY(-16px); transition-delay: 120ms; }
.hero__stage--trio.is-in .trio > :nth-child(3) { transition-delay: 240ms; }
.card__t { padding: 18px 20px 12px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--ap-hairline); }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ap-hairline); }
.inbox li:last-child { border-bottom: 0; }
.inbox__txt { display: grid; gap: 2px; min-width: 0; }
.inbox__txt strong { font-size: 14px; font-weight: 600; }
.inbox__txt span { font-size: 12px; color: var(--ap-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__meta { display: grid; justify-items: end; gap: 6px; flex: none; }
.inbox__meta time { font-size: 12px; color: var(--ap-ink-3, var(--ap-ink-2)); }
.inbox__badge { min-width: 20px; height: 20px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-on-accent); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.wallet__top { background: var(--wt-tint-warm); padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wallet__top strong { font-size: 17px; font-weight: 600; }
.wallet__top span { font-size: 12px; color: var(--ap-ink-2); }
.wallet__body { padding: 24px 20px; display: grid; gap: 2px; justify-items: start; }
.wallet__num { font-size: 40px; font-weight: 600; line-height: 1.1; }
.wallet__lbl { font-size: 14px; color: var(--ap-ink-2); }
.wallet__dots { display: flex; gap: 10px; margin-top: 22px; }
.wallet__dots i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ap-hairline); box-sizing: border-box; }
.wallet__dots i.f { background: var(--ap-ink); border-color: var(--ap-ink); }
.wallet__dots i.on { border-color: var(--ap-accent); }
.card--invoice { padding: 18px 20px; }
.inv__head { display: grid; gap: 2px; }
.inv__head strong { font-size: 17px; font-weight: 600; }
.inv__head span { font-size: 12px; color: var(--ap-ink-2); text-align: start; }
.inv__rows { list-style: none; margin: 12px 0 0; padding: 0; }
.inv__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--ap-hairline); font-size: 12px; color: var(--ap-ink-2); }
.inv__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.inv__total { display: grid; gap: 2px; font-size: 12px; color: var(--ap-ink-2); }
.inv__total strong { font-size: 17px; font-weight: 600; color: var(--ap-ink); }
.inv__qr { display: grid; justify-items: center; gap: 4px; }
.inv__qr > span { font-size: 10px; font-weight: 600; color: var(--ap-ink-2); }
.qr { width: 56px; height: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 3px; box-sizing: border-box; border: 1px solid var(--ap-hairline); border-radius: 4px; direction: ltr; }
.qr i { background: transparent; border-radius: 1px; } .qr i.k { background: var(--ap-ink); }
@media (max-width: 1068px) {
  .hero__stage.hero__stage--trio { padding: 32px 20px; }
  .trio { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .card { width: 280px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; transition: none; }
  .hero__stage--trio.is-in .trio > :nth-child(2), .hero__stage .trio > :nth-child(2) { transform: translateY(-16px); }
  .ap-reveal { transition-delay: 0ms !important; }
}

/* rail (horizontal snap rows) */
.sec-head--rail { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rail__nav { display: flex; gap: 8px; flex: none; }
.rail__btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ap-fill-2); color: var(--ap-ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: opacity var(--ap-t-color) linear; }
.rail__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .rail__btn svg { transform: scaleX(-1); }
.rail__btn:disabled { opacity: .42; cursor: default; }
.rail { margin-top: 40px; }
.rail__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc((100vw - min(1200px, 92vw)) / 2); scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.tile { flex: none; scroll-snap-align: start; box-sizing: border-box; width: 340px; height: 380px; background: var(--ap-surface); border-radius: var(--ap-r-card); padding: 28px; display: flex; flex-direction: column; }
.tile__ico { width: 28px; height: 28px; fill: none; stroke: var(--ap-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.tile h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.24; }
.tile p { margin: 10px 0 0; font-size: 14px; line-height: 1.43; color: var(--ap-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .ap-link { margin-top: auto; font-size: var(--ap-body-reduced); }
/* أعمالنا: صفان غير متساويين (الثاني مزاح نصف بطاقة) ببطاقات أصغر — قرار المالك 10-23 */
.rail__track--rows { flex-direction: column; gap: 16px; scroll-snap-type: none; }
.work-row { display: flex; gap: 16px; width: max-content; }
.work-row--offset { padding-inline-start: 110px; }
.work { flex: 0 0 auto; width: 204px; margin: 0; }
.work img { width: 100%; height: 272px; aspect-ratio: auto; object-fit: cover; border-radius: var(--ap-r-card); display: block; background: var(--ap-fill); } /* سمة height بالـimg تغلب aspect-ratio ⇒ ارتفاع صريح؛ الأعمال بوسترات عمودية 3:4 */
.work figcaption { margin-top: 8px; }
@media (max-width: 734px) { .tile { width: 280px; height: 380px; } .work { width: 300px; } .sec-head--rail { align-items: flex-start; flex-direction: column; } }

/* app store badges */
.app__stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.app__stores img { height: 36px; width: auto; display: block; }
.app__soon { opacity: .42; }
@media (max-width: 734px) { .work { width: 150px; } .work img { height: 200px; } .work-row--offset { padding-inline-start: 80px; } .work-row { gap: 12px; } .rail__track--rows { gap: 12px; } }

/* مساعد «اسأل واتيلي AI» (الويدجت الأصلي) داخل لغة أبل: بلا توهّج ولا تدرّجات */
.ap-advisor { background: var(--ap-fill); }
.ap-advisor .wt-adv { padding-block: var(--ap-section-y); }
.ap-advisor .wt-adv__bg, .ap-advisor .wt-adv__glow { display: none; }
.ap-advisor .container { width: min(var(--ap-content), 92vw); margin-inline: auto; }
.ap-advisor .wt-adv__eyebrow { box-shadow: none; }
#bands { padding-top: 0; }

/* هيرو: بلا لوحة رمادية خلف الجوال (طلب المالك) — يذوب أسفل الجوال في الأبيض */
.hero__stage { background: transparent; height: 560px; margin-top: 40px; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero__stage::after { display: none; }
@media (max-width: 734px) { .hero__stage { height: 500px; } }

/* بطاقات الهيرو: سلايد متحرك (كل البطاقات الستة الحيّة) */
.hcards { padding: 0 0 56px; overflow: hidden; }
.hcards__viewport { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.hcards__track { display: flex; gap: 16px; width: max-content; padding: 4px 16px 4px 0; animation: hc-slide 52s linear infinite; }
.hcards__viewport:hover .hcards__track { animation-play-state: paused; }
@keyframes hc-slide { to { transform: translateX(-50%); } }
.hc { width: 272px; flex: none; box-sizing: border-box; min-height: 196px; background: #fff; border: 1px solid var(--ap-hairline); border-radius: var(--ap-r-card); padding: 20px 22px; display: flex; flex-direction: column; }
[dir="rtl"] .hc { direction: rtl; text-align: right; }
[dir="ltr"] .hc { direction: ltr; text-align: left; }
.hc header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc__badge { font-size: var(--ap-caption); font-weight: 600; color: var(--ap-ink-2); }
.hc .hc__ico { width: 22px; height: 22px; stroke: var(--ap-ink-2); margin: 0; }
.hc__big { margin: 16px 0 0; font-size: 34px; font-weight: 600; line-height: 1.1; }
.hc__sub { margin: 4px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); color: var(--ap-ink-2); }
.hc__rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--ap-body-reduced); }
.hc__rows li { display: flex; justify-content: space-between; gap: 8px; }
.hc__rows b { font-weight: 400; color: var(--ap-ink-2); }
.hc footer { margin-top: auto; padding-top: 12px; font-size: var(--ap-caption); color: var(--ap-ink-2); border-top: 1px solid var(--ap-hairline); }
@media (prefers-reduced-motion: reduce) { .hcards__track { animation: none; } .hcards__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* أعمالنا: فلتر + صور وفيديو معاً */
.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pfilter__btn { appearance: none; background: #fff; color: var(--ap-ink); border: 1px solid var(--ap-hairline); border-radius: var(--ap-r-pill); padding: 7px 18px; font: 400 var(--ap-body-reduced) / 1.29 var(--ap-font); cursor: pointer; transition: background-color var(--ap-t-color) linear, color var(--ap-t-color) linear; }
.pfilter__btn[aria-pressed="true"] { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }
.pfilter__btn:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: 2px; }
.port { margin-top: 24px; }
.port video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ap-r-card); display: block; background: var(--ap-fill); }

.port picture { display: block; width: 100%; }
.port img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* شبكة أعمالنا (مستقلة عن بقية القواعد) */
.port { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-gap); }
.port__item { margin: 0; min-width: 0; }
.port__item img, .port__item video { border-radius: var(--ap-r-card); display: block; background: var(--ap-fill); }
.port__item figcaption { margin-top: 8px; }
@media (max-width: 1068px) { .port { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) { .port { grid-template-columns: minmax(0, 1fr); } }

/* بعد حذف البطاقات الثلاث: مسافة بين أزرار الهيرو وسلايد البطاقات */
.hcards { padding-top: 56px; }
@media (max-width: 734px) { .hcards { padding-top: 40px; } }
