/* M IN — home page only. Loaded after site.css.
   Every picture here is motion graphics drawn from the M IN mark (the open square and its dot) and the
   app's own glyphs. No screenshots, no illustrations. home.js runs the hero scene, the numbers and the
   in-view switches; the small loops are CSS and SVG. Everything settles to a still frame under
   prefers-reduced-motion. */

:root { --ease-io: cubic-bezier(0.65, 0, 0.35, 1); --dot-idle: #D3CEC8; }
@media (prefers-color-scheme: dark) { :root { --dot-idle: #3B3936; } }

/* ---------- Hero ---------- */
.home-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero-top { display: grid; grid-template-columns: 1fr; gap: 28px 64px; align-items: end; }
@media (min-width: 900px) { .hero-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.home-hero h1 { font-size: clamp(3.4rem, 1.9rem + 5.4vw, 6rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.96; margin: 0 0 32px; max-width: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-side .lead { margin: 0 0 16px; max-width: 40ch; color: var(--text); font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); }
.hero-meta { display: flex; flex-wrap: wrap; row-gap: 2px; margin: 0; font-size: 0.875rem; color: var(--muted); }
.hero-meta span + span::before { content: "\00B7"; margin: 0 8px; }
@media (max-width: 520px) { .hero-meta .meta-where { flex-basis: 100%; } .hero-meta .meta-where::before { content: none; } }

/* Kinetic headings: words rise out of a mask (motion.js splits them). */
.kw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.kw > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms + 80ms); }
.is-in .kw > span, .kinetic.is-in .kw > span { transform: none; }

/* The scene: people near you, a plan, and the dot that completes it. */
.stage-panel { display: grid; grid-template-columns: 1fr; margin-top: clamp(44px, 6vw, 72px); border-radius: 28px; background: var(--bg-2); overflow: hidden; }
@media (min-width: 900px) { .stage-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.stage { position: relative; height: clamp(340px, 36vw + 120px, 560px); overflow: hidden; }
.stage-mark { position: absolute; left: 50%; top: 50%; width: min(62%, 330px); height: auto; translate: -50% -50%; overflow: visible; }
.sm-line { fill: none; stroke: var(--text); stroke-width: 0.34; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width 1.1s var(--ease-io); }
.stage.is-logo .sm-line { stroke-width: 7.8; }
.pd { position: absolute; left: 0; top: 0; width: var(--dd, 60px); height: var(--dd, 60px); margin: calc(var(--dd, 60px) / -2) 0 0 calc(var(--dd, 60px) / -2); border-radius: 50%; background: var(--dot-idle); will-change: transform; transition: background-color .6s var(--ease), opacity .6s var(--ease); }
.pd.m { background: var(--text); }
.pd.y { background: var(--coral); }
.pd.gone { opacity: 0; }
.stage-copy { display: grid; align-content: center; gap: 10px; padding: 8px clamp(24px, 4vw, 56px) clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .stage-copy { padding: 48px clamp(32px, 4vw, 64px) 48px 24px; } }
.stage-copy p { margin: 0; overflow: hidden; }
.stage-copy p > span { display: block; }
.stage-meta { font-size: 0.9375rem; color: var(--text-2); }
.stage-title { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 300; letter-spacing: -0.032em; line-height: 1.04; color: var(--text); padding-bottom: 0.06em; }
.stage-count { font-size: 0.9375rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stage-count b { font-weight: 500; color: var(--text); }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--hairline); }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; border-top: 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 18px 64px; align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.sec-head h2 { margin: 0; max-width: 17ch; }
.sec-side p { margin: 0 0 18px; color: var(--text-2); font-size: 1rem; max-width: 42ch; }
.sec-side p:last-child { margin-bottom: 0; }
.js .sec-head[data-reveal] { opacity: 1; transform: none; }
.js .sec-head[data-reveal] .label, .js .sec-head[data-reveal] .sec-side { opacity: 0; transition: opacity .9s var(--ease) .25s; }
.js .sec-head.is-in .label, .js .sec-head.is-in .sec-side { opacity: 1; }

/* Numbers: digits roll into place. */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats > div { padding: 28px 20px 30px 0; }
.stats > div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--border); }
.stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div, .stats > div:nth-child(2n), .stats > div:nth-child(n + 3) { padding: 34px 28px 36px; border-top: 0; border-left: 1px solid var(--border); }
  .stats > div:first-child { padding-left: 0; border-left: 0; }
}
.stats b { display: flex; font-family: var(--display); font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 14px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; max-width: 26ch; }
.stats b span { margin: 0; color: inherit; font-size: inherit; line-height: 1; max-width: none; }
.stats b > span { display: inline-block; }
.odo { height: 1em; overflow: hidden; }
.odo .reel { display: block; transform: translateY(-9em); transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.odo .reel > span { display: block; height: 1em; margin: 0; }

/* Step tiles: a motion piece on top, words underneath. */
.cards3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--bg-2); overflow: hidden; }
.tile-media { position: relative; margin: 8px 8px 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
.tile-body { padding: 20px 22px 26px; }
.tile-body .label { margin-bottom: 8px; color: var(--muted); }
.tile-body h3 { margin: 0 0 8px; }
.tile-body p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }

/* 01 · Post: the plan assembles itself from its parts. */
.vg-post { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; }
.tok-row { display: flex; gap: 8px; }
.tok { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-size: 0.9375rem; white-space: nowrap; }
.tok-post { margin-top: 10px; padding: 0 26px; background: var(--text); color: var(--bg); font-weight: 500; }
.js .vg-post .tok { animation: tok 6.4s var(--ease-out) infinite both paused; }
.js .vg-post .tok-row:first-child .tok:nth-child(2) { animation-delay: .25s; }
.js .vg-post .tok-row:last-child .tok:nth-child(1) { animation-delay: .5s; }
.js .vg-post .tok-row:last-child .tok:nth-child(2) { animation-delay: .75s; }
.js .vg-post .tok-post { animation-name: tok-post; animation-delay: 1.2s; }
@keyframes tok { 0% { opacity: 0; transform: translateY(16px) scale(0.96); } 9% { opacity: 1; transform: none; } 74% { opacity: 1; transform: none; } 84% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes tok-post { 0% { opacity: 0; transform: scale(0.9); } 8% { opacity: 1; transform: none; } 22% { background: var(--text); } 28% { background: var(--coral); color: #FFF; } 66% { opacity: 1; transform: none; background: var(--coral); color: #FFF; } 76% { opacity: 0; transform: translateY(-12px); background: var(--coral); color: #FFF; } 100% { opacity: 0; transform: translateY(-12px); } }

/* 02 · Join: the spots fill, one yes at a time. */
.vg-join { display: grid; place-content: center; justify-items: center; gap: 18px; }
.spots { display: grid; grid-template-columns: repeat(3, 44px); gap: 12px; }
.spots i { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border); }
.spots i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--text); transform: scale(0); }
.spots i::after { content: ""; position: absolute; left: 50%; top: 46%; width: 12px; height: 6px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translate(-50%, -50%) rotate(-45deg) scale(0); }
.spots i.in::before { transform: none; }
html:not(.js) .spots i::before { transform: none; }
html:not(.js) .spots i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.spots i.in::after { transform: translate(-50%, -50%) rotate(-45deg); }
.spots i:last-child::before { background: var(--coral); }
.js .vg-join .spots i:not(.in)::before { animation: spot-fill 6.4s var(--ease-out) infinite both paused; }
.js .vg-join .spots i:not(.in)::after { animation: spot-tick 6.4s var(--ease-out) infinite both paused; }
.js .vg-join .spots i:nth-child(4)::before, .js .vg-join .spots i:nth-child(4)::after { animation-delay: .9s; }
.js .vg-join .spots i:nth-child(5)::before, .js .vg-join .spots i:nth-child(5)::after { animation-delay: 1.8s; }
.js .vg-join .spots i:nth-child(6)::before, .js .vg-join .spots i:nth-child(6)::after { animation-delay: 2.7s; }
@keyframes spot-fill { 0%, 10% { transform: scale(0); } 16% { transform: scale(1.12); } 20% { transform: scale(1); } 76% { transform: scale(1); } 84%, 100% { transform: scale(0); } }
@keyframes spot-tick { 0%, 14% { transform: translate(-50%, -50%) rotate(-45deg) scale(0); } 22% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); } 76% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); } 82%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(0); } }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 6; }
.vg-count { margin: 0; font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vg-count .n { font-weight: 500; color: var(--text); counter-reset: n var(--n); }
.vg-count .n::before { content: counter(n); }
.js .vg-join .vg-count .n { animation: n-count 6.4s linear infinite both paused; }
@keyframes n-count { 0%, 15.9% { --n: 2; } 16%, 29.9% { --n: 3; } 30%, 43.9% { --n: 4; } 44%, 57.9% { --n: 5; } 58%, 85.9% { --n: 6; } 86%, 100% { --n: 2; } }

/* 03 · Meet: streets draw, the pin drops, everyone walks to it (SVG, home.js pauses it off-screen). */
.vg-meet { display: grid; place-items: center; }
.meet { width: 100%; height: 100%; }
.meet .st { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-linecap: round; }
.pin-line { fill: none; stroke: var(--text); stroke-width: 7.8; stroke-linecap: round; stroke-linejoin: round; }
.pin-dot { fill: var(--coral); }
.walkers circle { fill: var(--text); }
.walkers .you { fill: var(--coral); }
.meet-label { font: 500 11px var(--font); letter-spacing: 0; fill: var(--text-2); text-anchor: middle; }

/* Running only while in view. */
.js .vg.is-on .tok, .js .vg.is-on .spots i::before, .js .vg.is-on .spots i::after, .js .vg.is-on .vg-count .n,
.js .vg.is-on .reel-word, .js .vg.is-on .scan, .js .vg.is-on .off, .js .vg.is-on .deck i:first-child, .js .vg.is-on .note, .js .vg.is-on .cells i { animation-play-state: running; }

/* Small cards: a short motion piece, a title, a few words. */
.cards4 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards4.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini { display: flex; flex-direction: column; padding: 8px 8px 24px; border-radius: var(--radius-card); background: var(--bg-2); }
.mini h3 { margin: 22px 14px 6px; }
.mini p { margin: 0 14px; color: var(--text-2); font-size: 0.9375rem; }
.mini p a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.mv { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: 116px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; }

/* Browse: the activity changes like a departures board. */
.ticker { display: block; height: 40px; overflow: hidden; border-radius: 999px; background: var(--text); color: var(--bg); padding: 0 20px; text-align: center; }
.ticker > span { display: block; height: 40px; line-height: 40px; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.js .ticker > span { animation: reel 9s cubic-bezier(0.7, 0, 0.2, 1) infinite both paused; }
.js .vg.is-on .ticker > span { animation-play-state: running; }
@keyframes reel { 0%, 12% { transform: translateY(0); } 16.6%, 28.6% { transform: translateY(-100%); } 33.3%, 45.3% { transform: translateY(-200%); } 50%, 62% { transform: translateY(-300%); } 66.6%, 78.6% { transform: translateY(-400%); } 83.3%, 95.3% { transform: translateY(-500%); } 100% { transform: translateY(-600%); } }

/* Deal: the place scans the plan's code, the discount lands. */
.code { position: relative; display: grid; grid-template-columns: repeat(3, 14px); gap: 4px; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--border); }
.code i { width: 14px; height: 14px; border-radius: 3px; background: var(--text); }
.code i:nth-child(2), .code i:nth-child(4), .code i:nth-child(6), .code i:nth-child(8) { background: var(--chip-bg); }
.code i:nth-child(5) { background: var(--coral); }
.scan { position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; border-radius: 2px; background: var(--coral); opacity: 0; }
.off { font-family: var(--display); font-size: 1.75rem; font-weight: 300; letter-spacing: -0.03em; color: var(--text); }
.js .scan { animation: scan 4s var(--ease-io) infinite both paused; }
.js .off { animation: off 4s var(--ease-out) infinite both paused; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 40% { opacity: 1; transform: translateY(52px); } 46%, 100% { opacity: 0; transform: translateY(52px); } }
@keyframes off { 0%, 42% { opacity: 0; transform: translateY(10px); } 52% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-8px); } }

/* Offers: the top card leaves for the app it came from. */
.deck { position: relative; width: 96px; height: 64px; }
.deck i { position: absolute; inset: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.deck i:nth-child(2) { transform: translate(-8px, 8px); z-index: -1; background: var(--bg-2); }
.deck i:nth-child(3) { transform: translate(-16px, 16px); z-index: -2; background: var(--chip-bg); }
.deck i:first-child::before { content: ""; position: absolute; left: 12px; right: 30px; top: 14px; height: 6px; border-radius: 3px; background: var(--text); box-shadow: 0 14px 0 -1px var(--border); }
.deck i:first-child::after { content: ""; position: absolute; right: 12px; top: 12px; width: 9px; height: 9px; border-top: 1.75px solid var(--coral); border-right: 1.75px solid var(--coral); }
.mv-offers .deck { transform: translate(8px, -6px); }
.js .deck i:first-child { animation: deck-out 4.2s var(--ease-io) infinite both paused; }
@keyframes deck-out { 0%, 30% { transform: none; opacity: 1; } 52% { transform: translate(34px, -30px); opacity: 0; } 53% { transform: translate(-8px, 8px); opacity: 0; } 72%, 100% { transform: none; opacity: 1; } }

/* Alerts: a rough area, never a pin; a quiet note slides in. */
.cells { display: grid; grid-template-columns: repeat(6, 18px); gap: 4px; }
.cells i { width: 18px; height: 18px; border-radius: 4px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.cells i:nth-child(8) { background: var(--text); box-shadow: none; }
.note { position: absolute; left: 50%; top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.75rem; white-space: nowrap; transform: translate(-50%, -160%); }
.js .note { animation: note 4.6s var(--ease-out) infinite both paused; }
.js .cells i:nth-child(8) { animation: cell 4.6s var(--ease-io) infinite both paused; }
@keyframes note { 0%, 18% { transform: translate(-50%, -160%); } 30%, 74% { transform: translate(-50%, 0); } 86%, 100% { transform: translate(-50%, -160%); } }
@keyframes cell { 0%, 18% { background: var(--bg-2); } 26%, 80% { background: var(--text); } 90%, 100% { background: var(--bg-2); } }

/* ---------- Safety: dark, with the app's own glyphs drawn in ---------- */
.sec-dark { background: #0B0B0B; color: #F5F5F4; border-top: 0; }
@media (prefers-color-scheme: dark) { .sec-dark { background: #121211; } }
.sec-dark h2 { color: #F5F5F4; }
.sec-dark .label, .sec-dark .sec-side p { color: #A8A29E; }
.sec-dark .mini { padding: 24px 22px 26px; background: #171615; }
.sec-dark .mini h3 { margin: 48px 0 6px; color: #F5F5F4; }
.sec-dark .mini p { margin: 0; color: #A8A29E; }
.sec-dark svg.draw { width: 34px; height: 34px; color: #F5F5F4; }
.js .sec-dark svg.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.js .sec-dark .vg.is-seen svg.draw path { stroke-dashoffset: 0; }

/* Cities: an index, one row each. */
.cities { border-top: 1px solid var(--border); }
.city { display: grid; grid-template-columns: 1fr; gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--border); color: var(--text); transition: padding .5s var(--ease-out); }
.city:hover { text-decoration: none; }
.city b { font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.15; }
.city span { color: var(--text-2); font-size: 0.9375rem; max-width: 56ch; }
.city em { font-style: normal; font-size: 0.875rem; color: var(--text); }
.city:hover em { text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 860px) {
  .city { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(9.5em, auto); align-items: baseline; padding: 28px 0; }
  .city em { justify-self: end; white-space: nowrap; }
  .city:hover { padding-left: 12px; }
}

/* FAQ */
.faq-sec .split h2 { max-width: 12ch; margin-bottom: 0; }
.faq-sec .faq { margin-top: 0; }

/* Closing: the mark draws itself and the dot lands. */
#get.sec { padding-bottom: 0; }
.closing-panel { display: grid; justify-items: center; text-align: center; padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 64px); border-radius: 28px; background: #0B0B0B; color: #F5F5F4; }
@media (prefers-color-scheme: dark) { .closing-panel { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); } }
.closing-mark { width: 76px; height: 76px; margin-bottom: 28px; overflow: visible; }
.closing-mark path { fill: none; stroke: #F5F5F4; stroke-width: 7.8; stroke-linecap: round; stroke-linejoin: round; }
.closing-mark circle { fill: var(--coral); transform-box: fill-box; transform-origin: center; }
.js .closing-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io); }
.js .closing-mark circle { transform: scale(0); transition: transform .7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s; }
.js .closing-panel.is-seen .closing-mark path { stroke-dashoffset: 0; }
.js .closing-panel.is-seen .closing-mark circle { transform: none; }
.closing-panel h2 { color: #F5F5F4; font-size: clamp(3rem, 1.8rem + 4.6vw, 5.25rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; margin: 0 0 16px; }
.closing-panel .lead { color: #A8A29E; margin: 0 auto 32px; }
.closing-panel .stores { justify-content: center; }
.closing-panel .store { background: #FFF; color: #0B0B0B; border-color: #FFF; }
.closing-panel .store:hover { background: #ECEAE7; }

/* ---------- Reduced motion: every piece shows its finished frame ---------- */
@media (prefers-reduced-motion: reduce) {
  .kw > span { transform: none !important; transition: none !important; }
  .js .vg-post .tok, .js .vg-join .spots i::before, .js .vg-join .spots i::after, .js .vg-join .vg-count .n,
  .js .ticker > span, .js .scan, .js .off, .js .deck i:first-child, .js .note, .js .cells i:nth-child(8) { animation: none !important; }
  .js .vg-join .spots i::before { transform: none; }
  .js .vg-join .spots i::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .js .note { transform: translate(-50%, 0); }
  .js .sec-dark svg.draw path, .js .closing-mark path { stroke-dashoffset: 0; transition: none; }
  .js .closing-mark circle { transform: none; transition: none; }
  .odo .reel, .sm-line, .city { transition: none; }
}
