/*
 * Movanza public site — "Momentum" design language (Dec 2026)
 * Shared by resources/views/landing.blade.php, site/gyms.blade.php and
 * legal/*.blade.php.
 * Spec: docs/design/Momentum_Design_Language.md — same tokens as the app.
 *
 * Ink (dark) / chalk (light) neutrals, ONE brand colour — Volt #C2F23D,
 * locked with the logo — Archivo heavy (italic for the big promise), flat
 * surfaces with 1px hairlines, soft shadows only on floating elements.
 * Logical properties throughout so Arabic (dir="rtl") mirrors cleanly.
 */

/* ------------------------------------------------------------ tokens */
:root {
    color-scheme: dark;
    --bg: #09090B;
    --surface: #141417;
    --raised: #1E1E22;
    --line: #1F1F24;
    --line-strong: #2E2E35;
    --text-1: #F6F6F3;
    --text-2: #A2A2A9;
    --text-3: #6A6A72;

    --accent: #C2F23D;
    --accent-hover: #AEDC2C;
    --accent-tint: rgba(194, 242, 61, 0.12);
    --accent-text: #C2F23D;      /* volt as text on ink: 14:1 */
    --on-accent: #0B0D05;        /* ink on volt fills: 15:1 */

    --fuel: #FFB547;             /* nutrition (same as the app) */
    --water: #5AC8FF;
    --streak: #FF8A3D;
    --success: #3DDC84;
    --success-tint: rgba(61, 220, 132, 0.14);
    --warning: #FFB547;
    --warning-tint: rgba(255, 181, 71, 0.14);
    --danger: #FF5A65;
    --danger-tint: rgba(255, 90, 101, 0.14);

    --bezel: #050506;
    --bezel-line: #26262C;
    --store-bg: #050506;
    --nav-bg: rgba(9, 9, 11, 0.84);
    --shadow-float: 0 32px 64px -28px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.45);

    --font-display: "Archivo", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-text: "Inter", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-sm: 12px;
    --r-btn: 14px;
    --r-input: 16px;
    --r-card: 20px;
    --r-hero: 26px;
    --r-pill: 999px;

    --gutter: 20px;
    --max: 1200px;
    --nav-h: 68px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg: #F3F3F0;
        --surface: #FFFFFF;
        --raised: #EAEAE6;
        --line: #E6E6E1;
        --line-strong: #D8D8D2;
        --text-1: #0B0B0D;
        --text-2: #55555C;
        --text-3: #8B8B92;

        --accent: #B9EE2F;
        --accent-hover: #A6DA22;
        --accent-tint: rgba(120, 170, 20, 0.13);
        --accent-text: #4A7406;   /* deep volt for text on chalk */
        --fuel: #E58E0B;
        --water: #1696D2;
        --streak: #E5641A;
        --success: #17A35A;
        --success-tint: rgba(23, 163, 90, 0.12);
        --warning: #C97A06;
        --warning-tint: rgba(201, 122, 6, 0.13);
        --danger: #D93644;
        --danger-tint: rgba(217, 54, 68, 0.1);

        --bezel: #141417;
        --bezel-line: #26262C;
        --store-bg: #0B0B0D;
        --nav-bg: rgba(243, 243, 240, 0.86);
        --shadow-float: 0 32px 64px -32px rgba(20, 20, 24, 0.3), 0 10px 24px -14px rgba(20, 20, 24, 0.16);
    }
}

@media (min-width: 768px) {
    :root { --gutter: 32px; }
}

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ic { flex: none; }
[dir="rtl"] .ic--flip { transform: scaleX(-1); }

/* Arabic is cursive: tracking breaks letter joins. */
html[lang="ar"] body * { letter-spacing: 0 !important; }

.skip {
    position: absolute;
    inset-inline-start: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text-1);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ type */
.display {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;              /* the promise leans forward, like the logo */
    font-size: clamp(3.25rem, 1.6rem + 7vw, 7rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.display__dot { color: var(--accent-text); }
html[lang="ar"] .display { font-style: normal; font-weight: 700; line-height: 1.15; font-size: clamp(3rem, 1.6rem + 6vw, 6rem); }

.h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
html[lang="ar"] .h2 { line-height: 1.3; }

.lead {
    color: var(--text-2);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.eyebrow {
    color: var(--accent-text);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
html[lang="ar"] .eyebrow { font-size: 14px; text-transform: none; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border-radius: var(--r-pill);
    background: var(--accent-tint);
    color: var(--accent-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* --------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 8px 18px -10px rgba(194, 242, 61, 0.5);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text-1);
}
.btn--secondary:hover { background: var(--raised); }
.btn--ghost {
    min-height: 44px;
    padding-inline: 6px;
    color: var(--text-1);
}
.btn--ghost:hover { color: var(--accent-text); }
.btn--sm {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
}

/* ---------------------------------------------------------- stores */
.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding-inline: 14px 18px;
    border-radius: var(--r-btn);
    background: var(--store-bg);
    border: 1px solid var(--line-strong);
    color: #F6F6F3;
}
.store__txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.store__txt small {
    color: #A2A2A9;
    font-size: 11.5px;
    font-weight: 500;
}
.store__txt strong {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
@media (prefers-color-scheme: light) {
    .store { border-color: transparent; }
}

/* -------------------------------------------------------------- nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.nav.is-scrolled,
.menu-open .nav { border-bottom-color: var(--line); }

.nav__in {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--text-1);
    text-decoration: none;
}
.brand__mark { flex: none; }
.brand__logo { display: block; width: auto; flex: none; }
.brand__name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.nav__links {
    display: none;
    gap: 2px;
    margin-inline-start: 16px;
}
.nav__links a {
    padding: 8px 12px;
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__links a:hover { color: var(--text-1); background: var(--raised); }
.nav__links a[aria-current="page"] { color: var(--text-1); background: var(--raised); }

.nav__end {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.lang {
    display: none;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
}
.lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.lang a:hover { color: var(--text-1); }
.lang a[aria-current] { background: var(--raised); color: var(--text-1); }

.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    cursor: pointer;
}
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: block; }

.menu { border-top: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu__in { padding-block: 8px 24px; }
.menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}
.menu__link .ic { color: var(--text-3); }
.menu__link[aria-current="page"] { color: var(--accent-text); }
.lang--menu {
    display: inline-flex;
    margin-top: 20px;
}
.lang--menu a { padding-inline: 14px; font-size: 13.5px; letter-spacing: 0; }

@media (max-width: 379px) {
    .nav__cta { display: none; }
}
@media (min-width: 1000px) {
    .nav__links { display: flex; }
    .lang { display: inline-flex; }
    .nav__toggle, .menu { display: none !important; }
}

/* ------------------------------------------------------------ hero */
/*
 * "Momentum" hero: the promise in heavy italic, a scoreboard, and the real
 * app in motion — the workout player + Today, the muscle map under an AI
 * scan, a ticking rest timer — over the brand's speed stripes. A volt ticker
 * of muscle groups closes the section.
 *
 * The artwork is ONE 520×640 stage that is scaled as a unit (--s), so every
 * breakpoint shows the same composition: fitted to the viewport below 1000px,
 * fixed steps beside the copy above it.
 */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 28px 22px;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
/* Small screens: the app appears right after the store buttons, the
   scoreboard follows it (the copy's children join the grid). */
.hero__copy { display: contents; }
.hero__copy > * { position: relative; z-index: 1; }
.hero__copy > .tag { justify-self: start; }
.hero__copy .display { margin-top: 22px; }
.hero__copy .lead { margin-top: 20px; max-width: 32em; }
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
}
.hero__actions .btn--ghost { display: none; }

/* Scoreboard */
.scoreboard {
    order: 3;
    display: flex;
    margin: 6px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    max-width: 34em;
}
.score {
    display: flex;
    flex-direction: column-reverse;
    flex: 1 1 0;
    gap: 6px;
    min-width: 0;
    padding-inline-end: 12px;
}
.score + .score { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.score dd {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.score dt { color: var(--text-2); font-size: 13px; line-height: 1.3; }
html[lang="ar"] .score dd { font-style: normal; font-weight: 700; letter-spacing: 0; }

/* Art */
.hero__art {
    order: 2;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    min-width: 0;
    margin-top: 6px;
    padding-block: 30px 34px;
}
.stripes {
    position: absolute;
    inset-block: -8px;
    left: 50%;
    display: flex;
    gap: 7%;
    width: min(420px, 92%);
    transform: translateX(-38%) skewX(-22deg);
    pointer-events: none;
    /* The ends dissolve where nothing hides them (single-column layout). */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
[dir="rtl"] .stripes { transform: translateX(-62%) skewX(22deg); }
.stripes i { flex: 1; border-radius: 4px; background: var(--accent); }
.stripes i:nth-child(1) { opacity: 0.95; }
.stripes i:nth-child(2) { opacity: 0.38; }
.stripes i:nth-child(3) { opacity: 0.14; }
[dir="rtl"] .stripes i:nth-child(1) { opacity: 0.14; }
[dir="rtl"] .stripes i:nth-child(3) { opacity: 0.95; }

.hero__stage {
    --tilt: 1;
    --s: 0.6;
    position: relative;
    width: 520px;
    height: 640px;
    flex: none;
    scale: var(--s);
    transform-origin: 50% 0;
    /* The visible artwork leans ~14px to the start side of its box. */
    translate: calc(var(--tilt) * 14px * var(--s)) 0;
    margin-bottom: calc(640px * (var(--s) - 1));
}
[dir="rtl"] .hero__stage { --tilt: -1; }
@media (min-width: 390px) { .hero__stage { --s: 0.64; } }
@media (min-width: 430px) { .hero__stage { --s: 0.71; } }
@media (min-width: 500px) { .hero__stage { --s: 0.84; } }
@media (min-width: 600px) { .hero__stage { --s: 1; } }
/* Continuous fit where the browser can do the maths. */
@supports (scale: tan(atan2(1px, 2px))) {
    @media (max-width: 999px) {
        .hero__stage { --s: min(1, tan(atan2(100vw - 30px, 572px))); }
    }
}

.hero__stage .phone--front {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 2;
    rotate: calc(var(--tilt) * 3deg);
}
.hero__stage .phone--back {
    position: absolute;
    inset-block-start: 40px;
    inset-inline-start: 0;
    z-index: 1;
    rotate: calc(var(--tilt) * -7deg);
    scale: 0.9;
    transform-origin: 50% 100%;
}

/* Floating cards */
.chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 10px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    color: var(--text-1);
    text-align: start;
    white-space: nowrap;
}
.chip__txt { display: flex; flex-direction: column; line-height: 1.25; }
.chip__txt b { font-size: 13px; font-weight: 600; }
.chip__txt small { color: var(--text-2); font-size: 11.5px; }
.chip--rest { inset-block-start: 92px; inset-inline-start: -26px; }
.chip--rest .chip__txt small { color: var(--accent-text); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.chip--rest .chip__txt b { color: var(--text-2); font-size: 12px; font-weight: 500; }
html[lang="ar"] .chip--rest .chip__txt small { letter-spacing: 0; font-size: 11px; }
.chip--pr { inset-block-start: 492px; inset-inline-end: -10px; }
.chip__ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--fuel) 16%, transparent);
    color: var(--fuel);
}
.ring { position: relative; display: grid; place-items: center; width: 50px; height: 50px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 4; }
.ring__track { stroke: var(--raised); }
.ring__bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ring strong {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.scan-card {
    position: absolute;
    inset-block-end: 22px;
    inset-inline-start: -30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 172px;
    padding: 12px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    rotate: calc(var(--tilt) * -3deg);
    text-align: start;
}
.scan-card__title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-1); }
.scan-card__title .ic { color: var(--accent-text); flex: none; }
.scan-card__fig {
    position: relative;
    display: grid;
    place-items: center;
    height: 158px;
    border-radius: 14px;
    background: var(--bg);
    overflow: hidden;
}
.body { height: 138px; width: auto; }
.body__base { fill: var(--raised); stroke: var(--line-strong); stroke-width: 1.5; }
.body__muscle { fill: var(--accent); stroke: var(--accent-text); stroke-width: 1; stroke-linejoin: round; }
.body__abs { fill: none; stroke: var(--on-accent); stroke-width: 1; opacity: 0.4; }
.scan-card__deltas { display: flex; flex-wrap: wrap; gap: 5px; }
.scan-card__deltas span {
    padding: 3px 7px;
    border-radius: 8px;
    background: var(--accent-tint);
    color: var(--accent-text);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .hero__stage .phone--front { animation: hero-float 6s ease-in-out infinite alternate; }
    .hero__stage .phone--back { animation: hero-float 7s ease-in-out -2s infinite alternate-reverse; }
    .chip--rest, .scan-card { animation: hero-float 5s ease-in-out -1s infinite alternate; }
    .chip--pr { animation: hero-float 5.5s ease-in-out -3s infinite alternate-reverse; }
}
@keyframes hero-float {
    from { translate: 0 -5px; }
    to { translate: 0 5px; }
}

/* Ticker */
.ticker {
    position: relative;
    z-index: 5;
    margin-top: 30px;
    padding-block: 13px;
    background: var(--accent);
    color: var(--on-accent);
    overflow: hidden;
    rotate: -1.1deg;
    scale: 1.03;
}
[dir="rtl"] .ticker { rotate: 1.1deg; }
.ticker__track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}
html[lang="ar"] .ticker__track { font-style: normal; font-weight: 700; }
.ticker__track i {
    display: block;
    width: 22px;
    height: 0.8em;
    flex: none;
    background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 9px);
    transform: skewX(-22deg);
    opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
    .ticker__track { animation: ticker 36s linear infinite; }
    [dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* Decorative rings (CTA section) */
.rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    height: 620px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.rings span {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.rings span:nth-child(2) { inset: 90px; }
.rings span:nth-child(3) { inset: 180px; border-color: var(--line-strong); border-style: dashed; }

@media (min-width: 700px) {
    .chip--pr { inset-inline-end: -58px; }
    .chip--rest { inset-inline-start: -40px; }
    .scan-card { inset-inline-start: -56px; }
    .hero__actions .btn--ghost { display: inline-flex; }
}

/* Two columns: copy beside the app. */
@media (min-width: 1000px) {
    .hero { padding-block: 44px 24px; }
    .hero__grid {
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
        gap: 28px;
        align-items: stretch;
    }
    .hero__copy { display: block; position: relative; z-index: 4; align-self: center; }
    .hero__copy .display { font-size: clamp(4.5rem, 0.4rem + 7.2vw, 7.5rem); }
    /* "Show your" must fit the column so the title stays on two lines. */
    html[lang="en"] .hero__copy .display { font-size: clamp(4rem, 0.4rem + 6.1vw, 6.2rem); }
    .hero__copy .lead { margin-top: 22px; }
    .hero__actions { margin-top: 32px; }
    .scoreboard { margin-top: 34px; }
    .hero__art { margin-top: 0; padding-block: 30px 40px; justify-content: flex-end; align-items: center; }
    .stripes {
        inset-block: -90px -44px;
        width: 420px;
        gap: 38px;
        transform: translateX(-36%) skewX(-22deg);
        -webkit-mask-image: none;
        mask-image: none;
    }
    [dir="rtl"] .stripes { transform: translateX(-64%) skewX(22deg); }
    .hero__stage {
        --s: 0.84;
        transform-origin: 100% 50%;
        translate: none;
        margin-block: calc(320px * (var(--s) - 1));
        margin-inline-end: 30px;
    }
    [dir="rtl"] .hero__stage { transform-origin: 0 50%; }
    .ticker { margin-top: 14px; padding-block: 16px; }
}
@media (min-width: 1200px) {
    .hero__stage { --s: 1; margin-inline-end: 34px; }
    .scan-card { inset-inline-start: -40px; }
    .chip--rest { inset-inline-start: -30px; }
}
@media (min-width: 1360px) {
    .hero__stage { margin-inline-end: 0; }
    .scan-card { inset-inline-start: -64px; }
    .chip--rest { inset-inline-start: -44px; }
}
@media (min-width: 1200px) and (max-height: 840px) {
    .hero__stage { --s: 0.9; }
}

/* ----------------------------------------------- phone mockups (ui-*) */
.phone {
    position: relative;
    width: 300px;
    height: 620px;
    flex: none;
    padding: 9px;
    border-radius: 50px;
    background: var(--bezel);
    border: 1px solid var(--bezel-line);
    box-shadow: var(--shadow-float);
}
.phone::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 2;
    width: 86px;
    height: 25px;
    margin-left: -43px;
    border-radius: var(--r-pill);
    background: #000;
}
.screen {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 54px 16px 16px;
    border-radius: 41px;
    overflow: hidden;
    background: var(--bg);
    color: var(--text-1);
    font-size: 13px;
    line-height: 1.35;
    text-align: start;
}
.ui-status {
    position: absolute;
    top: 21px;
    inset-inline: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ui-status__icons { display: inline-flex; gap: 4px; align-items: flex-end; }
.ui-status__icons i { display: block; width: 4px; border-radius: 1px; background: var(--text-1); }
.ui-status__icons i:nth-child(1) { height: 6px; }
.ui-status__icons i:nth-child(2) { height: 8px; }
.ui-status__icons i:nth-child(3) { width: 18px; height: 9px; border-radius: 3px; margin-inline-start: 3px; }

.ui-top {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
}
.ui-top__title { text-align: center; font-size: 14px; font-weight: 600; }
.ui-iconbtn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
}
.ui-iconbtn--blank { visibility: hidden; }

.ui-photo {
    position: relative;
    display: grid;
    place-items: center;
    height: 206px;
    flex: none;
    border-radius: var(--r-card);
    background: var(--raised);
    border: 1px solid var(--line);
    overflow: hidden;
}
.figure { fill: var(--line-strong); }
.ui-photo .figure { height: 184px; width: auto; margin-top: 18px; }
.ui-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--accent);
}
.ui-corner--1 { top: 12px; inset-inline-start: 12px; border-top-width: 2px; border-inline-start-width: 2px; border-start-start-radius: 8px; }
.ui-corner--2 { top: 12px; inset-inline-end: 12px; border-top-width: 2px; border-inline-end-width: 2px; border-start-end-radius: 8px; }
.ui-corner--3 { bottom: 12px; inset-inline-start: 12px; border-bottom-width: 2px; border-inline-start-width: 2px; border-end-start-radius: 8px; }
.ui-corner--4 { bottom: 12px; inset-inline-end: 12px; border-bottom-width: 2px; border-inline-end-width: 2px; border-end-end-radius: 8px; }
.ui-scan {
    position: absolute;
    inset-inline: 14px;
    top: 46%;
    height: 1px;
    background: var(--accent);
}
.ui-scan::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 1px;
    height: 36px;
    background: linear-gradient(to top, var(--accent-tint), transparent);
}
@media (prefers-reduced-motion: no-preference) {
    .ui-scan { animation: scan 4.8s var(--ease) infinite alternate; }
}
@keyframes scan {
    from { top: 30%; }
    to { top: 70%; }
}
.ui-marker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4);
}
[dir="rtl"] .ui-marker { padding: 4px 6px 4px 10px; }
.ui-marker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}
.ui-marker--a { top: 58%; inset-inline-start: 56%; }
.ui-marker--b { top: 24%; inset-inline-end: 57%; }

.ui-focus { display: flex; flex-direction: column; gap: 3px; }
.ui-label { color: var(--text-2); font-size: 11.5px; font-weight: 500; }
.ui-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ui-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.ui-stat span { color: var(--text-2); font-size: 11px; }
.ui-stat strong { font-size: 13.5px; font-weight: 600; }

.ui-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 13px;
    background: var(--raised);
}
.ui-seg > span {
    display: grid;
    place-items: center;
    height: 30px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}
.ui-seg > .is-on {
    background: var(--surface);
    color: var(--text-1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.ui-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    flex: none;
    margin-top: auto;
    border-radius: var(--r-btn);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 14px;
    font-weight: 600;
}
.ui-btn--secondary {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text-1);
}

.ui-head { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ui-display {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.ui-sub { color: var(--text-2); font-size: 12.5px; }
.ui-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding-inline: 12px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-3);
}
.ui-search i { display: block; width: 46%; height: 6px; border-radius: 3px; background: var(--raised); }
.ui-list {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}
.ui-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
}
.ui-row + .ui-row { border-top: 1px solid var(--line); }
.ui-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-text);
    font-size: 11.5px;
    font-weight: 700;
}
.ui-row__main, .risk__main { display: flex; flex-direction: column; min-width: 0; }
.ui-row__main strong, .risk__main strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row__main small, .risk__main small { color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row__end {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.pill--warning { background: var(--warning-tint); color: var(--warning); }
.pill--danger { background: var(--danger-tint); color: var(--danger); }

/* ------------------------------------- app mockups in the hero (m-*) */
/* Today */
.m-today, .m-player { gap: 11px; }
.m-head { display: flex; align-items: center; gap: 9px; }
.m-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
}
.m-head__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.m-head__txt small { color: var(--text-3); font-size: 10.5px; }
.m-head__txt strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-streak {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding-inline: 9px;
    flex: none;
    border-radius: 15px;
    background: color-mix(in srgb, var(--streak) 15%, transparent);
    color: var(--streak);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 13px;
}
.m-streak .ic { fill: currentColor; }
.m-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px 15px 15px;
    border-radius: 24px;
    background: var(--accent);
    color: var(--on-accent);
    overflow: hidden;
}
.m-hero__stripes {
    position: absolute;
    top: -12px;
    inset-inline-end: -4px;
    display: flex;
    gap: 9px;
    width: 104px;
    height: 124px;
    transform: skewX(-24deg);
    opacity: 0.09;
}
[dir="rtl"] .m-hero__stripes { transform: skewX(24deg); }
.m-hero__stripes i { flex: 1; background: currentColor; }
.m-eyebrow {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
}
.m-hero__title {
    position: relative;
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 35px;
    line-height: 1;
    letter-spacing: -0.045em;
}
.m-hero__meta { display: flex; gap: 12px; margin-top: 9px; font-size: 11.5px; font-weight: 600; opacity: 0.7; }
.m-hero__meta span { display: inline-flex; align-items: center; gap: 5px; }
.m-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    margin-top: 13px;
    border-radius: 22px;
    background: var(--on-accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}
.m-flowhead { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.m-flowhead strong { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.m-dots { display: inline-flex; gap: 3px; }
.m-dots i { width: 13px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.m-flow { border-radius: 18px; background: var(--surface); overflow: hidden; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.m-row + .m-row { border-top: 1px solid var(--line); }
.m-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; }
.m-ico--train { background: var(--accent-tint); color: var(--accent-text); }
.m-ico--fuel { background: color-mix(in srgb, var(--fuel) 15%, transparent); color: var(--fuel); }
.m-ico--water { background: color-mix(in srgb, var(--water) 15%, transparent); color: var(--water); }
.m-row__main { display: flex; flex-direction: column; flex: 1; gap: 1px; min-width: 0; }
.m-row__main strong { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.m-row__main strong em {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--accent-tint);
    color: var(--accent-text);
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.m-row__main small { color: var(--text-3); font-size: 10.5px; }
.m-bar { height: 3px; margin-top: 3px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: 2px; }
.m-bar--fuel i { background: var(--fuel); }
.m-bar--water i { background: var(--water); }
.m-plus { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--fuel); color: #0B0B0D; }
.m-add {
    display: grid;
    place-items: center;
    height: 28px;
    padding-inline: 9px;
    flex: none;
    border-radius: 14px;
    background: color-mix(in srgb, var(--water) 16%, transparent);
    color: var(--water);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
}
.m-dock { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.m-dock__caps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: 42px;
    padding-inline: 5px 14px;
    border-radius: 21px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-3);
}
.m-dock__caps b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding-inline: 10px;
    border-radius: 16px;
    background: var(--raised);
    color: var(--text-1);
    font-size: 11px;
    font-weight: 600;
}
.m-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0 34%, var(--line-strong) 34% 100%);
}
.m-orb::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
.m-orb span {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
}

/* Workout player */
.m-ptop { display: flex; align-items: center; justify-content: space-between; }
.m-round { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
.m-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding-inline: 11px;
    border-radius: 14px;
    background: var(--surface);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 12.5px;
}
.m-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.m-end { display: grid; place-items: center; height: 30px; padding-inline: 11px; border-radius: 15px; background: var(--surface); font-size: 11px; font-weight: 600; }
.m-segs { display: flex; gap: 4px; }
.m-segs i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.m-segs i.done { background: var(--accent); }
.m-segs i.half::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 50%; border-radius: 2px; background: var(--accent); }
.m-media { border-radius: 20px; overflow: hidden; aspect-ratio: 1.55; background: var(--surface); flex: none; }
.m-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-pmeta { display: flex; align-items: center; justify-content: space-between; }
.m-count { color: var(--text-2); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 12px; }
.m-tagx { padding: 3px 8px; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: 10px; font-weight: 600; }
.m-pname { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -0.04em; }
.m-psub { margin-top: -6px; color: var(--text-3); font-size: 11px; }
.m-sets { display: flex; gap: 6px; }
.m-sets i {
    display: grid;
    place-items: center;
    flex: 1;
    height: 34px;
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-3);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 13px;
}
.m-sets i.ok { background: var(--accent); color: var(--on-accent); }
.m-sets i.cur { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-text); }
.m-reps { display: flex; flex-direction: column; align-items: center; padding: 9px; border-radius: 18px; background: var(--surface); }
.m-reps small { color: var(--text-3); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
/* In the hero the analysis card covers the player's lower start side: keep
   the rep count in the part that stays visible. */
.hero__stage .m-reps { padding-inline-start: 30%; }
.m-reps strong { margin-top: 2px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: -0.04em; }
.m-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    margin-top: auto;
    border-radius: 23px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}
html[lang="ar"] .m-hero__title, html[lang="ar"] .m-pname { letter-spacing: 0; font-weight: 700; }
html[lang="ar"] .m-reps strong, html[lang="ar"] .m-clock, html[lang="ar"] .m-count, html[lang="ar"] .m-add, html[lang="ar"] .m-streak { font-style: normal; }

/* ---------------------------------------------------------- sections */
.section { padding-block: 80px; }
.section--band {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.section--tight { padding-block: 24px 96px; }
@media (min-width: 1000px) {
    .section { padding-block: 120px; }
    .section--tight { padding-block: 40px 128px; }
}

.head { max-width: 760px; margin-bottom: 40px; }
.head .h2 { margin-top: 14px; }
.head .lead { margin-top: 16px; max-width: 36em; }
@media (min-width: 1000px) { .head { margin-bottom: 56px; } }

.icon-tile {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent-text);
}

/* -------------------------------------------------------------- steps */
.steps {
    display: grid;
    gap: 16px;
}
@media (min-width: 860px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 24px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line);
}
.step__vis {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    height: 196px;
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.step__num,
.step__title,
.step__text { padding-inline: 10px; }
.step__num {
    color: var(--accent-text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.step__title {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.step__text { margin-top: 8px; color: var(--text-2); font-size: 15px; }

.sv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-frame,
.compare__frame {
    position: relative;
    display: grid;
    place-items: center;
    height: 118px;
    border-radius: 14px;
    background: var(--raised);
    border: 1px solid var(--line);
    overflow: hidden;
}
.sv-frame .figure,
.compare__frame .figure { height: 104px; width: auto; margin-top: 18px; }
.sv-frame--side .figure { transform: scaleX(0.6); }
.sv-frame em,
.compare__frame em {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
}
.sv-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--success-tint);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}
.sv-rows {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.sv-row {
    display: grid;
    grid-template-columns: 8px auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding-inline: 14px;
    font-size: 13px;
}
.sv-row + .sv-row { border-top: 1px solid var(--line); }
.sv-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sv-row span { color: var(--text-2); }
.sv-row strong { font-weight: 600; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-plan { display: flex; flex-direction: column; gap: 12px; }
.sv-plan .ui-btn { margin-top: 0; }

/* -------------------------------------------------------------- bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card--coach { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
    .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card--coach { grid-column: span 2; }
}
.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: var(--r-card);
    background: var(--bg);
    border: 1px solid var(--line);
}
.card__body { display: flex; flex-direction: column; gap: 12px; }
.card__title {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.card__text { color: var(--text-2); font-size: 15px; }
.card > .chips,
.card > .meal,
.card > .compare { margin-top: auto; padding-top: 12px; }

.card--coach { gap: 24px; }
@media (min-width: 720px) {
    .card--coach {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 32px;
    }
}
.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.45;
}
.chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; }
.chat__msg--me {
    align-self: flex-end;
    background: var(--raised);
    border-end-end-radius: 6px;
}
.chat__msg--ai {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-end-start-radius: 6px;
}
.chat__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
}
.chat__plan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 2px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--success-tint);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text-1);
    font-size: 13px;
    font-weight: 500;
}
.chip--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
/* The hero's floating cards share the .chip class (absolute, shadowed);
   chips in a .chips row stay in the flow, or they pile up on each other. */
.chips .chip { position: static; z-index: auto; box-shadow: none; }

.meal {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.card > .meal {
    padding: 12px;
    margin-top: auto;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.meal__plate {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--raised);
}
.meal__plate i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--warning-tint);
    border: 5px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line-strong);
}
.meal__main { display: flex; flex-direction: column; min-width: 0; }
.meal__main strong { font-size: 14px; font-weight: 600; }
.meal__main small { color: var(--text-2); font-size: 12.5px; }
.meal__edit { color: var(--accent-text); font-size: 13px; font-weight: 600; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare__frame { height: 112px; }
.compare__stats {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}
.compare__stats strong {
    flex: 1;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--success-tint);
    color: var(--success);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* -------------------------------------------------------------- split */
.split { display: grid; gap: 56px; align-items: center; }
.split__copy .h2 { margin-top: 14px; }
.split__copy .lead { margin-top: 16px; max-width: 34em; }
.split__art { display: flex; justify-content: center; min-width: 0; }
.split__cta { margin-top: 28px; }
@media (min-width: 1000px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
    .split--rev .split__art { order: -1; }
}

.points { display: flex; flex-direction: column; margin-top: 32px; }
.point {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}
.point:last-child { border-bottom: 1px solid var(--line); }
.point__t { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.point__d { display: block; margin-top: 3px; color: var(--text-2); font-size: 15px; }

/* Button row + its one-line note (gym demo / sign-in) */
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
.actions__note {
    max-width: 34em;
    margin-top: 14px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}
/* Inline (not flex) so the arrow follows the last word when the text wraps. */
.more-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.more-link .ic { display: inline-block; margin-inline-start: 6px; vertical-align: -3px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------- topics */
/*
 * Text-first cards for the deep-dive sections: icon, H3, a short paragraph.
 * On a band (surface) they sit on ink, elsewhere on the surface tone.
 */
.topics { display: grid; gap: 16px; }
@media (min-width: 720px) {
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Three cards: one column, then one row (no lone card on a second row). */
.topics--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
    .topics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.topics--after { margin-top: 56px; }
@media (min-width: 1000px) { .topics--after { margin-top: 80px; } }
.topic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line);
}
.section--band .topic { background: var(--bg); }
.topic .icon-tile { margin-bottom: 6px; }
.topic__t {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.topic__d { color: var(--text-2); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

.phone--sm { height: 556px; }

/* Gym panel mock */
.panel {
    width: 100%;
    max-width: 560px;
    border-radius: var(--r-card);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    text-align: start;
}
.panel__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding-inline: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.panel__brand {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.panel__crumb { color: var(--text-2); font-size: 13px; }
.panel__crumb::before { content: "/"; margin-inline-end: 10px; color: var(--text-3); }
.panel__body { display: flex; flex-direction: column; padding: 20px; }
.panel__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.panel__sub { margin-top: 2px; color: var(--text-2); font-size: 13.5px; }
.risk {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.risk__row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
}
.risk__row + .risk__row { border-top: 1px solid var(--line); }
.wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--success-tint);
    color: var(--success);
    font-size: 12.5px;
    font-weight: 600;
}
@media (max-width: 479px) {
    .risk__row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
    .risk__row .pill { display: none; }
    .wa { padding: 0 10px; }
    .wa > span { display: none; }
    .panel__body { padding: 16px; }
}

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 8px; }
@media (min-width: 1000px) {
    .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
    .faq__head { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding-block: 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__icon { border-color: var(--text-3); }
.qa__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.qa[open] .qa__icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.qa__a {
    max-width: 62ch;
    padding-bottom: 22px;
    color: var(--text-2);
    font-size: 16px;
}

/* ---------------------------------------------------------------- cta */
.cta {
    position: relative;
    display: grid;
    gap: 32px;
    padding: 40px 24px;
    border-radius: var(--r-hero);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}
.cta__copy { position: relative; z-index: 1; }
.cta__copy .h2 { margin-top: 14px; max-width: 14em; }
.cta__copy .lead { margin-top: 16px; margin-bottom: 28px; max-width: 32em; }
.cta__gym {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 28px;
    color: var(--text-2);
    font-size: 15px;
}
.cta__gym a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-1);
    font-weight: 600;
    text-decoration: none;
}
.cta__gym a:hover { color: var(--accent-text); }
.cta__mark { display: none; position: relative; z-index: 1; }
.rings--cta {
    top: 50%;
    left: auto;
    right: -180px;
    width: 560px;
    height: 560px;
    transform: translateY(-50%);
}
[dir="rtl"] .rings--cta { right: auto; left: -180px; }
@media (max-width: 999px) {
    .rings--cta { top: auto; bottom: -380px; transform: none; }
}
@media (min-width: 1000px) {
    .cta {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 72px;
    }
    .cta__mark { display: block; margin-inline-end: 56px; }
}

/* ------------------------------------------------------------- footer */
.footer {
    padding-block: 64px 32px;
    border-top: 1px solid var(--line);
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 640px) {
    .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
    .footer__brand { grid-column: auto; }
}
.footer__tagline { max-width: 26em; margin-top: 16px; color: var(--text-2); font-size: 15px; }
.footer__h {
    margin-bottom: 14px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: 4px; }
.footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--text-1);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--accent-text); }
.footer__col a[aria-current] { color: var(--accent-text); }
.footer__note {
    max-width: 60em;
    margin-top: 48px;
    color: var(--text-2);
    font-size: 13.5px;
}
.footer__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13.5px;
}

/* CTA block with a button row (gym page demo) */
.cta__copy .actions { margin-top: 0; }

/* -------------------------------------------------------- gym page */
/* resources/views/site/gyms.blade.php: a page hero (breadcrumb, H1, the
   panel mock), then the landing's section patterns. */
.page-hero { padding-block: 24px 72px; }
@media (min-width: 1000px) { .page-hero { padding-block: 32px 112px; } }
.crumbs { margin-bottom: 28px; }
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--text-2);
    font-size: 13.5px;
}
.crumbs li + li::before {
    content: "/";
    margin-inline-end: 8px;
    color: var(--text-3);
}
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text-1); }
.crumbs [aria-current] { color: var(--text-1); }
@media (min-width: 1000px) { .crumbs { margin-bottom: 40px; } }

.page-title {
    margin-top: 16px;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(2.625rem, 1.55rem + 4.4vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    word-spacing: 0.06em;
    text-wrap: balance;
}
html[lang="ar"] .page-title { font-style: normal; font-weight: 700; line-height: 1.25; }
.page-hero .split__copy .lead { margin-top: 20px; }

/* How it works for a gym: four numbered cards, no artwork */
@media (min-width: 720px) {
    .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.section--band .step { background: var(--bg); }
.step--plain { padding: 22px 14px 26px; }
.step--plain .step__num {
    font-size: 30px;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}
html[lang="ar"] .step--plain .step__num { font-style: normal; font-weight: 700; }
.step--plain .step__title { margin-top: 14px; }

/* WhatsApp win-back message (the panel's modal, as a card) */
.wa-card {
    width: 100%;
    max-width: 460px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    text-align: start;
}
.wa-card__head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.wa-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wa-card__who strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-card__who small { color: var(--text-2); font-size: 12.5px; }
.wa-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; }
.wa-card__label { color: var(--text-2); font-size: 12px; font-weight: 600; }
.wa-card__msg {
    padding: 14px 16px;
    border-radius: 16px;
    border-end-start-radius: 6px;
    background: var(--success-tint);
    color: var(--text-1);
    font-size: 14.5px;
    line-height: 1.55;
}
.wa-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 0 18px 18px;
}
.wa-card__hint { color: var(--text-3); font-size: 12.5px; }
.wa-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--success);
    color: #05170C;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ------------------------------------------------------------- legal */
.legal { padding-block: 48px 96px; }
@media (min-width: 1000px) { .legal { padding-block: 80px 128px; } }
.legal__in { max-width: 760px; margin-inline: auto; }
.legal__head {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
.legal__head .h2 { margin-top: 14px; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.legal__meta { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.legal__intro { color: var(--text-2); font-size: 17px; }
.toc {
    margin-block: 32px 16px;
    padding: 20px 24px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line);
}
.toc__h { margin-bottom: 10px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.toc ol { display: grid; gap: 2px; }
.toc a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    color: var(--text-1);
    font-size: 15px;
    text-decoration: none;
}
.toc a:hover { color: var(--accent-text); }
.legal-sec { padding-block: 28px; border-bottom: 1px solid var(--line); }
.legal-sec h2 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.legal-sec p,
.legal-sec li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal-sec p + p,
.legal-sec p + ul,
.legal-sec ul + p { margin-top: 12px; }
.legal-sec ul { list-style: disc; padding-inline-start: 22px; }
.legal-sec li + li { margin-top: 6px; }
.legal-sec li::marker { color: var(--text-3); }
.legal strong { color: var(--text-1); font-weight: 600; }
.legal-sec a,
.legal-note a { color: var(--accent-text); text-underline-offset: 3px; }
.legal-note {
    margin-top: 32px;
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 15px;
}

/* ------------------------------------------------------------ reveal */
@media (prefers-reduced-motion: no-preference) {
    .js-reveal [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }
    .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

@media print {
    .nav, .menu, .skip, .hero__art, .split__art, .cta { display: none !important; }
    body { background: #fff; color: #000; }
}
