/* =====================================================================
   MOBILE APP DEVELOPMENT COMPANY DUBAI (EN + AR) — page additions on top of
   pages/service.css (the shared service-page template). Loaded after it.
     .ma-hero   hero side column: phone duo (EN + AR screens, CSS only) over the fact stubs
     .ma-idx    the 8 services as a kit big-type index (.ind) with a cursor-follow cover
     .ma-cmp    platform comparison table (kit .cmp) — rows wipe in
     .ma-pack   "what's included" ticket: item titles are <p class="sv-check__t"> (no extra headings)
     .ma-stack  tools marquee strip with a faded photo behind it (multiply, parallax)
     .ma-links  5 spoke links under the live "What We Build" copy
     .ma-built  "apps and platforms we built" — own case studies in their
                mobile view (replaces the illustrative cards, SEO content 2026-11-11)
   ===================================================================== */

/* ---------- hero ---------- */
.ma-hero__title { font-size: clamp(44px, 8.6vw, 128px); }
:root:lang(ar) .ma-hero__title { font-size: clamp(38px, 7.2vw, 100px); }
.ma-hero__side { display: grid; gap: clamp(18px, 2.4vw, 30px); justify-items: end; width: 100%; min-width: 0; }
.ma-hero .sv-stubs { justify-self: end; width: 100%; }
@media (min-width: 1024px) {
  .ma-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: end; }
}

/* phone duo — decorative (aria-hidden): the same app screen in English and in Arabic */
.ma-duo { position: relative; display: none; width: 100%; max-width: 520px; height: clamp(300px, 28vw, 400px); }
@media (min-width: 768px) { .ma-duo { display: block; } }
.ma-phone { --sx: 0px; position: absolute; bottom: 0; width: clamp(150px, 13.5vw, 190px); aspect-ratio: 9 / 19; border-radius: 30px; padding: 9px; background: var(--ink); box-shadow: 0 44px 64px -34px rgba(0, 0, 0, .65), inset 0 0 0 1.5px color-mix(in oklab, var(--cream) 24%, transparent); transform: rotate(var(--rz, 0deg)) translate(var(--sx), var(--dy, 0px)); }
.ma-phone::before { content: ""; position: absolute; z-index: 2; top: 15px; left: 50%; width: 36%; height: 8px; border-radius: 6px; background: #000; translate: -50% 0; }
.ma-phone--en { --rz: calc(-8deg * var(--dir)); inset-inline-start: 6%; z-index: 1; }
.ma-phone--ar { --rz: calc(7deg * var(--dir)); inset-inline-end: 7%; z-index: 2; --dy: 20px; }
.ma-phone__screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--cream); color: var(--ink); display: grid; align-content: start; gap: 8px; padding: 32px 12px 10px; font: 500 11px/1.3 var(--f-body); }
.ma-phone--ar .ma-phone__screen { font-family: "IBM Plex Sans Arabic", "Alexandria", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.ma-ui__status { display: flex; justify-content: flex-end; gap: 4px; }
.ma-ui__status i { width: 10px; height: 4px; border-radius: 2px; background: var(--ink); opacity: .45; }
.ma-ui__title { font-weight: 700; font-size: 13px; letter-spacing: -.01em; }
.ma-ui__card { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--deep); color: var(--cream); }
.ma-ui__card b { font: 400 17px/1 var(--f-display); text-transform: var(--display-case); letter-spacing: .01em; color: var(--b2-on-deep); }
.ma-phone--ar .ma-ui__card b { font: 800 14px/1.35 "Alexandria", "Alexandria Fallback", sans-serif; text-transform: none; }
.ma-ui__card small { font-size: 10px; opacity: .8; }
.ma-ui__row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ma-ui__row i { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--b2); color: var(--ink); font-size: 11px; }
.ma-ui__row em { flex: 1; font-style: normal; font-weight: 600; }
.ma-ui__row small { font-size: 10px; color: var(--ink-2); }
.ma-ui__tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 2px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.ma-ui__tabs i:first-child { color: var(--b1-accent); }
.ma-duo__tag { position: absolute; z-index: 3; top: 6%; padding: 7px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 11px/1 var(--f-body); letter-spacing: .08em; }
.ma-duo__tag--en { inset-inline-start: 0; }
.ma-duo__tag--ar { inset-inline-end: 0; top: 15%; background: var(--deep); }
:root:lang(ar) .ma-duo__tag { letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ma-phone { animation: maRise 1.1s calc(.55s + var(--k, 0) * .14s) var(--ease) both, maFloat 7s 1.8s ease-in-out infinite alternate; }
  .ma-phone--ar { --k: 1; animation-delay: .69s, 5s; }
}
@keyframes maRise { from { translate: 0 70px; } to { translate: 0 0; } }
@keyframes maFloat { from { translate: 0 0; } to { translate: 0 -10px; } }

/* ---------- answer card: second, quieter paragraph ---------- */
.sv-answer__text--more { font-size: clamp(15.5px, 1.1vw, 17px); color: var(--ink-2); max-width: 66ch; }
.sv-answer__text--more [data-price] { white-space: nowrap; }

/* ---------- services: big-type index (kit .ind) ---------- */
.ma-idx .sv-head { margin-bottom: clamp(18px, 2.4vw, 32px); }
.ma-idx .ind__list { border-top-width: 2px; }
.ma-idx .ind__row { padding-block: 16px; }
.ma-idx .ind__thumb { width: 84px; height: 56px; }
.ma-idx .ind__name { display: block; margin: 0; font-size: clamp(25px, 3.9vw, 56px); line-height: 1; letter-spacing: var(--display-track); }
/* Latin names inside an Arabic title stay one bidi unit and never split mid-word */
.ma-idx .ind__name [translate="no"] { unicode-bidi: isolate; }
:root:lang(ar) .ma-idx .ind__name { overflow-wrap: normal; }
.ma-idx .ind__desc [translate="no"] { unicode-bidi: isolate; }
.ma-idx .ind__more [translate="no"] { unicode-bidi: isolate; white-space: nowrap; }
.ma-idx .ind__name::before { content: attr(data-n); display: inline-block; margin-inline-end: .7em; font: 700 12px/1 var(--f-body); letter-spacing: .08em; color: var(--acc); vertical-align: .45em; }
.ma-idx .ind__desc { font-size: 15px; line-height: 1.5; max-width: 72ch; }
.ma-idx .ind__more { display: block; margin-top: 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
/* the descriptions here are full sentences: give them a wider column than the kit default (30ch) */
@media (min-width: 640px) { .ma-idx .ind__row { grid-template-columns: auto minmax(0, 1fr) 60px; grid-template-areas: "th name go" "th desc go"; column-gap: 24px; row-gap: 8px; } }
@media (min-width: 1024px) { .ma-idx .ind__row { grid-template-columns: auto minmax(0, 1fr) minmax(260px, 44ch) 60px; grid-template-areas: "th name desc go"; row-gap: 2px; } }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .ma-idx .ind__row { grid-template-columns: minmax(0, 1fr) minmax(280px, 46ch) 60px; grid-template-areas: "name desc go"; column-gap: 32px; } }
:root:lang(ar) .ma-idx .ind__name { font-weight: 800; line-height: 1.35; font-size: clamp(22px, 3vw, 42px); }
:root:lang(ar) .ma-idx .ind__name::before { letter-spacing: 0; }
:root:lang(ar) .ma-idx .ind__more { letter-spacing: 0; text-transform: none; font-size: 13px; }
@media (max-width: 599px) {
  .ma-idx .ind__thumb { width: 60px; height: 42px; }
  .ma-idx .ind__desc { font-size: 14px; }
}

/* ---------- platform comparison table (kit .cmp) ---------- */
.ma-cmp .sv-head { max-width: 1100px; }
.ma-cmp__wrap { box-shadow: 0 0 0 1px var(--line), 0 34px 60px -44px color-mix(in oklab, var(--ink) 60%, transparent); }
/* phones: the kit turns rows into cards (site.css, < 640px); these cells hold sentences, so one per line */
@media (max-width: 639px) {
  .ma-cmp__table { --cmp-cols: 1; }
  .ma-cmp__table caption { padding: 16px 14px 8px; font-size: 14px; }
  .ma-cmp__table tbody th { padding: 16px 14px 4px; background: var(--cream-2); }
  .ma-cmp__table td { padding: 8px 14px 12px; }
  .ma-cmp__table td + td { border-top: 1px dashed var(--line); }
  .ma-cmp__table td.is-hl::before { color: var(--b1-accent); }
}
.ma-cmp__table thead th:first-child { width: 17%; }
.ma-cmp__table th, .ma-cmp__table td { font-size: 15px; line-height: 1.5; }
.ma-cmp__table tbody th { font: 400 clamp(17px, 1.3vw, 20px)/1.15 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
:root:lang(ar) .ma-cmp__table tbody th { font-weight: 800; line-height: 1.45; }
.ma-cmp__table .yes { margin-inline-end: 6px; vertical-align: -2px; }
.ma-cmp__table [data-price] { white-space: nowrap; font-weight: 700; color: var(--ink); }

/* ---------- "what's included" ticket: <p> titles styled like the template's h3 ---------- */
.sv-check__t { font: 400 clamp(22px, 1.75vw, 27px)/1.02 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--ink); }
:root:lang(ar) .sv-check__t { font-weight: 800; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; }

/* ---------- tools strip with a faded photo ---------- */
.ma-stack { overflow: clip; }
.ma-stack__photo { position: absolute; z-index: 0; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 50% 40%; opacity: .2; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); pointer-events: none; }
.ma-stack > .wrap, .ma-stack .sv-stack__rail { position: relative; z-index: 1; }

/* ---------- spoke links ---------- */
.ma-links .sv-links__prose a { color: var(--b2-on-deep); }

/* ---------- intro: the added spoke-link paragraph reads as a note (SEO content 2026-11-11) ---------- */
.ma-intro__add { padding: 14px 18px; border-radius: 14px; background: color-mix(in oklab, var(--cream) 8%, transparent); box-shadow: inset 0 0 0 1px var(--rule); }
.sv-intro__cols a, .ma-intro__add a { color: var(--b2-on-deep); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (min-width: 900px) { .ma-intro__add { grid-column: 1 / -1; } }

/* ---------- industry tiles link to their industry pages ---------- */
.sv-ind > .ma-ind__a { display: inline-flex; align-items: center; gap: inherit; min-height: 44px; color: inherit; text-decoration: none; border-radius: inherit; }
.sv-ind > .ma-ind__a:focus-visible { outline-offset: .2em; }
.sv-ind .badge-lang { font: 700 max(12px, .2em)/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
.ma-idx .ind__more .badge-lang { vertical-align: baseline; }

/* ---------- results: "apps and platforms we built" — our own case studies in their mobile view (replaces the illustrative cards) ---------- */
.ma-built .lede a { color: var(--b2-on-deep); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ma-built__grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.ma-built__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2vw, 28px); align-items: start; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg); background: color-mix(in oklab, var(--cream) 6%, var(--deep)); box-shadow: inset 0 0 0 1px var(--line-deep); }
.ma-built__shot { display: block; justify-self: center; width: min(100%, 220px); aspect-ratio: 390 / 844; overflow: hidden; border-radius: 26px; padding: 7px; background: var(--ink); box-shadow: 0 34px 50px -34px rgba(0, 0, 0, .7), inset 0 0 0 1.5px color-mix(in oklab, var(--cream) 24%, transparent); }
.ma-built__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px; }
.ma-built__card--wide .ma-built__shot { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-md, 14px); padding: 0; }
.ma-built__card--wide .ma-built__shot img { border-radius: 0; }
.ma-built__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ma-built__meta { display: flex; flex-wrap: wrap; gap: 8px; font: 700 12px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; }
.ma-built__own { padding: 6px 10px; border-radius: 999px; background: var(--b2); color: var(--ink); }
.ma-built__status { padding: 6px 10px; border-radius: 999px; color: var(--cream); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--cream) 40%, transparent); }
.ma-built__t { font: 400 clamp(24px, 2.1vw, 33px)/1.04 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--cream); overflow-wrap: anywhere; }
.ma-built__t a { color: inherit; text-decoration: none; }
.ma-built__t a:hover { color: var(--b2-on-deep); }
.ma-built__p { color: var(--on-deep-2); font-size: 15.5px; line-height: 1.6; }
.ma-built__r { padding-inline-start: 12px; border-inline-start: 2px solid var(--b2); color: var(--cream); font-size: 15px; line-height: 1.55; }
.ma-built__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ma-built__stack li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; color: var(--cream); background: color-mix(in oklab, var(--cream) 10%, transparent); }
.ma-built__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--b2-on-deep); text-decoration: none; }
.ma-built__go:hover { text-decoration: underline; text-underline-offset: 3px; }
:root:lang(ar) .ma-built__meta { letter-spacing: 0; font-size: 13px; }
:root:lang(ar) .ma-built__t { font-weight: 800; line-height: 1.4; font-size: clamp(21px, 1.9vw, 28px); }
@media (min-width: 640px) { .ma-built__card:not(.ma-built__card--wide) { grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); } }
@media (min-width: 1024px) { .ma-built__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1199px) { .ma-built__card:not(.ma-built__card--wide) { grid-template-columns: minmax(0, 1fr); } }

/* table cell with an inline price: the sentence is a <p> so site.js can hold its tallest-currency height */
.ma-cmp__p { margin: 0; font: inherit; color: inherit; }

/* ---------- hero: second half of the live hero paragraph as a capsule under the CTA row (keeps the CTAs above the fold) ---------- */
.ma-cap { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; margin-block: 22px 0; padding: 14px 18px 14px 16px; border-radius: 18px; background: color-mix(in oklab, var(--ink) 16%, transparent); color: var(--ink); font-size: 15.5px; line-height: 1.55; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 26%, transparent); }
.ma-cap i { flex: none; margin-top: 2px; font-size: 18px; }
/* the four-line H1 one step smaller than the template so the CTAs reach the first screen at 1440×900 */
.ma-hero .sv-hero__title { font-size: clamp(42px, 8.2vw, 116px); }

/* Arabic stub values are words, not figures: let both columns shrink and the value wrap, so the hero grid track never grows
   past the viewport at 320px (it was clipped by the hero's overflow) */
.ma-hero .sv-stubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root:lang(ar) .ma-hero .sv-stub__v { white-space: normal; }
