/* StepCity landing — colors and fonts mirror steptown_app/lib/theme/app_colors.dart */
:root {
  --green: #3FA76B;
  --green-dark: #2E8754;
  --green-deep: #0F2A1E;
  --green-ink: #163B2A;
  --cream: #F5F8EC;
  --card: #FFFDF8;
  --light-green: #E8F3DC;
  --chip: #EDEFE3;
  --divider: #ECE7D9;
  --gold: #FFD46B;
  --coin: #F5A623;
  --coral: #E0654B;
  --water: #5FC1E8;
  --text: #2B2B2B;
  --muted: #7A7568;
  --grass: #A9B83F;

  --radius: 28px;
  --shadow: 0 24px 60px -24px rgba(15, 42, 30, .35);
  --shadow-soft: 0 10px 30px -12px rgba(15, 42, 30, .25);
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); margin-top: 18px; max-width: 34em; }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin-inline: auto; }
section { position: relative; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 14px 26px; transition: transform .25s var(--bounce), box-shadow .25s, background .25s;
}
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-dark); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-dark); }
.btn-green:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark); }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-row.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; padding: 12px 22px 12px 18px;
  background: #111; color: #fff; text-decoration: none;
  border-radius: 16px; border: 1.5px solid rgba(255,255,255,.18);
  transition: transform .3s var(--bounce), box-shadow .3s, background .3s;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.store-btn small { font-family: var(--body); font-size: .72rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.store-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -12px rgba(0,0,0,.55); }
.store-btn.is-primary { background: var(--green); border-color: var(--green); box-shadow: 0 6px 0 var(--green-dark), 0 18px 30px -12px rgba(63,167,107,.6); }
.store-btn.light { background: #fff; color: var(--green-deep); border-color: transparent; }
.store-btn.light.is-primary { background: var(--gold); color: var(--green-deep); box-shadow: 0 6px 0 #D9A93B; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(1180px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  color: #fff;
  transition: background .4s, color .4s, box-shadow .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.nav.is-solid {
  background: rgba(255, 253, 248, .82);
  color: var(--green-deep);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 30px -14px rgba(15,42,30,.35);
}
.nav.is-hidden { transform: translate(-50%, -120%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; opacity: .9; transition: background .25s, opacity .25s; }
.nav-links a:hover { background: rgba(127,127,127,.14); opacity: 1; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 90px; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--green-deep);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-img {
  position: absolute; inset: -8% -2%; width: 104%; height: 116%; object-fit: cover; object-position: 50% 40%;
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns { from { scale: 1.05; } to { scale: 1.16; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 75% 50%, rgba(15,42,30,.15), transparent 60%),
    linear-gradient(100deg, rgba(15,42,30,.96) 0%, rgba(15,42,30,.82) 38%, rgba(15,42,30,.35) 70%, rgba(15,42,30,.55) 100%),
    linear-gradient(0deg, rgba(15,42,30,.9), transparent 35%);
}
.cloud {
  position: absolute; width: 340px; height: 110px; border-radius: 999px;
  background: rgba(255,255,255,.08); filter: blur(18px);
  animation: drift 40s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 160px; height: 160px; top: -70px; left: 60px; }
.cloud::after { width: 120px; height: 120px; top: -45px; right: 70px; }
.c1 { top: 14%; left: -20%; }
.c2 { top: 62%; left: -30%; animation-duration: 55s; animation-delay: -20s; scale: .7; }
.c3 { top: 32%; left: -25%; animation-duration: 70s; animation-delay: -45s; scale: 1.2; }
@keyframes drift { to { translate: 160vw 0; } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 700; font-size: .9rem;
  opacity: 0; animation: rise .8s var(--ease) .1s forwards;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7CE3A3; box-shadow: 0 0 0 0 rgba(124,227,163,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(124,227,163,0); } 100% { box-shadow: 0 0 0 0 rgba(124,227,163,0); } }

.hero-title { font-size: clamp(3.6rem, 9vw, 7.4rem); font-weight: 700; margin-top: 22px; line-height: .98; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: .2s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .3s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .45s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .55s; }
.hero-title .accent { color: var(--gold); }
@keyframes wordUp { to { transform: none; } }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.3rem); margin-top: 24px; max-width: 30em; color: rgba(255,255,255,.86); opacity: 0; animation: rise .9s var(--ease) .7s forwards; }
.hero-sub strong { color: var(--gold); }
.hero .store-row { opacity: 0; animation: rise .9s var(--ease) .85s forwards; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-weight: 700; font-size: .92rem; color: rgba(255,255,255,.78); opacity: 0; animation: rise .9s var(--ease) 1s forwards; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1200px; opacity: 0; animation: phoneIn 1.2s var(--ease) .5s forwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotate(4deg); } to { opacity: 1; transform: none; } }
.phone-tilt { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); }

/* Bezel, corners and island all scale with the phone's width (cqw), so a small
   phone keeps real iPhone proportions and never clips the screenshot's HUD. */
.phone {
  position: relative; container-type: inline-size;
  width: 300px; aspect-ratio: 1372 / 2866;
  border-radius: 15% / 7.2%;
  background: linear-gradient(145deg, #2a2f2c, #0c0f0d);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), var(--shadow);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 5.4cqw; left: 50%; transform: translateX(-50%);
  width: 27cqw; height: 7.6cqw; border-radius: 999px; background: #000; z-index: 2;
}
.phone > img, .phone > video {
  position: absolute; inset: 3.2cqw; width: calc(100% - 6.4cqw); height: calc(100% - 6.4cqw);
  object-fit: cover; border-radius: 11.6cqw; background: var(--cream);
}
.phone-hero { width: min(320px, 72vw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 50px 100px -30px rgba(0,0,0,.7); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 20px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow-soft);
  font-family: var(--display); transform: translateZ(60px);
}
.float-card b { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.float-card small { font-family: var(--body); font-size: .78rem; color: var(--muted); font-weight: 700; }
.fc-sync { left: -70px; top: 22%; animation: bob 5s ease-in-out infinite; }
.fc-ready { right: -60px; bottom: 18%; animation: bob 6s ease-in-out -2s infinite; }
.badge-check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }
@keyframes bob { 50% { translate: 0 -12px; } }

.coin {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 42%, var(--coin) 43% 62%, #1d1d1d 63% 70%, var(--coin) 71% 100%);
  box-shadow: inset 0 0 0 2.5px #1d1d1d, inset -3px -4px 0 rgba(0,0,0,.08);
}

.bubble {
  position: relative; display: inline-block;
  padding: 10px 16px; border-radius: 18px;
  background: #fff; color: var(--text);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-soft);
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -8px;
  border: 8px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.fc-bubble { position: absolute; top: -2%; right: -40px; transform: translateZ(80px); animation: pop 6s var(--bounce) 1.6s infinite; opacity: 0; }
@keyframes pop {
  0% { opacity: 0; scale: .4; }
  8%, 70% { opacity: 1; scale: 1; }
  80%, 100% { opacity: 0; scale: .9; }
}

.footprints { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.footprint {
  position: absolute; width: 22px; height: 36px; opacity: 0;
  animation: step 3.2s ease-out forwards;
}
.footprint svg { width: 100%; height: 100%; fill: rgba(255,212,107,.4); }
@keyframes step { 0% { opacity: 0; scale: .6; } 12% { opacity: 1; scale: 1; } 70% { opacity: .7; } 100% { opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 16px; } }

/* ---------- ticker ---------- */
.ticker { background: var(--gold); color: var(--green-deep); overflow: hidden; padding: 16px 0; border-block: 3px solid var(--green-deep); rotate: -1.2deg; margin: -18px -10px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--display); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.ticker-track i { width: 12px; height: 12px; border-radius: 50%; background: var(--green-deep); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

/* ---------- how it works ---------- */
.how { padding: clamp(100px, 12vw, 160px) 0 80px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.how-step.is-active { opacity: 1; }
.how-num { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--green); background: var(--light-green); width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.how-step h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.how-step p { font-size: 1.12rem; color: var(--muted); margin-top: 14px; max-width: 28em; }
.how-step strong { color: var(--green-dark); }
.phone-inline { display: none; }

.how-sticky { position: relative; }
.how-stage { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.how-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(63,167,107,.32), transparent 65%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.15; } }
.phone-stack { width: min(310px, 30vw); }
.phone-stack img { opacity: 0; transform: scale(.94) translateY(20px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.phone-stack img.is-on { opacity: 1; transform: none; }
.how-dots { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 10px; }
.how-dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--chip); transition: height .4s var(--ease), background .4s; }
.how-dots span.is-on { height: 32px; background: var(--green); }

/* ---------- city / needs ---------- */
.city { padding: clamp(100px, 12vw, 160px) 0; overflow: hidden; }
.city-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.city-visual { position: relative; display: flex; justify-content: center; min-height: 560px; align-items: center; }
.phone-tilted { width: min(300px, 70vw); rotate: -4deg; }
.bubble-stream { position: absolute; inset: 0; pointer-events: none; }
.bubble-stream .bubble { position: absolute; opacity: 0; scale: .5; transition: opacity .5s var(--ease), scale .6s var(--bounce), translate 3.5s linear; white-space: nowrap; }
.bubble-stream .bubble.is-on { opacity: 1; scale: 1; translate: 0 -24px; }
.bubble.sad { box-shadow: inset 0 0 0 2px rgba(224,101,75,.55), var(--shadow-soft); }
.bubble.sad::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); margin-right: 8px; translate: 0 -1px; }
.bubble.happy { background: #EAF7EE; }
.bubble.happy::after { border-top-color: #EAF7EE; }
.bubble.happy::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 8px; translate: 0 -1px; }
.needs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 30px 0 0; }
.needs li { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--divider); font-weight: 700; font-size: .95rem; transition: background .4s, color .4s, border-color .4s, transform .4s var(--bounce); }
.needs li.is-met { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }
.callout { margin-top: 30px; padding: 20px 24px; border-radius: 22px; background: var(--light-green); font-size: 1.05rem; }
.callout b { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }

/* ---------- levels ---------- */
.levels { padding: clamp(90px, 11vw, 140px) 0; background: linear-gradient(180deg, var(--cream), var(--light-green)); overflow: hidden; }
.levels-track-wrap { overflow-x: auto; scrollbar-width: none; padding: 20px 0 30px; }
.levels-track-wrap::-webkit-scrollbar { display: none; }
.levels-track { position: relative; width: max(1180px, 100%); margin-inline: auto; padding-inline: 30px; }
.levels-line { position: absolute; left: calc(30px + (100% - 60px) / 16); right: calc(30px + (100% - 60px) / 16); top: 31px; height: 8px; border-radius: 999px; background: rgba(15,42,30,.1); overflow: hidden; }
.levels-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); }
.level-list { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: lv; }
.level-list li { counter-increment: lv; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; }
.level-list li::before {
  content: counter(lv); display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%; margin-bottom: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  background: var(--card); color: var(--muted); border: 3px solid rgba(15,42,30,.12);
  transition: background .5s, color .5s, border-color .5s, transform .6s var(--bounce), box-shadow .5s;
}
.level-list li.is-reached::before { background: var(--green); color: #fff; border-color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px -8px rgba(63,167,107,.7); }
.level-list li:last-child.is-reached::before { background: var(--gold); color: var(--green-deep); }
.lv-pop { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.level-list b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.level-list q { font-size: .88rem; color: var(--muted); quotes: "\201C" "\201D"; line-height: 1.35; }

/* ---------- buildings marquee ---------- */
.buildings { padding: clamp(90px, 11vw, 140px) 0; overflow: hidden; }
.marquee { display: flex; flex-direction: column; gap: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row[data-dir=right] { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.b-card {
  flex: none; width: 240px; padding: 22px; border-radius: 24px;
  background: var(--card); border: 1.5px solid var(--divider);
  box-shadow: 0 6px 0 var(--divider);
  transition: transform .35s var(--bounce), box-shadow .35s;
}
.b-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 12px 0 var(--divider); }
.b-card h3 { font-size: 1.25rem; }
.b-meta { display: flex; gap: 14px; margin-top: 12px; font-weight: 800; font-size: .95rem; }
.b-cost { display: flex; align-items: center; gap: 6px; color: var(--green-dark); }
.b-cost .coin { width: 18px; height: 18px; box-shadow: inset 0 0 0 1.8px #1d1d1d; }
.b-time { color: var(--muted); }
.b-unlock { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: .78rem; font-weight: 800; color: var(--muted); }
.b-unlock.start { background: var(--light-green); color: var(--green-dark); }

/* ---------- milestones ---------- */
.milestones { padding: clamp(90px, 11vw, 140px) 0; background: #14261C; color: #fff; }
.milestones .kicker { color: var(--gold); }
.milestones .lede { color: rgba(255,255,255,.72); }
.ms-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; }
.ms-road { position: relative; margin-top: 50px; padding-left: 110px; }
.ms-path { position: absolute; left: 0; top: 0; width: 90px; height: 100%; overflow: visible; }
.ms-path path { fill: none; stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ms-path-bg { stroke: rgba(255,255,255,.1); }
.ms-path-fg { stroke: var(--gold); stroke-dasharray: 1; stroke-dashoffset: 1; }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ms-list li {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: background .5s, border-color .5s, transform .6s var(--bounce);
}
.ms-list li::before {
  content: ""; position: absolute; left: calc(var(--dot-x, 34px) - 110px - 11px); top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: #14261C; border: 4px solid rgba(255,255,255,.2);
  transition: background .4s, border-color .4s, scale .5s var(--bounce);
}
.ms-list li.is-reached { background: rgba(255,212,107,.12); border-color: rgba(255,212,107,.35); transform: translateX(6px); }
.ms-list li.is-reached::before { background: var(--gold); border-color: #fff; scale: 1.25; }
.ms-list b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.ms-list span { font-weight: 800; font-size: .88rem; color: var(--gold); white-space: nowrap; }
.ms-sticky { position: sticky; top: 12vh; display: grid; place-items: center; padding: 40px 0 70px; }
.phone-video { grid-area: 1 / 1; width: 250px; margin: 0; }
.phone-back { translate: -78px -26px; rotate: -7deg; filter: brightness(.88); }
.phone-front { translate: 82px 34px; rotate: 4deg; z-index: 1; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 40px 80px -20px rgba(0,0,0,.75); }
.phone-video figcaption {
  position: absolute; z-index: 3; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: var(--gold); color: var(--green-deep);
  font-family: var(--display); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-soft);
}
.phone-back figcaption { top: 16%; left: -34px; rotate: 7deg; }
.phone-front figcaption { bottom: 14%; right: -40px; rotate: -4deg; }

/* ---------- activity ---------- */
.activity { padding: clamp(90px, 11vw, 140px) 0; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.08rem; }
.ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 9px; flex: none; background: var(--light-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233FA76B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.activity-chart { background: var(--card); border-radius: var(--radius); padding: 28px 28px 22px; box-shadow: var(--shadow); }
.chart-cap { font-weight: 700; color: var(--muted); font-size: .9rem; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 260px; margin-top: 20px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar::before { content: ""; width: 100%; max-width: 40px; height: calc(var(--h) * 78%); border-radius: 12px; background: var(--green); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--bounce); order: 1; }
.bar.best::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--text); }
.bar span { order: 0; font-weight: 800; font-size: .82rem; color: var(--muted); margin-bottom: 6px; opacity: 0; transition: opacity .5s .5s; }
.bar i { order: 2; font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.bar.best i { color: var(--green); font-weight: 800; }
.is-in .bar::before { transform: scaleY(1); }
.is-in .bar span { opacity: 1; }
.bar:nth-child(2)::before { transition-delay: .08s; } .bar:nth-child(3)::before { transition-delay: .16s; }
.bar:nth-child(4)::before { transition-delay: .24s; } .bar:nth-child(5)::before { transition-delay: .32s; }
.bar:nth-child(6)::before { transition-delay: .4s; } .bar:nth-child(7)::before { transition-delay: .48s; }

/* ---------- fair ---------- */
.fair { padding: clamp(90px, 11vw, 140px) 0 60px; background: var(--light-green); }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.extra { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: 0 6px 0 rgba(15,42,30,.08); transition: transform .4s var(--bounce), box-shadow .4s; }
.extra:hover { transform: translateY(-8px); box-shadow: 0 14px 0 rgba(15,42,30,.08); }
.extra-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: var(--light-green); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.extra p { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.extra:nth-child(2) { transition-delay: .06s; } .extra:nth-child(3) { transition-delay: .12s; } .extra:nth-child(4) { transition-delay: .18s; }
.fair-note { text-align: center; margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--green-deep); }

/* ---------- trust ---------- */
.trust { padding: 60px 0 clamp(90px, 11vw, 130px); background: var(--light-green); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { padding: 28px; border-radius: 24px; border: 2px dashed rgba(15,42,30,.18); }
.trust-item p { color: var(--muted); margin-top: 10px; }

/* ---------- gallery ---------- */
.gallery { height: 240vh; background: var(--cream); }
.gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery .section-head { margin-bottom: 28px; }
.gallery-track { display: flex; gap: 40px; padding-inline: max(20px, (100vw - 1180px) / 2); width: max-content; will-change: transform; }
.g-item { margin: 0; flex: none; text-align: center; }
.g-item .phone { width: min(210px, 26vh); transition: transform .5s var(--bounce); }
.g-item:nth-child(odd) .phone { rotate: -2deg; } .g-item:nth-child(even) .phone { rotate: 2deg; translate: 0 30px; }
.g-item:hover .phone { transform: translateY(-10px) scale(1.03); }
.g-item figcaption { margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.g-item:nth-child(even) figcaption { margin-top: 56px; }

/* ---------- faq ---------- */
.faq { padding: clamp(40px, 5vw, 70px) 0 clamp(90px, 11vw, 140px); }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 22px; border: 1.5px solid var(--divider); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--green); box-shadow: 0 10px 30px -18px rgba(63,167,107,.6); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--light-green); color: var(--green-dark); font-size: 1.4rem; transition: rotate .4s var(--bounce), background .3s, color .3s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--green); color: #fff; }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; border-radius: 22px; }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 1.05rem; }
.faq-body { overflow: hidden; transition: height .4s var(--ease); }

/* ---------- final ---------- */
.final { padding: clamp(110px, 13vw, 170px) 0; background: radial-gradient(900px 500px at 50% 0%, #2E8754, var(--green-deep) 70%); color: #fff; text-align: center; overflow: hidden; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-icon { border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); animation: bob 4s ease-in-out infinite; }
.final h2 { margin-top: 30px; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.final .lede { color: rgba(255,255,255,.78); margin-inline: auto; }
.final-note { margin-top: 22px; font-weight: 700; color: rgba(255,255,255,.6); }
.coin-rain { position: absolute; inset: 0; pointer-events: none; }
.coin-rain .coin { position: absolute; bottom: -40px; animation: floatUp linear infinite; opacity: .0; }
@keyframes floatUp { 0% { transform: translateY(0) rotateY(0); opacity: 0; } 10% { opacity: .55; } 90% { opacity: .55; } 100% { transform: translateY(-110vh) rotateY(720deg); opacity: 0; } }

/* ---------- footer ---------- */
.footer { background: var(--green-deep); color: rgba(255,255,255,.7); padding: 36px 0 46px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer .brand { color: #fff; font-size: 1.1rem; }
.footer-small { font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .store-row { justify-content: center; }
  .hero-points { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .fc-sync { left: -40px; } .fc-ready { right: -30px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(15,42,30,.92) 0%, rgba(15,42,30,.78) 55%, rgba(15,42,30,.95) 100%); }

  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { display: none; }
  .how-step { min-height: 0; opacity: 1; padding: 40px 0; align-items: center; text-align: center; }
  .how-step p { margin-inline: auto; }
  .phone-inline { display: block; width: min(260px, 70vw); margin-top: 30px; }

  .city-grid, .ms-grid, .activity-grid { grid-template-columns: 1fr; }
  .city-visual { min-height: 520px; order: 2; }
  .ms-media { margin-top: 30px; }
  .scroll-cue { display: none; }
  .ms-sticky { position: relative; top: 0; }
  .phone-video { width: min(210px, 46vw); }
  .phone-back { translate: -22% -14px; }
  .phone-front { translate: 22% 24px; }
  .phone-back figcaption { left: -8px; }
  .phone-front figcaption { right: -8px; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }

  .gallery { height: auto; }
  .gallery-sticky { position: relative; height: auto; padding: 90px 0; }
  .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 50px; scrollbar-width: none; transform: none !important; }
  .gallery-track::-webkit-scrollbar { display: none; }
  .g-item { scroll-snap-align: center; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav .brand span { display: none; }
  .store-btn { min-width: 0; flex: 1 1 0; gap: 8px; padding: 11px 12px; justify-content: center; }
  .store-btn span { font-size: 1.02rem; white-space: nowrap; }
  .store-btn small { font-size: .66rem; }
  .store-btn svg { width: 22px; height: 22px; }
  .bubble-stream .bubble { font-size: .88rem; padding: 8px 12px; }
  .float-card { padding: 9px 14px 9px 9px; }
  .float-card b { font-size: 1rem; }
  .fc-sync { left: -10px; top: 14%; } .fc-ready { right: -10px; bottom: 10%; }
  .fc-bubble { right: 0; }
  .extras { grid-template-columns: 1fr; }
  .ms-road { padding-left: 70px; }
  .ms-path { width: 50px; }
  .ms-list li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; }
  .ms-list li::before { left: calc(var(--dot-x, 25px) - 70px - 11px); }
  .g-item .phone { width: 200px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .levels-track-wrap { overflow: visible; }
  .levels-track { width: auto; padding-inline: 16px; }
  .levels-line { left: 47px; right: auto; top: 35px; bottom: 35px; width: 8px; height: auto; }
  .levels-fill { background: linear-gradient(180deg, var(--green), var(--gold)); transform-origin: 50% 0; transform: scaleY(var(--lp, 0)); }
  .level-list { grid-template-columns: 1fr; gap: 22px; }
  .level-list li { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; row-gap: 0; text-align: left; align-items: start; padding: 0; }
  .level-list li::before { grid-row: 1 / span 3; margin: 0; }
  .level-list li > * { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
  .ticker-track, .marquee-row { animation: none !important; }
}
