/*
 * MASAR theme (v1 Ivory Editorial).
 * Logical properties throughout, so Arabic (RTL) mirrors without extra rules.
 * Breakpoints: 1200 (menu), 1024 (tablet), 768, 640 (phone).
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F5F1; --surface: #FFFFFF; --surface2: #F8F9FD; --s1: #F3F2EC; --s2: #ECEAE3; --track: #E8EEF5;
  --line: #E2E0D8; --line2: #D9D6CC; --line3: #EEECE6; --dash: #C9C5B8; --ring: #E3EEEB;
  --ink: #011A42; --ink2: #2A3A5C; --muted: #44506A; --muted2: #5D6780;
  --accent: #097C67; --accent-bg: #097C67; --mint: #7FD6BC; --navy: #011A42; --phone: #FFFFFF; --warn: #E0952F;
  --font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --container: 1280px; --gutter: clamp(20px, 3.5vw, 32px); --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121316; --surface: #1A1C20; --surface2: #16181C; --s1: #1C1E22; --s2: #212328; --track: #262A31;
  --line: #2A2C31; --line2: #34373D; --line3: #24262B; --dash: #3E4148; --ring: #1F3A35;
  --ink: #F1EFE9; --ink2: #D8D5CD; --muted: #ADAAA1; --muted2: #96938B;
  --accent: #4FD6A8; --accent-bg: #117F66; --navy: #1F2B45; --phone: #EEF0F3;
  color-scheme: dark;
}
[dir="rtl"] { --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .4s ease, color .4s ease; }
html.is-locked, html.is-locked body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
/* Images cannot be dragged out or selected (dragstart is also stopped in main.js). */
img, svg, picture, video { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }
[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none !important; }
[data-theme="dark"] .ic-moon, :root:not([data-theme="dark"]) .ic-sun { display: none; }
[dir="rtl"] * { letter-spacing: 0 !important; }

/* Type */
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.eyebrow--muted { color: var(--muted2); font-size: 13px; letter-spacing: .08em; }
.title { margin: 16px 0 0; font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.hero .title { margin-top: 20px; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.025em; }
[dir="rtl"] .title { line-height: 1.3; }
.lead { margin: 20px 0 0; color: var(--muted); line-height: 1.65; font-size: 17px; max-width: 560px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); margin-top: 28px; max-width: 520px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 8px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .25s ease, background-color .3s ease, border-color .3s ease, color .3s ease; }
.btn--primary { background: var(--accent-bg); color: #fff; }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--navy { background: var(--navy); color: #F6F5F1; font-size: 14px; padding: 12px 22px; }
.btn--mint { background: var(--mint); color: #011A42; }
.btn--ghost { padding: 0; border: 0; border-radius: 0; color: var(--accent); background: none; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (hover: hover) {
  .btn--primary:hover, .btn--navy:hover, .btn--mint:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 14px 28px -10px rgba(1, 26, 66, .45); }
  .btn--secondary:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
  .btn--ghost:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }
  [dir="rtl"] .btn--ghost:hover .arrow, [dir="rtl"] .btn:hover .arrow { transform: translateX(-5px); }
}
.btn:active { transform: scale(.98); }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 10px; background: var(--navy); border: 1px solid var(--navy); transition: transform .2s ease, box-shadow .2s ease; }
.badge img { height: 28px; width: auto; }
.badges--sm .badge { padding: 9px 14px; }
.badges--sm .badge img { height: 24px; }
@media (hover: hover) { .badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1, 26, 66, .25); } }

/* Placeholders */
.placeholder { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 12px; border-radius: 10px; border: 1px dashed var(--dash); color: var(--muted2); font-size: 13px; background: repeating-linear-gradient(135deg, var(--s1) 0 14px, var(--s2) 14px 28px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: box-shadow .3s ease, background-color .4s ease; }
html.is-stuck .site-header { box-shadow: 0 10px 30px -18px rgba(1, 26, 66, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; transition: padding .3s var(--ease); }
html.is-stuck .site-header__inner { padding-block: 10px; }
.site-logo img { height: 44px; width: auto; transition: height .3s var(--ease); }
html.is-stuck .site-logo img { height: 38px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1.5px; transition: background-size .35s var(--ease), color .3s ease; }
[dir="rtl"] .site-nav a { background-position: right bottom; }
@media (hover: hover) { .site-nav a:hover { background-size: 100% 1.5px; color: var(--accent); } }
.site-header__tools { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .3s ease, color .3s ease, transform .35s var(--ease); }
@media (hover: hover) { .icon-btn:hover { border-color: var(--accent); color: var(--accent); } [data-theme-toggle]:hover { transform: rotate(-18deg); } }
.lang-switch { color: var(--ink); font-weight: 500; }
.lang-switch[lang="ar"], .lang-pill[lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.menu-btn { display: none; }

/* Join / Register dropdown */
.join { position: relative; }
.join__btn svg { transition: transform .25s var(--ease); }
.join__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.join__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(1, 26, 66, .35); animation: drop .2s var(--ease); z-index: 60; }
.join__menu { min-width: 240px; }
.join__menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; color: var(--ink); }
.join__menu a strong { font-weight: 600; }
.join__menu a span { font-size: 13px; color: var(--muted); }
.join__menu a:hover span, .join__menu a:focus-visible span { color: inherit; }
.join__menu a:hover, .join__menu a:focus-visible { background: var(--s1); color: var(--accent); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 105; background: rgba(1, 26, 66, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100%); overflow-y: auto; display: flex; flex-direction: column; padding: 18px 22px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: -30px 0 80px rgba(1, 26, 66, .25); animation: slide-in .38s var(--ease); }
[dir="rtl"] .mobile-menu__panel { animation-name: slide-in-rtl; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-menu__head img { height: 38px; width: auto; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; color: var(--ink); }
.mobile-menu__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.mobile-menu__ctas .btn { flex-direction: column; gap: 2px; line-height: 1.25; }
.mobile-menu__ctas .btn strong { font-weight: 600; }
.mobile-menu__ctas .btn span { font-size: 13px; font-weight: 500; opacity: .8; }
.mobile-menu__foot { margin-top: auto; padding-top: 24px; display: flex; gap: 12px; align-items: center; }
.lang-pill { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); font-weight: 600; }

/* ---------- Blocks ---------- */
.block { padding-top: var(--section); }
.block__head { max-width: 760px; }
#main > .block:last-child { padding-bottom: var(--section); }
.block__head--narrow { max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero__apps .badges { margin-top: 0; }
.hero__media { flex: 1 1 560px; min-width: 0; position: relative; padding-bottom: 40px; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(1, 26, 66, .12); overflow: hidden; }
.frame--plain { border-radius: 14px; padding: 10px; box-shadow: 0 30px 80px rgba(1, 26, 66, .08); }
.frame__bar { height: 36px; display: flex; align-items: center; gap: 6px; padding-inline: 14px; border-bottom: 1px solid var(--line3); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero__phone { position: absolute; inset-inline-start: -36px; bottom: 0; --pw: 176px; }

/* Screenshot window: hover scroll, theme swap, opens the viewer */
.shot { position: relative; height: var(--h, 400px); overflow: hidden; background: var(--surface2); cursor: zoom-in; border-radius: inherit; }
.shot img { display: block; width: 100%; height: auto; transition: transform 6s cubic-bezier(.32, .06, .36, 1), opacity .5s ease; }
.shot__dark { position: absolute; top: 0; inset-inline-start: 0; opacity: 0; }
[data-theme="dark"] .shot__dark { opacity: 1; }
[data-theme="dark"] .shot__light { opacity: 0; }
@media (hover: hover) { .shot:hover img { transform: translateY(calc(-100% + var(--h, 400px))); } }

/* Phone mockup */
/* App phone: iPhone proportions (screen 390 × 844), thin bezel, Dynamic Island; size via --pw */
.phone { --pw: 210px; width: var(--pw); flex: none; padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .17); background: #0B1222; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 2px 0 1px #1C2742, 0 30px 60px -18px rgba(1, 26, 66, .38); transition: transform .35s var(--ease); }
.phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * .14); background: var(--phone); display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 12px; overflow: hidden; color: #5D6780; font-size: 12px; } /* the phone screen stays light in both themes */
.phone__screen--img { padding: 0; gap: 0; display: block; }
.phone__screen--img::before { content: ''; position: absolute; z-index: 1; top: 2.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #0B1222; }
.phone__logo { width: 60px; height: auto; }
.phone__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__layer { position: absolute; inset: 0; }
:root[data-theme="dark"] .phone__layer--light, :root:not([data-theme="dark"]) .phone__layer--dark { display: none; }
.av--dark .av__phone .phone__screen { background: #1D1D1D; }
/* Carousels inside a screen: strips of the full-width design that slide to show the rest */
.phone__strip { position: absolute; inset-inline: 0; overflow: hidden; direction: ltr; }
.phone__strip-img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform: translate(var(--x0), var(--y)); transition: transform 2.4s cubic-bezier(.45, 0, .25, 1) var(--d); will-change: transform; }
@media (hover: hover) { .phone:hover .phone__strip-img { transform: translate(var(--x1), var(--y)); } }
@media (hover: none) and (prefers-reduced-motion: no-preference) { .phone__strip-img { animation: phone-strip 10s ease-in-out var(--d) infinite; } }
/* Long screens: the content glides down on hover (by itself on touch screens), header and bottom bar stay */
.phone__tall { position: absolute; inset-inline: 0; overflow: hidden; }
.phone__tall-img { display: block; width: 100%; max-width: none; height: auto; transform: translateY(0); transition: transform .9s cubic-bezier(.45, 0, .25, 1); will-change: transform; }
@media (hover: hover) { .phone:hover .phone__tall-img { transform: translateY(var(--shift)); transition: transform var(--dur) cubic-bezier(.45, 0, .4, 1) .25s; } }
@media (hover: none) and (prefers-reduced-motion: no-preference) { .phone__tall-img { animation: phone-tall calc(var(--dur) * 2 + 4s) ease-in-out 1s infinite; } }
@keyframes phone-tall { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(var(--shift)); } 100% { transform: translateY(0); } }
@keyframes phone-strip { 0%, 22% { transform: translate(var(--x0), var(--y)); } 50%, 72% { transform: translate(var(--x1), var(--y)); } 100% { transform: translate(var(--x0), var(--y)); } }
.phone__label { font-weight: 600; color: var(--accent); }
.phonefig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; }
.phonefig__label { font-size: 14px; font-weight: 600; color: var(--ink2); }
@media (hover: hover) { .app__phones .phone:hover { transform: translateY(-8px) rotate(-1.5deg); } [dir="rtl"] .app__phones .phone:hover { transform: translateY(-8px) rotate(1.5deg); } }

/* Facts */
.facts { padding-top: clamp(48px, 7vw, 88px); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; border-block: 1px solid var(--line2); }
.facts__item { display: flex; flex-direction: column-reverse; padding: 26px 24px; border-inline-start: 1px solid var(--line2); }
.facts__item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.facts__item dd { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.2; }
.facts__item dt { margin-top: 4px; color: var(--muted); }

/* Join MASAR as */
.register__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.register__card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s var(--ease); }
.register__card h3 { margin: 6px 0 0; font-size: 24px; font-weight: 600; }
.register__card p { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.register__icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.register__btn { margin-top: auto; align-self: flex-start; }
@media (hover: hover) { .register__card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 26px 50px -24px rgba(1, 26, 66, .3); } }

/* Ecosystem */
.eco__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; border-top: 2px solid var(--ink); }
.eco__card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 32px 0; }
[dir="rtl"] .eco__card { padding: 32px 0 32px 28px; }
.eco__who { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.eco__name { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; }
.eco__text { margin: 0; color: var(--muted); line-height: 1.65; }
.eco__shot { --h: 180px; border-radius: 10px; border: 1px solid var(--line); }
.eco__ph { height: 180px; }
.eco__ph > img { width: 56px; }
.eco__ph--app { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background:
  radial-gradient(120% 90% at 50% 115%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
  radial-gradient(60% 60% at 85% 0%, color-mix(in srgb, var(--mint) 22%, transparent), transparent 70%),
  linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), color-mix(in srgb, var(--accent) 16%, var(--surface))); }
.eco__ph--app::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; mask-image: linear-gradient(180deg, #000, transparent 75%); }
.eco__phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 20px; }
.eco__phone { --pw: 128px; position: relative; z-index: 1; transition: transform .45s var(--ease); }
.eco__phone--back { --pw: 112px; z-index: 0; margin-top: 30px; margin-inline-end: -34px; transform: rotate(-8deg); opacity: .96; }
[dir="rtl"] .eco__phone--back { transform: rotate(8deg); }
@media (hover: hover) {
  .eco__card:hover .eco__phone:not(.eco__phone--back) { transform: translateY(-8px); }
  .eco__card:hover .eco__phone--back { transform: rotate(-11deg) translate(-6px, -4px); }
  [dir="rtl"] .eco__card:hover .eco__phone--back { transform: rotate(11deg) translate(6px, -4px); }
}
.eco__link { margin-top: auto; align-self: flex-start; }

/* Services */
.services__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.services__intro { flex: 1 1 320px; min-width: 0; }
.services__list { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.legend { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.legend .is-available::before { background: var(--accent-bg); }
.service { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), box-shadow .35s var(--ease); }
.service__n { flex: none; width: 24px; padding-top: 3px; font-size: 13px; font-weight: 600; color: var(--accent); }
.service__body { flex: 1; color: inherit; }
.service__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.service__name { font-size: 18px; font-weight: 600; color: var(--ink); }
.service__text { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.status { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.status--available { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.status--coming_soon { border: 1px dashed var(--dash); color: var(--muted2); }
.status--beta { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.service.is-coming_soon .service__name { color: var(--ink2); }
.service.is-coming_soon .service__n { color: var(--muted2); }
@media (hover: hover) { .service:hover { padding-inline-start: 14px; box-shadow: inset 3px 0 0 var(--accent); } [dir="rtl"] .service:hover { box-shadow: inset -3px 0 0 var(--accent); } }

/* App showcase */
.app__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.app--phones-start .app__grid { flex-direction: row-reverse; }
.app__text { flex: 1 1 440px; min-width: 0; }
.app__phones { flex: 1 1 520px; min-width: 0; display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.app__phones .phone { --pw: 200px; }
.app__phones--1 .phone { --pw: 250px; }
.app__phones--2 > :nth-child(2) { margin-top: 64px; }
.app__phones--3 { align-items: center; gap: 18px; }
.app__phones--3 .phone { --pw: 178px; }
.app__phones--3 > :nth-child(2) .phone, .app__phones--3 > .phone:nth-child(2) { --pw: 210px; }
.app--band { margin-top: var(--section); padding-block: 96px; background: var(--surface); border-block: 1px solid var(--line); }
.app--band + .block:not(.app--band) { padding-top: var(--section); }
.app__list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.app__list li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.app__list strong { display: block; font-weight: 600; }
.app__list strong + span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.app__list--steps li { padding: 18px 0; }
.app__list--steps strong { font-size: 18px; }
.app__n { width: 40px; flex: none; font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--accent); }
.app .badges { margin-top: 24px; }
.app .btn-row { margin-top: 24px; }

/* Platform tabs */
.platform__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.platform__grid { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.platform__tabs { flex: 0 1 300px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.platform__tab { display: block; width: 100%; text-align: start; padding: 18px 0; padding-inline-start: 0; border: 0; border-bottom: 1px solid var(--line); border-inline-start: 3px solid transparent; background: none; color: var(--ink); cursor: pointer; transition: padding .35s var(--ease), border-color .3s ease, color .3s ease; }
.platform__tab strong { display: block; font-weight: 600; font-size: 16px; }
.platform__tab span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.platform__tab[aria-selected="true"] { padding-inline-start: 16px; border-inline-start-color: var(--accent); }
.platform__tab[aria-selected="true"] strong { color: var(--accent); }
@media (hover: hover) { .platform__tab:not([aria-selected="true"]):hover { padding-inline-start: 16px; border-inline-start-color: color-mix(in srgb, var(--accent) 55%, transparent); } }
.platform__panel { flex: 1 1 600px; min-width: 0; }
.platform__pane[hidden] { display: none; }
.platform__pane .shot { --h: 520px; border-radius: 10px; }
.platform__pane { animation: fade .3s ease; }

/* Categories */
.cats__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.cats__intro { flex: 1 1 320px; min-width: 0; }
.cats__ph, .cats__img { height: 260px; width: 100%; margin-top: 28px; border-radius: 10px; object-fit: cover; }
.cats__list { flex: 2 1 600px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.cat { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), box-shadow .35s var(--ease); }
.cat__n { width: 28px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cat__body { flex: 1 1 240px; color: inherit; }
.cat__name { display: block; font-size: 19px; font-weight: 600; color: var(--ink); }
.cat__text { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.cat__ar { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 16px; font-weight: 600; color: var(--accent); }
@media (hover: hover) { .cat:hover { padding-inline-start: 14px; box-shadow: inset 3px 0 0 var(--accent); } [dir="rtl"] .cat:hover { box-shadow: inset -3px 0 0 var(--accent); } }

/* Steps */
.steps__card { padding: clamp(28px, 5vw, 56px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.steps--navy .steps__card { background: var(--navy); color: #F6F5F1; border-color: transparent; }
.steps--navy .eyebrow { color: var(--mint); }
.steps__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.steps__head .title { font-size: clamp(30px, 3.6vw, 42px); }
.steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps--navy .steps__list { border-top-color: rgba(246, 245, 241, .2); }
.steps__list li { display: flex; flex-direction: column; padding: 22px 20px 0 0; }
[dir="rtl"] .steps__list li { padding: 22px 0 0 20px; }
.steps__n { font-size: 30px; font-weight: 600; color: var(--accent); }
.steps--navy .steps__n { color: var(--mint); }
.steps__list strong { margin-top: 10px; font-weight: 600; }
.steps__list strong + span { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.steps--navy .steps__list strong + span { color: #B9C3D6; }

/* Feature grid */
.features__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.features__intro { flex: 1 1 360px; min-width: 0; }
.features__intro .btn { margin-top: 24px; }
.features__list { flex: 1.3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.features__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features__list li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .features__list li { padding: 24px 0 24px 24px; }
.features__list strong { display: block; font-size: 18px; font-weight: 600; }
.features__list span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.features__icon { width: 40px; height: 40px; margin-bottom: 12px; }

/* Markets / About */
.about__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.about__markets { flex: 1.4 1 560px; min-width: 0; }
.about__ph, .about__map { height: 340px; width: 100%; margin-top: 18px; border-radius: 12px; object-fit: cover; }
.about__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.about__title { margin: 18px 0 0; font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; }
.about__link { margin-top: auto; padding-top: 18px; align-self: flex-start; }

/* Partners */
.partners { padding-top: 64px; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line2); }
.partners__grid li { height: 90px; display: flex; align-items: center; justify-content: center; padding: 16px; border-inline-end: 1px solid var(--line); }
.partners__grid img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.partners__grid a:hover img { filter: none; opacity: 1; }
.partners__ph { font-size: 12px; color: var(--muted2); }

/* CTA band */
.cta { padding-bottom: var(--section); }
.cta__title { max-width: 760px; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.025em; margin: 0; }
.cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 40px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.cta__grid li { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .cta__grid li { padding: 26px 0 26px 24px; }
.cta__who { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.cta__link { font-size: 22px; color: var(--ink); align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C3D6; font-size: 14px; }
.site-footer a { color: #B9C3D6; transition: color .25s ease; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 56px 32px; }
.site-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.site-footer__brand p { margin: 0; max-width: 280px; line-height: 1.6; }
.site-footer__brand .badges { margin-top: 4px; }
.site-footer .badge { border-color: rgba(246, 245, 241, .32); background: transparent; }
.site-footer .badge:hover { border-color: rgba(246, 245, 241, .7); background: rgba(246, 245, 241, .06); }
.site-footer__col { flex: 0 1 180px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__title { margin: 0; font-weight: 600; color: #F6F5F1; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-block: 20px 32px; border-top: 1px solid rgba(246, 245, 241, .15); font-size: 13px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Store notice ---------- */
.notice-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(1, 26, 66, .5); animation: fade .2s ease; }
.notice-modal[hidden] { display: none; }
.notice-modal__card { width: 100%; max-width: 400px; padding: 36px 32px 28px; border-radius: 22px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 40px 100px rgba(1, 26, 66, .35); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.notice-modal__ring { position: relative; width: 96px; height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface2); }
.notice-modal__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ring); border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-modal__badge { margin: 22px 0 0; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.notice-modal__title { margin: 10px 0 0; font-size: 24px; font-weight: 600; }
.notice-modal__text { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.notice-modal__bar { height: 6px; margin-top: 22px; border-radius: 999px; background: var(--track); overflow: hidden; }
.notice-modal__bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--accent-bg); animation: bar 1.6s ease-in-out infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.notice-modal__ok { width: 100%; margin-top: 24px; padding: 14px; font-size: 15px; }

/* ---------- Scroll reveal (main.js adds .rv / .rv-in) ---------- */
.rv { opacity: 0; transform: translateY(32px); }
.rv-title { filter: blur(10px); transform: translateY(24px); }
.rv-tilt { transform: perspective(1600px) rotateX(14deg) translateY(60px) scale(.95); transform-origin: 50% 0; }
.rv-in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease) var(--rv-d, 0ms), transform 1.1s var(--ease) var(--rv-d, 0ms), filter .9s var(--ease) var(--rv-d, 0ms); }

/* ---------- 404 / stub ---------- */
.stub { padding-block: var(--section); }
.stub h1 { margin: 16px 0 0; font-size: clamp(36px, 6vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.muted { color: var(--muted); }

/* ---------- Inner pages ---------- */
/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: '/'; color: var(--dash); }
.crumbs a { color: var(--muted); transition: color .25s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* Page hero */
.phero { padding-top: clamp(32px, 5vw, 64px); }
.phero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.phero__text { flex: 1 1 520px; min-width: 0; }
.phero .title { margin-top: 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
[dir="rtl"] .phero .title { line-height: 1.3; }
.phero .lead { font-size: clamp(17px, 1.5vw, 19px); max-width: 620px; }
.phero .btn-row { margin-top: 32px; }
.phero__media { flex: 1 1 420px; min-width: 0; }
.phero--go .phero__media, .phero--ride .phero__media { flex: 0 1 320px; display: flex; justify-content: center; }
.phero__status { margin: 18px 0 0; }
.phero__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; max-width: 640px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.phero__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.phero__points svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ring); color: var(--accent); }
@media (max-width: 640px) { .phero__points { grid-template-columns: 1fr; } }
.phero__status .status { font-size: 12px; padding: 5px 12px; }
.phero__ar { margin: 10px 0 0; font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 22px; font-weight: 600; color: var(--accent); }

/* Shared media column */
.media__img, .media__ph { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 14px; object-fit: cover; }
.media__phone { display: flex; justify-content: center; }
.media__phone .phone, .phero--go .phero__media .phone, .phero--ride .phero__media .phone { --pw: 250px; }
.phero__media .frame .shot, .tm__media .frame .shot { border-radius: 0; }

/* Check list */
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; line-height: 1.55; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23097C67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%234FD6A8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Text + Media */
.tm__grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.tm--media-start .tm__grid { flex-direction: row-reverse; }
.tm__text { flex: 1 1 440px; min-width: 0; }
.tm__media { flex: 1 1 480px; min-width: 0; }
.tm .btn-row { margin-top: 32px; }
.tm--band { margin-top: var(--section); padding-block: 96px; background: var(--surface); border-block: 1px solid var(--line); }
.tm--band + .block:not(.tm--band):not(.app--band) { padding-top: var(--section); }

/* Detail columns (service / category pages) */
.detail__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.detail__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail__grid--1 { grid-template-columns: minmax(0, 760px); }
.detail__col { padding: 28px 32px 0 0; }
[dir="rtl"] .detail__col { padding: 28px 0 0 32px; }
.detail__n { font-size: 13px; font-weight: 600; color: var(--accent); }
.detail__title { margin: 10px 0 0; font-size: clamp(22px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; }
.detail__col p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

/* Services: status filter */
.services__main { flex: 2 1 560px; min-width: 0; }
.services__main .services__list { flex: none; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); }
.chip { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(1, 26, 66, .1); }
.service[hidden] { display: none; }

/* FAQ */
.faq__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.faq__intro { flex: 1 1 320px; min-width: 0; }
.faq__list { flex: 2 1 560px; min-width: 0; border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; transition: color .25s ease; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .35s var(--ease), border-color .25s ease, background-color .25s ease; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { border-color: var(--accent); background: var(--accent-bg); color: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a p { margin: 0; padding: 0 48px 24px 0; color: var(--muted); line-height: 1.7; }
[dir="rtl"] .faq__a p { padding: 0 0 24px 48px; }
.faq__item[open] .faq__a { animation: fade .35s ease; }

/* Form section */
.formblk { scroll-margin-top: 96px; }
.formblk__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.formblk__intro { flex: 1 1 380px; min-width: 0; }
.formblk__points { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.formblk__points li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.formblk__points strong { display: block; font-weight: 600; }
.formblk__points li > span:last-child { color: var(--muted); font-size: 15px; }
.formblk__points strong { color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.formblk__n { flex: none; width: 28px; font-size: 13px; font-weight: 600; color: var(--accent) !important; padding-top: 2px; }
.formblk__card { flex: 1.2 1 480px; min-width: 0; padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(1, 26, 66, .35); }
.formblk__soon { margin: 14px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; }
.formblk__mail { margin: 18px 0 0; color: var(--muted); }

/* Contact info */
.contact__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact__text { flex: 1 1 420px; min-width: 0; }
.contact__map { flex: 1 1 480px; min-width: 0; }
.contact__list { margin: 32px 0 0; border-top: 2px solid var(--ink); }
.contact__list > div { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { flex: 0 0 140px; color: var(--muted2); font-size: 14px; }
.contact__list dd { flex: 1 1 220px; margin: 0; font-size: 17px; font-weight: 500; }
.contact__list dd a { color: var(--ink); }
.contact__list dd a:hover { color: var(--accent); }
[dir="rtl"] .contact__list dd a[dir="ltr"] { unicode-bidi: isolate; }
.contact__social { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 0; font-weight: 600; }
.contact--nomap .contact__text { flex-basis: 100%; max-width: 760px; }

/* Compact contact cards (page hero) */
.ccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 40px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ccard__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ring); color: var(--accent); }
.ccard--whatsapp .ccard__ic { background: #25D366; color: #fff; }
.ccard > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccard__label { color: var(--muted2); font-size: 13px; }
.ccard__value { font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ccard__value a { color: var(--ink); }
.ccard__value a:hover { color: var(--accent); }
[dir="rtl"] .ccard__value a[dir="ltr"] { unicode-bidi: isolate; }

/* Footer contacts */
.site-footer__contacts { flex-basis: 240px; }
.site-footer__contact { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.site-footer__contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--mint); }
[dir="rtl"] .site-footer__contact a[dir="ltr"] { unicode-bidi: isolate; }

/* Floating WhatsApp button, gently pulsing */
.wa-fab { position: fixed; z-index: 46; inset-inline-end: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6), 0 4px 10px rgba(0, 0, 0, .15); transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease, opacity .2s ease; }
.wa-fab::before, .wa-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: wa-ring 2.6s cubic-bezier(.2, .6, .35, 1) infinite; pointer-events: none; }
.wa-fab::after { animation-delay: 1.3s; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
.wa-fab svg { position: relative; z-index: 1; animation: wa-beat 2.6s ease-in-out infinite; }
@keyframes wa-beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.12); } 86% { transform: scale(.97); } }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px -8px rgba(37, 211, 102, .75), 0 4px 12px rgba(0, 0, 0, .18); }
.wa-fab:focus-visible { outline: 2px solid #25D366; outline-offset: 4px; }
.wa-fab__tip { position: absolute; inset-inline-end: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s ease; box-shadow: 0 8px 18px -6px rgba(1, 26, 66, .55); }
[dir="rtl"] .wa-fab__tip { transform: translate(-6px, -50%); }
.wa-fab:hover .wa-fab__tip, .wa-fab:focus-visible .wa-fab__tip { opacity: 1; transform: translate(0, -50%); }
html.is-locked .wa-fab { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-fab::before, .wa-fab::after, .wa-fab svg { animation: none; } }
@media (max-width: 760px) { .wa-fab { inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; } .wa-fab svg { width: 28px; height: 28px; } .wa-fab__tip { display: none; } }
@media print { .wa-fab { display: none; } }

/* Rich text and articles */
.rich__body { max-width: 760px; color: var(--ink2); line-height: 1.75; font-size: 17px; }
.rich__title { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--ink); }
.rich__updated { margin: 8px 0 0; color: var(--muted2); font-size: 14px; }
.rich__body h2, .rich__body h3 { margin: 40px 0 0; color: var(--ink); font-weight: 600; line-height: 1.3; }
.rich__body h2 { font-size: 24px; } .rich__body h3 { font-size: 20px; }
.rich__body p, .rich__body ul, .rich__body ol { margin: 16px 0 0; }
.rich__body li + li { margin-top: 6px; }
.rich__body a { text-decoration: underline; text-underline-offset: 3px; }
.rich__body a.btn { text-decoration: none; margin-top: 4px; }
.rich--toc { padding-top: clamp(32px, 4vw, 48px); }
.rich__grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.rich--toc .rich__body { max-width: 880px; }
.rich--toc .rich__body > :first-child, .rich--toc .rich__updated--inline + * { margin-top: 0; }
.rich--toc .rich__body h2 { scroll-margin-top: 110px; }
.rich__aside { position: sticky; top: 112px; }
.rich__toc { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rich__toc-title { margin: 0 0 10px; color: var(--muted2); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .rich__toc-title { letter-spacing: 0; }
.rich__toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rich__toc a { display: block; padding: 7px 12px; margin-inline: -12px; border-radius: 10px; color: var(--ink2); font-size: 14.5px; line-height: 1.4; transition: background-color .2s ease, color .2s ease; }
.rich__toc a:hover { background: var(--s1); color: var(--ink); }
.rich__toc a.is-active { background: var(--ring); color: var(--accent); font-weight: 500; }
.rich__toc .rich__updated { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.rich__updated--inline { display: none; }
@media (max-width: 960px) {
  .rich__grid { display: block; }
  .rich__aside { display: none; }
  .rich__updated--inline { display: block; margin-bottom: 24px; }
}
.rich__body code { padding: 2px 6px; border-radius: 6px; background: var(--s1); color: var(--ink); font-size: .86em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.rich__body .rt-table { width: 100%; margin: 20px 0 8px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); font-size: 15px; line-height: 1.6; }
.rich__body .rt-table th { padding: 12px 16px; background: var(--s1); color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; text-align: start; }
.rich__body .rt-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.rich__body .rt-table td:first-child { color: var(--muted2); font-size: 14px; white-space: nowrap; }
.rich__body .rt-table td strong { color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 700px) {
  .rich__body .rt-table thead { display: none; }
  .rich__body .rt-table, .rich__body .rt-table tbody, .rich__body .rt-table tr, .rich__body .rt-table td { display: block; width: 100%; }
  .rich__body .rt-table tr + tr { border-top: 1px solid var(--line2); }
  .rich__body .rt-table td { border-top: 0; padding: 6px 16px; }
  .rich__body .rt-table td:first-child { padding-top: 16px; white-space: normal; }
  .rich__body .rt-table td:last-child { padding-bottom: 16px; }
}
.rich { padding-bottom: var(--section); }
.article { padding-top: clamp(32px, 5vw, 64px); padding-bottom: var(--section); }
.article__wrap { max-width: calc(820px + 2 * var(--gutter)); }
.article__title { font-size: clamp(32px, 4.4vw, 50px); }
.article__cover { width: 100%; height: auto; margin-top: 36px; border-radius: 16px; }
.article__body { margin: 36px 0 40px; }

/* News */
.news__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.news__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 28px; margin-top: 40px; }
.news__empty { margin-top: 32px; }
.news-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.news-card__img { width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 14px; object-fit: cover; transition: transform .5s var(--ease); }
.news-card__date { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); }
.news-card__title { margin: 8px 0 0; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--ink); transition: color .25s ease; }
.news-card__text { margin: 10px 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.news-card .btn--ghost { margin-top: auto; align-self: flex-start; }
.news-card { overflow: hidden; }
@media (hover: hover) { .news-card__link:hover .news-card__img { transform: scale(1.02); } .news-card__link:hover .news-card__title { color: var(--accent); } .news-card__link:hover .arrow { transform: translateX(5px); } [dir="rtl"] .news-card__link:hover .arrow { transform: translateX(-5px); } }

/* ---------- Forms ---------- */
.mform { display: block; }
.mform__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mform__note { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.mform__note strong { font-weight: 600; }
.mform__note span { color: var(--muted); font-size: 15px; }
.mform__note .badges { margin-top: 8px; }

.mform__progress ol { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: none; }
.mform__progress li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted2); }
.mform__progress li::before { content: ''; height: 4px; border-radius: 999px; background: var(--line); transition: background-color .35s var(--ease); }
.mform__progress li.is-current::before, .mform__progress li.is-done::before { background: var(--accent-bg); }
.mform__progress li span { display: none; }
.mform__progress em { font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mform__progress li.is-current em { color: var(--ink); }
.mform__step { margin: 0; padding: 0; border: 0; min-width: 0; animation: fade .3s ease; }
.mform__step[hidden] { display: none; }
.mform__legend { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 0; font-size: 22px; font-weight: 600; color: var(--ink); }
.mform__legend span { font-size: 13px; font-weight: 600; color: var(--accent); }

.mform__grid { display: flex; flex-wrap: wrap; gap: 18px 16px; }
.mfield { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mfield--half { flex: 1 1 calc(50% - 8px); min-width: 220px; }
.mfield__label, .mfield__set legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.mfield__opt { font-weight: 400; color: var(--muted2); }
.mfield__set { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mfield__hint { font-size: 13px; color: var(--muted2); }
.mfield__error { min-height: 0; font-size: 13px; font-weight: 500; color: #C93A3A; }
[data-theme="dark"] .mfield__error { color: #FF8A80; }
.mfield__error:empty { display: none; }

.mform input[type="text"], .mform input[type="email"], .mform input[type="tel"], .mform input[type="number"], .mform select, .mform textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--surface2); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; -moz-appearance: textfield;
}
.mform textarea { resize: vertical; min-height: 130px; }
.mform input::-webkit-outer-spin-button, .mform input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mform input:hover, .mform select:hover, .mform textarea:hover { border-color: var(--dash); }
.mform input:focus, .mform select:focus, .mform textarea:focus { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.mfield.is-invalid input, .mfield.is-invalid select, .mfield.is-invalid textarea { border-color: #C93A3A; }
[dir="rtl"] .mform input[type="email"], [dir="rtl"] .mform input[type="tel"] { text-align: right; }

.mselect { position: relative; display: block; }
.mselect select { -webkit-appearance: none; appearance: none; padding-inline-end: 44px; cursor: pointer; }
.mselect::after { content: ''; position: absolute; top: 50%; inset-inline-end: 18px; width: 8px; height: 8px; margin-top: -6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.mtel { display: flex; gap: 8px; }
.mtel .mselect--code { flex: 0 0 104px; }
.mtel input { flex: 1; min-width: 0; }
[dir="rtl"] .mtel { flex-direction: row; }

.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { position: relative; cursor: pointer; }
.mchip input { position: absolute; opacity: 0; pointer-events: none; }
.mchip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink2); font-size: 15px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.mchip span::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--dash); transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mchip input[type="checkbox"] + span::before { border-radius: 5px; }
.mchip:hover span { border-color: var(--accent); }
.mchip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--ink); }
.mchip input:checked + span::before { border-color: var(--accent-bg); background: var(--accent-bg); box-shadow: inset 0 0 0 3px var(--surface); }
.mchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mfield.is-invalid .mchip span { border-color: color-mix(in srgb, #C93A3A 60%, var(--line2)); }

.mcheck { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.mcheck input { flex: none; width: 22px; height: 22px; margin: 0; -webkit-appearance: none; appearance: none; border: 1.5px solid var(--dash); border-radius: 6px; background: var(--surface); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.mcheck input:checked { border-color: var(--accent-bg); background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L15 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.mcheck input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mfield.is-invalid .mcheck input { border-color: #C93A3A; }

.mfile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 18px; border: 1.5px dashed var(--dash); border-radius: 12px; background: var(--surface2); text-align: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.mfile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mfile__text { font-size: 15px; font-weight: 500; color: var(--muted); }
.mfile__text::before { content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 6px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.mfile__name { font-size: 13px; font-weight: 600; color: var(--accent); }
.mfile:hover, .mfile.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface2)); }
.mfile.has-file { border-style: solid; border-color: var(--accent); }
.mfile:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.mfield.is-invalid .mfile { border-color: #C93A3A; }

.mform__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.mform__nav .btn--secondary { margin-inline-end: auto; }
.mform__submit.is-loading { opacity: .75; pointer-events: none; }
.mform__status { margin: 16px 0 0; font-size: 14px; font-weight: 500; color: #C93A3A; }
[data-theme="dark"] .mform__status { color: #FF8A80; }
.mform__status:empty { display: none; }
.mform[hidden] { display: none; }

.mform-done { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; outline: 0; animation: pop .45s var(--ease); }
.mform-done[hidden] { display: none; }
.mform-done__badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: #A9620D; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
[data-theme="dark"] .mform-done__badge { color: #F2B866; }
.mform-done__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.mform-done__title { margin: 14px 0 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; }
.mform-done__text { margin: 6px 0 0; color: var(--muted); line-height: 1.65; }
.mform-done__ref { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.mform-done__ref[hidden] { display: none; }
.mform-done__ref strong { font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.mform__stepnote { margin: -8px 0 20px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); color: var(--ink2); font-size: 14px; line-height: 1.55; }
.mchips__group { flex: 1 1 100%; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); }
.mchips__group:first-child { margin-top: 0; }

/* Own drop-down (no native select) */
/* iOS: fields stay at 16px (no zoom on focus), taps never trigger double-tap zoom */
.mform button, .mform .mchip, .mform .mcheck, .mform .mfile, .mcombo__list li, .mtags__list li, .maddr__list li, .mtag__x, .btn { touch-action: manipulation; }
.mcombo { position: relative; min-width: 0; }
.mcombo__btn { width: 100%; min-height: 52px; display: flex; align-items: center; padding: 13px 44px 13px 16px; padding-inline: 16px 44px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--surface2); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; text-align: start; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.mcombo__btn::after { content: ''; position: absolute; top: 50%; inset-inline-end: 18px; width: 8px; height: 8px; margin-top: -6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; pointer-events: none; }
.mcombo.is-open .mcombo__btn::after { transform: rotate(225deg); margin-top: -2px; }
.mcombo__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcombo.is-empty .mcombo__val { color: var(--muted2); }
.mcombo__btn:hover { border-color: var(--dash); }
.mcombo__btn:focus-visible, .mcombo.is-open .mcombo__btn { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.mfield.is-invalid .mcombo__btn { border-color: #C93A3A; }
.mcombo__pop, .mtags__list, .maddr__list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(1, 26, 66, .35); }
.mcombo__pop[hidden], .mtags__list[hidden], .maddr__list[hidden] { display: none; }
.mform input.mcombo__search { min-height: 44px; margin-bottom: 6px; padding: 10px 12px; font-size: 16px; }
.mcombo__list, .mtags__list, .maddr__list { margin: 0; list-style: none; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
.mcombo__list { padding: 0; }
.mcombo__list li, .mtags__list li, .maddr__list li { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--ink2); cursor: pointer; line-height: 1.4; }
.mcombo__list li[hidden] { display: none; }
.mcombo__list li:hover, .mcombo__list li.is-active, .mtags__list li:hover, .mtags__list li.is-active, .maddr__list li:hover, .maddr__list li.is-active { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); }
.mcombo__list li[aria-selected="true"] { font-weight: 600; color: var(--accent); }
.mcombo__empty, .mtags__list li.is-empty, .maddr__list li.is-empty { margin: 0; padding: 10px 12px; font-size: 14px; color: var(--muted2); cursor: default; background: none; }
.mcombo__empty[hidden] { display: none; }
.mtel .mcombo { flex: 0 0 112px; }
.mtel .mcombo__pop { inset-inline-end: auto; width: min(300px, calc(100vw - 48px)); }
.mtel .mcombo__list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* City tags and address search */
.mtags, .maddr { position: relative; }
.mtags__box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 52px; padding: 7px 8px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--surface2); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.mtags__box:hover { border-color: var(--dash); }
.mtags__box:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.mtags__chips { display: contents; }
.mtag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; padding-inline: 12px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); font-size: 14px; font-weight: 500; }
.mtag__x { width: 24px; height: 24px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.mtag__x:hover, .mtag__x:focus-visible { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); outline: 0; }
.mform input.mtags__input { flex: 1 1 140px; min-width: 120px; min-height: 36px; padding: 6px 8px; border: 0; background: transparent; box-shadow: none; }
.mform input.mtags__input:focus, .mform input.mtags__input:hover { border: 0; box-shadow: none; background: transparent; }

/* Drivers and clients: the app instead of a form */
.mapp { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mapp__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mapp__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.25; }
.mapp__text { margin: 0 0 8px; color: var(--muted); line-height: 1.65; }
@media (max-width: 640px) {
  .mfield--half { flex-basis: 100%; }
  .mform__progress em { display: none; }
  .mform__nav .btn { flex: 1 1 auto; }
  .mform__nav .btn--secondary { margin-inline-end: 0; }
}

/* ---------- Cookie consent ---------- */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 115; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .35s var(--ease); }
.consent.is-in { opacity: 1; transform: none; }
.consent__card { pointer-events: auto; width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(1, 26, 66, .4); }
.consent__title { margin: 0; font-size: 18px; font-weight: 600; }
.consent__text { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent__prefs { display: grid; gap: 8px; }
.consent__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); cursor: pointer; }
.consent__row span { display: flex; flex-direction: column; gap: 2px; }
.consent__row strong { font-size: 14px; font-weight: 600; }
.consent__row em { font-style: normal; font-size: 13px; color: var(--muted); }
.consent__row input { flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--line2); -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .2s ease; }
.consent__row input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.consent__row input:checked { background: var(--accent-bg); }
.consent__row input:checked::after { transform: translateX(18px); }
[dir="rtl"] .consent__row input:checked::after { transform: translateX(-18px); }
.consent__row input:disabled { opacity: .6; cursor: default; }
.consent__row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent__btn { padding: 11px 18px; font-size: 14px; }
.consent__actions [data-consent-settings], .consent__actions [data-consent-save] { margin-inline-end: auto; }
@media (max-width: 640px) {
  .consent { inset-inline: 8px; bottom: 8px; }
  .consent__card { padding: 18px; }
  .consent__actions .btn { flex: 1 1 40%; }
  .consent__actions [data-consent-settings], .consent__actions [data-consent-save] { flex-basis: 100%; margin: 0; order: 3; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1024px) {
  .hero__grid, .services__grid, .cats__grid, .features__grid, .app__grid { gap: 40px; }
  .platform__pane .shot { --h: 420px; }
  .app--band { padding-block: 72px; }
  .features__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header__inner { padding-block: 12px; }
  .site-logo img { height: 38px; }
  .site-header__tools .icon-btn:not(.menu-btn), .site-header__tools .lang-switch, .join { display: none; }
  .hero__text .btn-row { flex-direction: column; align-items: stretch; }
  /* Store badges: label on its own line, both stores side by side, equal width */
  .hero__apps { flex-direction: column; align-items: stretch; gap: 10px; }
  .badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .badge { justify-content: center; padding: 11px 10px; }
  .badge img { height: 26px; max-width: 100%; }
  .hero__shot { --h: 230px !important; }
  .hero__phone { --pw: 112px; inset-inline-start: -8px; }
  .hero__media { padding-bottom: 24px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { padding: 18px 14px; }
  .facts__item:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .eco__card, [dir="rtl"] .eco__card { padding: 26px 0; }
  .app__phones { gap: 10px; }
  .app__phones .phone, .app__phones--3 .phone { --pw: 100px; }
  .app__phones--3 > :nth-child(2) .phone, .app__phones--3 > .phone:nth-child(2) { --pw: 118px; }
  .app__phones--1 .phone { --pw: 200px; }
  .phonefig { gap: 8px; }
  .phonefig__label { font-size: 12px; }
  .platform__tabs { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .platform__tab span { display: none; }
  .platform__pane .shot { --h: 300px; }
  .features__list, .features__list--3, .features__list--4 { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .about__ph, .about__map { height: 240px; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__grid { grid-template-columns: 1fr; }
  .site-footer__col { flex: 1 1 40%; }
  .detail__grid, .detail__grid--2 { grid-template-columns: 1fr; }
  .detail__col, [dir="rtl"] .detail__col { padding: 24px 0 8px; }
  .detail__col + .detail__col { border-top: 1px solid var(--line); }
  .phero__grid, .tm__grid, .faq__grid, .formblk__grid, .contact__grid { gap: 36px; }
  .phero .btn-row { flex-direction: column; align-items: stretch; }
  .tm--band { padding-block: 64px; }
  .contact__list dt { flex-basis: 100%; }
  .faq__item summary { font-size: 16px; padding: 18px 0; }
  .media__phone .phone, .phero--go .phero__media .phone, .phero--ride .phero__media .phone { --pw: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ---------- Full-screen viewer ---------- */
.vw { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; padding: 18px 0 22px; background: color-mix(in srgb, var(--navy) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #EEF2F8; opacity: 0; transition: opacity .3s ease; }
.vw.vw--in { opacity: 1; }
.vw[hidden] { display: none; }
.vw__top { width: min(1280px, 92vw); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.vw__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.vw__tab { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(238, 242, 248, .72); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.vw__tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.vw__tab[aria-selected="true"] { background: #fff; color: #011A42; }
.vw__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.vw__count { font-size: 13px; font-weight: 600; color: rgba(238, 242, 248, .7); min-width: 44px; text-align: center; }
.vw__icon { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .2s ease, transform .35s var(--ease); }
.vw__icon:hover { background: rgba(255, 255, 255, .14); }
.vw__close:hover { transform: rotate(90deg); }
.vw__win { width: min(1280px, 92vw); flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px rgba(0, 0, 0, .45); transform-origin: 0 0; }
.vw--dark .vw__win { background: #0F1724; }
.vw__bar { flex: none; height: 40px; display: flex; align-items: center; gap: 14px; padding-inline: 14px; background: #F1F3F7; border-bottom: 1px solid #E2E6EE; }
.vw--dark .vw__bar { background: #1A2232; border-bottom-color: #263044; }
.vw__dots { display: inline-flex; gap: 6px; }
.vw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF6159; }
.vw__dots i:nth-child(2) { background: #FFBF2F; } .vw__dots i:nth-child(3) { background: #2ACB42; }
.vw__url { flex: 0 1 460px; margin-inline: auto; height: 26px; display: flex; align-items: center; justify-content: center; padding-inline: 14px; border-radius: 8px; background: #fff; color: #5A6478; font: 12.5px/1 system-ui, sans-serif; white-space: nowrap; overflow: hidden; }
.vw--dark .vw__url { background: #0F1724; color: #AEB8CB; }
.vw__view { position: relative; flex: 1 1 auto; min-height: 0; }
.vw__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: thin; outline: none; }
.vw__img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .vw { padding-top: 10px; padding-bottom: 0; }
  .vw__top { width: 100%; padding-inline: 10px; }
  .vw__win { width: 100%; border-radius: 12px 12px 0 0; }
  .vw__count { display: none; }
}

/* Signed-in editors: keep the sticky header below the admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- App screens viewer (phones) ---------- */
.phone[data-app] { cursor: zoom-in; }
.phone[data-app]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.av__stage { flex: 1 1 auto; min-height: 0; width: min(1280px, 92vw); display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 56px); }
.av__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
.av__phone { --pw: min(380px, calc((100dvh - 190px) / 2.12), 72vw); cursor: default; outline: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 2px 0 1px #24314F, 0 50px 120px rgba(0, 0, 0, .5); }
.av__phone.is-swap { animation: av-swap .35s var(--ease); }
@keyframes av-swap { from { opacity: .35; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.av .phone__strip-img { animation: phone-strip 9s ease-in-out var(--d) infinite; }
.av .phone__tall { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.av .phone__tall::-webkit-scrollbar { display: none; }
.av .phone__tall-img { transform: none; transition: none; animation: none; }
.av__name { font-size: 15px; font-weight: 600; color: rgba(238, 242, 248, .82); }
.av__nav { width: 48px; height: 48px; flex: none; }
@media (max-width: 640px) {
  .av__stage { width: 100%; gap: 6px; padding-inline: 6px; }
  .av__nav { width: 40px; height: 40px; }
  .av__phone { --pw: min(300px, calc((100dvh - 170px) / 2.12), 68vw); }
}
@media (prefers-reduced-motion: reduce) { .av .phone__strip-img { animation: none; } }

/* App screens gallery */
.appgal__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.appgal__head > div { max-width: 720px; }
.appgal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; margin-top: 48px; justify-items: center; }
.appgal__grid .phonefig { margin: 0; min-width: 0; }
.appgal__grid .phone { --pw: 210px; }
@media (max-width: 1024px) { .appgal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .appgal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } .appgal__grid .phone { --pw: 156px; } }
