/* عزم GYM — public landing page. Dark base, blue accents only (never cyan), silver type. Standalone from app.css.
   Motion is transform/opacity only. Anything that hides content before a reveal is gated on html.js,
   so the page reads in full when landing.js does not run.
   Language (docs/design/DIRECTION.md §1): plate numerals with the Bar under them, ledger rows on hairlines instead
   of cards, the diamond as the only separator, outlined numerals as the brand's ghost lettering. */
:root {
    color-scheme: dark;
    --bg: #04070d;
    --bg-2: #070c16;
    --surface: #0b1220;
    --surface-2: #101a2e;
    --line: #172239;
    --line-2: #25355a;
    --text: #f3f6fb;
    --muted: #97a4bb;
    --muted-2: #b3bfd3;   /* one step brighter: answers, running text that must stay readable */
    --silver: #cbd5e1;
    --blue: #1e54b7;
    --blue-2: #3b82f6;
    --blue-3: #93b4f5;
    --gutter: clamp(16px, 5vw, 72px);
    --max: 1280px;
    --display: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --body: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 72px;
    /* Type scale. Arabic never goes below caption; label is for Latin, letter-spaced eyebrows only. */
    --fs-display: clamp(76px, 15vw, 196px);
    --fs-h1: clamp(38px, 6vw, 76px);
    --fs-h2: clamp(34px, 3.8vw, 52px);
    --fs-h3: clamp(18px, 1.6vw, 22px);
    --fs-lead: clamp(17px, 1.4vw, 19px);
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-caption: 13px;
    --fs-label: 11px;
    /* The Bar and the diamond: the two marks the whole brand shares. */
    --bar-w: 28px;
    --bar-h: 3px;
    --grad-text: linear-gradient(100deg, #fff 0%, var(--blue-3) 30%, var(--blue-2) 65%, var(--blue) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font: 400 var(--fs-body)/1.8 var(--body);
    overflow-x: clip;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, .btn, b, strong, small, .eyebrow, .tag, time { font-family: var(--display); }
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 116px); position: relative; }

.skip {
    position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100;
    padding: 10px 16px; background: var(--blue-2); color: #fff; border-radius: 8px; font-weight: 700;
    transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Film grain over everything: the flyer's texture without an image request. */
.grain {
    position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.top {
    position: fixed; inset-inline: 0; top: 0; z-index: 40;
    transition: transform .45s var(--ease), background .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgb(4 7 13 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: var(--header-h); padding-inline: var(--gutter);
    width: min(100%, calc(var(--max) + var(--gutter) * 2)); margin-inline: auto;
}
.progress {
    position: absolute; bottom: -1px; inset-inline-start: 0; height: 2px; width: 100%;
    background: linear-gradient(90deg, var(--blue-3), var(--blue-2));
    transform: scaleX(var(--p, 0)); transform-origin: right center;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 22px; }
.logo .mark { width: 34px; height: 34px; }
.logo b { color: var(--blue-2); letter-spacing: 2px; }
.logo-text { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); font-weight: 600; font-size: var(--fs-small); }
.nav a { position: relative; color: var(--muted); padding-block: 6px; transition: color .25s; }
.nav a i { font-style: normal; font-family: var(--display); font-size: var(--fs-label); color: var(--blue-3); letter-spacing: 1px; margin-inline-end: 6px; vertical-align: top; }
.nav a::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--blue-3);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav-login { display: none; }
.top-cta { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 10px; }
.burger span {
    position: absolute; inset-inline: 11px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
html.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: var(--fs-body); line-height: 1;
    position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn.sm { padding: 10px 18px; font-size: var(--fs-small); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn.primary { background: var(--blue-2); color: #fff; box-shadow: 0 10px 30px -8px rgb(59 130 246 / .6); }
.btn.primary::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
    transform: translateX(120%); transition: transform .7s var(--ease);
}
.btn.primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgb(59 130 246 / .7); }
.btn.primary:hover::before { transform: translateX(-120%); }
.btn.ghost { border: 1px solid rgb(203 213 225 / .35); color: var(--silver); background: rgb(255 255 255 / .02); }
.btn.ghost:hover { border-color: var(--blue-3); color: #fff; background: rgb(59 130 246 / .12); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 32px) var(--gutter) 28px; overflow: hidden;
    background:
        radial-gradient(70% 60% at 85% 20%, rgb(30 84 183 / .32), transparent 65%),
        radial-gradient(50% 50% at 10% 90%, rgb(59 130 246 / .12), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
/* Cursor glow (landing.js feeds --mx/--my; without it the gradient sits still off-canvas). */
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgb(59 130 246 / .16), transparent 60%);
}
/* Fine vertical hairlines: the flyer's rack of light. */
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgb(147 180 245 / .06) calc(100% / 12 - 1px) calc(100% / 12));
    mask-image: linear-gradient(180deg, transparent, #000 30% 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30% 70%, transparent);
}
/* Blue light beams, like the gym's strip lighting; no blur filter, gradients only. */
.beams { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.beams i {
    position: absolute; top: -30%; height: 160%; width: clamp(80px, 14vw, 220px);
    background: linear-gradient(90deg, transparent, rgb(59 130 246 / .16) 50%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 35% 65%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 35% 65%, transparent);
    transform: rotate(16deg); will-change: transform;
    animation: sweep 16s var(--ease) infinite alternate;
}
.beams i:nth-child(1) { left: 8%; }
.beams i:nth-child(2) { left: 38%; animation-duration: 21s; animation-delay: -6s; opacity: .7; }
.beams i:nth-child(3) { left: 66%; animation-duration: 18s; animation-delay: -11s; }
@keyframes sweep { from { transform: rotate(16deg) translateX(-10vw); } to { transform: rotate(16deg) translateX(12vw); } }

.hero-in {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px;
    width: min(100%, var(--max)); margin-inline: auto;
}
.tag {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--blue-3); letter-spacing: 5px; font-weight: 800; font-size: var(--fs-caption); direction: ltr;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 4px rgb(59 130 246 / .2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(59 130 246 / 0); } }

.display { font-size: var(--fs-display); font-weight: 900; line-height: 1.02; margin: 18px 0 22px; }
.display .line { display: block; overflow: hidden; padding-block: .04em; margin-block: -.04em; }
.display .line-in { display: block; }
.display .grad {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-inline-end: .08em; /* room for the italic-ish overhang of Cairo's final letters */
}
.lead { color: var(--muted); max-width: 46ch; font-size: var(--fs-lead); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-art { position: relative; min-height: clamp(260px, 42vw, 560px); display: grid; place-items: center; }
/* The mark's glow is a static gradient underneath, not a filter on the floating SVG (a filter repaints every frame). */
.hero-art::before { content: ''; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(59 130 246 / .34), transparent); }
.ghost-word {
    position: absolute; inset-inline-end: -4%; top: 50%; transform: translateY(-50%);
    font-family: var(--display); font-weight: 900; font-size: clamp(150px, 26vw, 400px); line-height: 1; letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1px rgb(147 180 245 / .32); user-select: none; will-change: transform;
}
.hero-mark { position: relative; width: clamp(160px, 24vw, 340px); height: auto; aspect-ratio: 1; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgb(147 180 245 / .18); pointer-events: none; }
.ring-1 { width: 62%; aspect-ratio: 1; animation: spin 40s linear infinite; border-style: dashed; }
.ring-2 { width: 84%; aspect-ratio: 1; border-color: rgb(147 180 245 / .1); }
.ring-1::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 18px var(--blue-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
    position: relative; z-index: 1; margin-top: clamp(32px, 6vw, 72px);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    width: min(100%, var(--max)); margin-inline: auto; padding-top: 22px; border-top: 1px solid rgb(147 180 245 / .14);
}
/* قوة ◆ تحمل ◆ طاقة — the diamond is the page's one separator. */
.pillar-strip { display: flex; align-items: baseline; gap: clamp(18px, 3vw, 40px); }
.pillar-strip li { display: flex; align-items: baseline; gap: 10px; }
.pillar-strip li + li::before { content: ''; width: 8px; height: 8px; background: var(--blue-2); transform: rotate(45deg); flex: none; align-self: center; margin-inline-end: clamp(18px, 3vw, 40px); }
.pillar-strip span { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.pillar-strip small { font-size: var(--fs-label); letter-spacing: 3px; color: var(--muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-caption); font-weight: 600; }
.cue { width: 1px; height: 44px; background: linear-gradient(180deg, var(--blue-3), transparent); position: relative; overflow: hidden; }
.cue::after { content: ''; position: absolute; inset: 0; background: var(--bg); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.side-text {
    position: absolute; inset-inline-start: 22px; bottom: 34%; z-index: 1;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--display); font-size: var(--fs-label); letter-spacing: 5px; color: rgb(151 164 187 / .55); font-weight: 700;
}

/* Load choreography: pure CSS, so it completes with or without JS. */
.load { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.line-in { transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.load-1 { animation-delay: .1s; }
.load-2 { animation-delay: .2s; }
.load-3 { animation-delay: .32s; }
.load-4 { animation-delay: .55s; }
.load-5 { animation-delay: .7s; }
.load-6 { animation-delay: .95s; }
.hero-art { opacity: 0; animation: fade-in 1.4s var(--ease) .3s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { to { transform: none; } }

/* ---------- Section furniture ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--blue-3); font-weight: 800; font-size: var(--fs-caption); margin-bottom: 18px; }
.eyebrow span { font-size: var(--fs-label); letter-spacing: 3px; color: var(--muted); }
.eyebrow::before { content: ''; width: var(--bar-w); height: 1px; background: var(--blue-2); }
.title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.08; }
.sub { color: var(--muted); max-width: 48ch; margin-top: 16px; font-size: var(--fs-body); }
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* ---------- Pillars ---------- */
.pillars.section { padding-bottom: clamp(40px, 5vw, 72px); }
.pillars-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pillars-head { position: sticky; top: calc(var(--header-h) + 24px); }
.pillar-list { border-top: 1px solid var(--line); }
.pillar {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.6vw, 36px); align-items: start;
    padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line);
}
/* The blue rule under each pillar draws in as the row reveals; it is simply there without JS. */
.pillar::before { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 100%; background: var(--blue-2); transition: width .9s var(--ease) .15s; }
html.js .pillar::before { width: 0; }
html.js .pillar.in::before { width: 100%; }
.pillar-num {
    font-family: var(--display); font-weight: 900; font-size: clamp(64px, 8vw, 128px); line-height: .9; letter-spacing: -.03em;
    font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1px rgb(147 180 245 / .32);
    margin-top: -.04em; transition: -webkit-text-stroke-color .4s, color .4s; user-select: none;
}
.pillar h3 { font-size: var(--fs-h2); font-weight: 800; line-height: 1; transition: transform .5s var(--ease); }
.pillar h3 small { display: block; font-size: var(--fs-label); letter-spacing: 4px; color: var(--muted); margin-top: 10px; font-weight: 800; }
.pillar p { color: var(--muted); max-width: 52ch; margin-top: 14px; font-size: var(--fs-body); }
.pillar:hover h3 { transform: translateX(-6px); }
.pillar:hover .pillar-num { -webkit-text-stroke-color: rgb(147 180 245 / .7); }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(48px, 6vw, 88px); position: relative; }
.manifesto::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 60% at 50% 50%, rgb(30 84 183 / .18), transparent 70%);
}
.manifesto-text { position: relative; text-align: center; margin-inline: auto; max-width: 22ch; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 68px); line-height: 1.35; }
/* The payoff: its own line, a step larger, in the hero's gradient. landing.js wraps the words in .w spans, and
   the clip has to live on those spans (a faded span paints in its own layer, outside the parent's text clip). */
.manifesto-text em { display: block; font-style: normal; font-size: 1.22em; line-height: 1.2; margin-top: .25em; padding-inline-end: .06em; }
.manifesto-text em, .manifesto-text em .w { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.js .manifesto-text em { background: none; color: var(--blue-3); }
.manifesto-text .w { display: inline-block; transition: opacity .4s, transform .4s var(--ease); }
html.js .manifesto-text .w { opacity: .14; transform: translateY(4px); }
html.js .manifesto-text .w.on { opacity: 1; transform: none; }

/* ---------- Facts: three plates in a hairline strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: clamp(24px, 3.5vw, 44px) clamp(12px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.fact:last-child { border-inline-end: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(36px, 5.6vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; text-align: start; }
.fact b::after { content: ''; display: block; width: var(--bar-w); height: var(--bar-h); margin: 14px 0 12px; background: var(--blue-2); }
.fact > span { color: var(--muted); font-size: var(--fs-small); display: block; line-height: 1.6; }

/* ---------- Hours: one RTL day track, 07:00 → 23:00 ---------- */
.timeline {
    --tl-cols: 60fr 360fr 30fr 450fr 60fr; /* 07–08 pad · ladies 08:00–14:00 · switchover · men 14:30–22:00 · 22–23 pad */
    display: grid; grid-template-columns: var(--tl-cols); row-gap: 18px; align-items: end;
}
.tl-label { grid-row: 1; min-width: 0; }
.tl-label.ladies { grid-column: 2; }
.tl-label.men { grid-column: 4; }
.tl-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }
.tl-name small { font-size: var(--fs-label); letter-spacing: 3px; color: var(--muted); font-weight: 800; }
/* «8:00 – 2:00» as one plate numeral, each period's caption under its own number; the row starts at the segment's start. */
.tl-time {
    display: flex; align-items: flex-start; gap: clamp(6px, 1vw, 14px); margin-top: 8px;
    font-family: var(--display); font-weight: 900; font-size: clamp(21px, 5.8vw, 60px); line-height: 1; letter-spacing: -.01em;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-time .t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tl-time time { direction: ltr; unicode-bidi: isolate; }
.tl-time small { font-family: var(--body); font-weight: 500; font-size: var(--fs-caption); line-height: 1.4; color: var(--muted); }
.tl-time .dash { flex: none; width: clamp(12px, 2vw, var(--bar-w)); height: var(--bar-h); margin-top: calc(.5em - var(--bar-h) / 2); background: var(--blue-2); }
/* Both shifts read the same (silver); landing.js sets live-l / live-m and only the running shift turns blue. */
.tl-time time { color: var(--silver); }
.timeline.live-l .ladies .tl-time time, .timeline.live-m .men .tl-time time { background: linear-gradient(90deg, var(--blue-3), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-pill {
    display: none; align-items: center; gap: 7px; align-self: center;
    padding: 3px 10px; border-radius: 999px; background: rgb(59 130 246 / .16); color: var(--blue-3); font-family: var(--display); font-weight: 800; font-size: var(--fs-caption); line-height: 1.5;
}
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); animation: pulse 2s ease-in-out infinite; }
.tl-label.live .live-pill { display: inline-flex; }

.tl-track {
    grid-column: 1 / -1; grid-row: 2; position: relative; height: clamp(60px, 8vw, 88px);
    display: grid; grid-template-columns: var(--tl-cols); align-items: stretch;
    border-block: 1px solid var(--line-2);
    background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 16 - 1px), rgb(37 53 90 / .5) calc(100% / 16 - 1px) calc(100% / 16)); /* one hairline per hour */
}
.tl-seg { grid-row: 1; margin-block: 12px; transform-origin: 100% 50%; background: linear-gradient(270deg, rgb(203 213 225 / .16), rgb(203 213 225 / .3)); box-shadow: inset 0 0 0 1px rgb(203 213 225 / .28); transition: background .4s, box-shadow .4s; }
.seg-l { grid-column: 2; }
.seg-m { grid-column: 4; }
.timeline.live-l .seg-l, .timeline.live-m .seg-m { background: linear-gradient(270deg, rgb(59 130 246 / .35), rgb(30 84 183 / .6)); box-shadow: inset 0 0 0 1px rgb(59 130 246 / .5); }
html.js .timeline.reveal .tl-seg { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
html.js .timeline.reveal.in .tl-seg { transform: none; }
.tl-dia { position: absolute; top: -1px; width: 8px; height: 8px; background: var(--blue-2); transform: translate(50%, -50%) rotate(45deg); }
.now { position: absolute; top: -8px; bottom: -8px; inset-inline-start: var(--t, 0%); width: 2px; background: #fff; box-shadow: 0 0 12px var(--blue-3); transform: translateX(50%); }
.now .now-label {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: var(--fs-caption); font-weight: 800; color: var(--bg); line-height: 1.4;
    background: #fff; padding: 1px 8px; border-radius: 4px; white-space: nowrap; direction: ltr;
}
.tl-status { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; color: var(--muted); font-size: var(--fs-small); }
.tl-status .tl-state { color: var(--text); }
.tl-status .tl-detail::before { content: ' · '; }

/* ---------- App ---------- */
.app { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); overflow: hidden; }
.app-in {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(40px, 6vw, 96px); align-items: center;
    grid-template-areas: "head phone" "features phone" "cta phone";
}
.app-head { grid-area: head; }
.app-features { grid-area: features; }
.app-cta { grid-area: cta; margin-top: 0; }
.app-phone { grid-area: phone; }
/* Features as ledger rows: icon, title, one line, hairlines. */
.features { border-top: 1px solid var(--line); margin-bottom: 28px; }
.feature { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; transition: stroke .3s; }
.feature h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.35; transition: color .3s; }
.feature p { color: var(--muted); font-size: var(--fs-small); margin-top: 2px; line-height: 1.7; }
.feature:hover h3 { color: var(--blue-3); }
.feature:hover svg { stroke: var(--blue-3); }

.phone-wrap { position: relative; display: grid; place-items: center; padding-block: 24px; }
.phone-wrap::before { content: ''; position: absolute; inset: 10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(59 130 246 / .28), transparent); }
.phone {
    position: relative; width: min(380px, 82vw); aspect-ratio: 9 / 18; border-radius: 52px;
    background: #0a1019; border: 10px solid #141c2c; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(255 255 255 / .06);
    overflow: hidden;
}
.notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 14px; background: #141c2c; z-index: 2; }
.screen { position: absolute; inset: 0; padding: 100px 20px 20px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #0b1220, #070b14); }
.s-top { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 16px; }
.s-top .mark { width: 24px; height: 24px; }
.s-top b { color: var(--blue-2); letter-spacing: 1px; }
.s-bell { margin-inline-start: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 3px rgb(59 130 246 / .25); }
.s-hi { color: var(--muted); font-size: 14px; }
/* The workout card: the screen's one card, with ticks for progress (the app never draws rings). */
.s-card { padding: 16px 18px; border-radius: 6px; background: rgb(255 255 255 / .05); border: 1px solid var(--line-2); }
.s-card b { display: block; font-size: 18px; }
.s-card small { font-family: var(--body); color: var(--muted); font-size: 13px; }
.s-ticks { display: flex; gap: 3px; margin-top: 10px; }
.s-ticks i { width: 26px; height: 7px; border: 1px solid var(--line-2); }
.s-ticks i.on { background: var(--blue-2); border-color: var(--blue-2); }
.s-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.s-list li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; background: rgb(255 255 255 / .04); }
.s-list em { margin-inline-start: auto; font-style: normal; font-family: var(--display); color: var(--blue-3); font-weight: 700; direction: ltr; }
.s-check { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--line-2); flex: none; position: relative; }
.s-check.done { background: var(--blue-2); border-color: var(--blue-2); }
.s-check.done::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.s-chat { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; }
.s-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--silver), #64748b); }
.s-chat p { font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 12px 12px 12px 2px; background: rgb(255 255 255 / .06); color: var(--silver); }
.s-chat b { display: block; color: var(--blue-3); font-size: 12px; }
.s-nav { display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--line); }
.s-nav i { width: 18px; height: 4px; background: var(--line-2); }
.s-nav i.on { background: var(--blue-2); }

/* The notification chip sits inside the screen under the notch (a heads-up notification); it reveals once with the phone. */
.chip {
    position: absolute; z-index: 3; top: 48px; inset-inline: 0; margin-inline: auto; width: max-content;
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
    background: rgb(16 26 46 / .92); border: 1px solid var(--line-2);
    font-family: var(--display); font-weight: 700; font-size: var(--fs-caption); white-space: nowrap; box-shadow: 0 16px 30px -16px rgb(0 0 0 / .8);
    transition: opacity .6s var(--ease) .55s, transform .6s var(--ease) .55s;
}
html.js .app-phone.reveal .chip { opacity: 0; transform: translateY(-10px); }
html.js .app-phone.reveal.in .chip { opacity: 1; transform: none; }
.chip-ico { width: 20px; height: 20px; border-radius: 50%; position: relative; flex: none; }
.chip-ico.ok { background: var(--blue-2); }
.chip-ico.ok::after { content: ''; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- FAQ ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-in .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
/* Rows sit flush with the column so their hairlines line up with the pillar and feature rules; the open state's
   tint and 2px start rule live inside the row, and a constant inner padding keeps the type off the rule. */
.faq-item { position: relative; padding-inline: 12px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.faq-item::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2px; background: var(--blue-2); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.faq-item[open] { background: rgb(59 130 246 / .07); }
.faq-item[open]::before { transform: none; }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 0; min-height: 44px; font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.4;
    transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--blue-3); }
.faq-plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--blue-3); transform: translate(-50%, -50%); transition: background .3s; }
.faq-plus::before { width: 14px; height: 2px; }
.faq-plus::after { width: 2px; height: 14px; }
.faq-item[open] .faq-plus { transform: rotate(135deg); background: var(--blue-2); border-color: var(--blue-2); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-a { padding-bottom: 24px; color: var(--muted-2); font-size: var(--fs-body); max-width: 60ch; }
.faq-a a { color: var(--blue-3); text-decoration: underline; text-underline-offset: 4px; }
.faq-a a:hover { color: #fff; }
.faq-item[open] .faq-a { animation: faq-in .5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
/* Real height animation where the browser can interpolate to auto (Chrome 131+); elsewhere it just opens. */
@supports (interpolate-size: allow-keywords) {
    .faq-item { interpolate-size: allow-keywords; }
    .faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
    .faq-item[open]::details-content { height: auto; }
}

/* ---------- Contact: the one card on the page ---------- */
.call {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: clamp(40px, 6vw, 84px) clamp(20px, 4vw, 64px); border-radius: 8px; border: 1px solid rgb(59 130 246 / .5);
    background: linear-gradient(135deg, var(--blue) 0%, #12327a 55%, #0a1a3d 100%); color: #fff;
}
.call::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(147 180 245 / .4), transparent 65%); pointer-events: none; }
.call > * { position: relative; }
.call .eyebrow { color: #dbe6ff; margin-bottom: 14px; } /* blue-3 on the blue card was 3.3:1; this is 9:1 */
.call .eyebrow span { color: rgb(219 230 255 / .75); }
.call .eyebrow::before { background: #dbe6ff; }
.call .sub { color: rgb(255 255 255 / .82); max-width: 42ch; margin-top: 12px; }
.call-num {
    display: block; font-family: var(--display); font-size: clamp(42px, 8vw, 112px); font-weight: 900; line-height: 1; letter-spacing: .02em;
    margin: clamp(22px, 3vw, 40px) 0 clamp(20px, 3vw, 32px); white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; transition: transform .4s var(--ease);
}
.call-num:hover { transform: translateY(-3px); }
.call-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 560px); }
.call-actions .btn { min-height: 52px; padding-block: 0; }
.call-actions .btn svg { width: 20px; height: 20px; }
.btn.light { background: #fff; color: var(--blue); }
.btn.light:hover { background: #e6eeff; transform: translateY(-2px); }
.btn.wa { border: 1px solid rgb(255 255 255 / .5); color: #fff; background: rgb(255 255 255 / .08); }
.btn.wa:hover { background: rgb(255 255 255 / .18); border-color: #fff; transform: translateY(-2px); }
.call-where {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 20px;
    width: 100%; margin-top: clamp(26px, 3.5vw, 40px); padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .22);
    color: rgb(255 255 255 / .88); font-size: var(--fs-body);
}
.map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-family: var(--display); font-weight: 800; font-size: var(--fs-small); transition: color .25s; }
.map-link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.map-link:hover { color: #dbe6ff; }
.map-link:hover svg { transform: translate(-3px, -3px); }

/* ---------- Floating quick contact (phones only) ---------- */
.fab { position: fixed; bottom: 18px; inset-inline-end: 16px; z-index: 35; display: none; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), opacity .4s; }
.fab-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .85); transition: transform .3s var(--ease); }
.fab-btn svg { width: 24px; height: 24px; }
.fab-wa { background: var(--blue-2); color: #fff; }
.fab-call { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.fab-btn:active { transform: scale(.94); }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(12px, 2.5vw, 28px); background: var(--bg-2); }
.foot-giant {
    text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(88px, 19vw, 300px); line-height: .8; letter-spacing: -.02em;
    color: transparent; -webkit-text-stroke: 1px rgb(147 180 245 / .22); user-select: none;
    margin-bottom: -.12em; position: relative; z-index: 0;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.foot-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.foot-slogan { font-family: var(--display); font-weight: 800; }
.foot-slogan span { display: block; font-size: var(--fs-label); letter-spacing: 4px; color: var(--muted); direction: ltr; text-align: end; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px 24px; color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.foot-links a { transition: color .25s; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--muted); font-size: var(--fs-caption); padding-block: 12px 28px; }

/* ---------- Scroll reveals (gated on html.js so content is never hidden without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .pillar-list .reveal:nth-child(2) { transition-delay: .1s; }
html.js .pillar-list .reveal:nth-child(3) { transition-delay: .2s; }
html.js .facts-in .reveal:nth-child(2), html.js .features .reveal:nth-child(2) { transition-delay: .08s; }
html.js .facts-in .reveal:nth-child(3), html.js .features .reveal:nth-child(3) { transition-delay: .16s; }
html.js .features .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .side-text { display: none; }
}
@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .burger { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; flex-direction: column; align-items: flex-start; justify-content: flex-start;
        gap: 6px; padding: 24px var(--gutter); background: rgb(4 7 13 / .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s;
    }
    html.menu-open .nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    html.menu-open .top { background: rgb(4 7 13 / .96); }
    .nav a { font-family: var(--display); font-size: 32px; font-weight: 900; color: var(--text); padding-block: 10px; width: 100%; border-bottom: 1px solid var(--line); }
    .nav a i { font-size: var(--fs-caption); margin-inline-end: 12px; }
    .nav a::after { display: none; }
    .nav-login { display: block; font-size: var(--fs-h3) !important; color: var(--blue-3) !important; margin-top: 18px; border-bottom: 0 !important; }
    .hero-in { grid-template-columns: 1fr; gap: 8px; }
    .hero-art { order: -1; min-height: 220px; margin-top: -8px; }
    .hero-mark { width: 150px; }
    .ghost-word { font-size: clamp(120px, 34vw, 220px); inset-inline-end: -2%; }
    .display { font-size: clamp(72px, 21vw, 120px); }
    .pillars-in { grid-template-columns: 1fr; }
    .pillars-head { position: static; }
    /* heading → phone → features → buttons */
    .app-in { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "features" "cta"; }
    .app-in .sec-head { margin-bottom: 0; }
    .phone-wrap { padding-block: 16px 32px; }
    .phone { width: min(260px, 68vw); aspect-ratio: 9 / 19; }
    /* At 260px the mock is 529px tall inside the bezel: smaller type, tighter rows, four sets, so the chat and nav stay on screen. */
    .screen { padding: 86px 16px 14px; gap: 8px; }
    .chip { top: 40px; }
    .s-hi { font-size: 13px; }
    .s-card { padding: 12px 14px; }
    .s-card b { font-size: 17px; }
    .s-card small { font-size: 12px; }
    .s-ticks i { width: 22px; height: 6px; }
    .s-list { gap: 6px; font-size: 13px; }
    .s-list li { padding: 6px 10px; }
    .s-list li:nth-child(5) { display: none; }
    .s-chat p { font-size: 12px; }
    .s-chat b { font-size: 11px; }
    .faq-in { grid-template-columns: 1fr; }
    .faq-in .sec-head { position: static; margin-bottom: 8px; }
    /* Tap targets: 44px minimum on touch screens. */
    .btn.sm { min-height: 44px; padding-inline: 20px; }
    .foot-links a { padding-block: 10px; }
    .fab { display: flex; }
    html.js .fab { transform: translateY(24px); opacity: 0; pointer-events: none; }
    html.js .fab.show { transform: none; opacity: 1; pointer-events: auto; }
    html.menu-open .fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 600px) {
    .hero { padding-bottom: 20px; }
    .pillar-strip { gap: 14px; width: 100%; justify-content: center; }
    .pillar-strip li + li::before { margin-inline-end: 14px; width: 7px; height: 7px; }
    .pillar-strip span { font-size: 17px; }
    .pillar-strip small { display: none; }
    .scroll-cue { display: none; }
    .cta .btn { flex: 1 1 100%; }
    .pillar { gap: 14px; }
    .fact { padding-inline: 10px; }
    .fact b::after { margin: 10px 0 8px; }
    /* Phones: the two labels share the width evenly so the numerals can be large; the track keeps its minute grid. */
    .timeline { row-gap: 14px; grid-template-columns: 1fr 1fr; column-gap: 12px; }
    .tl-label.ladies { grid-column: 1; }
    .tl-label.men { grid-column: 2; }
    .tl-name { gap: 4px 8px; }
    .tl-name small { display: none; }
    .tl-time { margin-top: 6px; font-size: clamp(28px, 7.7vw, 36px); }
    .tl-seg { margin-block: 9px; }
    .tl-dia { width: 7px; height: 7px; }
    .now .now-label { top: 8px; font-size: var(--fs-label); padding-inline: 6px; }
    .call-actions { grid-template-columns: 1fr; }
    .call-where { flex-direction: column; gap: 0; }
    .call-where .map-link { min-height: 44px; }
    .foot-in { flex-direction: column; align-items: flex-start; }
    .foot-slogan span { text-align: start; }
    .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; }
}
@media (hover: none) {
    .hero::before { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .load, .line-in, .hero-art { opacity: 1; transform: none; animation: none; }
    .beams, .cue::after { display: none; }
    html.js .reveal { opacity: 1; transform: none; }
    html.js .manifesto-text .w { opacity: 1; transform: none; }
    html.js .timeline.reveal .tl-seg { transform: none; }
    html.js .pillar::before { width: 100%; }
    html.js .app-phone.reveal .chip { opacity: 1; transform: none; }
}
