/* Burna landing page. Same tokens as style.css (the app's ink, yellow, green, Barlow Condensed). Scoped to .home.
   Like the app: flat on the ink, no cards or boxes, no glows; pictures, numbers and words stand on their own, and
   colour and motion do the work. All of it holds still for reduced motion. */

.home { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.45, .5, 1); }
.home .y { color: var(--c, var(--yellow)); }
.home .fit { color: var(--fitness); }
.home h1, .home h2 { text-wrap: balance; }

.kicker { font: 600 12px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.big { font-size: clamp(54px, 9vw, 116px); line-height: .86; }
.lead { margin-top: 20px; color: var(--text-2); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 30em; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.hero::before { content: none; }
.hero-grid { display: grid; gap: 44px; align-items: center; width: 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fitness); animation: pulse 2s ease-in-out infinite; }
.pill b { font: 800 20px/1 var(--display); letter-spacing: .02em; color: var(--yellow); }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { margin-top: 26px; font-size: clamp(60px, 8vw, 126px); line-height: .84; }
.hero { --c: #D32CE6; }
.hero h1 .y { color: var(--c); transition: color .4s; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.link-arrow { font: 600 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 14px 4px; }
.link-arrow::after { content: "\2193"; color: var(--yellow); transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; color: var(--yellow); } .link-arrow:hover::after { transform: translateY(4px); }
.hero-stats { display: flex; gap: 28px; margin-top: 42px; width: 100%; max-width: 520px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { font: 800 40px/1 var(--display); color: #fff; }
.hero-stats span { font: 600 11px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; justify-items: center; column-gap: clamp(12px, 2.4vw, 36px); min-height: 540px; }
.wall-badge { position: relative; grid-area: 1 / 1; align-self: end; width: min(210px, 100%); aspect-ratio: 56 / 54; }
.wall-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(30px) scale(.7); transition: opacity .35s var(--ease), transform .7s var(--spring); }
.wall-badge img.on { opacity: 1; transform: none; }
.wall-name { grid-area: 2 / 1; align-self: start; margin-top: 18px; text-align: center; }
.wall-name b { display: block; font: 800 clamp(36px, 3.2vw, 48px)/.9 var(--display); letter-spacing: .04em; color: var(--c); transition: color .4s; }
.wall-name small { font: 600 11px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
/* Held upright and unfiltered by any rotation, so the screen's small type stays sharp. */
.hero-phone { position: relative; grid-area: 1 / 2 / 3 / 3; align-self: center; width: clamp(290px, 24vw, 350px); z-index: 2; }
.hero-phone img { width: 100%; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(32px, 4vw, 64px); }
}
@media (max-width: 959px) {
  .hero-copy { align-items: center; text-align: center; } .hero-stats { justify-content: center; } .cta-row { justify-content: center; }
  .hero-stage { margin-bottom: 20px; width: 100%; max-width: 620px; justify-self: center; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .wall-badge { width: min(240px, 62vw); } .hero-phone { grid-area: 3 / 1; margin-top: 32px; width: min(340px, 84vw); }
}

/* ---------- Pinned story ---------- */
.how { position: relative; height: calc(var(--steps) * 85vh); }
.pin { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.pin-grid { display: grid; gap: 20px; align-items: center; grid-template-rows: auto 1fr; height: 100%; padding-block: 12px; }
.copy { position: relative; display: grid; align-content: center; row-gap: clamp(16px, 4svh, 40px); }
.rail { list-style: none; padding: 0; display: flex; gap: 8px; }
.rail li { height: 4px; width: 44px; border-radius: 2px; background: var(--track); overflow: hidden; }
.rail li i { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rail li.done i, .rail li.on i { transform: none; }
.step { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .n { font: 800 18px/1 var(--display); letter-spacing: .14em; color: var(--yellow); }
.step h2 { margin-top: 12px; font-size: clamp(38px, min(7.4vw, 12svh), 108px); line-height: .86; }
.step p { margin-top: clamp(10px, 2.2svh, 18px); color: var(--text-2); font-size: clamp(15px, min(1.7vw, 2.8svh), 21px); line-height: 1.45; max-width: 26em; }
.mix { margin-top: clamp(18px, 3.4svh, 34px); display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 20px); max-width: 430px; }
.mix div { flex: 1; display: grid; justify-items: center; gap: 10px; color: var(--c); text-align: center; }
.mix .ico { width: auto; height: clamp(34px, 7svh, 58px); }
.mix small { font: 600 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; }
/* The two things come in, then effort lands. */
.js .mix > * { opacity: 0; transform: translateY(18px) scale(.8); transition: opacity .35s var(--ease), transform .7s var(--spring); }
.js .step.on .mix > * { opacity: 1; transform: none; }
.js .step.on .mix > :nth-child(1) { transition-delay: .2s; } .js .step.on .mix > :nth-child(2), .js .step.on .mix > :nth-child(3) { transition-delay: .35s; }
.js .step.on .mix > :nth-child(4) { transition-delay: .6s; } .js .step.on .mix > :nth-child(5) { transition-delay: .8s; }
.mix > i { width: 1px; align-self: stretch; background: var(--line); }
.mix > b { align-self: center; margin-bottom: 20px; color: var(--muted); font: 700 24px/1 var(--body); }
.device { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.phone { position: relative; height: 100%; max-height: 640px; aspect-ratio: 1239 / 2616; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.phone img.on { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .pin-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: 1fr; gap: 40px; }
  .phone { max-height: 760px; }
}

/* ---------- Effort demo ---------- */
.scene { padding: clamp(72px, 10vw, 136px) 0; position: relative; overflow: clip; }
.scene-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scene-head .kicker + .big { margin-top: 14px; }
.scene-head .lead { margin-inline: auto; }

/* ---------- Rank stage ---------- */
.ranks { --c: var(--athlete); }
.rank-show { margin: 52px auto 0; display: grid; justify-items: center; text-align: center; }
.rank-show .badge { width: clamp(150px, 24vw, 260px); aspect-ratio: 56 / 54; position: relative; }
.rank-show .badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(30px) scale(.7); transition: opacity .35s var(--ease), transform .7s var(--spring); }
.rank-show .badge img.on { opacity: 1; transform: none; }
.rank-name { margin-top: 22px; font: 800 clamp(64px, 12vw, 150px)/.85 var(--display); text-transform: uppercase; color: var(--c); transition: color .4s; }
.stars { display: flex; gap: 8px; margin-top: 18px; }
.stars i { width: 12px; height: 12px; border-radius: 50%; background: var(--track); transition: background .3s, transform .5s var(--spring); }
.stars i.on { background: var(--c); transform: scale(1.2); }
.ladder-bar { margin: 48px auto 0; max-width: 880px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.ladder-bar button { appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; display: grid; justify-items: center; gap: 10px; font: 800 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.ladder-bar button::before { content: ""; width: 100%; height: calc(14px + var(--i) * 13px); border-radius: 8px 8px 3px 3px; background: var(--track); transition: background .3s; }
.ladder-bar button[aria-pressed="true"] { color: var(--c2); }
.ladder-bar button[aria-pressed="true"]::before, .ladder-bar button.past::before { background: var(--c2); }
.ladder-bar button.past::before { opacity: .45; }
.ladder-bar button:hover { color: #fff; }
@media (max-width: 560px) { .ladder-bar button { font-size: 0; gap: 0; } }

/* ---------- Titles: board rows as in the app, your row wearing each title in turn ---------- */
.tboard { list-style: none; padding: 0; margin: 56px auto 0; width: min(560px, 100%); }
.tboard li { display: grid; grid-template-columns: 30px 52px 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 14px; border-bottom: .5px solid var(--line); }
.tboard li:last-child { border-bottom: 0; }
.tboard i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--display); font-style: normal; color: var(--ink); }
.tboard .gold { background: #FFC42E; } .tboard .silver { background: #C9CED6; } .tboard .bronze { background: #D08A4E; }
.tboard .face { width: 52px; height: 52px; border-radius: 50%; } .tboard .mark { width: 28px; height: auto; }
.tboard b { display: block; font: 800 26px/1 var(--display); letter-spacing: .02em; }
.tboard small { display: block; margin-top: 4px; font: 600 12px/1.2 var(--body); letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.tboard em { font: 800 34px/1 var(--display); font-style: normal; color: var(--fitness); }
.tboard .you { background: rgba(255, 255, 255, .1); padding-block: 22px; }
.tboard .worn { font: 800 clamp(19px, 5.4vw, 28px)/1 var(--display); letter-spacing: .06em; margin-top: 6px; color: var(--t, var(--fitness)); transform-origin: left center; }
.worn.pop { animation: wear .45s var(--spring); }
@keyframes wear { 0% { opacity: 0; transform: translateY(16px) scale(.7); } 100% { opacity: 1; transform: none; } }
.earned { margin-top: 18px; text-align: center; font: 600 12px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.earned.pop { animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.picks { margin: 34px auto 0; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.picks button { appearance: none; border: 0; background: none; padding: 8px 0; cursor: pointer; font: 800 clamp(20px, 2.6vw, 28px)/1 var(--display); letter-spacing: .05em; color: var(--muted); transition: color .2s, transform .4s var(--spring); }
.picks button:hover { color: #fff; }
.picks button[aria-pressed="true"] { color: var(--c); transform: scale(1.14); }
@media (max-width: 520px) { .tboard li { grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 12px; padding-inline: 10px; } .tboard .mark { display: none; } .tboard .face { width: 44px; height: 44px; } .tboard i { width: 26px; height: 26px; font-size: 15px; } .picks { gap: 4px 18px; } }

/* ---------- Final call ---------- */
.final { position: relative; overflow: clip; text-align: center; padding: clamp(48px, 8vw, 110px) 0 clamp(90px, 12vw, 160px); }
.crown { display: block; width: min(600px, 100%); height: auto; aspect-ratio: 600 / 390; margin: 0 auto 28px; }
.final h2 { font-size: clamp(60px, 11vw, 150px); line-height: .85; }
.final .cta-row { justify-content: center; margin-top: 38px; }
.final .sub { margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 2vw, 21px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pill::before { animation: none; }
}

/* ---------- Rank-up loop ---------- */
.ru-stage { margin: 56px auto 0; width: min(460px, 100%); display: grid; justify-items: center; gap: 28px; }
.ru-badges { position: relative; width: min(250px, 60%); aspect-ratio: 56 / 54; }
.ru-badges img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ru-badges .to { opacity: 0; transform: scale(.4); }
.ru-text { text-align: center; }
.ru-text small { display: block; font: 800 22px/1 var(--display); letter-spacing: .5em; padding-left: .5em; color: var(--muted); transition: color .3s; }
.ru-name { display: block; margin-top: 6px; font: 800 clamp(52px, 11vw, 92px)/.85 var(--display); letter-spacing: .04em; color: #2EA854; transition: color .3s; }
.ru-stars { order: -1; display: flex; justify-content: center; gap: 10px; }
.ru-stars i { width: 12px; height: 12px; border-radius: 50%; background: var(--track); transition: background .25s; }
.ru-stars i.on { background: #2EA854; }
.ru-stage.go .from { animation: ruFrom .4s ease-in forwards; }
.ru-stage.go .to { animation: ruTo .9s var(--spring) .35s forwards; }
.ru-stage.go .ru-text small, .ru-stage.go .ru-name { color: var(--c); }
@keyframes ruFrom { to { opacity: 0; transform: scale(.6) translateY(30px); } }
@keyframes ruTo { 0% { opacity: 0; transform: scale(.4) translateY(40px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* ---------- Devices ---------- */
.flow { margin: 72px auto 0; max-width: 1040px; display: grid; gap: 22px; align-items: center; justify-items: center; }
.srcs { list-style: none; padding: 0; width: 100%; max-width: 460px; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.srcs li { position: relative; display: grid; grid-template-rows: 165px auto; place-items: center; align-content: center; gap: 14px; }
.srcs .ico { width: 56px; height: 56px; color: var(--c); }
.srcs .watch { width: auto; height: 165px; }
.srcs .wordmark { grid-row: 1 / -1; width: min(100%, 140px); height: auto; color: #fff; }
.srcs b { font: 800 clamp(17px, 2vw, 22px)/1 var(--display); letter-spacing: .04em; text-align: center; }
.srcs .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .srcs li, .js .hub, .js .dest { opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s var(--ease), transform .8s var(--spring); }
.js .flow.in .srcs li, .js .flow.in .hub, .js .flow.in .dest { opacity: 1; transform: none; }
.js .flow.in .srcs li:nth-child(2) { transition-delay: .12s; } .js .flow.in .srcs li:nth-child(3) { transition-delay: .24s; }
.js .flow.in .hub { transition-delay: .45s; } .js .flow.in .dest { transition-delay: .65s; }
/* A trail of dots lights one by one toward the next step, as on the app's home screen. */
.pipe { display: flex; flex-direction: column; gap: 9px; }
.pipe i { width: 7px; height: 7px; border-radius: 50%; background: var(--track); animation: dot 1.2s var(--ease) infinite; }
.pipe i:nth-child(2) { animation-delay: .09s } .pipe i:nth-child(3) { animation-delay: .18s } .pipe i:nth-child(4) { animation-delay: .27s }
.pipe + .hub + .pipe i { animation-delay: .45s } .pipe + .hub + .pipe i:nth-child(2) { animation-delay: .54s } .pipe + .hub + .pipe i:nth-child(3) { animation-delay: .63s } .pipe + .hub + .pipe i:nth-child(4) { animation-delay: .72s }
@keyframes dot { 12%, 40% { background: var(--c); transform: scale(1.4); } 60%, 100% { background: var(--track); transform: none; } }
.dest { display: grid; justify-items: center; gap: 10px; }
.dest img { height: 96px; width: auto; } .dest b { font: 800 40px/1 var(--display); letter-spacing: .3em; padding-left: .3em; }
@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr auto auto auto auto; gap: 34px; }
  .pipe { flex-direction: row; }
}

/* ---------- Friends race ---------- */
.race { margin: 64px auto 0; width: min(860px, 100%); }
.race-top { display: flex; justify-content: flex-end; }
.race-top span { display: none; }
.race-top b { font: 800 40px/1 var(--display); color: var(--c); letter-spacing: .06em; }
.lanes2 { margin-top: 18px; display: grid; gap: 18px; }
.lane2 { display: grid; grid-template-columns: 92px 1fr 64px; gap: 16px; align-items: center; transition: transform .32s var(--spring); }
.lane2 .nm { white-space: nowrap; font: 800 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.lane2 .trk { position: relative; height: 48px; }
.lane2 .trk::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 4px; border-radius: 2px; background: var(--track); }
.lane2 .fill { position: absolute; left: 0; top: 22px; height: 4px; border-radius: 2px; background: var(--c); width: 0; }
.lane2 .av { position: absolute; top: 3px; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px var(--c); }
.lane2 .av img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.lane2 .ef { text-align: right; font: 800 30px/1 var(--display); color: var(--fitness); font-variant-numeric: tabular-nums; }
.lane2.first .nm::after { content: " \2605"; color: #FAFC4D; }
/* The winner's picture pops. The picture grows, not the moving holder, so its place on the line stays put. */
.lane2 .av img { transition: transform .3s var(--spring), box-shadow .3s; }
.won .lane2.first .av img { transform: scale(1.35); box-shadow: 0 0 0 2px #FAFC4D; }
@media (max-width: 520px) { .lane2 { grid-template-columns: 62px 1fr 48px; gap: 10px; } .lane2 .nm { font-size: 17px; } .lane2 .ef { font-size: 24px; } }

/* ---------- XP tube ---------- */
.xp-stage { margin: 56px auto 0; width: min(560px, 100%); display: grid; gap: 22px; }
.xp-top { display: flex; align-items: baseline; justify-content: space-between; font: 800 clamp(26px, 5vw, 38px)/1 var(--display); letter-spacing: .04em; }
.xp-top span { color: var(--c); font-variant-numeric: tabular-nums; }
.xp-top span i { font-style: normal; }
.xp-stage.up .xp-top #xplv { color: var(--c); }
.xp-tube { position: relative; height: 66px; margin: 6px 0; }
.xp-tube canvas { position: absolute; left: -40px; top: -40px; pointer-events: none; }
.xp-stage.flat .xp-tube { border-radius: 33px; background: linear-gradient(90deg, #CCD6EB, #FFB314 30%, #6BFF14 60%, #1ACCFF 76%, #8847FF 93%, #26262B 93%); }
.xp-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.xp-legend li { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.xp-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--track); transition: background .3s, box-shadow .3s; }
.xp-legend li.on { color: var(--text-2); }
.xp-legend li.on i { background: var(--k); }
.xp-legend li.now { color: #fff; }
.xp-legend li.now i { box-shadow: 0 0 12px var(--k); }
