/* /host, the Event Hosting page (Lorenzo, 2026-12-05: "the same card-based layout, design language and presentation
   style as the existing Business page"). Everything shared comes from ds.css (hero, the swipe card and its details,
   plan cards, steps, the pink band); this file only adds the hosting pieces: the amber "This weekend" chip, the
   reply buttons and who's-going faces in the example's details, and the eight feature cards, each with a small
   drawing of the real screen in the app. Tokens only, so light and dark both follow ds.css.

   Motion (Emil Kowalski's rules): each little screen plays once when its card comes into view (js/host-demo.js adds
   .is-live), only transform and opacity move, ease-out, under 1 s, nothing loops for ever. Under reduced motion the
   end state shows at once (.is-still). */

/* ---------- Example card ---------- */
.ds .chip-when { background: rgba(245, 193, 74, 0.92); color: #1a1203; }
.ds .host-page .ffcard-meta span + span::before { content: "·"; margin-right: 8px; opacity: 0.7; }
.ds .host-page .ffcard-meta { gap: 4px 8px; }
.ds .host-reply button[aria-pressed="true"] { color: var(--ok); }
.ds .host-reply button[aria-pressed="true"] .i { stroke: var(--ok); fill: none; color: inherit; }
.ds .host-reply button[aria-pressed="true"]:nth-child(2) { color: var(--warn); }
.ds .host-reply button[aria-pressed="true"]:nth-child(2) .i { stroke: var(--warn); fill: none; }
.ds .host-reply button[aria-pressed="true"]:nth-child(3) { color: var(--err); }
.ds .host-reply button[aria-pressed="true"]:nth-child(3) .i { stroke: var(--err); fill: none; }
.ds .host-going { display: flex; align-items: center; gap: 10px; }
.ds .host-faces { display: inline-flex; }
.ds .host-faces span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--brand-soft); border: 2px solid var(--surface); }
.ds .host-faces span + span { margin-left: -8px; }
.ds .host-faces span:nth-child(2) { background: var(--gold-soft); }
.ds .host-faces span:nth-child(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ds .host-lock { color: var(--ink-2); border-color: var(--line-2); background: var(--bg-2); }

/* ---------- The paid plan: its edge in the hosting pink (Featured keeps gold on /business) ---------- */
.ds .host-plan-paid { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line)); }

/* ---------- Feature cards ---------- */
.ds .host-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.ds .host-feature { display: flex; flex-direction: column; gap: var(--s0); padding: var(--s2); }
.ds .host-feature h3 { margin-top: var(--s1); font-size: var(--t-20); letter-spacing: -0.012em; }
.ds .host-feature p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.ds .host-ui { position: relative; display: grid; place-items: center; gap: 12px; min-height: 300px; padding: var(--s2); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; user-select: none; }
.ds .host-ui svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The app's own panels: white sheets with the app's 12px corners, small type. */
.ds .hui-panel { width: min(300px, 100%); display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink); }
.ds .hui-panel > * { margin: 0; }
.ds .hui-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ds .hui-head span { font-size: 11.5px; color: var(--ink-2); }
.ds .hui-label { font-size: 11px; font-weight: 600; color: var(--ink-2); margin-top: 2px !important; }
.ds .hui-field { min-height: 36px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 10px; }
.ds .hui-caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 2px; background: var(--accent); opacity: 0; }
.ds .hui-next { justify-self: end; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); font-weight: 600; font-size: 12.5px; }
.ds .hui-next svg { width: 14px; height: 14px; }

/* Six steps: the step bar of the app's editor (look A), the line under the step you are on. */
.ds .hui-stepbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; font-size: 9.5px; font-weight: 600; color: var(--ink-3); text-align: center; }
.ds .hui-stepbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 300ms var(--ease) 500ms; }
.ds .hui-stepbar .is-done { color: var(--ink); }
.ds .hui-stepline { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ds .hui-stepline i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.333); transition: transform 700ms var(--ease) 250ms; }
.ds .is-live .hui-stepline i { transform: scaleX(0.5); }
.ds .is-live .hui-stepbar .is-on { color: var(--ink); }

/* Who sees it: three choices with a sliding thumb, then switches. */
.ds .hui-seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: 10px; background: var(--bg-2); font-size: 10.5px; font-weight: 600; text-align: center; isolation: isolate; }
.ds .hui-seg::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-1); transform: translateX(100%); transition: transform 600ms var(--ease-move) 300ms; }
.ds .is-live .hui-seg::before { transform: translateX(200%); }
.ds .hui-seg span { display: grid; place-items: center; min-height: 30px; padding: 0 2px; color: var(--ink-2); line-height: 1.15; }
.ds .hui-seg span.is-on { color: var(--ink); }
.ds .hui-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; border-top: 1px solid var(--line); padding-top: 6px; }
.ds .hui-value { font-weight: 650; font-variant-numeric: tabular-nums; }
.ds .hui-toggle { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); }
.ds .hui-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.ds .hui-toggle.is-on { background: var(--accent); }
.ds .hui-toggle.is-on::after { transform: translateX(14px); }

/* Guest list: a request that gets approved. */
.ds .hui-guest { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; }
.ds .hui-face { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); background: hsl(var(--h) 55% 86%); }
:root[data-theme="dark"] .ds .hui-face { background: hsl(var(--h) 30% 26%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ds .hui-face { background: hsl(var(--h) 30% 26%); } }
.ds .hui-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ds .hui-who em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.ds .hui-state { justify-self: end; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.ds .hui-state.is-going { background: var(--ok-soft); color: var(--ok); }
.ds .hui-state.is-maybe { background: var(--warn-soft); color: var(--warn); }
.ds .hui-request { position: relative; }
.ds .hui-decide { display: inline-flex; gap: 4px; justify-self: end; transition: opacity 200ms var(--ease) 1100ms, transform 200ms var(--ease) 1100ms; }
.ds .hui-decide span { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.ds .hui-yes { background: var(--ink); color: var(--bg); }
.ds .hui-no { background: var(--bg-2); color: var(--ink-2); }
.ds .hui-approved { position: absolute; right: 0; opacity: 0; transform: scale(0.9); transition: opacity 220ms var(--ease) 1250ms, transform 260ms var(--ease) 1250ms; }
.ds .is-live .hui-decide { opacity: 0; transform: scale(0.96); }
.ds .is-live .hui-approved { opacity: 1; transform: none; }
.ds .hui-yes { transition: transform 140ms var(--ease) 950ms; }
.ds .is-live .hui-yes { transform: scale(0.94); }
.ds .hui-search { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; }
.ds .hui-search svg { width: 14px; height: 14px; }

/* Ticket and check-in: the Pass with its QR, a scan line passing once, then the green answer. */
.ds .hui-ticket { width: min(220px, 100%); display: grid; justify-items: center; gap: 4px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-align: center; }
.ds .hui-ticket > * { margin: 0; }
.ds .hui-ticket-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.ds .hui-ticket-meta { font-size: 11px; color: var(--ink-2); }
.ds .hui-qr { position: relative; width: 108px; height: 108px; margin-top: 6px !important; padding: 7px; border-radius: 10px; background: #fff; overflow: hidden; }
.ds .hui-qr svg { width: 100%; height: 100%; fill: #111; stroke: none; }
.ds .hui-scan { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 70%, var(--accent)); opacity: 0; transform: translateY(-24px); }
.ds .hui-code { font-weight: 700; letter-spacing: 0.18em; font-size: 12px; color: var(--ink); }
.ds .hui-checkin { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--ease) 1000ms, transform 300ms var(--ease) 1000ms; }
.ds .hui-checkin svg { width: 20px; height: 20px; flex: none; stroke-width: 2.5; }
.ds .hui-checkin b { display: block; font-size: 13px; }
.ds .hui-checkin span { color: var(--ink-2); }
.ds .is-live .hui-checkin { opacity: 1; transform: none; }
@keyframes hui-scan { 0% { opacity: 0; transform: translateY(-24px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(108px); } }
.ds .is-live:not(.is-still) .hui-scan { animation: hui-scan 900ms var(--ease) 150ms 1 both; }

/* Reminders: the notification dropping in under the status bar, then the reminder choices. */
.ds .hui-note { width: min(300px, 100%); display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 12px; color: var(--ink-2); opacity: 0; transform: translateY(-14px) scale(0.98); transition: opacity 260ms var(--ease) 300ms, transform 420ms var(--ease) 300ms; }
.ds .hui-note b { display: block; color: var(--ink); font-size: 12.5px; }
.ds .hui-note-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); }
.ds .is-live .hui-note { opacity: 1; transform: none; }
.ds .hui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ds .hui-chips span { font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); }
.ds .hui-chips span.is-on { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }

/* Group chat. */
.ds .hui-chat { gap: 6px; }
.ds .hui-msg { justify-self: start; max-width: 82%; padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: var(--bg-2); line-height: 1.3; }
.ds .hui-from { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 1px; }
.ds .hui-msg.is-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 50%, #fff); color: #1f1d17; opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: right bottom; transition: opacity 200ms var(--ease) 1200ms, transform 300ms var(--ease) 1200ms; }
.ds .is-live .hui-msg.is-me { opacity: 1; transform: none; }
.ds .hui-typing { display: inline-flex; gap: 3px; padding: 9px 10px; margin-bottom: 2px !important; transition: opacity 150ms var(--ease) 1150ms; }
.ds .hui-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
@keyframes hui-dot { 0%, 100% { opacity: 0.35; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
.ds .is-live:not(.is-still) .hui-typing span { animation: hui-dot 600ms ease-in-out 2; }
.ds .is-live:not(.is-still) .hui-typing span:nth-child(2) { animation-delay: 100ms; }
.ds .is-live:not(.is-still) .hui-typing span:nth-child(3) { animation-delay: 200ms; }
.ds .is-live .hui-typing { opacity: 0; }

/* Story poster (look A) and the link. */
.ds .hui-story { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0c1014; box-shadow: var(--shadow-2); color: #fff; transform: translateY(10px) rotate(-3deg); opacity: 0; transition: opacity 280ms var(--ease) 200ms, transform 600ms var(--ease) 200ms; }
.ds .is-live .hui-story { opacity: 1; transform: rotate(-2deg); }
.ds .hui-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds .hui-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 16, 20, 0.35) 0%, transparent 25%, transparent 45%, rgba(12, 16, 20, 0.9) 100%); }
.ds .hui-story > span { position: absolute; z-index: 1; left: 10px; right: 10px; }
.ds .hui-story-top { top: 10px; font-size: 8.5px; font-weight: 600; opacity: 0.9; }
.ds .hui-story-words { bottom: 40px; display: grid; gap: 2px; }
.ds .hui-story-words em { font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f5c14a; }
.ds .hui-story-words b { font-size: 15px; line-height: 1.05; letter-spacing: -0.02em; }
.ds .hui-story-words span { font-size: 8.5px; opacity: 0.85; }
.ds .hui-story-bar { bottom: 10px; display: grid; place-items: center; min-height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); font-size: 8px; font-weight: 700; }
.ds .hui-link { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }
.ds .hui-link svg { width: 14px; height: 14px; }

/* The map: round photo pins on muted streets, the gold one for a public event, you as the blue dot. */
.ds .hui-map { position: relative; width: 100%; height: 252px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--surface) 70%, var(--bg-2)); border: 1px solid var(--line); }
.ds .hui-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds .hui-streets path { stroke: var(--line-2); stroke-width: 7; opacity: 0.55; fill: none; }
.ds .hui-pin { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); background: #ddd; }
.ds .hui-pin img { width: 100%; height: 100%; object-fit: cover; }
.ds .hui-pin.is-gold { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: #e2b84a; overflow: visible; opacity: 0; transform: translateY(-18px) scale(0.6); transition: opacity 200ms var(--ease) 250ms, transform 520ms cubic-bezier(0.34, 1.4, 0.64, 1) 250ms; }
.ds .hui-pin.is-gold img { border-radius: 50%; }
.ds .hui-pin.is-gold::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #e2b84a; opacity: 0; }
.ds .is-live .hui-pin.is-gold { opacity: 1; transform: none; }
@keyframes hui-ring { 0% { opacity: 0.8; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
.ds .is-live:not(.is-still) .hui-pin.is-gold::after { animation: hui-ring 900ms var(--ease) 700ms 1 both; }
.ds .hui-you { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #4f8dff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(79, 141, 255, 0.2); }

/* Reduced motion, or no IntersectionObserver: the end state, nothing moving. */
.ds .is-still *, .ds .is-still *::before, .ds .is-still *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ds .host-feature *, .ds .host-feature *::before, .ds .host-feature *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 900px) {
  .ds .host-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ds .host-feature { padding: var(--s1); }
  .ds .host-ui { min-height: 260px; padding: var(--s1); }
}
