/* LifeApp landing page. Couleurs de l'appli seulement : noir + bleus. */
:root {
  --black: #000;
  --night: #03050c;
  --ink: #0a0f1f;
  --deep: #0a1440;
  --blue: #2f6bff;
  --blue-deep: #1e4fd8;
  --blue-light: #6e9bff;
  --blue-ice: #9dbbff;
  --ice: #dce6ff;
  --white: #fff;
  --mist: #a9b1c2;
  --muted: #7d869b;
  --line: rgba(157, 187, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --radius: 28px;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(38px, 6.2vw, 84px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-ice); outline-offset: 3px; border-radius: 8px; }

.grad {
  background: linear-gradient(100deg, var(--ice) 0%, var(--blue-ice) 30%, var(--blue) 65%, var(--blue-light) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

/* Grain + cursor glow */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(3%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(2%, 2%); } }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.16), transparent 62%);
  pointer-events: none; z-index: 0; transform: translate3d(-999px, -999px, 0); transition: opacity 0.3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Buttons */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #4d82ff, var(--blue) 55%, var(--blue-deep));
  color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(157, 187, 255, 0.35) inset, 0 12px 40px -8px rgba(47, 107, 255, 0.75);
  transform: translate(var(--mx), var(--my));
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { box-shadow: 0 0 0 1px rgba(220, 230, 255, 0.6) inset, 0 16px 60px -6px rgba(47, 107, 255, 0.95); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 20px 34px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--glass); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--glass-strong); box-shadow: 0 0 0 1px rgba(157, 187, 255, 0.35) inset; }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--blue-ice); background: rgba(47, 107, 255, 0.14); border: 1px solid rgba(110, 155, 255, 0.35); }

/* NAV */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1100px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(3, 5, 12, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 110%, #e2f6f9, #9cc6ee 20%, #3653d8 45%, #101a55 72%, #05081a); box-shadow: 0 0 20px rgba(47, 107, 255, 0.5); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.sm { width: 26px; height: 26px; border-radius: 8px; }
.brand-mark.sm svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--mist); font-weight: 600; font-size: 14px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: var(--glass-strong); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* HERO */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 120px var(--pad) 60px;
}
.hero-bg { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.orb-1 { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -15vw; top: -20vw; background: radial-gradient(circle, rgba(47, 107, 255, 0.55), rgba(10, 20, 64, 0.35) 45%, transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 50vw; height: 50vw; left: -20vw; bottom: -25vw; background: radial-gradient(circle, rgba(110, 155, 255, 0.25), transparent 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-6vw, 6vw) scale(1.12); } }
.grid-floor {
  position: absolute; left: -10%; right: -10%; bottom: -10%; height: 55%;
  background-image: linear-gradient(rgba(110, 155, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 64px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--blue-ice); background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(110, 155, 255, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 0 rgba(110, 155, 255, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(110, 155, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 155, 255, 0); } }

.hero-title { font-size: clamp(50px, 6.6vw, 104px); line-height: 0.92; letter-spacing: -0.055em; margin: 22px 0 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.1s; }
.loaded .hero-title .line:nth-child(3) > span { transition-delay: 0.2s; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--mist); max-width: 520px; }
.hero-sub strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-ctas.center { justify-content: center; }
.hero-proof { display: flex; gap: 28px; list-style: none; padding: 0; margin: 36px 0 0; color: var(--muted); font-size: 14px; }
.hero-proof b { display: block; font-size: 30px; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }

.hero-stage { position: relative; height: min(78svh, 720px); min-height: 480px; }
#athlete { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#athlete:active { cursor: grabbing; }
.stage-ring { position: absolute; left: 50%; bottom: 13%; width: 70%; aspect-ratio: 3/1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 107, 255, 0.55), rgba(47, 107, 255, 0.1) 60%, transparent); filter: blur(4px); }
.stage-ring::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(157, 187, 255, 0.45); animation: ring 3s ease-out infinite; }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.stage-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--mist); font-size: 14px; font-weight: 600; transition: opacity 0.5s; }
.stage-loader.done { opacity: 0; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(157, 187, 255, 0.2); border-top-color: var(--blue-light); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-fallback { position: absolute; left: 50%; top: 42%; width: 48%; transform: translate(-50%, -50%); border-radius: 28%; box-shadow: 0 30px 120px rgba(47, 107, 255, 0.6); }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(8, 14, 34, 0.6); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); font-size: 14px; pointer-events: none; }
.chip b { display: block; line-height: 1.15; }
.chip small { color: var(--mist); font-size: 12px; }
.chip-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 107, 255, 0.2); font-size: 18px; }
.float { animation: float 6s ease-in-out infinite; }
.f1 { top: 12%; left: 0; }
.f2 { top: 34%; right: -2%; animation-delay: -2s; }
.f3 { bottom: 26%; left: 2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.clip-bar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clip-now { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-ice); }
.clips { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 6px; border-radius: 999px; background: rgba(8, 14, 34, 0.65); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; }
.clips::-webkit-scrollbar { display: none; }
.clips button { flex: none; border: 0; background: transparent; color: var(--mist); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: background 0.25s, color 0.25s; }
.clips button:hover { color: #fff; }
.clips button.on { background: var(--blue); color: #fff; box-shadow: 0 6px 20px -6px rgba(47, 107, 255, 0.9); }
.stage-hint { position: absolute; top: 0; right: 0; font-size: 12px; color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-stage { height: 560px; min-height: 0; }
  .f2 { right: 0; }
}
@media (max-width: 520px) {
  .hero-stage { height: 500px; }
  .chip { font-size: 12px; padding: 8px 12px 8px 8px; }
  .chip-ico { width: 30px; height: 30px; font-size: 15px; }
  .f3 { display: none; }
  .hero-proof { gap: 20px; }
  .stage-hint { display: none; }
}

/* MARQUEE */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(47, 107, 255, 0.08), rgba(47, 107, 255, 0.02)); padding: 22px 0; transform: rotate(-1.5deg) scale(1.02); margin: 40px 0; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.marquee-track i { color: var(--blue); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad); position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--mist); margin-top: 22px; max-width: 640px; }
.center .lead { margin-inline: auto; }
.lead b, .lead em { color: #fff; font-style: normal; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* BUILDER */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.builder-form { display: grid; gap: 26px; }
.field { display: grid; gap: 12px; }
.field-label { font-weight: 700; font-size: 14px; color: var(--mist); display: flex; justify-content: space-between; }
.field-label b { color: #fff; font-size: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1px solid var(--line); background: var(--glass); padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--mist); transition: all 0.25s var(--ease); }
.seg button:hover { color: #fff; border-color: rgba(157, 187, 255, 0.35); }
.seg button.on { background: rgba(47, 107, 255, 0.2); border-color: var(--blue); color: #fff; box-shadow: 0 0 24px -6px rgba(47, 107, 255, 0.7); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), rgba(157, 187, 255, 0.15) var(--p, 50%)); outline-offset: 6px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.25); cursor: pointer; }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.25); cursor: pointer; }

.builder-card { padding: 28px; position: relative; overflow: hidden; background-image: linear-gradient(rgba(157, 187, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 187, 255, 0.06) 1px, transparent 1px), linear-gradient(160deg, rgba(47, 107, 255, 0.18), rgba(255, 255, 255, 0.02)); background-size: 26px 26px, 26px 26px, auto; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mist); font-size: 14px; }
.pc-title { font-size: clamp(36px, 4.4vw, 54px); margin: 16px 0 6px; letter-spacing: -0.045em; }
.pc-meta { color: var(--mist); }
.pc-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; counter-reset: ex; }
.pc-list li { counter-increment: ex; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pc-list li::before { content: counter(ex); width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(47, 107, 255, 0.22); color: var(--blue-ice); }
.pc-list li span { flex: 1; font-weight: 700; }
.pc-list li small { color: var(--mist); font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.pc-note { margin: -8px 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(110, 155, 255, 0.1); color: var(--ice); font-size: 14px; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

/* LADDER */
.ladder-wrap { display: grid; gap: 28px; }
.ladder-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); justify-self: start; flex-wrap: wrap; }
.ladder-tabs button { border: 0; background: none; color: var(--mist); font-weight: 700; padding: 10px 18px; border-radius: 999px; transition: all 0.25s; }
.ladder-tabs button[aria-selected='true'] { background: var(--blue); color: #fff; }
.ladder { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); align-items: end; gap: 10px; min-height: 340px; }
.rung { position: relative; border-radius: 20px 20px 8px 8px; padding: 16px 14px; background: linear-gradient(180deg, rgba(47, 107, 255, 0.14), rgba(47, 107, 255, 0.03)); border: 1px solid var(--line); height: calc(90px + var(--h) * 42px); display: flex; flex-direction: column; justify-content: flex-end; transition: all 0.6s var(--ease); animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--h) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.rung small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.rung b { font-size: 15px; line-height: 1.2; margin-top: 4px; }
.rung.done { background: linear-gradient(180deg, rgba(47, 107, 255, 0.35), rgba(47, 107, 255, 0.08)); border-color: rgba(110, 155, 255, 0.45); }
.rung.cur { background: linear-gradient(180deg, #4d82ff, var(--blue-deep)); border-color: var(--blue-ice); box-shadow: 0 20px 60px -10px rgba(47, 107, 255, 0.8); }
.rung.cur small { color: var(--ice); }
.rung .you { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; background: #fff; color: var(--ink); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.rung .you::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule { display: flex; gap: 14px; padding: 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.rule-n { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--blue); }
.rule p { color: var(--mist); font-size: 15px; margin-top: 4px; }
@media (max-width: 860px) {
  .ladder { grid-template-columns: repeat(3, 1fr); min-height: 0; padding-top: 40px; }
  .rung { height: calc(80px + var(--h) * 14px); }
  .rules { grid-template-columns: 1fr; }
}

/* TOUR (sticky phone) */
.tour { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tour-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; gap: 24px; }
.phone { position: relative; width: min(340px, 72vw); aspect-ratio: 903 / 2000; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #2a3350, #070a14 40%, #1b2440); box-shadow: 0 0 0 1px rgba(157, 187, 255, 0.25), 0 60px 140px -30px rgba(47, 107, 255, 0.6), 0 0 120px -40px rgba(110, 155, 255, 0.6); transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform 0.6s var(--ease); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #eef2f8; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.phone-screen img.on { opacity: 1; transform: none; }
.phone-glare { position: absolute; inset: 12px; border-radius: 41px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 30%); }
.tour-dots { display: flex; flex-direction: column; gap: 10px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(157, 187, 255, 0.25); transition: all 0.4s var(--ease); }
.tour-dots i.on { height: 28px; background: var(--blue-light); }
.tour-steps { padding: 30vh 0; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.18; transition: opacity 0.5s; }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px; }
.step p { color: var(--mist); font-size: 19px; max-width: 440px; }
.step p b { color: #fff; }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-sticky { top: 0; height: auto; padding: 76px 0 40px; z-index: 2; background: linear-gradient(#000 82%, transparent); }
  .phone { width: min(200px, 48vw); border-radius: 34px; padding: 8px; }
  .phone-screen, .phone-glare { border-radius: 27px; }
  .phone-glare { inset: 8px; }
  .tour-steps { padding: 0 0 30vh; }
  .step { min-height: 60vh; justify-content: flex-start; padding-top: 30px; text-align: center; align-items: center; }
}

/* RANKS */
.ranks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.rank { position: relative; padding: 18px 12px; border-radius: 20px; text-align: center; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 20px 50px -24px var(--b); transform: translateY(calc(var(--k, 0) * -10px)); transition: transform 0.4s var(--ease); }
.rank:hover { transform: translateY(-16px) rotate(-2deg); }
.rank span { display: block; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.rank small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; opacity: 0.85; }
.rank.ultra { color: #050815; background: linear-gradient(120deg, #dce6ff, #9dbbff, #2f6bff, #dce6ff, #9dbbff); background-size: 300% 100%; animation: ultra 4s linear infinite; box-shadow: 0 0 60px -10px rgba(157, 187, 255, 0.9); }
@keyframes ultra { to { background-position: -300% 0; } }
@media (max-width: 960px) { .ranks { grid-template-columns: repeat(4, 1fr); } .rank.ultra { grid-column: span 2; } }
@media (max-width: 520px) { .ranks { grid-template-columns: repeat(2, 1fr); } .rank.ultra { grid-column: span 2; } .rank span { font-size: 12px; } }

.sim { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.sim-in { padding: clamp(24px, 4vw, 44px); display: grid; gap: 24px; }
.sim-in h3 { font-size: clamp(26px, 3vw, 36px); }
.sim-out { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 10px; background: radial-gradient(120% 120% at 100% 0%, rgba(47, 107, 255, 0.45), rgba(10, 20, 64, 0.4) 50%, transparent); border-left: 1px solid var(--line); }
.sim-label { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-ice); }
.sim-xp { font-size: clamp(48px, 7vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.sim-rank { align-self: flex-start; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(140deg, var(--a, #b8c2da), var(--b, #7582a3)); transition: background 0.4s; }
.sim-next { color: var(--mist); font-size: 14px; }
.sim-note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.bar { height: 10px; border-radius: 99px; background: rgba(157, 187, 255, 0.15); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-ice), var(--blue)); transition: width 0.6s var(--ease); }
.bar.thin { height: 6px; margin-top: 16px; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } .sim-out { border-left: 0; border-top: 1px solid var(--line); } }

/* WODS */
.wods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.wod { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform 0.3s var(--ease), border-color 0.3s; min-height: 300px; display: flex; flex-direction: column; }
.wod:hover { border-color: rgba(110, 155, 255, 0.5); }
.wod::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(110, 155, 255, 0.2), transparent 45%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.wod:hover::after { opacity: 1; }
.wod-fmt { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.4); color: var(--blue-ice); border: 1px solid var(--line); }
.wod h3 { font-size: clamp(40px, 4.6vw, 60px); letter-spacing: -0.05em; margin: 18px 0 8px; }
.wod p { color: var(--mist); font-size: 15px; }
.wod ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.wod li::before { content: '→ '; color: var(--blue-light); }
.wod-score { margin-top: auto; padding-top: 22px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.wod-score small { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.levels { display: flex; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.levels span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; font-size: 14px; color: var(--mist); }
.levels span:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 960px) { .wods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .wods { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .wods::-webkit-scrollbar { display: none; }
  .wod { scroll-snap-align: center; }
}

/* CARDIO */
.cardio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--mist); }
.ticks li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(47, 107, 255, 0.2); color: var(--blue-ice); }
.run-card { padding: 22px; }
.run-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.run-head b { font-size: 26px; letter-spacing: -0.03em; }
.run-head span { color: var(--blue-ice); font-weight: 800; }
.run-map { width: 100%; height: auto; border-radius: 18px; background: radial-gradient(circle at 30% 30%, #0e1a46, #050816); border: 1px solid var(--line); }
#route { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.run-card.in #route { animation: draw 3.2s var(--ease) forwards 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.run-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.run-stats div { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.run-stats small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.run-stats b { font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.run-curve { width: 100%; height: 60px; margin-top: 10px; }
@media (max-width: 860px) { .cardio-grid { grid-template-columns: 1fr; } .run-stats { grid-template-columns: repeat(2, 1fr); } }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.cell p { color: var(--mist); font-size: 15px; }
.cell h3 { font-size: 26px; }
.cell.live { grid-row: span 2; background: radial-gradient(120% 80% at 50% 0%, rgba(47, 107, 255, 0.35), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); }
.cell.wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--x, -100%) var(--y, -100%), rgba(110, 155, 255, 0.14), transparent 40%); }
.live-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.4s infinite; box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.8); }
.feed { margin-top: auto; display: flex; flex-direction: column; gap: 8px; height: 260px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 30%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); justify-content: flex-end; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); animation: feedIn 0.6s var(--ease) both; }
.feed-item .av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; background: linear-gradient(140deg, var(--blue-light), var(--blue-deep)); }
.feed-item div { flex: 1; font-size: 14px; line-height: 1.3; }
.feed-item small { color: var(--muted); }
.feed-item em { font-style: normal; font-size: 18px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.big-emoji { font-size: 40px; letter-spacing: 6px; }
.mini-rank { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.mini-rank li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); font-weight: 700; font-size: 14px; }
.mini-rank li span { margin-left: auto; color: var(--mist); font-size: 13px; }
.mini-rank li.me { background: rgba(47, 107, 255, 0.3); border: 1px solid rgba(110, 155, 255, 0.5); }
.streak { display: flex; align-items: center; gap: 10px; flex: none; }
.streak span { font-size: 44px; }
.streak b { font-size: 72px; letter-spacing: -0.06em; line-height: 1; }
.streak small { color: var(--mist); font-weight: 700; line-height: 1.2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .cell.live { grid-row: auto; grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell.live, .cell.wide { grid-column: auto; } .cell.wide { flex-direction: column; align-items: flex-start; } }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { position: relative; padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.feat h3 { margin: 16px 0 8px; }
.feat p { color: var(--mist); font-size: 15px; }
.feat-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgba(47, 107, 255, 0.16); border: 1px solid rgba(110, 155, 255, 0.3); position: relative; overflow: hidden; }
.feat-ico.water i { position: absolute; left: -50%; right: -50%; bottom: 0; height: 60%; background: var(--blue); border-radius: 40%; animation: wave 4s linear infinite; }
@keyframes wave { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* TRUST */
.trust { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 20, 64, 0.45), transparent); }
.trust-row { max-width: var(--max); margin: 0 auto; padding: 44px var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-row b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.trust-row span { color: var(--mist); font-size: 14px; }
@media (max-width: 860px) { .trust-row { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { border-radius: 20px; border: 1px solid var(--line); background: var(--glass); padding: 0 22px; transition: background 0.3s; }
.faq-list details[open] { background: rgba(47, 107, 255, 0.1); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--blue-light); transition: transform 0.3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--mist); padding-bottom: 20px; }

/* FINAL */
.final { position: relative; text-align: center; padding: clamp(100px, 16vw, 200px) var(--pad); overflow: hidden; }
.final-glow { position: absolute; left: 50%; bottom: -40%; width: 140vw; height: 100%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 246, 249, 0.6), rgba(156, 198, 238, 0.4) 20%, rgba(54, 83, 216, 0.5) 45%, rgba(16, 26, 85, 0.4) 70%, transparent); filter: blur(20px); pointer-events: none; z-index: -1; }
.final-icon { margin: 0 auto 36px; border-radius: 28px; box-shadow: 0 30px 80px -10px rgba(47, 107, 255, 0.8), 0 0 0 1px rgba(157, 187, 255, 0.3); animation: float 6s ease-in-out infinite; }
.final .lead { margin-inline: auto; }
.final-small { margin-top: 18px; color: var(--mist); font-size: 14px; }

/* FOOTER */
.footer { max-width: var(--max); margin: 0 auto; padding: 36px var(--pad) calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; color: var(--mist); }
.footer a:hover { color: #fff; }

/* LEGAL / SIMPLE PAGES */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--pad) 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.045em; margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 14px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-light); margin: 40px 0 14px; }
.doc p { color: var(--mist); margin-bottom: 12px; }
.doc a { color: var(--blue-ice); }
.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--pad); }
.center-page h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.045em; margin: 24px 0 14px; }
.center-page p { color: var(--mist); max-width: 460px; margin: 0 auto; }
.center-page .stack { display: grid; gap: 12px; justify-items: center; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .grain { display: none; }
}

/* Hidden button at the very bottom: opens the web version of the app, only lights up on hover. */
.secret-app{display:block;width:max-content;margin:14px auto 0;padding:4px 10px;border-radius:999px;font-size:11px;color:#2F6BFF;text-decoration:none;opacity:.08;transition:opacity .3s,box-shadow .3s}
.secret-app:hover,.secret-app:focus-visible{opacity:1;box-shadow:0 0 14px rgba(47,107,255,.6)}
