/* The Ask, Collect and Plan scenes: the app's opening scenes (chat, import,
   plan), redrawn for the web with Paris content. Sizes, colours, type and
   timings follow app/lib/features/auth/presentation/widgets/opening_*.dart;
   scripts/scenes.js drives the motion. The scenes sit straight on the page,
   as the opening draws them, at a phone's width. */
.scene {
  --s-bg: #F5F4F8; --s-surface: #FFFFFF; --s-ink: #0F101A; --s-ink2: #2A2B3A;
  --s-muted: #6E6F84; --s-muted2: #9A9BAE;
  --s-line: rgba(15, 16, 26, .06); --s-line2: rgba(15, 16, 26, .10); --s-chip: rgba(15, 16, 26, .04);
  --s-accent: #CC4418; --s-accent-soft: #FDEDE5; --s-accent-ink: #A8360F;
  --s-cta: #1B1F4E; --s-go-soft: #E7F0FD; --s-go-ink: #1552B8;
  --s-inter: Inter, system-ui, -apple-system, sans-serif;
  --s-tight: "Inter Tight", Inter, system-ui, sans-serif;
  --s-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  position: relative; width: 100%; max-width: 390px; font-family: var(--s-inter); color: var(--s-ink);
}
/* The reveal: fade in while rising 12 px (scenes.js sets both). Without JS
   every element shows its finished frame. */
.js .scene [data-at] { opacity: 0; }

/* ---------- Ask (the chat) ---------- */
.sc-row--me { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.sc-bub { margin: 0; font-size: 13.5px; }
.sc-bub--me { max-width: 273px; background: var(--s-cta); color: #FFFFFF; font-weight: 500; padding: 9px 14px; border-radius: 18px 18px 6px 18px; }
.sc-speaker { display: flex; align-items: flex-start; gap: 8px; }
.sc-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--s-surface); border: .5px solid var(--s-line2); display: grid; place-items: center; }
.sc-avatar img { height: 22px; width: auto; }
.sc-room { position: relative; flex: 1; min-width: 0; }
.sc-answered { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sc-bub--agent { max-width: 304px; background: rgba(255, 255, 255, .7); border: .5px solid var(--s-line); border-radius: 6px 18px 18px 18px; padding: 10px 14px; line-height: 1.45; color: var(--s-ink2); }
.sc-found { align-self: stretch; background: var(--s-surface); border-radius: 14px; overflow: hidden; }
.sc-found__photo { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; }
.sc-vrow { min-height: 44px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sc-vrow__eb { font: 500 9.5px/1.2 var(--s-mono); letter-spacing: 1.2px; color: var(--s-muted); }
.sc-vrow strong { font: 600 17px/1.12 var(--s-tight); letter-spacing: -.4px; color: var(--s-ink); }
.sc-vrow__line { font-size: 13px; line-height: 1.4; color: var(--s-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-reading { position: absolute; inset: 0; padding-top: 7px; display: flex; flex-direction: column; visibility: hidden; }
.sc-count { margin: 0 0 14px; font: 500 10.5px/1.2 var(--s-mono); letter-spacing: 1.2px; color: var(--s-muted); white-space: nowrap; overflow: hidden; }
.sc-feedbox { flex: 1; min-height: 0; overflow: visible; }
.sc-feed { position: relative; width: 100%; height: 372px; transform-origin: top center; }
.sc-art { position: absolute; left: 0; right: 0; top: 0; height: 114px; box-sizing: border-box; background: var(--s-surface); border: .5px solid var(--s-line2); border-radius: 12px; box-shadow: 0 4px 12px rgba(15, 16, 26, .06); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform-origin: top left; }
.sc-art__kind { font: 500 10px/1.2 var(--s-mono); letter-spacing: 1.2px; color: var(--s-muted); }
.sc-art strong { font: 600 15px/1.25 var(--s-tight); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-art__snip { font-size: 13px; line-height: 1.35; color: var(--s-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* While reading, the answer keeps its room unseen (the scene's scale and the
   parrot's place never change). */
.sc-chat.is-reading .sc-answered { visibility: hidden; }
.sc-chat.is-reading .sc-reading { visibility: visible; }

/* ---------- Collect (the import) ---------- */
.sc-collect { height: 440px; overflow: hidden; }
.sc-grid { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; }
.sc-photos img { position: absolute; left: 0; top: 0; object-fit: cover; opacity: 0; will-change: transform, opacity, filter; }
.sc-card { position: absolute; z-index: 2; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(var(--card-blur, 15px)); backdrop-filter: blur(var(--card-blur, 15px)); border: .5px solid rgba(15, 16, 26, .09); overflow: hidden; }
.sc-face { position: absolute; inset: 0; opacity: 0; transition: opacity .25s linear; }
.sc-face.is-on { opacity: 1; }
.sc-face--mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12px * var(--u, 1)); z-index: 2; }
.sc-face--mark img { height: calc(26px * var(--u, 1)); width: auto; }
.sc-face--mark span, .sc-host { font: 500 11px/1 var(--s-mono); letter-spacing: .5px; color: var(--s-muted); }
.sc-face--blog { padding: calc(22px * var(--u, 1)) calc(16px * var(--u, 1)) 0; display: flex; flex-direction: column; z-index: 3; }
.sc-host { margin-bottom: calc(14px * var(--u, 1)); }
.sc-face--blog i { display: block; flex: none; height: calc(5px * var(--u, 1)); border-radius: 99px; background: rgba(15, 16, 26, .16); margin-bottom: calc(10px * var(--u, 1)); }
.sc-face--blog i.h { height: calc(9px * var(--u, 1)); background: rgba(15, 16, 26, .55); margin-bottom: calc(14px * var(--u, 1)); }
.sc-face--blog b { display: block; flex: none; height: calc(8px * var(--u, 1)); }
.sc-face--blog b:nth-of-type(2) { height: calc(10px * var(--u, 1)); }
/* The read line sweeps down behind a mark, over the blog outline. */
.sc-read { position: absolute; left: 0; right: 0; top: 0; height: calc(34px * var(--u, 1)); background: linear-gradient(rgba(204, 68, 24, 0), rgba(204, 68, 24, .15)); border-bottom: calc(1.2px * var(--u, 1)) solid rgba(204, 68, 24, .75); opacity: 0; z-index: 1; transform: translateY(-100%); }
.sc-face--blog.is-on ~ .sc-read { z-index: 4; }

/* ---------- Plan ---------- */
.sc-dayline { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 6px 0 14px; box-sizing: content-box; }
.sc-daylabel { font: 500 10.5px/1 var(--s-mono); letter-spacing: 1px; color: var(--s-muted); }
.sc-joined { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--s-tight); letter-spacing: -.2px; color: var(--s-ink); white-space: nowrap; }
.sc-face-dot { width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; background: var(--s-accent-soft); border: 2px solid #FFFFFF; display: grid; place-items: center; font: 600 16px/1 var(--s-tight); color: var(--s-accent-ink); }
.sc-stop, .sc-pick { display: flex; gap: 12px; }
.sc-rail { flex: none; width: 22px; position: relative; display: flex; justify-content: center; }
.sc-rail i { position: relative; z-index: 1; margin-top: 4px; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; background: #FFFFFF; border: 1.5px solid var(--s-muted2); }
.sc-stop .sc-rail::after { content: ""; position: absolute; left: 50%; top: 12px; bottom: -12px; width: 1px; transform: translateX(-.5px); background: var(--s-line2); }
.sc-stop--last .sc-rail::after { display: none; }
.sc-rail--pick i { width: 10px; height: 10px; border: 2px solid var(--s-accent); }
.sc-stopcard { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: .5px solid var(--s-line); border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; }
.sc-stopcard img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.sc-stoptext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sc-kind { font: 500 9px/1.3 var(--s-mono); letter-spacing: .8px; color: var(--s-muted); }
.sc-stoptext strong { font: 600 14px/1.25 var(--s-tight); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-nav { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--s-chip); color: var(--s-ink2); display: grid; place-items: center; }
.sc-nav svg { width: 14px; height: 14px; }
.sc-dropslot { overflow: hidden; }
.sc-hero { flex: 1; min-width: 0; background: #FFFFFF; border: .5px solid var(--s-line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.sc-hero__photo { position: relative; height: 170px; }
.sc-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%); }
.sc-badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 4px 8px; font: 600 9px/1.2 var(--s-mono); letter-spacing: .6px; color: var(--s-accent-ink); }
.sc-hero__photo strong { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font: 600 20px/1.15 var(--s-tight); letter-spacing: -.4px; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-take { margin: 10px 14px 14px; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 99px; background: var(--s-go-soft); color: var(--s-go-ink); font: 600 11.5px/1 var(--s-inter); }
.sc-take svg { width: 11px; height: 11px; }

@media (min-width: 760px) {
  .sc-collect { height: 460px; }
}

/* ---------- Walks (the app's walk card: map, stamp pins, dashed route) ---------- */
.walk-maps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
.wm { width: 100%; max-width: 390px; display: flex; flex-direction: column; gap: 12px; }
.wm-ask { align-self: flex-end; margin: 0; max-width: 273px; background: #1B1F4E; color: #FFFFFF; padding: 9px 14px; border-radius: 18px 18px 6px 18px; font: 500 13.5px/1.35 Inter, system-ui, sans-serif; }
.wm-card { aspect-ratio: 4 / 5.7; background: var(--s-surface); border: .8px solid var(--s-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.wm-map { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #EEEEF2; }
.wm-tiles { position: absolute; left: 0; top: 0; max-width: none; }
.wm-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wm-line { stroke: rgba(204, 68, 24, .85); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 18 12; }
.wm-pin { position: absolute; left: 0; top: 0; width: 64px; transform-origin: 50% 100%; opacity: 0; }
/* The stamp: white paper with a perforated edge, the photo in its window. */
.wm-stamp { display: flex; flex-direction: column; gap: 3px; padding: 5px 5px 4px; background: #FFFFFF; --r: 2.4px; --p: 6.8px;
  -webkit-mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / var(--p) var(--p) round, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / var(--p) var(--p) round, linear-gradient(#000 0 0) content-box;
}
/* The mask would clip a shadow on the stamp, so the pin carries it. */
.wm-pin { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .22)); }
.wm-stamp img { display: block; width: 100%; height: 50px; object-fit: cover; border-radius: 1px; }
.wm-cap { font: 600 9px/1.15 var(--s-tight); color: var(--s-ink); height: 2.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wm-pin b { position: absolute; left: -4px; top: -4px; min-width: 14px; height: 12px; padding: 0 2px; box-sizing: border-box; border-radius: 2.5px; background: var(--s-accent); border: .8px solid rgba(255, 255, 255, .75); color: #FFFFFF; font: 700 9.5px/10.5px var(--s-inter); text-align: center; }
/* The stop's note: why it is on the walk, shown as its pin lands. */
.wm-notes { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 88px; z-index: 20; }
.wm-notes.is-top { bottom: auto; top: 10px; }
/* OpenStreetMap credit, on the map itself (ODbL attribution). */
.wm-osm { position: absolute; right: 0; top: 0; z-index: 15; padding: 2px 6px; background: rgba(255, 255, 255, .75); border-bottom-left-radius: 6px; font: 400 9px/1.3 var(--s-inter); color: var(--s-muted); text-decoration: none; }
.wm-note { position: absolute; inset: 0; margin: 0; padding: 10px 12px 10px 40px; box-sizing: border-box; background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 16, 26, .12); display: flex; flex-direction: column; gap: 2px; opacity: 0; }
.wm-note b { position: absolute; left: 12px; top: 12px; width: 18px; height: 16px; border-radius: 3px; background: var(--s-accent); color: #FFFFFF; font: 700 10.5px/16px var(--s-inter); text-align: center; }
.wm-note__k { font: 500 9px/1.2 var(--s-mono); letter-spacing: 1px; color: var(--s-accent-ink); }
.wm-note strong { font: 600 14px/1.2 var(--s-tight); letter-spacing: -.2px; color: var(--s-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-note__l { font: 400 12.5px/1.3 var(--s-inter); color: var(--s-ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-pin { cursor: pointer; }
.no-js .wm-note:last-child { opacity: 1; }
.wm-foot { flex: none; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wm-foot strong { font: 600 17px/1.2 var(--s-tight); letter-spacing: -.2px; color: var(--s-ink); }
.wm-facts { font: 500 10px/1.2 var(--s-mono); letter-spacing: .4px; color: var(--s-muted); }
.wm-open { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--s-cta); color: #FFFFFF; font: 600 14px/1 var(--s-tight); }
.wm-open svg { width: 16px; height: 16px; }
.js .wm-foot, .js .wm-ask { opacity: 0; }
.no-js .wm-pin { opacity: 1; }

@media (min-width: 900px) {
  .walk-maps { grid-template-columns: repeat(2, minmax(0, 390px)); justify-content: center; column-gap: 48px; }
}

