/* Mortaga — landing page (index.html only).
   Self-contained: the rest of the site still loads styles.css. Dark is the
   page's own default (see data-default-theme handling in i18n.js); the light
   theme is a full redesign of the same tokens, not an afterthought. */

/* ───────────── tokens ───────────── */
:root {
  --bg:      #F3F5EF;
  --bg2:     #EAEEE4;
  --card:    #FFFFFF;
  --card2:   #F7F9F3;
  --fg:      #0F1511;
  --muted:   #55625A;
  --faint:   #7C877F;
  --line:    rgba(15, 21, 17, .09);
  --line-hi: rgba(15, 21, 17, .17);
  --lime:    #2F6B54;           /* brand sage: surfaces, buttons */
  --lime-ink:#FFFFFF;           /* text on the brand fill */
  --acc:     #2F6B54;           /* brand as text */
  --coral:   #E2552E;
  --glow:    rgba(47, 107, 84, .18);
  --shadow:  0 1px 0 rgba(255,255,255,.7) inset, 0 20px 50px -24px rgba(20, 40, 10, .28);
  --phone-bg:#FFFFFF;
  --grid:    rgba(15, 21, 17, .05);

  --disp: "Bricolage Grotesque", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  --bg:      #0A0C0B;
  --bg2:     #0E1210;
  --card:    #121715;
  --card2:   #171D1A;
  --fg:      #EEF2EE;
  --muted:   #97A39C;
  --faint:   #6B7770;
  --line:    rgba(238, 242, 238, .08);
  --line-hi: rgba(238, 242, 238, .16);
  --lime:    #63AC8E;
  --lime-ink:#04120B;
  --acc:     #63AC8E;
  --coral:   #FF7A59;
  --glow:    rgba(99, 172, 142, .18);
  --shadow:  0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -30px rgba(0,0,0,.8);
  --phone-bg:#0F1412;
  --grid:    rgba(238, 242, 238, .035);
}

:root[lang="ar"] { --disp: "Readex Pro", system-ui, sans-serif; }

/* ───────────── base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.land {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.theme-swapping * { transition: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
em { font-style: normal; color: var(--acc); }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lime-t { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* the logo mark: same mask technique as the app, colour from currentColor */
.lmark {
  width: 26px; height: 26px; display: inline-block; flex: none;
  background: currentColor;
  -webkit-mask: url(/assets/img/logo.svg) center / contain no-repeat;
          mask: url(/assets/img/logo.svg) center / contain no-repeat;
}

/* ───────────── buttons ───────────── */
.lbtn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font: 600 14.5px/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.lbtn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.lbtn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 var(--glow); }
.lbtn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -6px var(--glow), 0 0 0 6px var(--glow); }
.lbtn-ghost { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--fg); border-color: var(--line-hi); backdrop-filter: blur(8px); }
.lbtn-ghost:hover { border-color: var(--fg); transform: translateY(-2px); }
.lbtn .arr { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lbtn:hover .arr { transform: translateX(3px); }
:root[dir="rtl"] .lbtn .arr { transform: scaleX(-1); }
:root[dir="rtl"] .lbtn:hover .arr { transform: scaleX(-1) translateX(3px); }

/* ───────────── nav ───────────── */
.lnav { position: sticky; top: 0; z-index: 50; padding: 14px var(--gut) 0; }
.lnav-in {
  max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .3s, border-color .3s;
}
:root[dir="rtl"] .lnav-in { padding: 0 18px 0 10px; }
.lnav.stuck .lnav-in { box-shadow: 0 12px 40px -20px rgba(0,0,0,.45); border-color: var(--line-hi); }
.lbrand { display: inline-flex; align-items: center; gap: 9px; font: 800 19px/1 var(--disp); letter-spacing: -.02em; text-decoration: none; color: var(--fg); }
.lbrand .lmark { color: var(--acc); }
.lnav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.lnav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.lnav-links a:hover { color: var(--fg); background: var(--line); }
.lnav-act { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.pill-toggle, .icon-toggle {
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-hi); background: transparent; color: var(--fg);
  font: 600 12.5px/1 var(--mono); letter-spacing: .06em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s;
}
.pill-toggle:hover, .icon-toggle:hover { border-color: var(--fg); }
.icon-toggle svg { width: 17px; height: 17px; }
.icon-toggle .i-sun { display: none; }
:root[data-theme="dark"] .icon-toggle .i-sun { display: block; }
:root[data-theme="dark"] .icon-toggle .i-moon { display: none; }

/* ───────────── reveal ───────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv-stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-stagger > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* spotlight that follows the pointer (land.js sets --mx/--my) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), var(--glow), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

/* ───────────── section heads ───────────── */
section { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc);
}
.kicker::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
:root[lang="ar"] .kicker { letter-spacing: 0; font-family: var(--body); font-size: 14px; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-head h2 { font-size: clamp(34px, 5.4vw, 64px); }
.sec-head p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 58ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }

/* ───────────── HERO ───────────── */
.hero { padding: clamp(40px, 7vw, 90px) 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 40%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 20% 20%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 24px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-hi); border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: color-mix(in srgb, var(--card) 50%, transparent);
}
:root[dir="rtl"] .badge { padding: 7px 10px 7px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero-h { margin: 0 0 22px; font-size: clamp(48px, 8.2vw, 104px); line-height: .92; letter-spacing: -.045em; }
:root[lang="ar"] .hero-h { line-height: 1.15; font-size: clamp(46px, 7.4vw, 92px); }
.hero-h em {
  display: inline-block; position: relative; color: var(--fg);
  background: linear-gradient(100deg, var(--coral) 0%, var(--lime) 45%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root:not([data-theme="dark"]) .hero-h em { background: linear-gradient(100deg, var(--coral) 0%, #3F8A6D 45%, var(--acc) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-lede { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.hero-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%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'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
:root:not([data-theme="dark"]) .hero-ticks li::before { background: var(--acc); }

/* stage: fixed 520 box, scaled down on small screens */
.hero-stage { position: relative; width: 520px; height: 560px; justify-self: center; }
.orbit { position: absolute; left: 0; top: 20px; width: 520px; height: 520px; }
.orbit-arc { stroke-dasharray: 32 68; animation: arc 9s linear infinite; transform-origin: 260px 260px; }
@keyframes arc { to { stroke-dashoffset: -100; } }
.coin {
  position: absolute; left: 0; top: 20px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #D9F2E6, #63AC8E 55%, #2F6B54);
  color: var(--lime-ink); font: 700 11px/1 var(--mono); letter-spacing: .04em;
  box-shadow: 0 0 0 6px var(--glow), 0 10px 30px -6px rgba(99, 172, 142, .6);
  offset-path: path("M 492 260 A 232 232 0 1 1 28 260 A 232 232 0 1 1 492 260");
  offset-anchor: 50% 50%; offset-rotate: 0deg;
  animation: ride 9s linear infinite; animation-delay: -2.88s;
}
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* phone mock (shared by hero + steps) */
.phone {
  position: relative; width: 268px; height: 540px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2A302D, #0B0D0C 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px var(--line);
}
.phone-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 20px; background: #050605; z-index: 2; }
.ph-scr {
  height: 100%; border-radius: 34px; overflow: hidden; padding: 54px 16px 16px;
  background: var(--phone-bg); color: var(--fg); font-family: "Readex Pro", sans-serif; font-size: 13px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-phone { position: absolute; left: 50%; top: 30px; translate: -50% 0; z-index: 2; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.ph-store { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ph-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 13px; }
.ph-title { font-size: 21px; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.ph-title.sm { font-size: 17px; margin-top: 0; }
.ph-sub { color: var(--muted); font-size: 12.5px; }
.ph-field { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: var(--card2); font-size: 12px; }
.ph-field span { color: var(--faint); }
.ph-field b { font-weight: 600; direction: ltr; }
.ph-field.focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--glow); }
.typing { overflow: hidden; white-space: nowrap; border-inline-end: 1.5px solid var(--acc); max-width: 0; animation: type 9s steps(11) infinite; }
@keyframes type { 0%, 4% { max-width: 0; } 22%, 100% { max-width: 11ch; } }
.ph-btn { margin-top: 2px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 600; background: var(--lime); color: var(--lime-ink); }
.ph-note { text-align: center; font-size: 11.5px; color: var(--faint); }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); }
.ph-item b { display: block; font-size: 12.5px; }
.ph-item span { font-size: 11.5px; color: var(--muted); }
.ph-thumb { width: 44px; height: 52px; border-radius: 10px; flex: none; background: linear-gradient(150deg, #E9DCC8, #C9B596); position: relative; overflow: hidden; }
.ph-thumb::after { content: ""; position: absolute; inset: 14px 12px 0; border-radius: 10px 10px 0 0; background: rgba(255,255,255,.35); }
.ph-check { width: 20px; height: 20px; border-radius: 50%; margin-inline-start: auto; background: var(--lime); box-shadow: 0 0 0 4px var(--glow); }

/* toasts around the hero phone */
.toast {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; min-width: 200px;
  background: color-mix(in srgb, var(--card) 86%, transparent); border: 1px solid var(--line-hi);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  font-size: 13px; opacity: 0;
}
:root[dir="rtl"] .toast { padding: 10px 10px 10px 14px; }
.toast b { display: block; font-weight: 600; font-size: 13.5px; }
.toast span { color: var(--muted); font-size: 12px; }
.toast.lime { background: var(--lime); border-color: transparent; color: var(--lime-ink); }
.toast.lime span { color: color-mix(in srgb, var(--lime-ink) 70%, transparent); }
.ti { width: 34px; height: 34px; border-radius: 11px; flex: none; background: var(--card2); border: 1px solid var(--line); position: relative; }
.ti::after { content: ""; position: absolute; inset: 8px; background: var(--fg); -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.toast.lime .ti { background: rgba(0,0,0,.08); border-color: transparent; }
.toast.lime .ti::after { background: var(--lime-ink); }
.t1 { top: 36px;  inset-inline-start: -46px; animation: toast1 9s var(--ease) infinite; }
.t2 { top: 150px; inset-inline-end: -56px;  animation: toast2 9s var(--ease) infinite; }
.t3 { top: 420px; inset-inline-start: -64px; animation: toast3 9s var(--ease) infinite; }
.t4 { top: 500px; inset-inline-end: -40px;   animation: toast4 9s var(--ease) infinite; }
@keyframes toast1 { 0%, 4% { opacity: 0; transform: translateY(14px) scale(.94); } 9%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes toast2 { 0%, 26% { opacity: 0; transform: translateY(14px) scale(.94); } 31%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes toast3 { 0%, 46% { opacity: 0; transform: translateY(14px) scale(.94); } 51%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes toast4 { 0%, 64% { opacity: 0; transform: translateY(14px) scale(.9); } 70%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* icon set (masks) */
.ti-in, .fi-box   { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.ti-ok    { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E"); }
.ti-truck, .fi-truck { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v10H2zM14 9h4l4 4v3h-8'/%3E%3Ccircle cx='6' cy='17.5' r='2'/%3E%3Ccircle cx='17' cy='17.5' r='2'/%3E%3C/svg%3E"); }
.ti-coin, .fi-coin { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .8-3 2s1.3 1.7 3 2 3 .8 3 2-1.3 2-3 2c-1.4 0-2.5-.5-3-1.5M12 6.5V8m0 8v1.5'/%3E%3C/svg%3E"); }
.fi-shop  { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-1.2 12H5.2z'/%3E%3Cpath d='M8.5 8V6.5a3.5 3.5 0 0 1 7 0V8'/%3E%3C/svg%3E"); }

/* marquee */
.marquee { margin-top: clamp(30px, 5vw, 60px); border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: color-mix(in srgb, var(--card) 40%, transparent); }
.mq-track { display: flex; gap: 28px; width: max-content; animation: mq 32s linear infinite; font: 700 clamp(18px, 2.2vw, 26px)/1 var(--disp); letter-spacing: -.02em; white-space: nowrap; }
.mq-track i { font-style: normal; color: var(--acc); }
:root[dir="rtl"] .mq-track { animation-name: mq-rtl; }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes mq-rtl { to { transform: translateX(50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* ───────────── STAKES ───────────── */
.stakes { padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 6vw, 70px); }
.stakes .kicker { display: flex; justify-content: center; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.duel-card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.duel-card.is-out { background: linear-gradient(170deg, color-mix(in srgb, var(--coral) 9%, var(--card)), var(--card) 55%); }
.duel-card.is-keep { border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--lime) 13%, var(--card)), var(--card) 60%); }
.duel-tag { font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .duel-tag { letter-spacing: 0; font-family: var(--body); font-size: 14px; }
.duel-num { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 22px; font: 800 clamp(56px, 9vw, 112px)/.9 var(--disp); letter-spacing: -.05em; direction: ltr; }
:root[dir="rtl"] .duel-num { justify-content: flex-end; }
.duel-num small { font-size: .26em; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.is-out .duel-num { color: var(--coral); }
.is-keep .duel-num { color: var(--acc); }
.duel-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.duel-card li { display: flex; gap: 10px; align-items: baseline; }
.duel-card li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; flex: none; translate: 0 -2px; }
.is-out li::before { background: var(--coral); }
.is-keep li::before { background: var(--lime); }
.duel-vs { align-self: center; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-hi); font: 700 13px/1 var(--mono); color: var(--muted); background: var(--bg); }

/* ───────────── HOW / STEPS ───────────── */
.how { padding: clamp(60px, 9vw, 120px) 0; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(60px, 9vw, 120px); }
.steps-rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -1px 0; background: var(--line); border-radius: 2px; }
.steps-fill { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--lime), var(--lime)); box-shadow: 0 0 18px var(--lime); border-radius: 2px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; position: relative; }
.step::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-hi); transition: background .4s, border-color .4s, box-shadow .4s; z-index: 1;
}
.step.on::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px var(--glow), 0 0 24px var(--lime); }
.step:nth-of-type(even) .step-copy { order: 2; }
.step-copy { max-width: 470px; }
.step:nth-of-type(odd) .step-copy { justify-self: end; }
.step-n { display: inline-block; font: 600 13px/1 var(--mono); color: var(--faint); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-hi); transition: color .4s, background .4s, border-color .4s; }
.step.on .step-n { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.step h3 { font-size: clamp(26px, 3.2vw, 38px); margin: 18px 0 14px; }
.step-copy > p { color: var(--muted); font-size: 17px; }
.step-pts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 15px; }
.step-pts li { display: flex; gap: 10px; align-items: center; }
.step-pts li::before {
  content: ""; width: 18px; height: 18px; flex: none; background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%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'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.step-vis { display: grid; place-items: center; min-height: 420px; position: relative; transition: transform .8s var(--ease), opacity .8s var(--ease); opacity: .55; transform: scale(.96); }
.step.on .step-vis { opacity: 1; transform: none; }
.step-vis::before { content: ""; position: absolute; inset: 10% 15%; border-radius: 50%; background: var(--glow); filter: blur(60px); z-index: -1; opacity: 0; transition: opacity .8s; }
.step.on .step-vis::before { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 12px; }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sizes { display: flex; gap: 6px; }
.size { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-hi); font-size: 12.5px; font-weight: 600; }
.size.off { opacity: .35; text-decoration: line-through; }
.size.cur { border-style: dashed; color: var(--muted); }
.size.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); box-shadow: 0 0 0 3px var(--glow); }

.offer-stack { display: grid; gap: 14px; width: min(100%, 380px); }
.offer { position: relative; padding: 22px 22px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 4px; }
.offer.dim { opacity: .6; transform: scale(.96); }
.offer.hot { border-color: var(--lime); background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 16%, var(--card)), var(--card) 70%); box-shadow: 0 0 0 4px var(--glow), var(--shadow); }
.offer-k { font-size: 13px; color: var(--muted); }
.offer b { font: 800 40px/1.05 var(--disp); letter-spacing: -.03em; }
.offer.hot b { color: var(--acc); }
.offer-s { font-size: 13px; color: var(--muted); }
.offer-tag { position: absolute; top: -12px; inset-inline-end: 18px; padding: 6px 11px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 12px/1 var(--body); animation: wob 3s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-4deg) scale(1.06); } }
.offer-cta { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); text-align: center; font-weight: 600; font-size: 14px; }

.desk { width: min(100%, 520px); border-radius: 18px; border: 1px solid var(--line-hi); background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.desk-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-hi); }
.desk-bar span { margin-inline-start: 10px; font-weight: 600; }
.desk-tabs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.desk-tabs span { padding: 6px 10px; border-radius: 999px; color: var(--muted); font-size: 12px; }
.desk-tabs .on { background: var(--fg); color: var(--bg); }
.desk-row { display: grid; grid-template-columns: 54px 1fr 1.4fr auto; gap: 10px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.desk-row:last-child { border-bottom: 0; }
.desk-row .tnum { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.desk-why { color: var(--muted); font-size: 12px; }
.desk-row.hl { background: color-mix(in srgb, var(--lime) 9%, transparent); box-shadow: inset 3px 0 0 var(--lime); }
:root[dir="rtl"] .desk-row.hl { box-shadow: inset -3px 0 0 var(--lime); }
.desk-btn { padding: 7px 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 600; font-size: 12px; animation: press 3.2s ease-in-out infinite; }
@keyframes press { 0%, 70%, 100% { transform: none; box-shadow: 0 0 0 0 var(--glow); } 76% { transform: scale(.92); } 84% { transform: none; box-shadow: 0 0 0 8px transparent; } }
.st { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.st-rev { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.st-ok { background: var(--glow); color: var(--acc); }

.flow { width: min(100%, 420px); display: grid; gap: 10px; position: relative; }
.flow::before { content: ""; position: absolute; inset-inline-start: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--lime), color-mix(in srgb, var(--lime) 20%, transparent)); }
.flow-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); position: relative; }
:root[dir="rtl"] .flow-row { padding: 12px 12px 12px 16px; }
.flow-row b { display: block; font-size: 14.5px; }
.flow-row span { font-size: 12.5px; color: var(--muted); }
.fi { width: 32px; height: 32px; border-radius: 10px; flex: none; background: var(--lime); position: relative; }
.fi::after { content: ""; position: absolute; inset: 7px; background: var(--lime-ink); -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.flow-row.live { border-color: var(--lime); box-shadow: 0 0 0 4px var(--glow), var(--shadow); }
.flow-row.live .fi { animation: pulse 2s infinite; box-shadow: 0 0 0 4px var(--glow); }
.step.on .flow-row { animation: slidein .7s var(--ease) both; }
.step.on .flow-row:nth-child(2) { animation-delay: .12s; }
.step.on .flow-row:nth-child(3) { animation-delay: .24s; }
.step.on .flow-row:nth-child(4) { animation-delay: .36s; }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }

/* ───────────── CALC ───────────── */
.calc { padding: clamp(60px, 9vw, 120px) 0; }
.calc-box { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 28px; border: 1px solid var(--line-hi); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.calc-ctl { padding: clamp(24px, 4vw, 48px); display: grid; gap: 34px; }
.cfield-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cfield label { color: var(--muted); font-size: 15px; }
.cfield output { font: 700 22px/1 var(--disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--line-hi); outline: none; cursor: pointer;
  background-image: linear-gradient(var(--lime), var(--lime)); background-size: var(--fill, 50%) 100%; background-repeat: no-repeat; }
:root[dir="rtl"] input[type="range"] { background-position: right; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); border: 5px solid var(--lime); box-shadow: 0 0 0 6px var(--glow); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 5px solid var(--lime); box-shadow: 0 0 0 6px var(--glow); }
.calc-out {
  padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 60%), var(--card2);
  border-inline-start: 1px solid var(--line);
}
.calc-k { font-size: 14px; color: var(--muted); }
.calc-big { font: 800 clamp(44px, 6vw, 78px)/1 var(--disp); letter-spacing: -.045em; color: var(--acc); }
.calc-bar { height: 8px; border-radius: 99px; background: var(--line); margin: 18px 0 22px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: 38%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--lime)); transition: width .4s var(--ease); }
:root[dir="rtl"] .calc-bar i { margin-inline-start: 0; background: linear-gradient(270deg, var(--coral), var(--lime)); }
.calc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-split > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.calc-v { font: 700 22px/1.1 var(--disp); letter-spacing: -.02em; }

/* ───────────── EGYPT BENTO ───────────── */
.egypt { padding: clamp(60px, 9vw, 120px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.tile:hover { border-color: var(--line-hi); transform: translateY(-4px); }
.tile.big { grid-column: span 2; background: linear-gradient(150deg, color-mix(in srgb, var(--lime) 10%, var(--card)), var(--card) 60%); }
.tile h3 { font-size: 23px; margin: 18px 0 10px; letter-spacing: -.02em; }
.tile.big h3 { font-size: clamp(26px, 3vw, 34px); }
.tile p { color: var(--muted); font-size: 15px; }
.tile.big p { font-size: 16.5px; max-width: 60ch; }
.tile-ico { width: 46px; height: 46px; border-radius: 14px; display: block; background: var(--card2); border: 1px solid var(--line-hi); position: relative; }
.tile-ico::after { content: ""; position: absolute; inset: 11px; background: var(--acc); -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.ico-cash  { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v.01M18 14.5v.01'/%3E%3C/svg%3E"); }
.ico-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.ico-door  { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4l10-2v19M14 4h5v17M2 21h20M10.5 12v.01'/%3E%3C/svg%3E"); }
.ico-ar    { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11M9.5 3v2c0 5-2.5 9-6 11M6 10c1.5 3 4.5 5.2 8 6M14 21l4-9 4 9M15.4 18h5.2'/%3E%3C/svg%3E"); }
.ico-chart { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 6-7'/%3E%3C/svg%3E"); }
.cod-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cod-pills span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 13.5px; background: var(--card); }
.cod-pills span:first-child { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }

/* ───────────── INTEGRATIONS ───────────── */
.integ { padding: clamp(50px, 8vw, 100px) 0; }
.integ-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 860px; margin: 0 auto; }
.integ-card { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: grid; justify-items: center; text-align: center; gap: 8px; }
.integ-card img { height: 46px; width: auto; margin-bottom: 6px; }
.integ-card b { font: 700 22px/1 var(--disp); }
.integ-card span { color: var(--muted); font-size: 14px; }
.integ-link { display: flex; align-items: center; gap: 10px; }
.integ-link i { width: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--lime) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 24px 0; } }
.integ-link .lmark { width: 48px; height: 48px; color: var(--acc); filter: drop-shadow(0 0 14px var(--glow)); }
/* Two couriers share the right side of the hub, so their cards are a little
   tighter than Shopify's. */
.integ-couriers { display: grid; gap: 14px; }
.integ-couriers .integ-card { padding: 22px; }
/* ShipBlu has no logo file yet; a lettermark the same height as Bosta's. */
.integ-sb {
  width: 46px; height: 46px; margin-bottom: 6px; border-radius: 10px;
  display: grid; place-items: center;
  background: #1f6feb; color: #fff !important; font: 800 17px/1 var(--disp) !important;
}
.integ-more { text-align: center; color: var(--muted); max-width: 60ch; margin: 30px auto 0; font-size: 15px; }

/* ───────────── FAQ ───────────── */
.faq { padding: clamp(60px, 9vw, 120px) 0; }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .sec-head { position: sticky; top: 110px; }
.faq .sec-head .lbtn { margin-top: 24px; }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s; }
.qa[open] { border-color: var(--line-hi); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-hi); position: relative; transition: transform .35s var(--ease), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: currentColor; translate: -50% -50%; border-radius: 2px; }
.qa summary i::after { rotate: 90deg; transition: rotate .35s var(--ease); }
.qa[open] summary i { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); transform: rotate(180deg); }
.qa[open] summary i::after { rotate: 0deg; }
.qa p { padding: 0 22px 22px; color: var(--muted); }
.qa p a { color: var(--acc); }

/* ───────────── FINAL CTA ───────────── */
.final { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 9vw, 110px); }
.final-box { position: relative; overflow: hidden; text-align: center; padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 60px); border-radius: 32px; border: 1px solid var(--line-hi); background: var(--card); display: grid; justify-items: center; }
.final-glow { position: absolute; inset: auto -20% -60%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); pointer-events: none; }
.final-box h2 { font-size: clamp(38px, 6.4vw, 80px); position: relative; }
.final-box p { position: relative; color: var(--muted); max-width: 56ch; margin-top: 20px; font-size: 17px; }
.final-box .hero-cta { justify-content: center; position: relative; }

/* ───────────── FOOTER ───────────── */
.lfoot { border-top: 1px solid var(--line); padding-top: 56px; }
.lfoot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.lfoot-brand p { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; max-width: 34ch; }
.lfoot-col { display: grid; align-content: start; gap: 10px; }
.lfoot-col h4 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
:root[lang="ar"] .lfoot-col h4 { letter-spacing: 0; font-family: var(--body); font-size: 13px; }
.lfoot-col a { color: var(--muted); text-decoration: none; font-size: 14.5px; width: fit-content; }
.lfoot-col a:hover { color: var(--fg); }
.pay-logos { display: flex; gap: 8px; }
.pay-logos img { height: 30px; width: auto; border-radius: 5px; background: #fff; padding: 2px 4px; }
.lfoot-base { margin-top: 44px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ───────────── responsive ───────────── */
@media (max-width: 1080px) {
  .lnav-links { display: none; }
  .lnav-act { margin-inline-start: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-width: 0; }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .hero-cta, .hero-ticks { justify-content: center; }
}
@media (max-width: 900px) {
  .duel { grid-template-columns: 1fr; }
  .duel-vs { justify-self: center; }
  .steps-rail { left: 15px; }
  :root[dir="rtl"] .steps-rail { left: auto; right: 15px; translate: 1px 0; }
  .step { grid-template-columns: 1fr; gap: 30px; padding-inline-start: 48px; }
  .step::before { left: 16px; top: 10px; }
  :root[dir="rtl"] .step::before { left: auto; right: 16px; translate: 50% 0; }
  .step:nth-of-type(even) .step-copy { order: 0; }
  .step:nth-of-type(odd) .step-copy { justify-self: start; }
  .step-vis { min-height: 0; justify-items: start; }
  .calc-box { grid-template-columns: 1fr; }
  .calc-out { border-inline-start: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .faq-in { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
  .lfoot-in { grid-template-columns: 1fr 1fr; }
  .lfoot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .hide-sm { display: none; }
  /* Sign in has to stay reachable on a phone, so the nav makes room for it:
     tighter buttons here, and under 400px the theme switch steps aside. */
  .lnav-act { gap: 6px; }
  .lnav-act .lbtn-ghost { padding: 0 11px; }
  .lnav { padding-top: 10px; }
  .lnav-in { height: 56px; gap: 8px; }
  .lnav-act .lbtn { --h: 38px; padding: 0 14px; font-size: 13.5px; }
  .hero-stage { justify-self: start; margin-inline-start: calc(50% - 260px); transform: scale(.68); transform-origin: top center; margin-bottom: -170px; }
  .bento { grid-template-columns: 1fr; }
  .tile.big { grid-column: auto; }
  .integ-row { grid-template-columns: 1fr; }
  .integ-link { justify-content: center; transform: rotate(90deg); height: 70px; }
  .desk-row { grid-template-columns: 46px 1fr auto; }
  .desk-why { display: none; }
  .step { padding-inline-start: 40px; }
  .phone { width: 248px; height: 500px; }
  .lfoot-in { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 621px) and (max-width: 1080px) {
  .hero-stage { margin-top: 20px; }
}
@media (max-width: 620px) {
  .t1 { inset-inline-start: 10px; } .t2 { inset-inline-end: 10px; }
  .t3 { inset-inline-start: 4px; }  .t4 { inset-inline-end: 14px; }
}

/* ───────────── PRICING PAGE ───────────── */
.lnav-links a[aria-current="page"] { color: var(--fg); background: var(--line); }
.price-hero { position: relative; overflow: hidden; padding: clamp(50px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); }
.price-hero .sec-head { max-width: 820px; margin-bottom: 34px; }
.price-h { font-size: clamp(42px, 7vw, 86px); line-height: .95; letter-spacing: -.045em; }
:root[lang="ar"] .price-h { line-height: 1.2; }
.price-note { font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--faint) !important; font-size: 13px !important; }
:root[lang="ar"] .price-note { font-family: var(--body); letter-spacing: 0; }

main[data-mode="per"] [data-show="flat"], main[data-mode="flat"] [data-show="per"] { display: none !important; }

.mode-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px); margin: 0 auto;
  padding: 5px; border-radius: 999px; border: 1px solid var(--line-hi); background: var(--card);
}
.mode-switch button {
  position: relative; z-index: 1; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font: 600 14.5px/1 var(--body); color: var(--muted); transition: color .3s;
}
.mode-switch button.on { color: var(--lime-ink); }
.mode-knob { position: absolute; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--lime); box-shadow: 0 6px 20px -6px var(--glow); transition: transform .45s var(--ease); }
main[data-mode="flat"] .mode-knob { transform: translateX(100%); }
:root[dir="rtl"] main[data-mode="flat"] .mode-knob { transform: translateX(-100%); }
.mode-desc { text-align: center; color: var(--muted); max-width: 62ch; margin: 18px auto 0; font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: start; }
.plan { padding: 30px 28px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 8px; overflow: hidden; }
.plan.hot { border-color: var(--lime); background: linear-gradient(170deg, color-mix(in srgb, var(--lime) 14%, var(--card)), var(--card) 55%); box-shadow: 0 0 0 4px var(--glow), var(--shadow); transform: translateY(-10px); }
.plan-name { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
:root[lang="ar"] .plan-name { font-family: var(--body); letter-spacing: 0; font-size: 17px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; animation: pop .45s var(--ease); }
.plan-price b { font: 800 clamp(46px, 5vw, 62px)/1 var(--disp); letter-spacing: -.045em; }
.plan-price span { color: var(--muted); font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.plan-sub { color: var(--fg); font-size: 14.5px; font-weight: 500; }
.plan-seats { color: var(--muted); font-size: 14px; }
.plan-cta { margin: 14px 0 10px; width: 100%; }
.plan-plus { font-size: 13.5px; color: var(--faint); margin-top: 4px; }
.plan-feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats li::before {
  content: ""; width: 17px; height: 17px; flex: none; margin-top: 3px; background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%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'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.2 15.6-4.4-4.4 1.6-1.6 2.8 2.8 5.8-5.8 1.6 1.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-extra { text-align: center; margin-top: 34px; color: var(--muted); }
.price-extra b { color: var(--fg); }
.price-info { padding: 0 0 clamp(60px, 9vw, 110px); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-grid .tile p a { color: var(--acc); }
.info-grid .pay-logos { margin-top: 18px; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.hot { transform: none; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ───────────── CONTENT PAGES (about, contact, legal) ─────────────
   Their <main class="legal"> markup is unchanged from before; only the shell
   around it moved to this stylesheet. */
.legal { position: relative; padding: clamp(50px, 8vw, 100px) 0 clamp(70px, 10vw, 120px); overflow: hidden; }
.legal .hero-glow { height: 600px; }
.legal-in { width: 100%; max-width: 760px; margin-inline: auto; padding: 0 var(--gut); display: grid; gap: 4px; }
.legal-in .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc);
}
.legal-in .eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
:root[lang="ar"] .legal-in .eyebrow { letter-spacing: 0; font-family: var(--body); font-size: 14px; }
.legal-in h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.045em; line-height: .98; margin: 6px 0 8px; }
:root[lang="ar"] .legal-in h1 { letter-spacing: 0; line-height: 1.2; }
.legal-updated { color: var(--faint); font: 400 13px/1.5 var(--mono); margin-bottom: 26px; }
:root[lang="ar"] .legal-updated { font-family: var(--body); }
.legal-in p { margin: 0 0 8px; line-height: 1.75; color: var(--muted); font-size: 16.5px; }
.legal-in p b, .legal-in li b { color: var(--fg); font-weight: 600; }
.legal-in h2 {
  font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; line-height: 1.2;
  margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg);
}
:root[lang="ar"] .legal-in h2 { letter-spacing: 0; }
.legal-in h3 { font-size: 18px; margin: 22px 0 6px; letter-spacing: -.01em; }
.legal-in ul, .legal-in ol { margin: 8px 0 10px; padding-inline-start: 0; list-style: none; display: grid; gap: 10px; }
.legal-in li { color: var(--muted); line-height: 1.65; display: flex; gap: 12px; }
.legal-in ul > li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; flex: none; margin-top: .62em; background: var(--lime); }
.legal-in a { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-in a:hover { text-decoration-thickness: 2px; }
.legal-in .pay-logos { margin: 10px 0; }
.price-scroll { overflow-x: auto; margin: 12px 0 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.price-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 600; color: var(--fg); background: var(--card2); }
.price-table td { color: var(--muted); }
.price-table td:first-child { color: var(--fg); font-weight: 600; }
.ltr-num { display: inline-block; direction: ltr; unicode-bidi: isolate; }

/* the refund side glows red, not green */
.duel-card.is-out { --glow: rgba(255, 106, 74, .2); }
.duel-card.is-out:hover { border-color: color-mix(in srgb, var(--coral) 45%, transparent); }

/* ───────────── product photos in the mockups ───────────── */
.ph-photo { width: 44px; height: 55px; flex: none; object-fit: contain; border-radius: 10px; background: #E9ECE6; padding: 3px; }

/* ───────────── BRANDS WITH US ───────────── */
.brands { padding: clamp(30px, 5vw, 60px) 0 clamp(20px, 4vw, 40px); }
.brands-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.brands-copy h2 { font-size: clamp(30px, 4.4vw, 52px); }
.brands-copy p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.brand-card {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line-hi);
  background: linear-gradient(160deg, var(--card2), var(--card)); box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 22px;
}
.brand-logo { width: min(100%, 360px); height: auto; }
:root[data-theme="dark"] .brand-logo { filter: invert(1); }
.brand-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brand-shots img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 16px; padding: 8px;
  background: #E9ECE6; transition: transform .5s var(--ease);
}
.brand-card:hover .brand-shots img:nth-child(odd) { transform: translateY(-6px) rotate(-2deg); }
.brand-card:hover .brand-shots img:nth-child(even) { transform: translateY(4px) rotate(2deg); }
.brand-tag { justify-self: start; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 13px; color: var(--muted); }

/* rules icon (replaces the old RTL tile) */
.ico-rules { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }

@media (max-width: 900px) {
  .brands-in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand-shots { grid-template-columns: repeat(2, 1fr); }
}

/* generic garment in the phone mockups — no real brand's product */
.tee-ico { position: relative; display: block; background: linear-gradient(160deg, #E4E9E2, #D3DBD5); }
.tee-ico::after {
  content: ""; position: absolute; inset: 9px 6px; background: #2B3430;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 3 3 5.5l1.8 4.3 2.2-.9V21h10V8.9l2.2.9L21 5.5 15.5 3c-.5 1.5-1.9 2.5-3.5 2.5S9 4.5 8.5 3Z'/%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'%3E%3Cpath d='M8.5 3 3 5.5l1.8 4.3 2.2-.9V21h10V8.9l2.2.9L21 5.5 15.5 3c-.5 1.5-1.9 2.5-3.5 2.5S9 4.5 8.5 3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tee-ico.alt::after { background: var(--acc); }

/* ───────────── logo wall (replaces the product-photo brand card) ───────────── */
.brands .sec-head { margin-bottom: 34px; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1000px; margin: 0 auto; }
.logo-tile {
  flex: 0 1 220px; height: 96px; display: grid; place-items: center; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .3s;
}
.logo-tile:hover { border-color: var(--line-hi); transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-width: 100%; max-height: 34px; width: auto; height: auto; opacity: .85; transition: opacity .3s; }
.logo-tile:hover img { opacity: 1; }
:root[data-theme="dark"] .logo-tile img { filter: invert(1); }
.logo-tile .wm { color: var(--fg); opacity: .8; white-space: nowrap; line-height: 1; transition: opacity .3s; }
.logo-tile:hover .wm { opacity: 1; }
@media (max-width: 620px) { .logo-tile { flex-basis: calc(50% - 7px); height: 80px; padding: 14px; } }
.logo-tile { min-width: 0; overflow: hidden; }
.logo-tile .wm, .logo-tile img { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 620px) {
  .logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-tile .wm { transform: scale(.72); }
  .logo-tile img { max-height: 26px; }
}

/* ───────────── phone screens: status bar, progress, follows page language ───────────── */
.ph-scr { padding-top: 16px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 26px; margin: 0 6px 12px; font: 600 12px/1 var(--body); direction: ltr; }
.ph-sig { width: 34px; height: 11px; position: relative; }
.ph-sig::before { content: ""; position: absolute; left: 0; bottom: 0; width: 14px; height: 10px; background: currentColor;
  clip-path: polygon(0 100%, 20% 100%, 20% 70%, 30% 70%, 30% 100%, 45% 100%, 45% 45%, 55% 45%, 55% 100%, 70% 100%, 70% 20%, 80% 20%, 80% 100%, 100% 100%, 100% 0, 90% 0, 90% 100%); }
.ph-sig::after { content: ""; position: absolute; right: 0; top: 0; width: 17px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px;
  background: linear-gradient(90deg, currentColor 70%, transparent 70%) 1.5px 1.5px / calc(100% - 3px) calc(100% - 3px) no-repeat; }
.ph-logo .lmark { width: 14px; height: 14px; color: var(--bg); }
.ph-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph-steps i { height: 4px; border-radius: 4px; background: var(--line-hi); }
.ph-steps i.on { background: var(--lime); }
.ph-scr .ph-title { margin-top: 2px; }
.sizes { direction: ltr; }
:root[dir="rtl"] .sizes { justify-content: flex-end; }


@media (max-width: 420px) {
  .lnav-act #theme { display: none; }
  /* The mark alone still says whose site this is (the link keeps its
     aria-label), and the wordmark is the widest thing in the row. Without
     this, Sign in plus Get started ran 28px off a 360px screen. */
  .lbrand > span:not(.lmark) { display: none; }
}
