/* Live90 — landing page.
 *
 * Every colour is the app's own (app/lib/core/theme/app_colors.dart), so the
 * page and the app read as one product: AppBrandColors for the greens,
 * AppDarkColors / AppLightColors for the two themes. Layout uses logical
 * properties throughout (inline-start/end), so Arabic mirrors by itself.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --lime: #AFF200;
  --primary: #7BC500;
  --deep: #4C7A00;
  --on-primary: #0A0B0F;
  --live: #FF3B30;
  --gold: #F5A623;
  --gradient: linear-gradient(135deg, var(--lime), var(--primary));

  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080D0A;
  --bg-2: #0B120E;
  --surface: #121A15;
  --raised: #1B251F;
  --border: #26322B;
  --text: #F3F6F2;
  --dim: #98A59C;
  --muted: #55605A;
  --glass: rgba(18, 26, 21, .62);
  --glass-border: rgba(255, 255, 255, .08);
  --card: linear-gradient(180deg, rgba(27, 37, 31, .78), rgba(18, 26, 21, .78));
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --phone-shadow: 0 40px 90px -25px rgba(0, 0, 0, .85), 0 0 80px -10px rgba(123, 197, 0, .22);
  --wave-ink: 123, 197, 0;
  --wave-cap: .16;
  --brand-text: linear-gradient(120deg, var(--lime), var(--primary));
  --ninety: rgba(175, 242, 0, .07);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F6F1;
  --bg-2: #EAF0E6;
  --surface: #FFFFFF;
  --raised: #F0F4EE;
  --border: #E1E7DE;
  --text: #111712;
  --dim: #5A665E;
  --muted: #A3ADA6;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(17, 23, 18, .08);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
  --shadow: 0 30px 70px -35px rgba(40, 70, 20, .35);
  --phone-shadow: 0 40px 80px -30px rgba(30, 60, 10, .45), 0 0 70px -15px rgba(123, 197, 0, .35);
  --wave-ink: 76, 122, 0;
  --wave-cap: .3;
  --brand-text: linear-gradient(120deg, #6FAE00, var(--deep));
  --ninety: rgba(76, 122, 0, .07);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
html[lang="ar"] body { font-family: 'Tajawal', 'Inter', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 10px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

.text-brand {
  background: var(--brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

[data-theme="dark"] .logo--light,
[data-theme="light"] .logo--dark,
[data-theme="dark"] .when-light,
[data-theme="light"] .when-dark { display: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), filter .3s;
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--primary {
  background: var(--gradient); color: var(--on-primary);
  box-shadow: 0 10px 30px -10px rgba(123, 197, 0, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(123, 197, 0, .8); }

.icon-btn {
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--glass-border); background: var(--glass);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  transition: background .3s, transform .3s var(--ease-out);
}
.icon-btn svg { font-size: 19px; }
.icon-btn:hover { transform: translateY(-1px); background: var(--raised); }

/* store badges: drawn here in the brand's own shape rather than pasted */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px 0 18px; border-radius: 18px;
  background: #0A0B0F; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
[dir="rtl"] .store { padding: 0 18px 0 22px; }
.store::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.store:hover { transform: translateY(-3px); border-color: rgba(175, 242, 0, .6); box-shadow: 0 18px 40px -14px rgba(123, 197, 0, .45); }
.store:hover::after { transform: translateX(120%); }
.store__icon { font-size: 28px; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store__text small { font-size: 11.5px; opacity: .78; font-weight: 500; }
.store__text b { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
[data-theme="light"] .store { background: #111712; }

/* ------------------------------------------------------------------- nav */
.nav { position: fixed; inset-inline: 0; top: 14px; z-index: 50; padding-inline: 16px; }
.nav__bar {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  height: 66px; padding: 0 10px 0 22px; border-radius: 999px;
  transition: box-shadow .4s, background .4s;
}
[dir="rtl"] .nav__bar { padding: 0 22px 0 10px; }
.nav.is-scrolled .nav__bar { box-shadow: var(--shadow); }
.nav__brand .logo { height: 26px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--dim);
  transition: color .25s, background .25s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: var(--raised); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: none; }
.nav__sheet {
  max-width: var(--container); margin: 10px auto 0; border-radius: 26px;
  padding: 12px; display: flex; flex-direction: column; gap: 4px;
  animation: sheet .35s var(--ease-out);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.btn) { padding: 14px 16px; border-radius: 16px; font-weight: 600; }
.nav__sheet a:not(.btn):hover { background: var(--raised); }
.nav__sheet .btn { margin-top: 6px; }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  isolation: isolate;
}
.hero__wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 50%, rgba(123, 197, 0, .22), transparent 70%),
    radial-gradient(45% 40% at 10% 10%, rgba(175, 242, 0, .1), transparent 70%),
    radial-gradient(70% 50% at 50% 115%, rgba(76, 122, 0, .25), transparent 70%);
}
[dir="rtl"] .hero__glow { transform: scaleX(-1); }
[data-theme="light"] .hero__glow { opacity: .8; }
.hero__ninety {
  position: absolute; z-index: -1; pointer-events: none;
  inset-inline-end: -4vw; top: 50%; transform: translateY(-50%);
  font: 800 clamp(260px, 44vw, 680px)/.8 'Inter', sans-serif; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--ninety);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 40px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  background: var(--glass); border: 1px solid rgba(123, 197, 0, .35);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); position: relative; }
.dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--live); opacity: 0; animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__title {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6.2vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em;
}
html[lang="ar"] .hero__title { line-height: 1.22; letter-spacing: 0; font-size: clamp(36px, 4vw, 58px); }
.hero__title span { display: block; text-wrap: balance; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--dim); max-width: 520px; margin: 0 0 30px; }
.hero__points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--dim); font-size: 14px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { font-size: 16px; color: var(--primary); }

/* intro choreography: each line rises in after the last */
.intro { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the stage */
.hero__stage { position: relative; height: min(720px, 82svh); perspective: 1400px; }
.stage__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }

.phone {
  --pw: 280px;
  position: relative; width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(145deg, #2a332e, #050806 40%, #050806 70%, #1d2621);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .06);
}
.phone::before { /* side buttons */
  content: ''; position: absolute; top: 22%; inset-inline-end: -3px; width: 3px; height: 13%;
  border-radius: 0 3px 3px 0; background: #1a221d;
}
[dir="rtl"] .phone::before { border-radius: 3px 0 0 3px; }
.phone img { width: 100%; height: auto; border-radius: calc(var(--pw) * .135); background: var(--surface); }
[data-theme="light"] .phone { background: linear-gradient(145deg, #3b4540, #0b100d 40%, #0b100d 70%, #2b3530); }

.phone--front { --pw: clamp(240px, 22vw, 300px); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; animation: float 7s ease-in-out infinite; }
.phone--back { --pw: clamp(200px, 18vw, 250px); position: absolute; top: 50%; z-index: 1; opacity: .92; }
.phone--left { left: 50%; transform: translate(-112%, -46%) rotate(-9deg); animation: float-l 8s ease-in-out infinite; }
.phone--right { left: 50%; transform: translate(12%, -46%) rotate(9deg); animation: float-r 9s ease-in-out infinite; }
.phone--back img { filter: saturate(.9); }

@keyframes float   { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 12px)); } }
@keyframes float-l { 0%,100% { transform: translate(-112%, -46%) rotate(-9deg); } 50% { transform: translate(-112%, calc(-46% + 10px)) rotate(-8deg); } }
@keyframes float-r { 0%,100% { transform: translate(12%, -46%) rotate(9deg); } 50% { transform: translate(12%, calc(-46% + 12px)) rotate(10deg); } }

/* floating cards */
.float { position: absolute; z-index: 5; border-radius: 22px; box-shadow: var(--shadow); }
.float--score { top: 0; inset-inline-start: -2%; padding: 14px 16px; min-width: 230px; animation: bob 6s ease-in-out infinite; }
.float--question { bottom: 15%; inset-inline-end: -6%; padding: 12px 16px 12px 12px; display: flex; align-items: center; gap: 12px; max-width: 280px; animation: bob 7s ease-in-out -2s infinite; }
[dir="rtl"] .float--question { padding: 12px 12px 12px 16px; }
.float--points { top: 46%; inset-inline-start: 2%; padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 10px; animation: toast 6s var(--ease-out) infinite; }
[dir="rtl"] .float--points { padding: 10px 10px 10px 16px; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes toast {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(.92); }
  16%, 70% { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}

.score__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 59, 48, .14); color: #ff6a61; font-weight: 700; }
.live-tag .dot { width: 6px; height: 6px; }
.score__min { color: var(--primary); font-weight: 700; font-family: 'Inter', sans-serif; direction: ltr; }
.score__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.score__team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; min-width: 60px; }
.score__team img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.score__num { font: 800 30px/1 'Inter', sans-serif; letter-spacing: -.02em; display: inline-flex; gap: 8px; align-items: center; }
.score__num i { font-style: normal; color: var(--muted); font-weight: 500; }
.score__num.is-goal { animation: goal 1s var(--ease-out); }
@keyframes goal { 0% { transform: scale(1); } 30% { transform: scale(1.25); color: var(--lime); } 100% { transform: scale(1); } }

.q__ring {
  --p: 1; width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), var(--raised) 0);
  position: relative; font: 700 12.5px 'Inter', sans-serif; color: var(--gold);
}
.q__ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.q__ring span { position: relative; }
.q__body { display: flex; flex-direction: column; gap: 5px; }
.q__body b { font-size: 14.5px; line-height: 1.35; }
.q__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #2b1a00; font-size: 11.5px; font-weight: 700; }
.q__tag svg { font-size: 12px; }

.pts__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: var(--on-primary); display: grid; place-items: center; font-size: 20px; }
.pts__text { display: flex; flex-direction: column; line-height: 1.2; }
.pts__text b { font: 800 20px 'Inter', sans-serif; color: var(--primary); }
.pts__text small { font-size: 12px; color: var(--dim); }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid var(--border); display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--primary); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------- leagues */
.leagues { border-block: 1px solid var(--border); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
/* Left to right on the Arabic page too: in a right-to-left box the track overflowed leftwards, so sliding it left emptied the strip until the loop jumped back. */
.marquee { direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 40s linear infinite; direction: ltr; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; padding-inline: 26px; font-size: 18px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.marquee__item svg { color: var(--primary); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- section */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head--start { text-align: start; margin-inline: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section__title { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
html[lang="ar"] .section__title { letter-spacing: 0; line-height: 1.3; }
.section__lead { margin: 18px auto 0; color: var(--dim); font-size: 17px; max-width: 560px; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 28px; background: var(--card); border: 1px solid var(--border);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.card::before { /* the pointer-following light */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(175, 242, 0, .12), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(123, 197, 0, .35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card--hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding-bottom: 0; }
.card--hero h3 { font-size: 26px; }
.card--wide { grid-column: span 2; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.badge {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 24px;
  color: var(--on-primary); background: var(--gradient);
  box-shadow: 0 10px 24px -10px rgba(123, 197, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.badge--lg { width: 60px; height: 60px; border-radius: 20px; font-size: 28px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.ticks svg { font-size: 18px; color: var(--primary); }

.card__phone { margin-top: auto; padding-top: 26px; display: flex; justify-content: center; height: 330px; overflow: hidden; }
.phone--card { --pw: 260px; transform: translateY(0); transition: transform .8s var(--ease-out); }
.card--hero:hover .phone--card { transform: translateY(-14px); }

.stories { display: flex; flex: none; }
.story {
  width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: var(--gradient);
  margin-inline-start: -12px; box-shadow: 0 0 0 3px var(--surface);
  transition: transform .4s var(--ease-out);
}
.story:first-child { margin-inline-start: 0; }
.story img { width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: contain; padding: 8px; border: 2px solid var(--surface); }
.story--live { background: linear-gradient(135deg, #FF3B30, #F5A623); }
.card--wide:hover .story { transform: translateY(-4px); }
.card--wide:hover .story:nth-child(2) { transition-delay: .05s; }
.card--wide:hover .story:nth-child(3) { transition-delay: .1s; }
.card--wide:hover .story:nth-child(4) { transition-delay: .15s; }

/* ------------------------------------------------------------------ tour */
.tour { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.tour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tour__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tour__item { position: relative; border-radius: 22px; transition: background .4s; }
.tour__item button { width: 100%; display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; text-align: start; }
.tour__item b { display: block; font-size: 18px; margin-bottom: 2px; }
.tour__item small { display: block; font-size: 14.5px; color: var(--dim); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.tour__num { font: 700 13px 'Inter', sans-serif; color: var(--muted); padding-top: 4px; transition: color .3s; }
.tour__item.is-active { background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.tour__item.is-active small { max-height: 80px; opacity: 1; }
.tour__item.is-active .tour__num { color: var(--primary); }
.tour__bar { position: absolute; inset-inline: 20px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; }
.tour__item.is-active .tour__bar { opacity: 1; }
.tour__bar i { display: block; height: 100%; width: 0; background: var(--gradient); }
.tour__item.is-active .tour__bar i { animation: fill var(--tour-ms, 5000ms) linear forwards; }
[dir="rtl"] .tour__bar i { margin-inline-start: 0; }
@keyframes fill { to { width: 100%; } }
.tour.is-paused .tour__item.is-active .tour__bar i { animation-play-state: paused; }

.tour__stage { position: relative; display: grid; place-items: center; min-height: 680px; }
.tour__halo { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 197, 0, .32), transparent 65%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.phone--tour { --pw: 310px; }
.phone--tour .tour__img { position: absolute; top: calc(var(--pw) * .032); inset-inline: calc(var(--pw) * .032); width: calc(100% - var(--pw) * .064); opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.phone--tour .tour__img:first-child { position: relative; inset: auto; width: 100%; }
.phone--tour .tour__img.is-shown { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.steps::before { /* the dashed path the three steps sit on */
  content: ''; position: absolute; top: 58px; inset-inline: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 16px);
  opacity: .45; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: dash 1.2s linear infinite;
}
@keyframes dash { to { background-position: 16px 0; } }
.step { position: relative; text-align: center; padding: 34px 26px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); }
.step .badge { margin: 0 auto; position: relative; z-index: 1; }
.step__num { position: absolute; top: 14px; inset-inline-end: 20px; font: 800 44px 'Inter', sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--border); }
.step h3 { margin: 20px 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--card); border: 1px solid var(--border); transition: border-color .3s; }
.faq details[open] { border-color: rgba(123, 197, 0, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { font-size: 20px; color: var(--primary); transition: transform .4s var(--ease-out); flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--dim); font-size: 15.5px; animation: open .45s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------- cta */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px;
  padding: clamp(36px, 6vw, 70px); border-radius: 40px;
  background: linear-gradient(135deg, #0E1A0F, #13240F 50%, #0A120B);
  border: 1px solid rgba(123, 197, 0, .3);
  color: #F3F6F2;
}
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 85% 60%, rgba(123, 197, 0, .38), transparent 70%), radial-gradient(40% 50% at 0% 0%, rgba(175, 242, 0, .12), transparent 70%); }
[dir="rtl"] .cta__glow { transform: scaleX(-1); }
.cta__title { text-wrap: balance; margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -.03em; }
html[lang="ar"] .cta__title { letter-spacing: 0; line-height: 1.3; }
.cta .text-brand { background: linear-gradient(120deg, var(--lime), var(--primary)); -webkit-background-clip: text; background-clip: text; }
.cta p { color: #B6C2B9; font-size: 17px; margin: 0 0 28px; }
.cta__phone { position: relative; height: 380px; }
.phone--cta { --pw: 250px; position: absolute; left: 50%; top: 10px; transform: translateX(-50%) rotate(-6deg); }
[dir="rtl"] .phone--cta { transform: translateX(-50%) rotate(6deg); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); padding: 50px 0 34px; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer__brand .logo { height: 26px; width: auto; }
.footer__brand p { color: var(--dim); margin: 12px 0 0; font-size: 14.5px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: var(--dim); }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__base { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__marks { max-width: 520px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--hero { grid-row: auto; }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .stores, .hero__points { justify-content: center; }
  .hero__stage { height: 600px; margin-top: 10px; }
  .hero__ninety { inset-inline-end: 50%; translate: 50% 0; top: 72%; }
  [dir="rtl"] .hero__ninety { translate: -50% 0; }
  .float--score { inset-inline-start: 0; top: 4%; }
  .float--question { inset-inline-end: 0; bottom: 6%; }
  .float--points { inset-inline-start: 0; top: 58%; }
  .tour__grid { grid-template-columns: 1fr; gap: 30px; }
  .tour__stage { min-height: 560px; order: -1; }
  .phone--tour { --pw: 270px; }
  .tour__halo { width: 380px; height: 380px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta .stores { justify-content: center; }
  .cta__phone { height: 300px; margin-bottom: -70px; }
}

@media (max-width: 640px) {
  .nav { top: 10px; padding-inline: 10px; }
  .nav__bar { height: 58px; gap: 8px; }
  .nav__cta, #lang-toggle .icon-btn__label { display: none; }
  .nav__menu { display: inline-flex; }
  .icon-btn { height: 40px; min-width: 40px; padding: 0 10px; }
  .hero__stage { height: 520px; }
  .phone--front { --pw: 230px; }
  .phone--back { --pw: 180px; }
  .phone--left { transform: translate(-100%, -44%) rotate(-9deg); animation: none; }
  .phone--right { transform: translate(0%, -44%) rotate(9deg); animation: none; }
  .float--score { min-width: 0; padding: 10px 12px; transform: scale(.88); transform-origin: top left; }
  [dir="rtl"] .float--score { transform-origin: top right; }
  .float--question { max-width: 230px; transform: scale(.88); transform-origin: bottom right; }
  [dir="rtl"] .float--question { transform-origin: bottom left; }
  .bento { grid-template-columns: 1fr; }
  .card--hero, .card--wide { grid-column: auto; }
  .card__row { flex-direction: column; align-items: flex-start; }
  .store { height: 56px; min-width: 210px; justify-content: center; }
  .footer__grid { flex-direction: column; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro, [data-reveal] { opacity: 1; transform: none; }
  .float--points { opacity: 1; }
}
