/* /machine/: "Build the machine", the playable how-it-works page (11/5/26).
   A street scene for a made-up B2B company (Pretzel Point Supply Co.). Scoped under .mx-* so nothing leaks. */

.mx-hero .process-hero__sub { max-width: 560px; }
.mx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.mx { --mx-face: var(--font-display); background: var(--cream); padding: var(--space-6) 0 var(--space-7); scroll-margin-top: calc(var(--nav-height) - 24px); }
.mx__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.mx__head h2 { color: var(--primary); margin: 0; font-size: clamp(1.8rem, 3vw + .6rem, 2.8rem); }
.mx__controls { display: flex; gap: 10px; }
.mx-btn {
  font: 700 0.95rem var(--mx-face); border-radius: 12px; padding: 10px 16px; cursor: pointer;
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  transition: transform .2s var(--ease), background var(--dur);
}
.mx-btn:hover { transform: translateY(-1px); background: var(--brand-secondary); }
.mx-btn:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* sticky numbers on small screens, where the dashboard sits below the street */
.mx-mini { display: none; }
@media (max-width: 1100px) {
  .mx-mini {
    display: flex; justify-content: space-between; gap: 8px; position: sticky; top: calc(var(--nav-height) - 8px); z-index: 6;
    background: var(--brand-secondary); color: var(--primary); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
    font: 600 .85rem var(--mx-face); box-shadow: 0 6px 16px rgba(0,40,107,.18);
  }
  .mx-mini b { font-weight: 800; font-size: 1rem; }
}

/* ---------- tray ---------- */
.mx-tray { background: var(--primary); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; min-height: 72px; }
.mx-tray__pieces { display: contents; }
.mx-tray__label { font: 700 .9rem var(--mx-face); color: rgba(255,255,255,.6); margin-right: 6px; }
.mx-tray__done { color: var(--brand-secondary); font: 700 1rem var(--mx-face); }
.mx-piece {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-secondary); color: var(--primary);
  font: 700 .95rem var(--mx-face); border: 0; border-radius: 12px; padding: 10px 14px; cursor: grab;
  box-shadow: 0 4px 0 #c98a1a; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.mx-piece:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #c98a1a; }
.mx-piece:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mx-piece svg { width: 20px; height: 20px; flex: none; }
.mx-piece[aria-disabled="true"] { background: rgba(255,255,255,.14); color: rgba(255,255,255,.65); box-shadow: none; cursor: not-allowed; }
.mx-piece[aria-disabled="true"]:hover { transform: none; }
.mx-piece__lock { font-weight: 500; font-size: .8rem; opacity: .85; }
.mx-piece { max-width: 100%; flex-wrap: wrap; text-align: left; }
.mx-ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transform: rotate(-3deg) scale(1.06); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.mx-fly { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transition: transform .45s var(--ease), opacity .45s; }

/* ---------- sliders ---------- */
.mx-knobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.mx-knob { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.mx-knob__top { display: flex; justify-content: space-between; align-items: baseline; font: 700 .9rem var(--mx-face); color: var(--text-color-02); }
.mx-knob__top b { font: 800 1.15rem var(--mx-face); color: var(--primary); }
.mx-knob__hint { font-size: .75rem; color: var(--text-color-04); }
.mx-knob__hint[hidden] { display: none; }
.mx-knob input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; margin: 6px 0;
  background: linear-gradient(to right, var(--brand-secondary) var(--p, 50%), #e2e6ec var(--p, 50%)); cursor: pointer;
}
.mx-knob input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,40,107,.35); }
.mx-knob input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,40,107,.35); }
.mx-knob input[type="range"]:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 4px; }
@media (max-width: 760px) { .mx-knobs { grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 420px) { .mx-knobs { grid-template-columns: 1fr; } }
.mx-knob { min-width: 0; }

/* ---------- the street ---------- */
.mx-street { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; box-shadow: 0 18px 40px rgba(0,40,107,.10); }
.mx-scene { position: relative; aspect-ratio: 1344 / 752; }
.mx-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }


.mx-scene .is-hidden { display: none; }
.mx-prop.is-pop { animation: mx-pop .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.mx-flowline { animation: mx-flow 1s linear infinite; }
.mx-env { animation: mx-env 3.2s var(--ease) infinite; }
#mx-ad-glow { transition: opacity .3s; }
.mx-walker__shadow { fill: rgba(0,0,0,.14); }
.mx-walker { transition: opacity .35s; }
.mx-bubble { fill: #fff; stroke: var(--error); stroke-width: 2; }
.mx-bubble--good { stroke: #1f9d6b; }
.mx-bubble--meh { stroke: #a9acaa; }
.mx-bubble__t { font: 700 14px var(--mx-face); fill: var(--primary); }
.mx-coin__t { font: 800 16px var(--mx-face); fill: var(--primary); }
.mx-coin__l { font: 800 14px var(--mx-face); fill: var(--primary); paint-order: stroke; stroke: #fff; stroke-width: 4px; }

/* scene type */
.mx-s-ghost { font: 800 28px var(--mx-face); fill: #a9acaa; }
.mx-s-bb1 { font: 800 17px var(--mx-face); fill: var(--brand-secondary); }
.mx-s-bb2 { font: 700 15px var(--mx-face); fill: #fff; }
.mx-s-bb3 { font: 800 17px var(--mx-face); fill: var(--primary); }
.mx-s-ad1 { font: 800 12.5px var(--mx-face); fill: var(--primary); }
.mx-s-ad1.g, .mx-s-ad3.g { fill: #a9acaa; }
.mx-s-ad2 { font: 600 10px var(--mx-face); fill: #a9acaa; }
.mx-s-ad3 { font: 800 17px var(--mx-face); }
.mx-s-ad4 { font: 800 12px var(--mx-face); fill: var(--brand-secondary); }
.mx-s-ad5 { font: 700 11px var(--mx-face); fill: var(--primary); }
.mx-s-ph { font: 500 10.5px var(--mx-face); fill: #3b3e3c; }
.mx-s-ph.b { font-weight: 700; }
.mx-s-ph.g { fill: #a9acaa; }
.mx-s-ph.r { font-weight: 800; font-size: 13px; fill: var(--error); }
.mx-s-ph.n { font-weight: 800; font-size: 10px; fill: var(--primary); }
.mx-s-ph.o { fill: #c98a1a; font-weight: 700; }
.mx-s-ph.t { font-weight: 800; font-size: 10px; fill: #3f9aa0; }
.mx-s-sign { font: 800 27px var(--mx-face); fill: var(--brand-secondary); }
.mx-s-open { font: 800 14px var(--mx-face); fill: #fff; }
.mx-s-closed { font: 800 10px var(--mx-face); fill: var(--error); }
.mx-s-bub { font: 700 12px var(--mx-face); fill: var(--primary); }
.mx-s-note { font: 700 13px var(--mx-face); fill: #3b3e3c; }
.mx-s-reg { font: 700 17px ui-monospace, Menlo, monospace; fill: #7cfc9a; }
.mx-s-rh { font: 800 10px var(--mx-face); fill: #747876; }
.mx-s-rl { font: 700 11px ui-monospace, Menlo, monospace; fill: #0f0f0f; }

/* tap targets on top of the scene */
.mx-spots { position: absolute; inset: 0; pointer-events: none; }
.mx-spot {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; border: 2px dashed var(--primary);
  background: rgba(255,255,255,.92); color: var(--primary); border-radius: 999px; padding: 6px 12px 6px 6px;
  font: 700 .85rem var(--mx-face); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,40,107,.15);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
  animation: mx-breathe 2.4s ease-in-out infinite;
}
.mx-spot__plus { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-secondary); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.mx-spot:hover, .mx-spot.is-target, .mx-spot.is-hint { transform: translate(-50%, -50%) scale(1.08); background: #fff6e3; border-color: var(--brand-secondary); border-style: solid; }
.mx-spot:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }
.mx-spot.is-wrong { animation: mx-shake .4s; border-color: var(--error); }
.mx-spot.is-on { animation: none; padding: 0; width: 26px; height: 26px; justify-content: center; border: 0; background: rgba(0,40,107,.75); color: #fff; opacity: 0; }
.mx-scene:hover .mx-spot.is-on, .mx-spot.is-on:focus-visible { opacity: 1; }
.mx-spot__x { font-size: 1rem; line-height: 1; }

.mx-status { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 14px; font: 600 1rem/1.4 var(--mx-face); color: var(--primary); }
.mx-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--error); flex: none; }
.mx-status.is-good .mx-status__dot { background: #1f9d6b; }

.mx-card { margin-top: 12px; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-left: 5px solid var(--brand-secondary); border-radius: 12px; padding: 16px 18px; }
.mx-card[hidden] { display: none; }
.mx-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--brand-secondary); display: grid; place-items: center; flex: none; }
.mx-card__icon svg { width: 24px; height: 24px; }
.mx-card__title { font: 800 1rem var(--mx-face); color: var(--primary); margin: 0 0 4px; }
.mx-card p { margin: 0 0 8px; font-size: 1rem; }
.mx-card a { font: 700 .92rem var(--mx-face); color: var(--primary); }

/* ---------- layout: street left, results pinned right ---------- */
.mx__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.mx__main { min-width: 0; }
.mx__main .mx-knobs { margin: 12px 0 0; }
.mx__main .mx-knob { padding: 10px 12px; gap: 4px; }
.mx__main .mx-knob__hint { display: none; }
@media (max-width: 1100px) { .mx__layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dashboard ---------- */
.mx-dash { background: var(--primary); border-radius: var(--radius-lg); padding: 14px; color: #fff; position: sticky; top: calc(var(--nav-height) + 12px); }
@media (max-width: 1100px) { .mx-dash { position: static; margin-top: var(--space-3); } }
.mx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.mx-tile { min-width: 0; }
.mx-tile--big { grid-column: 1 / -1; }
.mx-tile { background: rgba(255,255,255,.07); border-radius: 12px; padding: 8px 9px; display: flex; flex-direction: column; gap: 4px; }
.mx-tile__l { font-size: .74rem; color: rgba(255,255,255,.65); }
.mx-tile__v { font: 800 1.05rem var(--mx-face); white-space: nowrap; }
.mx-tile--big { background: var(--brand-secondary); color: var(--primary); }
.mx-tile--big .mx-tile__l { color: rgba(0,40,107,.7); }
.mx-tile--big .mx-tile__v { font-size: 2rem; line-height: 1; }
.mx-tile--big .mx-tile__l { display: flex; justify-content: space-between; }
.mx-tile__m { font-weight: 700; }
.mx-tile__v.is-bad { color: #ff8a8a; }
.mx.is-complete .mx-tile--big { box-shadow: 0 0 0 3px #fff inset; }

.mx-charts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mx-chart-card { margin: 0; background: #fff; color: var(--text-color-01); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.mx-chart-card figcaption { font: 800 .9rem var(--mx-face); color: var(--primary); margin-bottom: 6px; }

.mx-funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mx-funnel__bar { display: flex; flex-direction: row; gap: 6px; align-items: baseline; justify-content: center; color: #fff; padding: 5px 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); }
.mx-funnel__bar b { font: 800 1.05rem var(--mx-face); line-height: 1.1; }
.mx-funnel__bar span { font-size: .75rem; opacity: .85; }
.mx-funnel__bar--1 { width: 100%; background: var(--primary); }
.mx-funnel__bar--2 { width: 76%; background: #3f6fb0; }
.mx-funnel__bar--3 { width: 54%; background: var(--brand-3); color: var(--primary); }
.mx-funnel__drop { font: 700 .72rem var(--mx-face); color: var(--text-color-04); }
.mx-funnel__drop.is-bad { color: var(--error); }

.mx-area svg { width: 100%; height: auto; display: block; }
.mx-grid { stroke: #e2e6ec; stroke-width: 1; }
.mx-axis { font: 600 11px var(--mx-face); fill: #747876; }
.mx-area__unknown { fill: #d6dbe2; }
.mx-area__traced { fill: var(--brand-3); }
.mx-area__line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.mx-area__dot { fill: var(--brand-secondary); stroke: var(--primary); stroke-width: 2; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .72rem; color: var(--text-color-04); margin-top: 6px; }
.mx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.mx-legend i.is-traced { background: var(--brand-3); }
.mx-legend i.is-unknown { background: #d6dbe2; }

.mx-donut__wrap { display: flex; align-items: center; gap: 12px; }
.mx-donut svg { width: 92px; height: 92px; flex: none; }
.mx-donut__track { fill: none; stroke: #eef1f3; stroke-width: 26; }
.mx-donut__unknown { fill: none; stroke: #d6dbe2; stroke-width: 26; stroke-dasharray: 8 6; }
.mx-donut__q { font: 800 40px var(--mx-face); fill: #a9acaa; }
.mx-donut__c { font: 800 24px var(--mx-face); fill: var(--primary); }
.mx-donut__s { font: 600 11px var(--mx-face); fill: #747876; }
.mx-donut__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .82rem; flex: 1; min-width: 0; }
.mx-donut__legend li { display: flex; align-items: center; gap: 6px; }
.mx-donut__legend li span { flex: 1; color: var(--text-color-02); }
.mx-donut__legend li b { color: var(--primary); }
.mx-donut__legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.mx-donut__none { color: var(--text-color-04); }
.mx-note { font-size: .72rem; color: rgba(255,255,255,.6); margin: 8px 0 0; }

.mx-history { margin-top: 12px; }
.mx-history .mx-chart-card { border: 1px solid var(--color-border); }
.mx-history svg { max-height: 190px; }
@media (min-width: 1101px) { .mx-spot { font-size: .78rem; padding: 4px 10px 4px 4px; } .mx-spot__plus { width: 20px; height: 20px; } }

/* work log + report header: this is what we do, not a forecast */
.mx-dash__head { display: flex; align-items: center; gap: 8px; font: 800 .95rem var(--mx-face); color: #fff; margin: 0 0 10px; }
.mx-log { background: #fff; color: var(--text-color-01); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.mx-log__title { font: 800 .9rem var(--mx-face); color: var(--primary); margin: 0 0 6px; }
.mx-log__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mx-log__list li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: .8rem; line-height: 1.35; color: var(--text-color-02); animation: mx-in .4s var(--ease); }
.mx-log__list li.is-setup span:last-child { font-weight: 700; color: var(--primary); }
.mx-log__m { font: 700 .72rem var(--mx-face); color: var(--text-color-04); padding-top: 1px; }
.mx-log__empty, .mx-log__foot { font-size: .75rem; color: var(--text-color-04); margin: 0; }
.mx-log__empty[hidden] { display: none; }
.mx-log__foot { margin-top: 8px; border-top: 1px solid #eef1f3; padding-top: 6px; }
@keyframes mx-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mx-card__row { margin: 0 0 6px !important; }
.mx-card__row b { color: var(--primary); margin-right: 4px; }
.mx-history--two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
@media (max-width: 760px) { .mx-history--two { grid-template-columns: 1fr; } }

/* placed pieces wear the Snack Club badge */
.mx-spot.is-on { opacity: 1 !important; width: auto !important; height: auto !important; padding: 2px !important; gap: 6px; background: var(--primary) !important; border: 2px solid #fff; color: #fff; font-size: .72rem; animation: none; }
.mx-spot.is-on:hover, .mx-spot.is-on:focus-visible { padding: 2px 10px 2px 2px !important; }
.mx-spot__sc { width: 20px; height: 20px; display: block; }
.mx-spot.is-on .mx-spot__x { display: none; }
.mx-spot__run { display: none; }
.mx-spot.is-on:hover .mx-spot__run, .mx-spot.is-on:focus-visible .mx-spot__run { display: inline; }
.mx-spot.is-on:hover .mx-spot__run::after, .mx-spot.is-on:focus-visible .mx-spot__run::after { content: " \00b7  remove"; opacity: .7; }
@media (hover: none) { .mx-spot.is-on .mx-spot__run { display: none !important; } }

/* business picker */
.mx-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.mx-biz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mx-biz__label { font: 700 .9rem var(--mx-face); color: var(--text-color-02); margin-right: 4px; }
.mx-biz__opt { font: 700 .88rem var(--mx-face); border: 2px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .2s; }
.mx-biz__opt:hover { background: #fff6e3; }
.mx-biz__opt.is-on { background: var(--primary); color: #fff; }
.mx-biz__opt:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* tap a customer */
.mx-walker { cursor: pointer; }
.mx-walker__hit { fill: transparent; }
.mx-walker.is-picked .mx-walker__shadow { fill: rgba(254,188,67,.9); }
.mx-hint { font: 600 .85rem var(--mx-face); color: var(--text-color-04); margin: 8px 0 0; }
.mx-hint .mx-swipe { display: none; }
@media (max-width: 760px) { .mx-hint .mx-swipe { display: inline; } }
.mx-trail { position: absolute; z-index: 5; width: min(270px, calc(100vw - 48px)); transform: translate(-50%, calc(-100% - 14px)); background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(0,40,107,.28); border: 2px solid var(--primary); }
.mx-trail[hidden] { display: none; }
.mx-trail__title { font: 800 .9rem var(--mx-face); color: var(--primary); margin: 0 0 6px; padding-right: 20px; }
.mx-trail__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--text-color-04); }
.mx-trail__list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .82rem; line-height: 1.35; color: var(--text-color-02); }
.mx-trail__list li.is-bad { color: var(--error); }
.mx-trail__list li.is-good { color: #1f7a54; font-weight: 700; }

/* something broke */
.mx-btn--break { border-color: var(--error); color: var(--error); }
.mx-btn--break:hover { background: #fdecec; }
.mx-spot.is-broken { background: var(--error) !important; animation: mx-alarm 1s ease-in-out infinite !important; }
@keyframes mx-alarm { 50% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.6); } }
.mx-status.is-bad { background: #fdecec; border-color: #f5b5b5; color: #9b1c1c; }
.mx-log__list li.is-fix span:last-child { font-weight: 700; color: #1f7a54; }

/* the ask, once the street is complete: lives in the tray bar */
.mx-tray__cta { margin-left: auto; padding: 10px 16px; font-size: .95rem; }
@media (max-width: 760px) { .mx-tray__cta { margin-left: 0; width: 100%; justify-content: center; } }
.mx-cta { display: none; background: #fff; border-radius: 12px; padding: 12px; margin-top: 8px; text-align: center; color: var(--text-color-01); }
.mx.is-complete .mx-cta { display: block; animation: mx-in .4s var(--ease); }
.mx-cta__t { font: 800 1rem var(--mx-face); color: var(--primary); margin: 0 0 8px; }
.mx-cta .primary-button { width: 100%; justify-content: center; }
.mx-cta__s { font-size: .75rem; color: var(--text-color-04); margin: 8px 0 0; }

/* impact pop: what a piece just did to monthly revenue */
.mx-impact {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 4; white-space: nowrap;
  font: 800 1.05rem var(--mx-face); color: #fff; background: #1f9d6b; border-radius: 999px; padding: 6px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); animation: mx-rise 2.4s var(--ease) forwards;
}
.mx-impact.is-down { background: var(--error); }
.mx-impact.is-info { background: var(--primary); }
@keyframes mx-rise { 0% { opacity: 0; margin-top: 10px; } 12% { opacity: 1; margin-top: 0; } 75% { opacity: 1; margin-top: -34px; } 100% { opacity: 0; margin-top: -46px; } }
@media (prefers-reduced-motion: reduce) { .mx-impact { animation: none; } }

/* ---------- outro ---------- */
.mx-outro { background: #fff; padding: var(--space-7) 0; }
.mx-outro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.mx-outro h2 { color: var(--primary); }
.mx-outro__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }
.mx-outro__art img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

@media (max-width: 1100px) and (min-width: 761px) {
  .mx-tiles { grid-template-columns: 2fr repeat(4, 1fr); }
  .mx-tile--big { grid-column: auto; }
  .mx-charts { grid-template-columns: 1fr 1.5fr 1fr; }
}
@media (max-width: 900px) { .mx-outro__grid { grid-template-columns: 1fr; } }

/* phones: the street keeps its size and scrolls sideways inside its own frame */
@media (max-width: 760px) {
  .mx-street { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .mx-scene { width: 860px; }
  .mx-spot.is-on { opacity: .55; width: 22px; height: 22px; }
}

@keyframes mx-shake { 0%,100% { transform: translate(-50%,-50%); } 25% { transform: translate(calc(-50% - 6px),-50%); } 75% { transform: translate(calc(-50% + 6px),-50%); } }
@keyframes mx-breathe { 0%,100% { box-shadow: 0 6px 16px rgba(0,40,107,.15), 0 0 0 0 rgba(254,188,67,.6); } 50% { box-shadow: 0 6px 16px rgba(0,40,107,.15), 0 0 0 8px rgba(254,188,67,0); } }
@keyframes mx-pop { 0% { opacity: 0; transform: scale(.8); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes mx-flow { to { stroke-dashoffset: -24; } }
@keyframes mx-env { 0% { transform: translate(0,0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(90px,-60px); opacity: 1; } 100% { transform: translate(120px,-70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mx-spot, .mx-flowline, .mx-env, .mx-prop.is-pop { animation: none; }
  .mx-fly { transition: none; }
}

/* guidance: one obvious next step */
.mx-btn--go { background: var(--brand-secondary); border-color: var(--brand-secondary); color: var(--primary); }
.mx-btn--go:hover { background: #ffd27a; }
.mx-tray__label { color: #fff; }
.mx-status { margin: 0 0 10px; padding: 8px 12px; border: 2px solid var(--brand-secondary); font-size: 1rem; }
.mx-status__step { flex: none; background: var(--primary); color: #fff; font: 700 .8rem var(--mx-face); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mx-piece.is-next { position: relative; outline: 3px solid #fff; outline-offset: 2px; animation: mx-glow 1.4s ease-in-out infinite; }
.mx-piece.is-next::after { content: "Tap me"; position: absolute; top: -10px; right: -8px; background: #fff; color: var(--primary); font: 700 .68rem var(--mx-face); padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mx-spot.is-next { animation: mx-pulse 1.4s ease-in-out infinite; border-style: solid; border-color: var(--brand-secondary); background: #fff6e3; }
@keyframes mx-glow { 0%, 100% { outline-color: #fff; } 50% { outline-color: rgba(255,255,255,.2); } }
@keyframes mx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(254,188,67,.9); } 50% { box-shadow: 0 0 0 10px rgba(254,188,67,0); } }
@media (prefers-reduced-motion: reduce) { .mx-piece.is-next, .mx-spot.is-next { animation: none; } }

/* your company */
.mx-name { font: 600 .95rem var(--mx-face); color: var(--primary); border: 2px solid var(--primary); border-radius: 999px; padding: 6px 14px; width: 230px; max-width: 100%; background: #fff; }
.mx-name::placeholder { color: rgba(0,40,107,.5); }
.mx-name:focus { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }
.mx-s-mono { font: 800 24px var(--mx-face); fill: var(--primary); }
@media (max-width: 760px) { .mx-name { width: 100%; font-size: 16px; } }

/* share your street */
.mx-tray__share { margin-left: auto; background: transparent; border-color: #fff; color: #fff; }
.mx-tray__share:hover { background: rgba(255,255,255,.12); }
.mx-tray__share + .mx-tray__cta { margin-left: 0; }
.mx-share { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: var(--primary); box-shadow: 0 24px 60px rgba(0,20,60,.35); }
.mx-share::backdrop { background: rgba(0,20,60,.55); }
.mx-share__card { background: var(--primary); color: #fff; padding: 22px 22px 18px; }
.mx-share__brand { display: flex; align-items: center; gap: 8px; font: 700 .9rem var(--mx-face); color: var(--brand-secondary); }
.mx-share h3 { font: 800 1.45rem/1.2 var(--mx-face); color: #fff; margin: 10px 0 6px; text-transform: none; letter-spacing: 0; }
.mx-share__inputs { font: 500 .85rem/1.4 var(--mx-face); color: rgba(255,255,255,.75); margin: 0 0 14px; }
.mx-share__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mx-share__num { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.mx-share__num span { font: 600 .75rem var(--mx-face); color: rgba(255,255,255,.7); }
.mx-share__num b { font: 800 1.2rem var(--mx-face); }
.mx-share__num.is-big { grid-column: 1 / -1; background: var(--brand-secondary); color: var(--primary); }
.mx-share__num.is-big span { color: rgba(0,40,107,.7); }
.mx-share__num.is-big b { font-size: 2rem; line-height: 1.05; }
.mx-share__runlabel { font: 700 .9rem var(--mx-face); margin: 16px 0 6px; color: #fff; }
.mx-share__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mx-share__list li { font: 500 .8rem/1.35 var(--mx-face); color: rgba(255,255,255,.8); padding-left: 24px; position: relative; }
.mx-share__list b { color: #fff; font-weight: 700; margin-right: 4px; }
.mx-share__check { position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-secondary); color: var(--primary); font-size: .7rem; display: grid; place-items: center; font-weight: 800; }
.mx-share__fine { font: 500 .72rem var(--mx-face); color: rgba(255,255,255,.55); margin: 12px 0 0; }
.mx-share__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; position: sticky; bottom: 0; background: #fff; box-shadow: 0 -6px 16px rgba(0,20,60,.08); }
.mx-share__actions .mx-btn { text-decoration: none; }
.mx-share__x { margin-left: auto; }
@media (max-width: 480px) { .mx-share__actions .mx-btn { flex: 1 1 100%; justify-content: center; text-align: center; } .mx-share__x { margin-left: 0; } }
.mx.is-complete .mx-tray__label { display: none; }
@media (max-width: 480px) { .mx-share__list li { font-size: .76rem; } .mx-share__actions .mx-btn { padding-top: 9px; padding-bottom: 9px; } }
@media (max-width: 380px) { .mx-tile__v { font-size: 1rem; } .mx-tile { padding: 7px 6px; } }
@media (max-width: 760px) { .mx__controls { flex-wrap: wrap; } .mx__controls .mx-btn { flex: 1 1 auto; white-space: nowrap; } .mx__controls .mx-btn--go { flex-basis: 100%; } }

/* /process/: bridge from the street to the five engagement steps */
.process-intro { padding: var(--space-5, 64px) 0 var(--space-2, 16px); }
.process-intro h2 { color: var(--primary); }
.process-intro__sub { max-width: 60ch; font: 500 1.05rem/1.55 var(--mx-face); color: var(--text-color-02); margin: 10px 0 18px; }
.process-intro { scroll-margin-top: calc(var(--nav-height, 80px) + 16px); }
.process-intro .process-hero__quickjump a { background: #fff; border-color: var(--primary); color: var(--primary); }
.process-intro .process-hero__quickjump a:hover { background: var(--brand-secondary); color: var(--primary); }
