/* ============================================================
   Motoloop site — interactive map, feature demos, free-claim card
   Loaded after site.css.
   ============================================================ */

/* ---- MapLibre dark map skin (matches the app's AppMap.web) ---- */
.diagram.map { padding: 0; }
.diagram .lmap { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-2xl); overflow: hidden; }
.lmap { background: var(--map-bg); }
.lmap .maplibregl-canvas, .lmap canvas { border-radius: inherit; outline: none; }
.maplibregl-map { background: var(--map-bg); font-family: var(--font-mono); }
.ride-map .lmap { position: absolute; inset: 0; }
.ride-map .live, .ride-map .tag, .rdetail .rmap .tag { z-index: 500; }
/* attribution (compact) + zoom controls, dark-themed */
.maplibregl-ctrl-attrib { background: rgba(10,10,10,0.7) !important; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a { color: var(--text-tertiary) !important; font-size: 9px !important; }
.maplibregl-ctrl-attrib-button { background-color: rgba(10,10,10,0.55) !important; }
.maplibregl-ctrl-group { background: var(--surface-2) !important; border: var(--border-hairline) solid var(--border) !important; box-shadow: var(--shadow-pop) !important; }
.maplibregl-ctrl-group button { background: var(--surface-2) !important; }
.maplibregl-ctrl-group button + button { border-top: var(--border-hairline) solid var(--border) !important; }
.maplibregl-ctrl-group button:hover { background: var(--surface-3) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
.map-badge {
  position: absolute; top: 14px; left: 14px; z-index: 5; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); background: var(--scrim); padding: 5px 10px; border-radius: var(--radius-sm);
  border: var(--border-hairline) solid var(--border);
}
.map-legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; gap: 5px;
  background: rgba(18,18,18,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 13px; border-radius: var(--radius-lg); border: var(--border-hairline) solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.map-legend div { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; white-space: nowrap; }
.map-legend .leg-sep { height: 1px; background: rgba(255,255,255,0.10); margin: 3px 0; }
/* Route line swatch */
.map-legend .leg-line { display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: var(--red); flex-shrink: 0; }
.map-legend .leg-route span:last-child { color: rgba(255,255,255,0.55); }
/* Dot swatches for pins */
.map-legend .leg-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; display: inline-block; border: 1.5px solid rgba(255,255,255,0.18); box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
/* swatches mirror the live MapLibre pins (.mappin.*) exactly */
.map-legend .pin-cafe   { background: var(--grad-brand); }
.map-legend .pin-garage { background: var(--surface-3); border-color: var(--orange); }
.map-legend .pin-hotel  { background: var(--cool); }
.map-legend .pin-gear   { background: #9B8CFF; }
/* loop begins & ends at the same point: green start → orange finish */
.map-legend .leg-startfin { background: linear-gradient(90deg, var(--green) 0 50%, var(--orange) 50%); }
.map-legend .leg-cat { color: rgba(255,255,255,0.58); }

/* (Category pin styling lives in the "Vertical map pins" block below; pins are
   MapLibre markers now, with a native title attribute for hover labels.) */

/* ============================================================
   Feature cards → clickable
   ============================================================ */
.feat { cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.feat:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.feat-foot .kref { margin-top: 0; }
.feat .go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; color: var(--orange); opacity: 0.8; transition: gap var(--dur-fast), opacity var(--dur-fast); white-space: nowrap; }
.feat .go svg { width: 14px; height: 14px; }
.feat:hover .go { opacity: 1; gap: 9px; }

/* ============================================================
   Demo modal
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(6,6,6,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade var(--dur-base) var(--ease-standard); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.demo-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: pop var(--dur-base) var(--ease-standard); max-height: 100%; }
.demo-close { position: absolute; top: -6px; right: -52px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: var(--border-hairline) solid var(--border); color: var(--text); display: grid; place-items: center; }
.demo-close svg { width: 20px; height: 20px; }
.demo-close:hover { background: var(--surface-3); }
.demo-cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-secondary); text-align: center; max-width: 320px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.demo-cap .k { color: var(--orange); }
.phone.demo { width: 318px; }
.phone.demo .phone-screen { height: min(636px, 74vh); }
#demoScreenHost { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.demo-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.demo-body::-webkit-scrollbar { width: 0; }

@media (max-width: 560px) {
  .demo-close { top: -50px; right: 0; }
}

/* ---- shared demo header ---- */
.d-head { display: flex; align-items: center; gap: 12px; padding: 46px 16px 12px; border-bottom: var(--border-hairline) solid var(--border); flex-shrink: 0; }
.d-head .back { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; border: var(--border-hairline) solid var(--border); }
.d-head .back svg { width: 16px; height: 16px; }
.d-head .ttl { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.d-head .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 0.04em; }
.d-head .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.d-online { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }

/* ============================================================
   Riders swipe deck
   ============================================================ */
.deck { position: relative; padding: 16px; flex: 1; display: flex; flex-direction: column; }
.rcard { flex: 1; border-radius: var(--radius-2xl); border: var(--border-hairline) solid var(--border); overflow: hidden; display: flex; flex-direction: column; background: var(--surface-1); transition: transform 0.32s var(--ease-standard), opacity 0.32s; }
.rcard.out-wave { transform: translateX(120%) rotate(12deg); opacity: 0; }
.rcard.out-pass { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.rcard .cover { height: 168px; position: relative; display: grid; place-items: center; }
.rcard .cover .big { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; border: 3px solid rgba(255,255,255,0.18); }
.rcard .match-badge { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; background: var(--scrim); border: var(--border-hairline) solid var(--fill-red-stroke); color: var(--red); padding: 5px 11px; border-radius: var(--radius-pill); }
.rcard .info { padding: 16px; flex: 1; }
.rcard .info h4 { font-family: var(--font-sans); font-weight: 700; font-size: 20px; margin: 0 0 4px; letter-spacing: -0.3px; }
.rcard .info .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.03em; margin-bottom: 14px; }
.rcard .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rcard .tags span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--text-secondary); }
.rcard .tags span.shared { background: var(--fill-orange-soft); color: var(--orange); }
.deck-actions { display: flex; justify-content: center; gap: 22px; padding: 16px 0 6px; }
.deck-actions button { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: var(--border-thick) solid var(--border); background: var(--surface-1); transition: transform var(--dur-fast); }
.deck-actions button:active { transform: scale(0.9); }
.deck-actions button svg { width: 26px; height: 26px; }
.deck-actions .pass { border-color: var(--border); color: var(--text-secondary); }
.deck-actions .pass:hover { border-color: var(--text-secondary); color: var(--text); }
.deck-actions .wave { border-color: var(--green); color: var(--green); }
.deck-actions .wave:hover { background: var(--green); color: #04210f; }
.deck-actions .wave img { width: 30px; height: 30px; }
.deck-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; color: var(--text-secondary); }
.deck-empty svg { width: 38px; height: 38px; color: var(--text-tertiary); }

/* match overlay */
.match-ov { position: absolute; inset: 0; z-index: 10; background: rgba(10,10,10,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; animation: fade 0.3s; }
.match-ov .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,90,40,0.28), transparent 60%); }
.match-ov .mtitle { position: relative; font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: -1px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.match-ov .pair { position: relative; display: flex; gap: -10px; margin: 18px 0 10px; }
.match-ov .pair .av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; border: 3px solid var(--bg); }
.match-ov .pair .av:last-child { margin-left: -16px; }
.match-ov p { position: relative; color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; }
.match-ov .btn { position: relative; }

/* ============================================================
   Chat thread
   ============================================================ */
.chat-body { padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 9px; }
.bub { max-width: 76%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.35; animation: pop 0.25s; }
.bub.them { background: var(--surface-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.bub.me { background: var(--red); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bub.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; }
.bub.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: blink 1.2s infinite; }
.bub.typing i:nth-child(2){ animation-delay: 0.2s; } .bub.typing i:nth-child(3){ animation-delay: 0.4s; }
@keyframes blink { 0%,60%,100%{opacity:0.3;} 30%{opacity:1;} }
.chat-chips { display: flex; gap: 8px; padding: 10px 14px 14px; overflow-x: auto; flex-shrink: 0; border-top: var(--border-hairline) solid var(--border); }
.chat-chips::-webkit-scrollbar { height: 0; }
.chat-chips button { white-space: nowrap; font-size: 12.5px; font-weight: 500; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--surface-2); border: var(--border-hairline) solid var(--border); color: var(--text); flex-shrink: 0; }
.chat-chips button:hover { background: var(--surface-3); }

/* ============================================================
   Community feed demo
   ============================================================ */
.cfeed { padding: 14px; display: flex; flex-direction: column; gap: 13px; }
.join.going { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.toast { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 12; background: var(--surface-3); border: var(--border-hairline) solid var(--border); color: var(--text); font-size: 12.5px; padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-pop); white-space: nowrap; animation: pop 0.25s; }

/* ============================================================
   Travel route-draw demo
   ============================================================ */
.travel-demo { flex: 1; display: flex; flex-direction: column; }
.travel-map { flex: 1; position: relative; }
.travel-map .lmap { position: absolute; inset: 0; }
.travel-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--scrim); border: var(--border-hairline) solid var(--border); color: var(--text); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.travel-bar { flex-shrink: 0; border-top: var(--border-hairline) solid var(--border); padding: 13px 16px; display: flex; align-items: center; gap: 16px; background: var(--surface-1); }
.travel-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.travel-stat .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 3px; }
.travel-bar .sp { flex: 1; }
.travel-bar .ico-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: var(--border-hairline) solid var(--border); display: grid; place-items: center; color: var(--text); }
.travel-bar .ico-btn svg { width: 17px; height: 17px; }

/* ============================================================
   Services profile demo
   ============================================================ */
.svc-demo { display: flex; flex-direction: column; }
.svc-cover { height: 130px; position: relative; background: var(--map-bg); }
.svc-cover .logo { position: absolute; left: 16px; bottom: -24px; width: 60px; height: 60px; border-radius: var(--radius-lg); background: var(--grad-brand); display: grid; place-items: center; border: 3px solid var(--bg); }
.svc-cover .logo svg { width: 28px; height: 28px; color: #1a0d00; }
.svc-main { padding: 34px 16px 16px; }
.svc-main h4 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.4px; margin: 0 0 4px; }
.svc-main .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.03em; margin-bottom: 12px; }
.svc-main .meta .h { color: var(--orange); letter-spacing: 2px; }
.svc-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.svc-badges span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius-sm); background: var(--surface-2); border: var(--border-hairline) solid var(--border); color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.svc-badges span svg { width: 11px; height: 11px; }
.svc-badges span.verified { color: var(--green); border-color: rgba(50,215,75,0.3); }
.svc-row2 { display: flex; gap: 10px; margin-bottom: 16px; }
.svc-row2 .btn { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }
.offer { border: var(--border-hairline) solid var(--fill-orange-stroke); background: var(--fill-orange-soft); border-radius: var(--radius-xl); padding: 14px; }
.offer .ot { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.offer h5 { font-family: var(--font-sans); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.offer p { color: var(--text-secondary); font-size: 13px; margin: 0 0 12px; }
.offer .code { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.1em; color: var(--green); font-size: 16px; padding: 10px; border: 1px dashed var(--border); border-radius: var(--radius-md); text-align: center; }

/* ============================================================
   Stories demo
   ============================================================ */
.story-demo { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; }
/* Top padding clears the phone notch/camera cutout (matches .d-head). */
.story-bars { display: flex; gap: 4px; padding: 42px 14px 8px; flex-shrink: 0; z-index: 4; }
.story-bars .b { flex: 1; height: 3px; background: rgba(255,255,255,0.28); border-radius: 2px; overflow: hidden; }
.story-bars .b i { display: block; height: 100%; width: 0; background: #fff; }
.story-bars .b.done i { width: 100%; }
.story-bars .b.active i { animation: fill 4.2s linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.story-top { display: flex; align-items: center; gap: 10px; padding: 4px 14px 0; z-index: 4; }
.story-top .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.story-top .nm { font-weight: 700; font-size: 14px; }
.story-top .tm { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.6); }
.story-canvas { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.story-canvas .cap { position: absolute; bottom: 22px; left: 16px; right: 16px; z-index: 3; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -0.4px; text-shadow: 0 2px 14px rgba(0,0,0,0.7); }
.story-canvas .place { position: absolute; top: 14px; left: 16px; z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.4); padding: 4px 9px; border-radius: var(--radius-sm); }
.story-nav { position: absolute; inset: 0; display: flex; z-index: 5; }
.story-nav .prev, .story-nav .next { flex: 1; }
.story-nav .next { flex: 2; }

/* ============================================================
   Pricing — free-claim card grid sizing
   ============================================================ */
.price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan.free { background: var(--surface-1); }
.plan.free .price { color: var(--green); }

@media (max-width: 1024px) {
  .price-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .price-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Vertical map pins (override the teardrop above)
   ============================================================ */
.mappin { width: 30px; height: 30px; border-radius: 50%; transform: none; display: grid; place-items: center; position: relative; box-shadow: 0 5px 12px rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.18); }
.mappin svg { width: 15px; height: 15px; transform: none; }
.mappin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--pinc, #FF9500); filter: drop-shadow(0 2px 1px rgba(0,0,0,0.4)); }
.mappin.cafe, .mappin.cafe2, .mappin.featured { background: var(--grad-brand); --pinc: #FF8A1E; }
.mappin.cafe svg, .mappin.cafe2 svg, .mappin.featured svg { color: #1a0d00; }
.mappin.garage { background: var(--surface-3); border-color: var(--orange); --pinc: #FF9500; }
.mappin.garage svg { color: var(--orange); }
.mappin.hotel { background: var(--cool); --pinc: #5EC8FF; }
.mappin.hotel svg { color: #06283d; }
.mappin.gear { background: #9B8CFF; --pinc: #9B8CFF; }
.mappin.gear svg { color: #241a5e; }
.mappin.biz { background: var(--grad-brand); --pinc: #FF8A1E; }
.mappin.biz svg { color: #1a0d00; }

/* ============================================================
   Travel — GPX tools
   ============================================================ */
.travel-tools { position: absolute; top: 12px; right: 12px; z-index: 6; display: flex; gap: 8px; }
.gpx-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; background: var(--scrim); border: var(--border-hairline) solid var(--border); color: var(--text); padding: 7px 11px; border-radius: var(--radius-pill); }
.gpx-btn svg { width: 13px; height: 13px; color: var(--orange); }
.gpx-btn:hover { background: var(--surface-3); }

/* ============================================================
   Community — ride detail (real map + GPX)
   ============================================================ */
.rdetail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rdetail .rmap { height: 196px; position: relative; flex-shrink: 0; }
.rdetail .rmap .lmap { position: absolute; inset: 0; }
.rdetail .rmap .tag { position: absolute; bottom: 10px; left: 10px; z-index: 5; background: var(--scrim); border-radius: var(--radius-sm); padding: 4px 9px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
.rdetail .rbody { padding: 16px; flex: 1; overflow-y: auto; }
.rdetail .rbody::-webkit-scrollbar { width: 0; }
.rdetail h4 { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.4px; margin: 0 0 6px; }
.rdetail .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.03em; margin-bottom: 16px; }
.rdetail .rstats { display: flex; gap: 22px; margin-bottom: 18px; }
.rdetail .ractions { display: flex; flex-direction: column; gap: 10px; }
.rdetail .ractions .row { display: flex; gap: 10px; }
.rdetail .ractions .btn { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }
.ride-card { cursor: pointer; }

/* ============================================================
   Sponsored card in the matching deck
   ============================================================ */
.rcard.biz .cover { background: var(--surface-2) !important; }
.rcard .promo-tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); background: var(--scrim); border: var(--border-hairline) solid var(--fill-orange-stroke); padding: 5px 10px; border-radius: var(--radius-pill); display: inline-flex; gap: 6px; align-items: center; }
.rcard .promo-tag svg { width: 12px; height: 12px; }
.biz-logo { width: 84px; height: 84px; border-radius: var(--radius-xl); background: var(--grad-brand); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(255,90,40,0.3); }
.biz-logo svg { width: 40px; height: 40px; color: #1a0d00; }
.rcard .info .hrate { color: var(--orange); letter-spacing: 2px; font-size: 13px; }
.biz-actions { display: flex; gap: 10px; padding: 16px 0 6px; }
.biz-actions .btn { flex: 1; justify-content: center; }

/* ============================================================
   Sponsored story
   ============================================================ */
.story-top .biz-sq { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-brand); }
.story-top .biz-sq svg { width: 18px; height: 18px; color: #1a0d00; }
.story-top .biz-badge { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: #1a0d00; background: var(--orange); padding: 3px 7px; border-radius: var(--radius-pill); display: inline-flex; gap: 4px; align-items: center; margin-top: 3px; }
.story-sponsor-cta { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 6; }
.story-sponsor-cta .btn { width: 100%; justify-content: center; }

/* ============================================================
   Real imagery — avatars, deck covers, participants, nav preview
   ============================================================ */
/* Photo avatars (used wherever a tinted initial used to be) */
.av.ph { background-size: cover; background-position: center; color: transparent; overflow: hidden; }

/* Rider deck card — real cover photo with name overlay (app-like) */
.rcard .cover { height: 60%; min-height: 224px; }
.rcard .cover.photo { background-size: cover; background-position: center; display: block; }
.rcard .cover .cover-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 40%, rgba(10,10,10,0.92) 100%); }
.rcard .cover-name { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 2; }
.rcard .cover-name h4 { font-family: var(--font-sans); font-weight: 800; font-size: 21px; letter-spacing: -0.3px; margin: 0 0 3px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.65); }
.rcard .cover-name .meta { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,0.86); letter-spacing: 0.03em; }
.rcard .info { padding: 14px 16px; }

/* Sponsored deck card — fits without clipping */
.rcard.biz .cover.photo { height: 148px; min-height: 0; background-color: var(--surface-2); }
.rcard.biz .cover .biz-logo { position: absolute; left: 14px; bottom: -22px; z-index: 3; width: 58px; height: 58px; }
.rcard.biz .cover .biz-logo svg { width: 27px; height: 27px; }
.rcard.biz .info { flex: 1; min-height: 0; overflow-y: auto; padding-top: 30px; }
.rcard.biz .info::-webkit-scrollbar { width: 0; }
.rcard.biz .info h4 { font-family: var(--font-sans); font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.rcard .info .biz-meta { color: var(--text-secondary); font-size: 13px; margin: 12px 0 0; }
.biz-actions { flex-shrink: 0; }

/* Community feed — participant avatars + list */
.avstack .av.ph { width: 28px; height: 28px; border: 2px solid var(--surface-1); margin-left: -8px; }
.avstack .av.ph:first-child { margin-left: 0; }
.avstack .av.more { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface-1); margin-left: -8px; display: grid; place-items: center; font-size: 10px; font-weight: 700; font-family: var(--font-display); background: var(--surface-3); color: var(--text-secondary); }
.rpeople { margin: 2px 0 18px; }
.rpeople-head { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.rpeople-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rpeople .rp { display: flex; align-items: center; gap: 7px; background: var(--surface-2); border: var(--border-hairline) solid var(--border); border-radius: var(--radius-pill); padding: 4px 12px 4px 4px; }
.rpeople .rp .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 10px; flex-shrink: 0; }
.rpeople .rp span { font-size: 12px; color: var(--text); white-space: nowrap; }
.rpeople .rp.more { padding: 7px 13px; color: var(--text-secondary); font-size: 12px; }

/* Stories — keep the caption clear of the sponsor CTA */
.story-canvas.has-cta .cap { bottom: 86px; }
.story-top .av.ph { width: 34px; height: 34px; }

/* Travel — navigation-mode preview */
.travel-bar { flex-direction: column; align-items: stretch; gap: 12px; }
.travel-row { display: flex; align-items: center; gap: 16px; }
.nav-start { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 13px; border-radius: var(--radius-pill); background: var(--grad-brand); color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 14.5px; border: 0; box-shadow: 0 6px 20px rgba(255,90,40,0.3); }
.nav-start img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.nav-start:disabled { opacity: 0.4; box-shadow: none; }
.nav-ov { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; }
.nav-foot { pointer-events: auto; }
.nav-banner { margin: 12px; display: flex; align-items: center; gap: 14px; background: rgba(10,10,10,0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: var(--border-hairline) solid var(--border); border-radius: var(--radius-xl); padding: 13px 16px; box-shadow: var(--shadow-pop); }
.nav-turn { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.nav-turn svg { width: 24px; height: 24px; color: #04210f; }
.nav-dist { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.5px; }
.nav-instr { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.nav-foot { margin: 12px; display: flex; align-items: center; gap: 12px; background: rgba(10,10,10,0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: var(--border-hairline) solid var(--border); border-radius: var(--radius-xl); padding: 11px 14px; box-shadow: var(--shadow-pop); }
.nav-eta { flex: 1; font-size: 12.5px; color: var(--text-secondary); }
.nav-eta b { color: var(--text); font-family: var(--font-display); font-size: 14px; }
.nav-foot .btn { padding: 9px 16px; }
.nav-puck { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,59,48,0.3), 0 3px 8px rgba(0,0,0,0.5); }
