/* MUSCULA ONE website. Light editorial theme; brand red #FF1115, ink #0D0F12, Gilroy.
   The scroll film stays dark as a cinematic block. */
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/gilroy-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/gilroy-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/gilroy-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --paper: #F5F5F7;
  --soft: #ECECEF;
  --line: #DFE2E6;
  --ink: #0D0F12;
  --ink-2: #181B20;
  --text: #0D0F12;
  --body: #3A3F46;
  --muted: #6B717A;
  --red: #FF1115;
  --red-ink: #D90008;
  --r: 28px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.6 'Gilroy', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.22; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--red); color: #fff; }
.red { color: var(--red); }
.ic { width: 20px; height: 20px; flex: none; }
.fine { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.fine .ic { width: 16px; height: 16px; margin-top: 2px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--body); }
.sec-h { font-size: clamp(40px, 5.6vw, 80px); }
:lang(ar) .sec-h { font-size: clamp(36px, 5vw, 72px); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
:lang(ar) .tag { letter-spacing: 0; font-size: 14px; }
.tag .ic { width: 18px; height: 18px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- nav: slim full-width bar ---------- */
.nav {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 56px;
  display: flex; align-items: center; gap: 24px; padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(13, 15, 18, .06); transition: background .4s;
}
.nav.is-solid { background: rgba(255, 255, 255, .86); }
.nav .langs summary, .nav__get { height: 36px; }
.nav__get { border-radius: 999px; padding: 0 16px; font-size: 13px; background: var(--red); }
.nav__get:hover { background: var(--ink); }
.langs summary { border-radius: 999px; font-size: 13px; }
.wordmark { height: 14px; width: auto; }
.nav__brand { display: block; padding: 8px 0; }
.nav__links { display: flex; gap: 28px; margin-inline-start: 18px; font-size: 13px; font-weight: 600; color: var(--body); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .35s var(--ease); }
[dir='rtl'] .nav__links a::after { --o: right; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav__get {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; border-radius: 12px;
  transition: background .25s, transform .25s var(--ease);
}
.nav__get:hover { background: var(--red); transform: translateY(-1px); }
.nav__get .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__get:hover .ic { transform: translateY(2px); }

/* language dropdown */
.langs { position: relative; font-size: 14px; font-weight: 600; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--body); background: var(--paper); transition: border-color .2s, color .2s; user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: var(--ink); color: var(--ink); }
.langs summary .ic { width: 18px; height: 18px; }
.langs .langs__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.langs[open] .langs__chev { transform: rotate(180deg); }
.langs__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; padding: 6px; z-index: 60;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(13,15,18,.35);
}
.langs[open] .langs__menu { animation: drop .2s var(--ease); }
@keyframes drop { from { transform: translateY(-6px); opacity: 0; } }
.langs__menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--body); }
.langs__menu a:hover { background: var(--soft); color: var(--ink); }
.langs__menu a[aria-current] { color: var(--ink); }
.langs__tick { width: 16px; height: 16px; color: var(--red); }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 188px; height: 62px; padding: 0 20px;
  border-radius: 16px; transition: transform .3s var(--ease), background .25s, border-color .25s, box-shadow .3s;
}
.store .sg { width: 26px; height: 26px; flex: none; }
.store__txt { display: grid; line-height: 1.15; text-align: start; }
.store__txt small { font-size: 11px; font-weight: 600; opacity: .7; }
.store__txt b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.store__soon {
  position: absolute; top: -9px; inset-inline-end: 12px; font-style: normal; font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px;
}
.store:hover { transform: translateY(-3px); }
.store--hero { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.store--hero:hover { background: #fff; color: var(--ink); border-color: #fff; }
.store--final { background: #fff; color: var(--ink); border: 1px solid #fff; }
.store--final:hover { box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.store--final .store__soon { background: var(--ink); }

.hero__title { font-size: clamp(50px, 8.4vw, 128px); display: grid; text-transform: uppercase; }
:lang(ar) .hero__title { text-transform: none; font-size: clamp(48px, 7.4vw, 112px); }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px) !important; max-width: 40ch !important; }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #9CA2AB; margin-top: 18px; }
.hero__line { width: 1px; height: 44px; background: linear-gradient(var(--red), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chips li:first-child { background: var(--red); border-color: var(--red); }

/* stats strip */
.stats {
  position: relative; z-index: 2; margin-top: 0; border-radius: 0; background: var(--bg);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 72px var(--gut) 24px;
}
.stats > * { max-width: var(--max); }
.stat { display: grid; gap: 6px; padding: 8px 26px; border-inline-start: 1px solid var(--line); }
.stat b { font-size: clamp(44px, 5.4vw, 84px); font-weight: 900; line-height: .9; letter-spacing: -.04em; text-align: start; }
.stat:first-child b { color: var(--red); }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- app showcase ---------- */
.app { padding: 120px 0 60px; overflow: hidden; }
.app__head { max-width: var(--max); margin: 0 auto 56px; padding: 0 var(--gut); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.app__head p { color: var(--body); font-size: 18px; max-width: 36ch; }
.app__rail {
  display: flex; gap: 28px; overflow-x: auto; padding: 20px var(--gut) 40px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.app__rail::-webkit-scrollbar { display: none; }
.app__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.phone { flex: none; margin: 0; width: clamp(220px, 21vw, 290px); scroll-snap-align: center; transition: transform .6s var(--ease); }
.phone--low { transform: translateY(56px); }
.phone__frame {
  position: relative; border-radius: 42px; padding: 9px; background: var(--ink);
  box-shadow: 0 1px 0 1px #2a2e35 inset, 0 40px 70px -30px rgba(13,15,18,.55), 0 12px 24px -12px rgba(13,15,18,.35);
}
.phone__frame img { width: 100%; height: auto; border-radius: 34px; user-select: none; -webkit-user-drag: none; }
.phone:hover { transform: translateY(-8px); }
.phone--low:hover { transform: translateY(48px); }
.phone figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 18px; font-weight: 600; font-size: 15px; }
.phone figcaption span { color: var(--red); font-size: 12px; }

/* ---------- big type band ---------- */
.band { overflow: hidden; padding: 70px 0 40px; border-block: 1px solid var(--line); margin-top: 40px; }
.band__row { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
[dir='rtl'] .band__row { animation-name: marquee-rtl; }
.band span { font-size: clamp(64px, 11vw, 180px); font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: -.04em; white-space: nowrap; }
:lang(ar) .band span { text-transform: none; letter-spacing: 0; line-height: 1.3; }
.band .band__o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.band i { width: clamp(18px, 2vw, 30px); height: clamp(18px, 2vw, 30px); border-radius: 50%; background: var(--red); flex: none; }

/* ---------- features bento ---------- */
.feat { max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) 40px; }
.feat .sec-h { max-width: 15ch; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.tile { background: var(--paper); border: 0; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(13,15,18,.4); }
.tile__body { padding: 30px; display: grid; gap: 12px; align-content: start; }
.tile h3 { font-size: clamp(28px, 2.8vw, 40px); }
.tile__body > p:not(.tag):not(.fine) { color: var(--body); }
.tile__media { position: relative; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile--scan { grid-row: span 2; }
.tile--scan .tile__media { aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: 20px; }
.scanchip { position: absolute; inset-inline-start: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; direction: ltr; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.scanchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,17,21,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,17,21,0); } 100% { box-shadow: 0 0 0 0 rgba(255,17,21,0); } }
.tile--walk { display: grid; grid-template-columns: 1fr 1fr; }
.tile--walk .tile__media { margin: 10px; border-radius: 20px; }
.ring { position: relative; width: 112px; height: 112px; margin-top: 6px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--soft); stroke-width: 9; }
.ring .ring__v { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 18; transition: stroke-dashoffset 1.6s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 20px; font-weight: 900; }
.ring small { font-size: 10px; color: var(--muted); }
.tile--gen { justify-content: space-between; background: var(--red); border-color: var(--red); color: #fff; }
.tile--gen .tag { color: #fff; }
.tile--gen .tile__body > p:not(.tag) { color: rgba(255,255,255,.9) !important; }
.flow { display: flex; gap: 10px; padding: 0 30px 30px; }
.flow li { flex: 1; display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); font-size: 14px; font-weight: 600; }
.flow li span { font-size: 24px; font-weight: 900; }

/* ---------- library ---------- */
.lib { padding: 120px 0 60px; overflow: hidden; }
.lib__head { max-width: var(--max); margin: 0 auto 48px; padding: 0 var(--gut); display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: end; }
.lib__head p { color: var(--body); }
.sex { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); min-width: 210px; }
.sex button { position: relative; z-index: 1; height: 46px; padding: 0 18px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .3s; }
.sex button[aria-pressed='true'] { color: #fff; }
.sex i { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); background: var(--ink); border-radius: 10px; transition: transform .4s var(--ease); }
.sex[data-on='f'] i { transform: translateX(100%); }
[dir='rtl'] .sex[data-on='f'] i { transform: translateX(-100%); }
.lib__track { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.lib__row { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
[dir='rtl'] .lib__row { animation-name: marquee-rtl; }
.lib__track:hover .lib__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.spec { margin: 0; width: 236px; flex: none; }
.spec__img { aspect-ratio: 1; background: var(--paper); border: 0; border-radius: 24px; overflow: hidden; }
.spec__img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .6s var(--ease); }
.spec:hover .spec__img img { transform: scale(1.06); }
.spec__img img.is-swap { opacity: 0; }
.spec figcaption { margin-top: 12px; font-weight: 600; font-size: 15px; }

/* ---------- coach ---------- */
.coach { max-width: var(--max); margin: 0 auto; padding: 120px var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; align-items: center; }
.coach__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.coach__media img { width: 100%; height: 100%; object-fit: cover; }
.live { position: absolute; top: 18px; inset-inline-start: 18px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.coach__body { display: grid; gap: 20px; }
.coach__body .sec-h { font-size: clamp(38px, 4.8vw, 72px); }
.coach__list { display: grid; margin-top: 8px; }
.coach__list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.coach__list .ic { width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
.coach__list b { display: block; font-size: 17px; }
.coach__list span { color: var(--muted); font-size: 15px; }
.tiers { grid-column: 1 / -1; display: grid; gap: 22px; padding: 34px; border-radius: var(--r); background: var(--paper); }
.tiers h3 { font-size: 26px; }
.tiers__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { display: grid; gap: 8px; padding: 24px; border-radius: 20px; background: var(--bg); border: 1px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.tier:hover { border-color: var(--ink); transform: translateY(-3px); }
.tier--mid { background: var(--ink); color: #fff; border-color: var(--ink); }
.tier--mid .tier__n, .tier--mid small { color: #9CA2AB !important; }
.tier--mid .tier__m { color: #D3D6DB; }
.tier__n { font-weight: 600; color: var(--muted); }
.tier__p b { font-size: 38px; font-weight: 900; letter-spacing: -.03em; }
.tier__p small { color: var(--muted); font-size: 13px; }
.tier__m { font-size: 14px; color: var(--body); }
.tier__m b { color: var(--red); }
.cta-coach { justify-self: start; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; padding-bottom: 4px; border-bottom: 2px solid var(--red); }
.cta-coach .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--red); color: #fff; transition: transform .35s var(--ease); }
.cta-coach:hover .ic { transform: rotate(-12deg) scale(1.08); }

/* ---------- plans ---------- */
.plans { max-width: var(--max); margin: 0 auto; padding: 60px var(--gut) 120px; }
.plans__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.plans__head .sec-h { max-width: 13ch; }
.period { display: flex; padding: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.period button { height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; transition: background .3s, color .3s; }
.period button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.period em { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; }
.plans__row { display: grid; grid-template-columns: .85fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--r); background: var(--paper); border: 0; }
.plan h3 { font-size: 22px; letter-spacing: .02em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price__n { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.price__c { font-weight: 600; }
.price__per { color: var(--muted); font-size: 14px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; color: var(--body); }
.ticks .ic { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.plan--ai { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(255,17,21,.55); }
.plan--ai .ticks li { color: #D3D6DB; }
.plan--ai .price__per { color: #9CA2AB; }
.plan__flag { position: absolute; top: 24px; inset-inline-end: 24px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.cta-plan {
  position: relative; overflow: hidden; margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 20px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 600; font-size: 16px;
}
.cta-plan::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.cta-plan:hover::before { transform: translateX(120%); }
.plans__note { margin-top: 22px; }

/* ---------- final: red block ---------- */
.final {
  position: relative; overflow: hidden; text-align: center; margin: 0 var(--gut) 24px; border-radius: 40px;
  padding: 140px var(--gut) 150px; display: grid; justify-items: center; gap: 22px; background: var(--red); color: #fff;
}
.final__mark { position: absolute; width: min(1000px, 130vw); height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.final h2 { position: relative; font-size: clamp(48px, 8vw, 128px); display: grid; }
:lang(ar) .final h2 { text-transform: none; }
.final h2 .red { color: var(--ink); }
.final p { position: relative; font-size: 19px; color: rgba(255,255,255,.92); }
.final .stores { position: relative; justify-content: center; margin-top: 10px; }

/* ---------- footer ---------- */
.foot { padding: 56px var(--gut) 32px; max-width: var(--max); margin: 0 auto; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot__top p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.foot__brand .wordmark { height: 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; font-weight: 600; color: var(--body); }
.foot__links a:hover { color: var(--red); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- privacy ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 140px var(--gut) 90px; display: grid; gap: 22px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; justify-self: start; }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(44px, 6vw, 80px); }
:lang(ar) .legal h1 { text-transform: none; }
.legal__date { color: var(--muted); font-size: 14px; }
.legal section { padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.legal h2 { font-size: 24px; display: flex; gap: 14px; align-items: baseline; letter-spacing: -.01em; }
.legal h2 span { color: var(--red); font-size: 14px; }
.legal ul { display: grid; gap: 10px; }
.legal li { position: relative; padding-inline-start: 20px; color: var(--body); }
.legal li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 2px; background: var(--red); }
.legal p { color: var(--body); }
.legal a:not(.legal__back) { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal (transform only, content always visible) ---------- */
.js .rv { transform: translateY(34px); transition: transform 1.1s var(--ease); }
.js .rv.in { transform: none; }
.js .phone--low.rv.in { transform: translateY(56px); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .app__head, .lib__head { grid-template-columns: 1fr; align-items: start; }
  .bento { grid-template-columns: 1fr; }
  .tile--scan { grid-row: auto; }
  .sex { justify-self: start; }
  .coach { grid-template-columns: 1fr; }
  .plans__row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { top: 8px; height: 56px; gap: 8px; padding: 0 6px 0 14px; border-radius: 16px; }
  [dir='rtl'] .nav { padding: 0 14px 0 6px; }
  .wordmark { height: 11px; }
  .nav__get span { display: none; }
  .nav__get { width: 42px; padding: 0; justify-content: center; }
  .langs summary { padding: 0 10px; gap: 6px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 30px; border-radius: 0; padding-top: 48px; }
  .stat { padding: 4px 16px; }
  .app { padding-top: 80px; }
  .phone { width: 228px; }
  .phone--low, .js .phone--low.rv.in { transform: translateY(28px); }
  .band { padding: 44px 0 28px; }
  .tile--walk { grid-template-columns: 1fr; }
  .tile--walk .tile__media { aspect-ratio: 16 / 10; margin-bottom: 0; }
  .tile__body { padding: 24px; }
  .flow { padding: 0 24px 24px; }
  .spec { width: 170px; }
  .tiers { padding: 22px; }
  .tiers__row { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 150px; height: 58px; padding: 0 14px; }
  .store__txt b { font-size: 17px; }
  .final { margin: 0 10px 16px; border-radius: 28px; padding: 100px 20px 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; }
  .lib__track { overflow-x: auto; }
}

/* ---------- Apple-style hero ---------- */
.hero { position: relative; padding: 128px var(--gut) 0; text-align: center; overflow: hidden; background: var(--bg); }
.hero__copy { display: grid; justify-items: center; gap: 22px; max-width: 900px; margin: 0 auto; }
.hero__brand { font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--red); }
.hero h1 { font-size: clamp(56px, 9.6vw, 148px); letter-spacing: -.05em; line-height: .95; }
:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.15; }
.hero__lede { font-size: clamp(18px, 1.9vw, 24px); color: var(--body); max-width: 34ch; line-height: 1.45; }
.hero .stores { justify-content: center; margin-top: 6px; }
.store--hero { color: #fff; background: var(--ink); border: 1px solid var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.store--hero:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hero__stage {
  --p: 0; position: relative; height: clamp(520px, 62vw, 820px); margin-top: 64px; perspective: 1600px;
  display: flex; justify-content: center; align-items: flex-start;
}
.hero__stage::before { content: ''; position: absolute; left: 50%; top: 18%; width: min(900px, 90vw); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,17,21,.16), transparent 70%); pointer-events: none; }
.device--main { position: relative; z-index: 2; width: clamp(250px, 24vw, 340px);
  transform: rotateX(calc((1 - var(--p)) * 22deg)) translateY(calc((1 - var(--p)) * 60px)) scale(calc(.92 + var(--p) * .08)); transform-origin: 50% 100%; }
.device--side { position: absolute; top: 9%; width: clamp(200px, 19vw, 270px); z-index: 1; }
.device--a { left: 50%; transform: translateX(calc(-50% - var(--p) * 92% - 34%)) rotate(calc(-7deg * var(--p) - 3deg)) scale(.94); }
.device--b { left: 50%; transform: translateX(calc(-50% + var(--p) * 92% + 34%)) rotate(calc(7deg * var(--p) + 3deg)) scale(.94); }
[dir='rtl'] .device--a { left: auto; right: 50%; transform: translateX(calc(50% + var(--p) * 92% + 34%)) rotate(calc(7deg * var(--p) + 3deg)) scale(.94); }
[dir='rtl'] .device--b { left: auto; right: 50%; transform: translateX(calc(50% - var(--p) * 92% - 34%)) rotate(calc(-7deg * var(--p) - 3deg)) scale(.94); }

/* ---------- realistic phone ---------- */
.device {
  position: relative; aspect-ratio: 1206 / 2622; padding: 3.2%; border-radius: 15% / 7%;
  background: linear-gradient(145deg, #4a4e55 0%, #16181c 22%, #0d0f12 60%, #3a3e45 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #0b0c0e,
    0 60px 90px -40px rgba(13,15,18,.55), 0 30px 40px -30px rgba(13,15,18,.4);
}
.device::after { /* dynamic island */
  content: ''; position: absolute; top: 4.6%; left: 50%; width: 29%; height: 3.1%; transform: translateX(-50%);
  background: #000; border-radius: 999px; z-index: 3;
}
.device::before { /* glass glare */
  content: ''; position: absolute; inset: 3.2%; border-radius: 12.5% / 5.8%; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%);
}
.device .screen { position: absolute; inset: 3.2%; width: 93.6%; height: 93.6%; object-fit: cover; border-radius: 12.5% / 5.8%; background: #0d0f12; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.device .screen:not(.on) { opacity: 0; transform: scale(1.03); }

/* ---------- pinned story ---------- */
.story { --n: 6; position: relative; height: calc(var(--n) * 90vh + 10vh); background: var(--bg); }
.story__pin {
  position: sticky; top: 0; height: 100vh; height: 100dvh; max-width: var(--max); margin: 0 auto; padding: 56px var(--gut) 0;
  display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center;
}
.story__text { position: relative; min-height: 340px; }
.step { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; transition: transform .7s var(--ease), opacity .5s; }
.step:not(.on) { opacity: 0; transform: translateY(26px); pointer-events: none; }
.step__n { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .08em; }
[dir='rtl'] .step__n { text-align: right; }
.step h2 { font-size: clamp(42px, 5.6vw, 84px); letter-spacing: -.045em; }
:lang(ar) .step h2 { letter-spacing: 0; }
.step p:not(.step__n) { font-size: clamp(18px, 1.7vw, 22px); color: var(--body); max-width: 30ch; line-height: 1.5; }
.story__device { display: grid; justify-items: center; gap: 26px; }
.device--story { width: clamp(250px, 24vw, 330px); }
.story__dots { display: flex; gap: 8px; }
.story__dots li { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .4s var(--ease), background .4s; }
.story__dots li.on { width: 26px; background: var(--ink); }


@media (max-width: 760px) {
  .hero { padding-top: 104px; }
  .hero__stage { height: 560px; margin-top: 44px; }
  .device--main { width: 230px; }
  .device--side { width: 180px; top: 12%; }
  .story { height: calc(var(--n) * 80vh + 10vh); }
  .story__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 18px; padding-top: 72px; align-content: start; }
  .story__device { order: -1; gap: 14px; }
  .device--story { width: min(200px, 48vw); }
  .story__text { min-height: 230px; }
  .step { align-content: start; text-align: center; justify-items: center; }
  [dir='rtl'] .step__n { text-align: center; }
  .step h2 { font-size: 34px; }
  .step p:not(.step__n) { font-size: 16px; }
}

/* nav button: brand red (overrides the older rule above) */
.nav .nav__get { background: var(--red); color: #fff; }
.nav .nav__get:hover { background: var(--ink); }
.legal--center { text-align: center; justify-items: center; }
.store__txt b, .store__txt small { white-space: nowrap; }
@media (max-width: 760px) {
  .hero .stores { flex-wrap: nowrap; width: 100%; max-width: 360px; }
  .hero .store { flex: 1 1 0; gap: 8px; padding: 0 12px; }
  .hero .store .sg { width: 22px; height: 22px; }
  .hero .store__txt b { font-size: 16px; }
}

/* ================= Apple-style sections ================= */
.sx { padding: 130px var(--gut); background: var(--bg); }
.sx--grey { background: var(--paper); }
.sx__head { max-width: 860px; margin: 0 auto 64px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.sx__head h2 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -.045em; }
:lang(ar) .sx__head h2 { letter-spacing: 0; }
.sx__head p:not(.eyebrow) { font-size: clamp(18px, 1.7vw, 22px); color: var(--body); max-width: 40ch; line-height: 1.5; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; }
.note { max-width: 62ch; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

/* stats: calm centered numbers */
.stats { margin-top: -40px; padding: 90px var(--gut) 40px; max-width: none; justify-content: center; grid-template-columns: repeat(4, minmax(0, 260px)); gap: 24px; }
.stat { border: 0; padding: 0; text-align: center; justify-items: center; }
.stat b { font-weight: 600; text-align: center; letter-spacing: -.05em; }
.stat:first-child b { color: var(--ink); }
.stat span { max-width: 18ch; }

/* features bento */
.bento2 { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.b2 { position: relative; overflow: hidden; border-radius: 30px; background: var(--bg); min-height: 520px; display: flex; flex-direction: column; }
.b2 h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; }
:lang(ar) .b2 h3 { letter-spacing: 0; }
.b2__copy { position: relative; z-index: 2; display: grid; gap: 12px; padding: 44px 44px 0; max-width: 520px; }
.b2__copy p:not(.eyebrow) { font-size: 17px; color: var(--body); line-height: 1.5; }
.b2--scan { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; min-height: 0; }
.b2--scan .b2__copy { padding: 56px; }
.b2__img { position: relative; height: 100%; min-height: 420px; }
.b2__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2--walk { background: var(--ink); justify-content: space-between; }
.b2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2--walk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,15,18,.78) 0%, rgba(13,15,18,.1) 55%, rgba(13,15,18,.55) 100%); }
.b2__copy--over h3, .b2__copy--over p:not(.eyebrow) { color: #fff !important; }
.b2--walk .eyebrow { color: #FF5A5D; }
.b2--walk .ring { position: relative; z-index: 2; margin: 0 44px 40px; width: 120px; height: 120px; }
.b2--walk .ring circle { stroke: rgba(255,255,255,.18); }
.b2--walk .ring .ring__v { stroke: var(--red); }
.b2--walk .ring b { color: #fff; }
.b2--walk .ring small { color: rgba(255,255,255,.75); }
.b2--gen { justify-content: space-between; }
.b2--gen .flow { padding: 0 44px 44px; }
.b2--gen .flow li { background: var(--paper); border: 0; border-radius: 18px; padding: 18px; }
.b2--gen .flow li span { color: var(--red); }

/* library head centered */
#library { overflow: hidden; padding-inline: 0; }
#library .sx__head { padding: 0 var(--gut); }
.sex { min-width: 230px; border: 0; background: var(--paper); border-radius: 999px; }
.sex button { border-radius: 999px; }
.sex i { border-radius: 999px; }
.spec { width: 250px; }
.spec__img { border-radius: 28px; }
.spec figcaption { text-align: center; }

/* coaching */
.coach2__media { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 16 / 8; }
.coach2__media img { width: 100%; height: 100%; object-fit: cover; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.cards4 li { display: grid; gap: 8px; align-content: start; padding: 30px 26px; border-radius: 24px; background: var(--bg); }
.cards4 .ic { width: 30px; height: 30px; color: var(--red); margin-bottom: 8px; }
.cards4 b { font-size: 18px; }
.cards4 span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tiers2 { margin-top: 100px; text-align: center; }
.tiers2 h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.04em; margin-bottom: 36px; }
:lang(ar) .tiers2 h3 { letter-spacing: 0; }
.tiers2__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier2 { display: grid; justify-items: center; gap: 6px; padding: 40px 24px; border-radius: 26px; background: var(--bg); transition: transform .4s var(--ease); }
.tier2:hover { transform: translateY(-4px); }
.tier2--mid { background: var(--ink); color: #fff; }
.tier2__n { font-weight: 600; font-size: 17px; }
.tier2__p { font-weight: 600; font-size: 15px; margin-top: 14px; }
.tier2__p b { font-size: 52px; letter-spacing: -.05em; }
.tier2__per { color: var(--muted); font-size: 14px; }
.tier2--mid .tier2__per { color: #9CA2AB; }
.tier2__m { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; font-size: 15px; color: var(--body); }
.tier2--mid .tier2__m { border-color: rgba(255,255,255,.14); color: #D3D6DB; }
.tier2__m b { color: var(--red); font-size: 18px; }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; color: var(--red-ink); font-size: 17px; font-weight: 600; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more__ic { width: 18px; height: 18px; }

/* plans */
#plans .sx__head { gap: 28px; }
.period { border: 0; background: var(--paper); border-radius: 999px; }
.period button { border-radius: 999px; }
.plans2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan2 { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 40px 32px; border-radius: 30px; background: var(--paper); }
.plan2 h3 { font-size: 24px; letter-spacing: -.01em; }
.plan2 .price__n { font-weight: 600; font-size: 54px; letter-spacing: -.05em; }
.plan2--ai { background: var(--ink); color: #fff; }
.plan2--ai .ticks li { color: #D3D6DB; }
.plan2--ai .price__per { color: #9CA2AB; }
.plan2__flag { position: absolute; top: 28px; inset-inline-end: 28px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--red); color: #fff; }
.plan2 .cta-plan { border-radius: 999px; }

/* final */
.final2 { text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: 140px 150px; }
.final2__icon { width: 128px; height: 128px; border-radius: 28%; box-shadow: 0 30px 60px -24px rgba(13,15,18,.45); }
.final2 h2 { font-size: clamp(44px, 6.4vw, 96px); letter-spacing: -.05em; margin-top: 12px; max-width: 14ch; }
:lang(ar) .final2 h2 { letter-spacing: 0; }
.final2 > p { font-size: clamp(18px, 1.7vw, 22px); color: var(--body); }
.final2 .stores { justify-content: center; margin-top: 8px; }

/* footer: Apple-like small print */
.foot { max-width: none; background: var(--paper); border-top: 1px solid var(--line); padding: 40px max(var(--gut), calc((100vw - var(--max)) / 2)) 28px; font-size: 13px; }
.foot__links { font-size: 13px; }
.foot__top p { font-size: 13px; }

@media (max-width: 1020px) {
  .bento2 { grid-template-columns: 1fr; }
  .b2--scan { grid-template-columns: 1fr; }
  .b2__img { min-height: 300px; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .plans2 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .sx { padding: 90px var(--gut); }
  .sx__head { margin-bottom: 40px; }
  .stats { grid-template-columns: 1fr 1fr; padding-top: 64px; }
  .b2 { min-height: 440px; border-radius: 24px; }
  .b2__copy, .b2--scan .b2__copy { padding: 30px 26px 0; }
  .b2--scan .b2__copy { padding-bottom: 26px; }
  .b2--walk .ring { margin: 0 26px 28px; }
  .b2--gen .flow { padding: 0 26px 26px; }
  .coach2__media { aspect-ratio: 4 / 3; border-radius: 24px; }
  .cards4 { grid-template-columns: 1fr; }
  .tiers2 { margin-top: 70px; }
  .tiers2__row { grid-template-columns: 1fr; }
  .final2 { padding-block: 100px 110px; }
}
#library .sex { justify-self: center; }
.final2 h2 .red { white-space: nowrap; } .final2 h2 { max-width: 16ch; }
@media (max-width: 760px) { .b2--gen { min-height: 0; gap: 28px; } }

/* ================= real iPhone mockups (Envato, Amigos_46) ================= */
.hero__stage { height: auto; perspective: none; display: block; margin-top: 48px; }
.hero__stage::before { display: none; }
.hero__mock {
  display: block; width: min(1180px, 100%); height: auto; margin: 0 auto;
  transform: translateY(calc((1 - var(--p)) * 70px)) scale(calc(.93 + var(--p) * .07)); transform-origin: 50% 100%;
}
.mockstack { position: relative; width: min(clamp(280px, 28vw, 390px), calc((100vh - 170px) * .48)); aspect-ratio: 720 / 1500; }
.mock { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.mock:not(.on) { opacity: 0; transform: scale(.985); }
.b2__img--mock { display: grid; place-items: center; padding: 24px 24px 0; min-height: 0; }
.b2__img--mock img { position: static; width: 100%; height: auto; max-height: 560px; object-fit: contain; }

/* walking: clean steps widget, no photo */
.b2--walk { background: var(--bg); justify-content: space-between; }
.b2--walk::after { display: none; }
.b2--walk .eyebrow { color: var(--red-ink); }
.steps { display: flex; align-items: flex-end; gap: 36px; padding: 0 44px 44px; }
.b2--walk .steps .ring { margin: 0; width: 132px; height: 132px; flex: none; }
.b2--walk .ring circle { stroke: var(--soft); }
.b2--walk .ring .ring__v { stroke: var(--red); }
.b2--walk .ring b { color: var(--ink); }
.b2--walk .ring small { color: var(--muted); }
.bars { display: flex; gap: 10px; align-items: flex-end; height: 132px; flex: 1; }
.bars li { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; border-radius: 999px; background: var(--soft); }
.bars li.on i { background: var(--red); }
.bars .h46 { height: 46%; } .bars .h58 { height: 58%; } .bars .h64 { height: 64%; } .bars .h72 { height: 72%; }
.bars .h82 { height: 82%; } .bars .h90 { height: 90%; } .bars .h100 { height: 100%; }
.cards4 { margin-top: 0; }

@media (max-width: 760px) {
  .hero__stage { margin-top: 36px; }
  .mockstack { width: min(220px, 52vw, calc((100vh - 400px) * .48)); }
  .steps { padding: 0 26px 28px; gap: 22px; }
  .b2--walk .steps .ring { width: 108px; height: 108px; }
  .bars { height: 108px; gap: 6px; }
}
.bars { max-width: 300px; } .b2--walk .steps { justify-content: space-between; }
@media (max-width: 760px) { .hero__mock { width: 150%; max-width: none; margin-inline: -25%; } .b2--walk { min-height: 0; gap: 34px; } }
/* hero without device image: centered statement */
.hero { min-height: 86vh; min-height: 86dvh; display: grid; place-items: center; padding-bottom: 72px; }
.hero h1 { font-size: clamp(64px, 11vw, 176px); }
@media (max-width: 760px) { .hero { min-height: 78dvh; padding-bottom: 48px; } }

/* performance: animations pause off-screen; no live blur behind the nav on phones */
.is-off, .is-off * { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .nav { background: rgba(255, 255, 255, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* review fixes: pausable strip, no-JS fallback, small-text contrast, phone never collapses */
.lib__track.is-paused .lib__row, .lib__track:focus-within .lib__row { animation-play-state: paused; }
html:not(.js) .lib__row { animation: none; }
html:not(.js) .lib__track { overflow-x: auto; }
html:not(.js) .story { height: auto; }
html:not(.js) .story__pin { position: static; height: auto; padding-block: 96px; }
html:not(.js) .story__text { min-height: 0; display: grid; gap: 48px; }
html:not(.js) .step { position: static; opacity: 1; transform: none; }
html:not(.js) .story__dots { display: none; }
.hero__brand, .step__n, .eyebrow { color: var(--red-ink); }
.nav__get { background: var(--red-ink); }
.mockstack { width: max(170px, min(clamp(280px, 28vw, 390px), calc((100vh - 170px) * .48))); }
@media (max-width: 760px) { .mockstack { width: max(150px, min(220px, 52vw, calc((100vh - 400px) * .48))); } }
