/* Kabsa website: the apps' cartoon palette (packages/kabsa_map/lib/src/game_theme.dart) */
@font-face {
  font-family: "Baloo";
  src: url("assets/fonts/BalooBhaijaan2.woff2") format("woff2"),
       url("assets/fonts/BalooBhaijaan2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #3B2C5E;
  --cream: #FFF6E3;
  --teal: #1FA3A8;
  --lamp: #FFB23F;
  --lamp-hi: #FFD36B;
  --coral: #FF6B4A;
  --muted: #7A6E93;
  --green: #43B04A;
  --night: #10203A;      /* the page background: deep midnight blue */
  --night-hi: #1E3C66;   /* top of the hero sky */
  --night-text: #ECE7F7; /* text that sits straight on it */
  --night-muted: #A9A1C2;
  --outline: 3px solid var(--ink);
  --radius: 26px;
  --lift: 6px;
  /* a solid ink outline drawn with shadows: works in every browser, unlike text-stroke + paint-order */
  --ink-ring: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink),
              1.5px 1.5px var(--ink), -1.5px 1.5px var(--ink), 1.5px -1.5px var(--ink), -1.5px -1.5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Baloo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; }
p { margin: 0; }

.container { width: calc(100% - 32px); max-width: 1140px; margin-left: auto; margin-right: auto; }

/* ───── Building blocks ───── */
.panel, .card {
  background: #fff;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 var(--lift) 0 var(--ink);
}

.chunky {
  color: #fff;
  -webkit-text-stroke: 0.09em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--ink);
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  min-height: 52px;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--lamp-hi), var(--lamp));
  border: var(--outline);
  border-radius: 999px;
  box-shadow: 0 var(--lift) 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: transform .09s, box-shadow .09s;
  position: relative;
  white-space: nowrap;
}
.btn:active { transform: translateY(calc(var(--lift) - 1px)); box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn:focus-visible, .lang-btn:focus-visible, .nav-links a:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px #fff;
}
.btn-sm { min-height: 44px; padding: 6px 18px; font-size: 1rem; --lift: 4px; }
.btn-lg { min-height: 62px; padding: 14px 30px; font-size: 1.25rem; }
.btn-ghost { background: #fff; }
.btn-block { width: 100%; }
.btn-soon, .btn-soon:hover, .btn-soon:active {
  background: #E4DEEF; color: var(--muted); cursor: default;
  transform: none; box-shadow: 0 var(--lift) 0 var(--ink);
}
.btn-soon .ico { display: none; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ───── Nav ───── */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; }
.nav {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 1140px; margin-left: auto; margin-right: auto;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  --lift: 4px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 999px; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); border: var(--outline);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.logo-badge img { width: 38px; }
.logo-word { font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
.nav-links { display: flex; gap: 6px; margin-left: auto; margin-right: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: inherit; font-weight: 800; color: var(--ink);
  background: var(--cream); border: var(--outline); border-radius: 999px;
  min-height: 44px; padding: 4px 14px; cursor: pointer;
}

/* ───── Hero ───── */
.hero { position: relative; padding: 40px 0 120px; margin-top: -72px; padding-top: 112px; isolation: isolate; overflow: hidden; }
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--night-hi), var(--night) 85%); overflow: hidden; }
.rays {
  position: absolute; left: 50%; top: 40%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: repeating-conic-gradient(rgba(255, 255, 255, .05) 0 8deg, transparent 8deg 20deg);
  animation: spin 90s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
}
.sky-cloud {
  position: absolute; left: -220px; width: 200px; height: 96px; opacity: .2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 96'%3E%3Cpath d='M30 84H170A28 28 0 0 0 160 32A40 40 0 0 0 86 24A30 30 0 0 0 34 42A22 22 0 0 0 30 84Z' fill='%23fff' stroke='%233B2C5E' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: drift 70s linear infinite;
}
.sc1 { top: 84px; }
.sc2 { bottom: 150px; scale: .75; animation-duration: 90s; animation-delay: -45s; }
.sc3 { top: 40%; scale: .55; animation-duration: 80s; animation-delay: -20s; opacity: .12; }

.hero-inner {
  width: calc(100% - 32px); max-width: 1140px; margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-block; padding: 4px 16px; margin-bottom: 18px;
  background: #fff; border: var(--outline); border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 0 var(--ink);
  animation: bob 3s ease-in-out infinite;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-sub { margin-top: 20px; font-size: 1.2rem; max-width: 34em; font-weight: 500; color: var(--night-text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-weight: 700; color: var(--night-muted); }

/* the live scene */
.scene-frame {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center;
  border: 4px solid var(--ink); border-radius: 36px; overflow: hidden;
  box-shadow: 0 10px 0 var(--ink), 0 24px 40px rgba(0, 0, 0, .5);
  rotate: 2deg; background: #93DB6E;
  animation: frame-in .8s cubic-bezier(.3, 1.6, .5, 1) both;
}
.scene-svg { width: 100%; height: 100%; display: block; }
.zone { fill: rgba(255, 107, 74, .16); stroke: var(--coral); stroke-width: 4; stroke-dasharray: 12 9; animation: march 1.6s linear infinite; transition: fill .3s; }
.home-label { font: 800 19px "Baloo", sans-serif; fill: var(--ink); stroke: #fff; stroke-width: 6px; paint-order: stroke; stroke-linejoin: round; }
.bubble-text { font: 800 22px "Baloo", sans-serif; fill: var(--ink); direction: rtl; unicode-bidi: plaintext; }
.bubble-pop, .burst-pop { transform-box: fill-box; transform: scale(0); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; }
.bubble-pop { transform-origin: 50% 100%; }
.burst-pop { transform-origin: 50% 50%; }
#bubble.show .bubble-pop { transform: scale(1); opacity: 1; }
.burst-text { font: 800 24px "Baloo", sans-serif; fill: var(--coral); stroke: var(--ink); stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; }
.cloud { animation: cloud 34s linear infinite; }
.cl1 { --y: 70px; }
.cl2 { --y: 430px; animation-duration: 46s; animation-delay: -20s; }

.scene-frame.alarm .zone { fill: rgba(255, 107, 74, .38); animation: march .5s linear infinite, zone-pulse .5s ease-in-out infinite alternate; }
.scene-frame.alarm .burst-pop { transform: scale(1); opacity: 1; animation: wobble .25s ease-in-out infinite alternate; }
.scene-frame.alarm .home { animation: shake .12s linear infinite; transform-box: fill-box; transform-origin: 50% 100%; }

.toast {
  position: absolute; top: 14px; left: 50%; width: min(92%, 380px);
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; background: #fff; border: var(--outline); border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  opacity: 0; transform: translate(-50%, -150%);
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .2s;
}
.toast img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.toast strong { display: block; font-size: .95rem; }
.toast span { display: block; font-size: .95rem; line-height: 1.3; }
.scene-frame.alarm .toast { opacity: 1; transform: translate(-50%, 0); }

.status {
  position: absolute; left: 0; right: 0; bottom: 16px; margin-left: auto; margin-right: auto; width: min(88%, 360px);
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; --lift: 5px;
}
[dir="rtl"] .status { padding: 8px 12px 8px 18px; }
.status img { width: 64px; flex: none; }
.status > div { min-width: 0; }
.status strong { display: block; font-size: 1.15rem; line-height: 1.2; transition: color .2s; }
.status span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.scene-frame.alarm .status strong { color: var(--coral); }

.hero-hill { position: absolute; left: -5px; bottom: -3px; width: calc(100% + 10px); height: 110px; }

/* ───── Sections ───── */
.section { padding: 80px 0; position: relative; }
section[id] { scroll-margin-top: 90px; }
.kicker {
  display: table; margin: 0 auto 10px; padding: 2px 16px;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
  background: var(--ink); color: #fff; border-radius: 999px;
}
.kicker-light { background: #fff; color: var(--ink); border: var(--outline); }
.section-title { text-align: center; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step, .feature { padding: 26px; position: relative; transition: transform .2s; }
.step-num {
  position: absolute; top: -18px; inset-inline-start: -14px;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 1.5rem;
  text-shadow: var(--ink-ring);
  border: var(--outline); box-shadow: 0 4px 0 var(--ink);
}
.step-art {
  height: 130px; margin-bottom: 18px; border-radius: 18px; border: var(--outline);
  background: #A6E47E; display: grid; place-items: center; overflow: hidden; position: relative;
}
.step-art svg { width: 150px; height: 125px; }
.step-art-road { background: linear-gradient(#A6E47E 0 30%, var(--ink) 30% 32%, #6E6787 32% 68%, var(--ink) 68% 70%, #A6E47E 70%); }
.step-art-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 4px;
  background: repeating-linear-gradient(90deg, #FFE27A 0 18px, transparent 18px 32px);
}
.step-truck { width: 110px; position: absolute; z-index: 1; animation: roll 4s linear infinite; }
.ring-phone { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.ring-emoji { font-size: 3rem; animation: ring 1s ease-in-out infinite; position: relative; z-index: 1; }
.ring-wave { position: absolute; inset: 0; border: 4px solid var(--coral); border-radius: 50%; animation: wave 1.6s ease-out infinite; }
.ring-wave.w2 { animation-delay: .8s; }
.step h3, .feature h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p, .feature p { font-size: 1.05rem; }

.section-teal {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 22px, transparent 22px 44px),
    var(--teal);
  border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-ico {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px;
  font-size: 1.9rem; border-radius: 18px; border: var(--outline);
  background: #F3F0F8;
  background: color-mix(in srgb, var(--c) 22%, #fff);
  box-shadow: 0 4px 0 var(--ink);
}
.feature:nth-child(odd) { rotate: -.6deg; }
.feature:nth-child(even) { rotate: .6deg; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.app { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s; padding: 0 0 22px; }
.app-head {
  position: relative; padding: 26px 24px 22px; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .25), transparent 60%),
    var(--accent);
  border-bottom: var(--outline);
}
.app-tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 0 12px; font-size: .85rem; font-weight: 800; border-radius: 999px;
  background: #fff; color: var(--ink); border: 2.5px solid var(--ink);
}
.app-icon {
  width: 104px; height: 104px; margin: 18px auto 12px; border-radius: 50%;
  border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: #fff;
  animation: bob 3.2s ease-in-out infinite;
}
.app:nth-child(2) .app-icon { animation-delay: -1s; }
.app:nth-child(3) .app-icon { animation-delay: -2s; }
.app-icon-admin { display: grid; place-items: center; background: #FFE6DF; position: relative; }
.app-icon-admin img { width: 78px; }
.app-icon-admin b {
  position: absolute; top: -8px; right: -8px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lamp); color: var(--ink);
  border: 3px solid var(--ink); font-size: 1.2rem;
}
.app h3 { font-size: 2rem; text-shadow: var(--ink-ring), 0 5px 0 var(--ink); }
.app-head p {
  display: inline-block; margin-top: 10px; padding: 4px 14px;
  font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .92); border-radius: 14px;
}
.ticks { list-style: none; margin: 0; padding: 22px 24px; flex: 1; display: grid; gap: 10px; align-content: start; }
.ticks li { position: relative; padding-inline-start: 36px; font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; border: 2.5px solid var(--ink);
}
.app .btn { width: calc(100% - 48px); margin-left: 24px; margin-right: 24px; }
.app-meta { text-align: center; margin-top: 12px; font-size: .9rem; color: var(--muted); font-weight: 600; padding-left: 16px; padding-right: 16px; }
.app-featured { transform: translateY(-14px); }

/* install */
.section-sun { background: var(--night); }
.install { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.install li { position: relative; padding: 30px 24px 24px; }
.install li:nth-child(2) .step-num { background: var(--teal); }
.install li:nth-child(3) .step-num { background: var(--green); }
.install h3 { font-size: 1.4rem; margin-bottom: 6px; }
.tip { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding: 18px 24px; background: #FFF0C2; --lift: 5px; }
.tip-ico { font-size: 2rem; flex: none; }
.tip p { font-weight: 600; }
.tip .tip-small { margin-top: 6px; font-size: .92rem; font-weight: 500; color: #5E5378; }

/* cta */
.cta { background: var(--ink); color: #fff; padding: 70px 0 80px; border-top: 5px solid var(--ink); overflow: hidden; }
.cta-inner { text-align: center; display: grid; justify-items: center; gap: 28px; }
.cta h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); -webkit-text-stroke-color: #000; text-shadow: 0 .09em 0 #000; }
.cta-road {
  width: 100%; height: 64px; position: relative; margin-bottom: 28px;
  background: #6E6787; border-top: 4px solid #000; border-bottom: 4px solid #000;
}
.cta-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 4px;
  background: repeating-linear-gradient(90deg, #FFE27A 0 22px, transparent 22px 40px);
}
.cta-truck { position: absolute; left: 0; width: 120px; top: 6px; z-index: 1; animation: cross 9s linear infinite; }

.footer { background: var(--ink); color: #fff; padding: 22px 0 30px; border-top: 2px solid rgba(255, 255, 255, .12); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .logo-badge { border-color: #fff; }
.footer p { opacity: .85; font-weight: 600; }

/* ───── Privacy policy page ───── */
.legal-hero { padding: 40px 0 36px; text-align: center; }
.legal-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.legal-hero p { margin-top: 10px; color: var(--night-muted); font-weight: 700; }
.legal { width: calc(100% - 32px); max-width: 860px; margin: 0 auto 72px; padding: 32px clamp(20px, 5vw, 48px) 40px; line-height: 1.7; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 1.04rem; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 0; padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: #13777B; font-weight: 700; }
.legal-summary { background: #FFF0C2; border: var(--outline); border-radius: 18px; padding: 16px 20px; margin-bottom: 8px; }
.legal-summary ul { margin-top: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .98rem; }
.legal-table th, .legal-table td { text-align: start; vertical-align: top; padding: 9px 10px; border-bottom: 2px solid #ECE7F3; }
.legal-table th { background: #F3F0F8; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.fill-in { background: #FFE27A; border-radius: 6px; padding: 0 6px; font-weight: 800; }
.back-link { font-weight: 800; text-decoration: none; padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; margin-right: auto; }
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="ar"] [data-lang="ar"] { display: block; }
html[lang="en"] span[data-lang="en"], html[lang="ar"] span[data-lang="ar"] { display: inline; }
.footer a { color: #fff; }

/* Hover effects only on devices with a real pointer: on phones they would stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 calc(var(--lift) + 2px) 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55); }
  .btn:active { transform: translateY(calc(var(--lift) - 1px)); box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55); }
  .btn-soon:hover, .btn-soon:active { transform: none; box-shadow: 0 var(--lift) 0 var(--ink); }
  .nav-links a:hover { background: var(--cream); }
  .lang-btn:hover { background: #fff; }
  .step:hover, .feature:hover, .app:hover { transform: translateY(-6px) rotate(-.6deg); }
  .app-featured:hover { transform: translateY(-20px) rotate(-.6deg); }
}

/* Sections out of view stop animating (script.js adds .paused), to spare the phone's battery. */
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ───── RTL tweaks ───── */
[dir="rtl"] .hero-sub, [dir="rtl"] .step p, [dir="rtl"] .feature p { line-height: 1.7; }
[dir="rtl"] .chunky { letter-spacing: 0; }
[dir="rtl"] .scene-frame { rotate: -2deg; }
[dir="rtl"] .app-icon-admin b { right: auto; left: -8px; }
[dir="rtl"] .cta-truck { animation-name: cross-rtl; }
[dir="rtl"] .step-truck { animation-name: roll-rtl; }

/* ───── Animations ───── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 400px)); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes march { to { stroke-dashoffset: -42; } }
@keyframes zone-pulse { to { stroke-width: 7; } }
@keyframes wobble { from { rotate: -4deg; scale: .95; } to { rotate: 4deg; scale: 1.05; } }
@keyframes shake { 0% { translate: 0 0; } 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
@keyframes cloud { from { transform: translate(-180px, var(--y)); } to { transform: translate(720px, var(--y)); } }
@keyframes frame-in { from { scale: .6; opacity: 0; rotate: -8deg; } }
@keyframes roll { from { transform: translateX(-180px); } to { transform: translateX(180px); } }
@keyframes roll-rtl { from { transform: translateX(180px) scaleX(-1); } to { transform: translateX(-180px) scaleX(-1); } }
@keyframes ring { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
@keyframes wave { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes cross { from { transform: translateX(-140px); } to { transform: translateX(100vw); } }
@keyframes cross-rtl { from { transform: translateX(100vw) scaleX(-1); } to { transform: translateX(-140px) scaleX(-1); } }

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .scene-frame { max-width: 480px; }
  .steps, .features, .apps, .install { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .app-featured { transform: none; }
  .features { grid-template-columns: 1fr 1fr; max-width: none; }
}
@media (max-width: 960px) and (hover: hover) and (pointer: fine) {
  .app-featured:hover { transform: translateY(-6px) rotate(-.6deg); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .logo-word { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { white-space: normal; }
  .footer-inner { justify-content: center; text-align: center; }
  .rays { animation: none; }
}
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav .logo-word { display: none; }
  .logo-badge { width: 38px; height: 38px; }
  .logo-badge img { width: 32px; }
  /* keep the two map overlays small so the map stays visible */
  .toast { top: 10px; padding: 6px 10px; gap: 8px; }
  .toast img { width: 32px; height: 32px; border-radius: 9px; }
  .toast strong { display: none; }
  .toast span { font-size: .85rem; }
  .status { bottom: 10px; padding: 6px 12px; gap: 10px; }
  [dir="rtl"] .status { padding: 6px 12px; }
  .status img { width: 46px; }
  .status strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .status span { display: none; }
}
/* Phones held sideways: map beside the text, and the nav scrolls away to free the short screen. */
@media (orientation: landscape) and (max-height: 500px) {
  .nav-wrap { position: static; }
  .hero { margin-top: 0; padding-top: 32px; padding-bottom: 100px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; text-align: start; gap: 24px; }
  .hero-ctas { justify-content: flex-start; }
  .hero-ctas .btn { width: auto; }
  .hero-sub { margin-left: 0; margin-right: 0; }
  .scene-frame { max-width: min(100%, calc(100vh - 40px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}
