/* ScoraSpot home page. Self-contained and mobile first; the colours, font and shapes are the app's own. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; }
p { margin: 0; }
button { font-family: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.nav { z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(27, 75, 216, 0.35); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 15px 26px; font-weight: 800; font-size: 16px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; }

.foot { border-top: 1px solid #e4eaf6; padding: 44px 0 36px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 28px 60px; justify-content: space-between; }
.foot .brand { margin-bottom: 10px; color: #071a4d; }
.foot p { color: #5a6a8c; font-size: 14px; max-width: 320px; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot nav a { color: #5a6a8c; font-weight: 600; font-size: 15px; }
.foot nav a:hover { color: #0b2a8a; }
.foot .copy { width: 100%; color: #8e9bb8; font-size: 13px; }

:root {
  --navy: #071a4d; --blue: #1b4bd8; --deep: #0b2a8a; --soft: #eaf0fe; --tint: #f4f7fd;
  --pink: #ff6fb1; --ink: #0a1b45; --mute: #5a6a8c; --line: #e4eaf6;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body.home { background: #fff; color: var(--ink); overflow-x: hidden; }
body.home .ico { width: 1.15em; height: 1.15em; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: inline; } }

/* ---------- nav ---------- */
.nav.on-dark { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 0.3s, border-color 0.3s; }
.nav.on-dark.scrolled { background: rgba(7, 26, 77, 0.86); border-bottom-color: rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.on-dark .brand { color: #fff; }
.nav.on-dark .nav-links a:not(.btn) { color: #cfd9ff; font-weight: 600; font-size: 15px; padding: 8px 10px; }
.nav.on-dark .nav-links a:not(.btn):hover { color: #fff; text-decoration: none; }

/* ---------- buttons ---------- */
.btn-store { background: #fff; color: var(--navy); font-weight: 800; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.btn-store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5); }
.btn-store.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.btn-xl { padding: 17px 28px; font-size: 17px; min-height: 58px; border-radius: 999px; gap: 10px; }
.btn-xl .ico { width: 1.3em; height: 1.3em; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 700; padding: 17px 24px; min-height: 58px; font-size: 16px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
.btn { transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s; }
.btn:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--navy); color: #fff; overflow: hidden; display: flex; align-items: center; padding: 84px 0 40px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.map-box { position: absolute; left: 50%; top: 4%; width: 230%; aspect-ratio: 1000 / 440; transform: translateX(-50%); animation: drift 36s ease-in-out infinite alternate; }
.map-box .world { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.13; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke: #fff; stroke-opacity: 0.55; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s var(--ease) 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translateX(-52%); } to { transform: translateX(-48%); } }

.pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18); transform: scale(0); animation: popin 0.6s var(--ease) calc(0.5s + var(--i, 0) * 0.17s) forwards; }
.pin.new { background: var(--pink); box-shadow: 0 0 0 5px rgba(255, 111, 177, 0.25); }
.pin.new::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--pink); animation: ping 2.2s ease-out 2.4s infinite; opacity: 0; }
@keyframes popin { 0% { transform: scale(0); } 70% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; width: 100%; }
.hero-copy { max-width: 600px; }
.streak-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 14px 7px 11px; font-weight: 700; font-size: 14px; color: #fff; }
.streak-pill .ico { color: var(--pink); fill: var(--pink); stroke: var(--pink); }
.hero h1 { font-size: clamp(46px, 13vw, 92px); line-height: 0.98; margin: 20px 0 18px; font-weight: 800; }
.swap { display: grid; color: var(--pink); }
.swap b { grid-area: 1 / 1; opacity: 0; transform: translateY(0.45em); filter: blur(6px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.5s; }
.swap b.on { opacity: 1; transform: none; filter: none; }
.swap b.off { opacity: 0; transform: translateY(-0.45em); filter: blur(6px); }
.sub { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.5; color: #cfd9ff; max-width: 500px; }
.sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn-xl { flex: 1 1 auto; justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 22px 0 0; color: #b6c4f2; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { color: var(--pink); }

.rise { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- phone (the app's own screens, drawn in HTML) ---------- */
.hero-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 0; perspective: 1200px; }
.phone { position: relative; width: min(76vw, 300px); aspect-ratio: 9 / 18.4; background: #0a1230; border-radius: 46px; padding: 10px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.14) inset; animation: phoneIn 1.1s var(--ease) 0.25s both; transition: transform 0.25s ease-out; transform-style: preserve-3d; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(70px) scale(0.94) rotate(2deg); } to { opacity: 1; transform: none; } }
.ph-screen { position: relative; height: 100%; background: #fff; border-radius: 37px; overflow: hidden; color: var(--ink); font-size: 11px; }
.ph-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #0a1230; z-index: 5; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 44px 14px 8px; }
.ph-top b { font-size: 18px; font-weight: 800; color: var(--navy); }
.ph-streak { display: inline-flex; align-items: center; gap: 3px; background: var(--tint); border-radius: 999px; padding: 3px 9px; font-weight: 800; font-size: 12px; }
.ph-streak .ico { width: 13px; height: 13px; color: var(--pink); fill: var(--pink); stroke: var(--pink); }
.ph-search { display: flex; align-items: center; gap: 7px; margin: 0 12px; height: 32px; padding: 0 11px; background: var(--tint); border-radius: 999px; color: var(--mute); font-size: 11px; }
.ph-search .ico { width: 14px; height: 14px; }
.ph-daily { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px; border-radius: 12px; background: var(--navy); color: #fff; }
.ph-daily small { display: block; font-size: 9px; font-weight: 700; color: #9fb4e8; }
.ph-daily b { display: block; font-size: 11px; font-weight: 800; line-height: 1.2; }
.ph-daily > div { flex: 1; }
.ph-dico { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; }
.ph-dico .ico, .ph-go .ico { width: 14px; height: 14px; }
.ph-go { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.ph-chips { display: flex; gap: 6px; padding: 10px 12px 2px; }
.ph-chips span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 10.5px; color: var(--mute); }
.ph-chips .on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ph-post { margin: 8px 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.ph-meta { font-size: 9.5px; color: var(--mute); }
.ph-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.25; margin-top: 3px; }
.ph-place { display: flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: var(--deep); }
.ph-place .ico { width: 11px; height: 11px; }
.ph-img { position: relative; margin-top: 8px; height: 112px; border-radius: 10px; background: var(--soft) center / cover; }
.ph-count { position: absolute; top: 6px; right: 6px; background: rgba(7, 26, 77, 0.65); color: #fff; border-radius: 999px; padding: 2px 7px; font-size: 9px; font-weight: 800; }
.ph-img2 { height: 70px; }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 8px 8px 14px; background: #fff; border-top: 1px solid var(--line); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; color: #8e9bb8; }
.ph-tabs .ico { width: 19px; height: 19px; }
.ph-tabs .on { color: var(--blue); }
.ph-tabs .fab { width: 40px; height: 32px; border-radius: 11px; background: var(--navy); color: #fff; justify-content: center; }

.float { position: absolute; display: none; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45); font-size: 12px; line-height: 1.25; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 13px; font-weight: 800; }
.float span:not([class^="f-"]) { color: var(--mute); }
.f-ico, .f-flame { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.f-flame { background: #ffe9f3; color: var(--pink); }
.f-flame .ico { fill: var(--pink); stroke: var(--pink); }
.f-av { width: 34px; height: 34px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font-weight: 800; }
.f-miles { right: -10%; top: 1%; animation-delay: 0s; }
.f-follow { left: -8%; top: 55%; animation-delay: -2s; }
.f-streak { right: -2%; bottom: 14%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* desktop hero */
@media (min-width: 960px) {
  .hero { padding: 96px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero h1 { font-size: clamp(64px, 6.4vw, 96px); }
  .map-box { width: 118%; top: 14%; }
  .hero-cta .btn-xl { flex: 0 0 auto; }
  .phone { width: 318px; }
  .float { display: flex; }
}
@media (min-width: 640px) and (max-width: 959px) { .float { display: flex; } .f-follow { left: 4%; } .hero-grid { gap: 28px; } .phone { width: 300px; } }
@media (max-width: 959px) {
  .hero { align-items: flex-start; }
  .hero-stage { margin-top: 12px; }
  .hero-copy { margin: 0 auto; }
}
@media (max-height: 700px) and (max-width: 959px) { .hero h1 { font-size: clamp(40px, 11.5vw, 60px); margin: 14px 0 12px; } .hero-cta { margin-top: 20px; } .sub { font-size: 16px; } }

/* ---------- ticker ---------- */
.band { background: var(--blue); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; border-block: 1px solid rgba(255, 255, 255, 0.12); }
.track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 28s linear infinite; font-weight: 800; font-size: clamp(17px, 3.6vw, 24px); padding-left: 28px; }
.track i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll reveal (content stays visible if JS or motion is unavailable) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- how it works ---------- */
.how { padding: clamp(56px, 10vw, 120px) 0; background: #fff; }
.how-grid { display: grid; gap: 36px; align-items: center; }
.how h2, .feat h2 { font-size: clamp(32px, 7.4vw, 56px); line-height: 1.04; margin-bottom: 22px; color: var(--navy); }
.steps { display: grid; gap: 10px; }
.step { position: relative; display: flex; gap: 14px; text-align: left; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-2px); }
.step.on { border-color: var(--blue); background: var(--soft); box-shadow: 0 14px 30px -18px rgba(27, 75, 216, 0.6); }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--tint); color: var(--deep); display: grid; place-items: center; font-weight: 800; transition: background 0.3s, color 0.3s; }
.step.on .step-n { background: var(--blue); color: #fff; }
.step-t b { display: block; font-size: 18px; }
.step-t span { display: block; margin-top: 3px; color: var(--mute); font-size: 15px; line-height: 1.45; }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.step.on .bar { animation: fill var(--ms, 5200ms) linear forwards; }
.paused .step.on .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.how-stage { display: flex; justify-content: center; padding: 8px 0; }
.how-stage .phone { animation: none; background: var(--navy); }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1fr 0.8fr; gap: 72px; } .how-stage .phone { width: 340px; } }

/* the three screens inside the demo phone: each one fills the phone from the notch to the bottom edge */
.pane { position: absolute; inset: 0; padding: 40px 12px 14px; opacity: 0; transform: translateX(26px) scale(0.98); pointer-events: none; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); display: flex; flex-direction: column; gap: 9px; background: #fff; }
.pane.on { opacity: 1; transform: none; }
.pane .ico { width: 1.1em; height: 1.1em; }

/* 1: log a spot */
.lg-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 0 2px; flex: none; }
.lg-top b { font-size: 14px; font-weight: 800; }
.lg-x { color: var(--mute); }
.lg-miles { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); color: var(--deep); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 11.5px; }
.lg-miles em { font-style: normal; }
.lg-miles .ico { width: 12px; height: 12px; }
.lg-photo { position: relative; flex: 1 1 150px; min-height: 130px; border-radius: 16px; background: var(--navy) center / cover; }
.lg-photo span { position: absolute; left: 9px; bottom: 9px; background: rgba(7, 26, 77, 0.78); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 9.5px; font-weight: 800; }
.lg-field { flex: none; }
.lg-field small { font-weight: 800; font-size: 11px; }
.lg-field div { display: flex; align-items: center; gap: 6px; margin-top: 4px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; font-size: 11.5px; font-weight: 700; }
.lg-field .ico { color: var(--deep); }
.lg-field p { margin: 4px 0 0; font-size: 10px; font-weight: 800; color: var(--deep); }
.lg-chips { display: flex; gap: 6px; flex: none; }
.lg-chips span { flex: 1; text-align: center; background: var(--tint); border-radius: 11px; padding: 8px 0; font-size: 10.5px; font-weight: 800; line-height: 1.3; }
.lg-chips em { font-style: normal; font-size: 9.5px; color: var(--mute); }
.pane.on .lg-chips .ok { animation: tick 0.5s var(--ease) both; animation-delay: calc(0.3s + var(--k, 0) * 0.3s); }
.lg-chips .ok:nth-child(2) { --k: 1; } .lg-chips .ok:nth-child(3) { --k: 2; }
@keyframes tick { 0% { background: var(--tint); } 40% { transform: scale(1.1); } 100% { background: var(--blue); color: #fff; transform: none; } }
.pane.on .lg-chips .ok em { animation: tickem 0.5s both; animation-delay: calc(0.3s + var(--k, 0) * 0.3s); }
@keyframes tickem { to { color: #c9d6ff; } }
.lg-more { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; flex: none; }
.lg-more b { display: block; font-size: 11.5px; }
.lg-more small { color: var(--mute); font-size: 9.5px; }
.lg-more i { font-style: normal; color: var(--mute); font-size: 16px; line-height: 1; }
.lg-cta { background: var(--blue); color: #fff; text-align: center; border-radius: 999px; padding: 13px 0; font-weight: 800; font-size: 13px; flex: none; }
.pane.on .lg-cta { animation: press 3.2s ease-in-out 1.4s infinite; }
@keyframes press { 0%, 80%, 100% { transform: none; } 88% { transform: scale(0.95); } }

/* 2: the reward */
.pane[data-i="1"] { align-items: stretch; text-align: center; padding: 0 0 14px; gap: 7px; }
.rw-hero { position: relative; height: 40%; flex: none; background: var(--navy) center / cover; border-radius: 0 0 26px 26px; }
.rw-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(7, 26, 77, 0.35), rgba(7, 26, 77, 0) 40%, rgba(7, 26, 77, 0.45)); }
.rw-pill { position: absolute; right: 12px; top: 40px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--deep); border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 11px; }
.rw-pill em { font-style: normal; margin-right: -2px; }
.rw-pill .ico { width: 12px; height: 12px; }
.rw-check { position: relative; z-index: 2; align-self: center; margin-top: -30px; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 4px solid #fff; flex: none; }
.rw-check .ico { width: 26px; height: 26px; stroke-width: 3; }
.pane.on .rw-check { animation: pop 0.7s var(--ease) both; }
@keyframes pop { 0% { transform: scale(0.3); } 60% { transform: scale(1.18); } 100% { transform: none; } }
.rw-title { font-size: 20px; font-weight: 800; line-height: 1.1; flex: none; }
.rw-place { color: var(--mute); font-size: 11.5px; margin-top: -3px; flex: none; }
.rw-stats { display: flex; gap: 6px; margin: 2px 12px 0; flex: none; }
.rw-stats > div { flex: 1; background: var(--tint); border-radius: 12px; padding: 9px 0; }
.rw-stats b { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 17px; font-weight: 800; }
.rw-stats b em { font-style: normal; }
.rw-stats .fl .ico { width: 15px; height: 15px; color: var(--pink); fill: var(--pink); stroke: var(--pink); }
.rw-stats span { font-size: 9.5px; color: var(--mute); font-weight: 600; }
.rw-level { margin: 2px 12px 0; padding: 10px 12px; border-radius: 14px; background: var(--soft); text-align: left; flex: none; }
.rw-level > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.rw-level b { font-size: 12px; color: var(--deep); }
.rw-level > div > span { font-size: 10.5px; color: var(--ink); font-weight: 700; }
.rw-bar { height: 7px; border-radius: 4px; background: #fff; margin: 7px 0 5px; overflow: hidden; }
.rw-bar i { display: block; height: 100%; width: 8%; border-radius: 4px; background: var(--blue); }
.pane.on .rw-bar i { animation: lvl 1.6s var(--ease) 0.5s forwards; }
@keyframes lvl { to { width: 82%; } }
.rw-level small { font-size: 9.5px; color: var(--mute); font-weight: 600; }
.rw-badges { display: flex; gap: 6px; margin: 0 12px; flex: none; }
.rw-badges span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; color: #8e9bb8; }
.rw-badges i { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-style: normal; }
.rw-badges .on { color: var(--ink); }
.rw-badges .on i { background: var(--blue); color: #fff; }
.pane.on .rw-badges .on i { animation: pop 0.6s var(--ease) both; animation-delay: 0.7s; }
.pane.on .rw-badges .on:nth-child(2) i { animation-delay: 0.9s; }
.rw-actions { display: flex; gap: 8px; margin: auto 12px 0; flex: none; }
.rw-actions span { padding: 12px 0; border-radius: 999px; font-weight: 800; font-size: 13px; }
.rw-actions .main { flex: 1.5; background: var(--blue); color: #fff; }
.rw-actions .ghost { flex: 1; border: 1.5px solid var(--line); color: var(--deep); }

/* 3: profile and map, laid out like the real screen */
.pane[data-i="2"] { padding: 0 0 12px; gap: 0; }
.mp-banner { position: relative; height: 104px; background: var(--navy); overflow: hidden; flex: none; }
.mp-world { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 1000 / 440; transform: translateY(-50%); }
.mp-world img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; }
.mp-pin { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16); }
.mp-pin.new { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--pink); box-shadow: 0 0 0 3px rgba(255, 111, 177, 0.3); animation: ping2 2s ease-out infinite; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(255, 111, 177, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(255, 111, 177, 0); } }
.mp-chip { position: absolute; top: 48px; left: 10px; display: flex; align-items: center; gap: 7px; background: rgba(7, 26, 77, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(4px); border-radius: 999px; padding: 3px 10px 3px 3px; color: #fff; }
.mp-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.mp-chip b { font-size: 11px; font-weight: 800; }
.mp-fl { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 11px; line-height: 1; }
.mp-fl u { text-decoration: none; }
.mp-fl .ico { width: 12px; height: 12px; color: var(--pink); fill: var(--pink); stroke: var(--pink); }
.mp-gear { position: absolute; top: 46px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; display: grid; place-items: center; }
.mp-gear .ico { width: 13px; height: 13px; }
.mp-id { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 12px; flex: none; }
.mp-av { width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 3px solid #fff; background: var(--deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.mp-edit { margin-top: 8px; border: 1.5px solid var(--blue); color: var(--deep); border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 10.5px; }
.mp-name { padding: 2px 12px 0; flex: none; }
.mp-name b { display: block; font-size: 17px; line-height: 1.15; }
.mp-name small { color: var(--deep); font-weight: 700; font-size: 10.5px; }
.mp-name p { color: var(--mute); font-size: 10.5px; line-height: 1.4; margin-top: 3px; }
.mp-stats { display: flex; margin: 9px 12px 0; background: var(--tint); border-radius: 11px; padding: 8px 0; flex: none; }
.mp-stats div { flex: 1; text-align: center; border-left: 1px solid var(--line); }
.mp-stats div:first-child { border: 0; }
.mp-stats b { display: block; font-size: 13px; font-weight: 800; }
.mp-stats span { font-size: 8.5px; color: var(--mute); }
.mp-toggle { display: flex; margin: 8px 12px 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.mp-toggle span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; border-radius: 999px; font-weight: 800; font-size: 10.5px; color: var(--mute); }
.mp-toggle .on { background: var(--blue); color: #fff; }
.mp-toggle .ico { width: 11px; height: 11px; }
.mp-map { position: relative; margin: 8px 12px 0; aspect-ratio: 1000 / 440; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); flex: none; }
.mp-land { position: absolute; inset: 0; background: #c9dcfa; -webkit-mask: url(world.svg) center / 100% 100% no-repeat; mask: url(world.svg) center / 100% 100% no-repeat; }
.pin2 { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--deep); border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.pin2.pk { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--pink); }
.pane.on .pin2 { animation: popin 0.6s var(--ease) both; }
.pane.on .pin2:nth-of-type(3n) { animation-delay: 0.2s; } .pane.on .pin2:nth-of-type(3n+1) { animation-delay: 0.4s; } .pane.on .pin2:nth-of-type(3n+2) { animation-delay: 0.6s; }
.mp-zoom { position: absolute; right: 6px; top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; }
.mp-zoom b { width: 22px; height: 20px; display: grid; place-items: center; color: var(--deep); font-size: 13px; }
.mp-zoom b + b { border-top: 1px solid var(--line); }
.mp-conts { display: flex; gap: 6px; margin: 7px 12px 0; flex: none; overflow: hidden; }
.mp-conts span { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 9.5px; font-weight: 800; color: var(--mute); }
.mp-conts em { font-style: normal; color: var(--deep); }
.mp-conts .on { background: var(--blue); border-color: var(--blue); color: #fff; }
.mp-conts .on em { color: #c9d6ff; }
.mp-rh { display: flex; justify-content: space-between; align-items: baseline; margin: 9px 14px 0; flex: none; }
.mp-rh b { font-size: 11.5px; }
.mp-rh span { font-size: 10px; font-weight: 800; color: var(--deep); }
.mp-recent { display: flex; gap: 7px; margin: 6px 12px 0; flex: 1 1 62px; min-height: 56px; }
.mp-recent i { position: relative; flex: 1; border-radius: 12px; background: var(--soft) center / cover; overflow: hidden; }
.mp-recent i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 26, 77, 0.7)); }
.mp-recent span { position: absolute; left: 7px; bottom: 5px; z-index: 1; color: #fff; font-size: 9px; font-weight: 800; }

/* ---------- features ---------- */
.feat { padding: clamp(56px, 10vw, 120px) 0; background: var(--tint); }
.feat .fhead { max-width: 640px; margin-bottom: 30px; }
.feat .fhead p { color: var(--mute); font-size: 18px; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; display: flex; flex-direction: column; gap: 6px; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -24px rgba(7, 26, 77, 0.35); }
.tile h3 { font-size: 21px; color: var(--navy); margin-top: 10px; }
.tile p { color: var(--mute); font-size: 15px; line-height: 1.5; }
.tile > :first-child { margin-bottom: 2px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .t-map { grid-column: span 2; } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .t-map { grid-column: span 4; grid-row: span 2; } .t-miles { grid-column: span 2; } .t-streak { grid-column: span 2; }
  .t-friends, .t-route, .t-swipe { grid-column: span 2; }
}
.mini-world { position: relative; aspect-ratio: 1000 / 440; background: var(--navy); border-radius: 16px; overflow: hidden; }
.mini-world img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; }
.mini-world .pin { animation: none; transform: scale(0); }
.tile.in .mini-world .pin { animation: popin 0.6s var(--ease) calc(0.3s + var(--i) * 0.2s) forwards; }
.big { display: flex; align-items: baseline; gap: 8px; }
.big em { font-style: normal; font-size: clamp(44px, 9vw, 60px); font-weight: 800; color: var(--blue); line-height: 1; }
.big span { font-weight: 800; color: var(--mute); }
.meter { height: 9px; border-radius: 5px; background: var(--soft); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 5px; transition: width 1.6s var(--ease) 0.3s; }
.tile.in .meter i { width: 68%; }
.dots { display: flex; gap: 8px; padding: 6px 0 2px; }
.dots i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; background: var(--soft); transition: background 0.3s, transform 0.4s var(--ease); transition-delay: calc(var(--k, 0) * 120ms + 300ms); }
.dots i:nth-child(1) { --k: 0; } .dots i:nth-child(2) { --k: 1; } .dots i:nth-child(3) { --k: 2; } .dots i:nth-child(4) { --k: 3; } .dots i:nth-child(5) { --k: 4; } .dots i:nth-child(6) { --k: 5; } .dots i:nth-child(7) { --k: 6; }
.tile.in .dots i { background: var(--pink); transform: scale(1); }
.tile.in .dots i.today { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.friends { display: flex; align-items: center; padding: 6px 0 2px; }
.friends span { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; border: 3px solid #fff; margin-left: -10px; transition: transform 0.4s var(--ease); }
.friends span:first-child { margin-left: 0; }
.tile:hover .friends span { transform: translateY(-4px); }
.follow { margin-left: auto; background: var(--blue); color: #fff; border: 1.5px solid var(--blue); border-radius: 999px; padding: 9px 18px; min-height: 40px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.follow:active { transform: scale(0.94); }
.follow.on { background: #fff; color: var(--deep); border-color: var(--line); }
.route-demo { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; position: relative; }
.route-demo span { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 14px; width: fit-content; transition: background 0.3s, transform 0.3s var(--ease); }
.route-demo b { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; }
.route-demo span:hover { background: var(--soft); transform: translateX(4px); }
.tile.in .route-demo span { animation: rise 0.6s var(--ease) both; }
.tile.in .route-demo span:nth-child(2) { animation-delay: 0.15s; } .tile.in .route-demo span:nth-child(3) { animation-delay: 0.3s; }
.swipe { position: relative; border-radius: 16px; overflow: hidden; height: 108px; background: var(--navy); }
.slides { display: flex; width: 300%; height: 100%; animation: slide 9s var(--ease) infinite; }
.slides i { flex: 1; background-size: cover; background-position: center; }
@keyframes slide { 0%, 28% { transform: translateX(0); } 33%, 61% { transform: translateX(-33.333%); } 66%, 94% { transform: translateX(-66.666%); } 100% { transform: translateX(0); } }
.sdots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.sdots b { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); animation: sdot 9s infinite; }
.sdots b:nth-child(2) { animation-delay: 3s; } .sdots b:nth-child(3) { animation-delay: 6s; }
@keyframes sdot { 0%, 30% { width: 18px; background: #fff; } 33.4%, 100% { width: 6px; background: rgba(255, 255, 255, 0.55); } }

/* ---------- final call ---------- */
.final { position: relative; background: var(--navy); color: #fff; text-align: center; padding: clamp(72px, 12vw, 140px) 0; overflow: hidden; }
.final-bg { position: absolute; left: 50%; top: 50%; width: max(100%, 900px); aspect-ratio: 1000 / 440; transform: translate(-50%, -50%); }
.final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.1; }
.final-bg .pin { animation-play-state: paused; transform: scale(1); animation: none; }
.final-bg .pin.new::after { animation-delay: 0s; }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-ico { border-radius: 22px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5); }
.final h2 { font-size: clamp(36px, 8.5vw, 68px); line-height: 1.02; max-width: 14ch; }
.final p { color: #cfd9ff; font-size: clamp(17px, 4vw, 20px); max-width: 440px; }
.final .btn-xl { margin-top: 10px; }

/* ---------- footer on the home page ---------- */
body.home .foot { background: #fff; }

/* ---------- always-there download bar (phones) ---------- */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(7, 26, 77, 0.94); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.5); transform: translateY(140%); transition: transform 0.5s var(--ease); }
.dock.show { transform: none; }
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock div { flex: 1; line-height: 1.2; }
.dock b { display: block; font-size: 15px; }
.dock div span { font-size: 12px; color: #b6c4f2; }
.dock .btn-store span { color: var(--navy); font-size: 14px; }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- reduced motion: everything still shows, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise, .phone, .pin, .route path, .map-box, .float, .track, .slides, .sdots b, .pane.on .lg-cta, .pin.new::after, .mp-pin.new, .pane.on * { animation: none !important; }
  .pin { transform: scale(1); } .route path { stroke-dashoffset: 0; }
  .swap b { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step.on .bar { animation: none; transform: scaleX(1); }
  .tile.in .meter i, .meter i { transition: none; width: 68%; }
  .dots i { background: var(--pink); transition: none; }
  .mini-world .pin { transform: scale(1); }
  .pane { transition: none; }
}
