/* Home-page product tour (views/partials/tour.ejs + public/js/tour.js).
   Everything inside .tour-stage is laid out on a fixed 1280×720 stage that the
   script scales to its box, so the sizes below are stage pixels. The player
   chrome underneath (.tour-bar, .tour-chapters) uses real pixels.
   Plain CSS (not Tailwind) so it only loads on the home page. */

.tour {
  --ink: #452A1B; --muted: #6B4E3B; --line: #F0DFC4; --cream: #FFF6E6;
  --brand: #A4471F; --brand-500: #B9532F; --brand-50: #FDF1E8;
  --honey: #F9C884; --honey-100: #FFF0CC; --sage: #7E9C6B;
  --snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #F0DFC4;
  background: #FFF6E6;
  box-shadow: 0 2px 8px rgba(74, 42, 18, .05), 0 24px 48px -24px rgba(74, 42, 18, .25);
}
.tour-stage {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 720px; transform-origin: 0 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  background:
    radial-gradient(520px 420px at 92% 8%, rgba(249, 200, 132, .45), transparent 70%),
    radial-gradient(460px 380px at 4% 100%, rgba(168, 191, 143, .25), transparent 70%),
    #FFF6E6;
}
.tour-stage * { box-sizing: border-box; }
.tour-stage img { display: block; max-width: none; }
.tour-stage h1, .tour-stage h2, .tour-stage h3, .tour-stage h4, .tour-stage p { margin: 0; }
.tour-stage h1, .tour-stage h2, .tour-stage h3, .tour-stage h4 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; }
.tour-stage .brand { position: absolute; left: 48px; top: 30px; height: 40px; width: auto; z-index: 20; }

/* scenes + entrance */
.tour .scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.tour .scene.on { opacity: 1; visibility: visible; transition: opacity .45s; }
.tour .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s var(--snap); }
.tour .scene.show .rise { opacity: 1; transform: none; }
.tour .scene .rise:nth-child(2) { transition-delay: .08s; }
.tour .scene .rise:nth-child(3) { transition-delay: .16s; }
.tour .scene .rise:nth-child(4) { transition-delay: .24s; }
.tour .scene .rise:nth-child(5) { transition-delay: .32s; }
.tour .win.rise, .tour .olymp.rise { transition-delay: .12s; transform: translateY(30px) scale(.98); }

.tour .copy { position: absolute; left: 64px; top: 168px; width: 400px; }
.tour .num {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--honey);
  font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #8F3A17;
}
.tour .copy h2 { font-size: 50px; line-height: 1.04; margin-top: 18px; }
.tour .lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin-top: 16px; }

/* 1 · intro */
.tour .s1-copy { position: absolute; left: 64px; top: 186px; width: 560px; }
.tour .eyebrow { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--brand); }
.tour .s1 h1 { font-size: 72px; line-height: 1.0; margin-top: 22px; }
.tour .s1 h1 span { color: var(--brand); }
.tour .s1-house { position: absolute; right: 24px; top: 150px; width: 640px; height: auto; transition-delay: .2s; }

/* window chrome */
.tour .win {
  position: absolute; left: 500px; top: 92px; width: 730px; height: 572px;
  background: #fff; border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 2px 6px rgba(74, 42, 18, .06), 0 36px 70px -28px rgba(74, 42, 18, .4);
}
.tour .bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 20px; background: #FFFBF3; border-bottom: 1px solid var(--line); }
.tour .bar i { width: 11px; height: 11px; border-radius: 50%; background: #D46F42; }
.tour .bar i:nth-child(2) { background: #F2A922; }
.tour .bar i:nth-child(3) { background: var(--sage); }
.tour .bar span { margin-left: 14px; padding: 4px 16px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 700; color: var(--muted); }
.tour .win-body { position: relative; height: calc(100% - 46px); padding: 26px 30px; }
.tour .win-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tour .win-head h3 { font-size: 30px; }

/* shared controls */
.tour .lbl { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.tour .mt { margin-top: 20px; }
.tour .field { height: 56px; display: flex; align-items: center; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; font-size: 22px; font-weight: 700; }
.tour .caret { width: 2.5px; height: 26px; margin-left: 2px; background: var(--brand); animation: tour-blink 1s steps(1) infinite; }
.tour .pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tour .pill { padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 16px; font-weight: 700; transition: background-color .25s, border-color .25s, transform .25s var(--pop); }
.tour .pill.sel, .tour .pp.sel { background: var(--honey-100); border-color: var(--brand); transform: scale(1.04); }
.tour .split { height: 1px; background: var(--line); margin: 24px 0 18px; }
.tour .btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 15px; font-weight: 800; transition: transform .15s, box-shadow .2s; }
.tour .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.tour .press { transform: scale(.92) !important; box-shadow: 0 0 0 6px rgba(185, 83, 47, .22); }
.tour .av { width: var(--s); height: var(--s); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); font-size: calc(var(--s) * .55); line-height: 1; }
.tour .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.tour .seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); }
.tour .seg span { padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.tour .seg .on { background: var(--honey); color: var(--ink); font-weight: 800; }
.tour .modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* 2 · household */
.tour .res-head { display: flex; align-items: center; justify-content: space-between; }
.tour .people { display: flex; gap: 30px; margin-top: 10px; }
.tour .person { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: scale(.3); transition: opacity .35s, transform .55s var(--pop); }
.tour .person.on { opacity: 1; transform: none; }
.tour .person b { font-size: 17px; }
.tour .role { padding: 2px 10px; border-radius: 999px; background: var(--honey-100); font-size: 12px; font-weight: 800; color: #8F3A17; }
.tour .invite-link { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--brand-50); font-size: 15px; font-weight: 700; color: var(--muted); opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--snap); }
.tour .invite-link.show { opacity: 1; transform: none; }
.tour .invite-link b { color: #5E7D4F; }

/* 3 · tasks */
.tour .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tour .card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 126px; padding: 18px; border-radius: 20px; border: 2px solid var(--line); background: #fff; }
.tour .card b { font-size: 18px; line-height: 1.2; }
.tour .effort { margin-top: auto; padding: 4px 11px; border-radius: 999px; background: var(--honey-100); font-size: 13px; font-weight: 800; color: var(--muted); transition: background-color .3s; }
.tour .card.pop { opacity: 0; transform: translateY(16px) scale(.95); transition: opacity .4s, transform .5s var(--pop); }
.tour .s3.show .card.pop { opacity: 1; transform: none; }
.tour .s3 .card.pop:nth-child(1) { transition-delay: .35s; }
.tour .s3 .card.pop:nth-child(2) { transition-delay: .45s; }
.tour .s3 .card.pop:nth-child(3) { transition-delay: .55s; }
.tour .s3 .card.pop:nth-child(4) { transition-delay: .65s; }
.tour .s3 .card.pop:nth-child(5) { transition-delay: .75s; }
.tour .card-new { opacity: 0; transform: scale(.6); border-color: #14B8A6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); transition: opacity .3s, transform .55s var(--pop); }
.tour .card-new.show { opacity: 1; transform: none; }
.tour .effort-hi .effort { background: var(--honey); animation: tour-pulse .8s ease-in-out 2; }
.tour .callout { position: absolute; left: 30px; right: 30px; bottom: 26px; padding: 15px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--snap); }
.tour .callout.show { opacity: 1; transform: none; }

/* 4 · calendar */
.tour .today { padding: 14px 16px 16px; border-radius: 22px; background: var(--honey); }
.tour .today-h { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 19px; }
.tour .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--tint, var(--cream)); transition: opacity .4s, box-shadow .3s, max-height .45s var(--snap), transform .45s var(--pop); }
.tour .today .row { background: var(--cream); }
.tour .row-txt { display: flex; flex-direction: column; min-width: 0; }
.tour .row-txt b { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .row-txt span { font-size: 13px; color: var(--muted); }
.tour .tick { margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--muted); transition: background-color .25s; }
.tour .tick i { font-style: normal; font-size: 14px; font-weight: 900; color: #fff; opacity: 0; transform: scale(.3); transition: opacity .2s, transform .35s var(--pop); }
.tour .row.done .tick { background: var(--muted); }
.tour .row.done .tick i { opacity: 1; transform: none; }
.tour .row.done .row-txt b { text-decoration: line-through; }
.tour .row.done { opacity: .65; }
.tour .days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tour .day { min-width: 0; min-height: 156px; padding: 12px; border-radius: 20px; border: 2px solid var(--line); background: #fff; }
.tour .day .row { padding-right: 8px; gap: 9px; }
.tour .day .row-txt b { font-size: 14px; }
.tour .day .tick { width: 24px; height: 24px; }
.tour .day-h { display: flex; align-items: center; justify-content: space-between; }
.tour .day-h b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px; }
.tour .day-h span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--honey-100); font-size: 19px; font-weight: 800; color: #8F3A17; transition: transform .15s, box-shadow .2s; }
.tour .empty { margin-top: 16px; font-size: 14px; color: var(--muted); }
.tour .r-new { max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; opacity: 0; transform: scale(.85); overflow: hidden; }
.tour .d-wed.filled .empty { display: none; }
.tour .d-wed.filled .r-new { max-height: 60px; padding-top: 8px; padding-bottom: 8px; margin-top: 8px; opacity: 1; transform: none; }
.tour .r-new.hi { box-shadow: 0 0 0 3px #14B8A6; }
.tour .s4 .modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(69, 42, 27, .32); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.tour .s4 .modal.show { opacity: 1; visibility: visible; transition: opacity .25s; }
.tour .modal-card { width: 500px; padding: 22px 26px; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -20px rgba(69, 42, 27, .5); transform: scale(.92); transition: transform .35s var(--pop); }
.tour .modal.show .modal-card { transform: none; }
.tour .modal-card h4 { font-size: 23px; margin-bottom: 14px; }
.tour .pick-people { display: flex; gap: 10px; }
.tour .pp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 2px solid var(--line); font-size: 15px; font-weight: 800; transition: background-color .25s, border-color .25s, transform .25s var(--pop); }
.tour .floater { position: absolute; right: 64px; top: 116px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 28px; color: var(--brand); opacity: 0; }
.tour .floater.show { animation: tour-float 1.3s var(--snap) forwards; }

/* 5 · recurring */
.tour .sched-who { display: flex; gap: 10px; }
.tour .sched-who .row { margin-top: 0; padding: 8px 16px 8px 10px; }
.tour .sched-who .row b { font-size: 16px; }
.tour .wds { display: flex; gap: 8px; }
.tour .wd { width: 62px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 2px solid var(--line); font-size: 15px; font-weight: 800; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--pop); }
.tour .wd.sel { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.tour .mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.tour .mc { position: relative; height: 44px; border-radius: 12px; background: var(--cream); }
.tour .mc span { position: absolute; left: 9px; top: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tour .occ { position: absolute; right: 7px; bottom: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #10B981; color: #fff; font-style: normal; font-size: 13px; font-weight: 900; opacity: 0; transform: scale(.2) rotate(-90deg); transition: opacity .3s, transform .5s var(--pop); transition-delay: var(--d); }
.tour .mini.show .occ { opacity: 1; transform: none; }

/* 5b · push notifications on the installed app */
.tour .phone { position: absolute; left: 600px; top: 66px; width: 300px; height: 612px; padding: 12px; border-radius: 50px; background: var(--ink); box-shadow: 0 2px 6px rgba(74, 42, 18, .1), 0 40px 70px -26px rgba(74, 42, 18, .55); }
.tour .phone.rise { transition-delay: .12s; transform: translateY(30px) scale(.98); }
.tour .screen { position: relative; height: 100%; overflow: hidden; border-radius: 39px; background: radial-gradient(320px 280px at 20% 10%, #FFE29A, transparent 70%), linear-gradient(170deg, #F9C884 0%, #E59A4F 60%, #C9603A 100%); }
.tour .status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-size: 15px; color: var(--ink); }
.tour .status span { font-size: 10px; letter-spacing: 1px; opacity: .7; }
.tour .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 0; padding: 236px 14px 0; justify-items: center; }
.tour .dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 11px 8px; border-radius: 28px; background: rgba(255, 246, 230, .32); }
.tour .dock i { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 24px; box-shadow: 0 2px 6px rgba(69, 42, 27, .2); }
.tour .app { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; }
.tour .app i, .tour .app img { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 26px; box-shadow: 0 2px 6px rgba(69, 42, 27, .2); }
.tour .app span { height: 6px; width: 34px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.tour .app-casa span { width: auto; height: auto; background: none; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(69, 42, 27, .5); }
.tour .app-casa { opacity: 0; transform: scale(.2); transition: opacity .3s, transform .6s var(--pop); }
.tour .app-casa.show { opacity: 1; transform: none; }
.tour .ask { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 22px; background: rgba(69, 42, 27, .35); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.tour .ask.show { opacity: 1; visibility: visible; transition: opacity .25s; }
.tour .ask-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px 14px; border-radius: 22px; background: rgba(255, 251, 243, .98); text-align: center; transform: scale(.9); transition: transform .35s var(--pop); }
.tour .ask.show .ask-card { transform: none; }
.tour .ask-card img { border-radius: 10px; }
.tour .ask-card b { font-size: 15px; line-height: 1.3; }
.tour .ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
.tour .ask-btns span { padding: 9px 4px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 800; color: var(--muted); transition: transform .15s, box-shadow .2s; }
.tour .ask-btns span[data-hit] { background: var(--brand); color: #fff; }
.tour .pns { position: absolute; left: 10px; right: 10px; top: 52px; display: flex; flex-direction: column; gap: 8px; }
.tour .pn { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 20px; background: rgba(255, 251, 243, .97); box-shadow: 0 16px 30px -12px rgba(69, 42, 27, .55); opacity: 0; transform: translateY(-60px) scale(.96); transition: opacity .35s, transform .6s var(--pop); }
.tour .pn.show { opacity: 1; transform: none; }
.tour .pn img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.tour .pn div { min-width: 0; }
.tour .pn b { font-size: 13px; }
.tour .pn span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.tour .pn em { align-self: flex-start; margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tour .sp-points { position: absolute; left: 950px; top: 250px; width: 270px; display: flex; flex-direction: column; gap: 14px; }
.tour .sp-points span { padding: 12px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 16px; font-weight: 800; line-height: 1.3; opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .5s var(--snap); }
.tour .sp-points span.show { opacity: 1; transform: none; }

/* 6 · olympics */
.tour .olymp { position: absolute; left: 500px; top: 92px; width: 730px; height: 572px; padding: 28px 32px; border-radius: 32px; background: var(--honey); background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.45) 0 16%, transparent 17%), radial-gradient(circle at 92% 88%, rgba(255,255,255,.3) 0 12%, transparent 13%); }
.tour .mood { display: flex; align-items: center; gap: 18px; }
.tour .mood small { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #8F3A17; }
.tour .mood b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; }
.tour .scale { position: absolute; left: 24px; top: 190px; width: 380px; height: auto; }
.tour .beam { transform-box: view-box; transform-origin: 160px 70px; transition: transform 1.6s cubic-bezier(.3, 1.7, .5, 1); }
.tour .pan { transition: transform 1.6s cubic-bezier(.3, 1.7, .5, 1); }
.tour .scale.tilt .beam { transform: rotate(-12deg); }
.tour .scale.tilt .pan-l { transform: translateY(23px); }
.tour .scale.tilt .pan-r { transform: translateY(-23px); }
.tour .stickers { position: absolute; left: 420px; top: 186px; width: 280px; }
.tour .sticker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 20px; background: #FFF8E8; border: 2px dashed #E8976A; opacity: 0; transform: translateY(-24px) rotate(-8deg) scale(1.1); transition: opacity .3s, transform .55s var(--pop); }
.tour .sticker > span { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 26px; }
.tour .sticker b { display: block; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.15; }
.tour .sticker small { font-size: 14px; color: var(--muted); font-weight: 700; }
.tour .stickers.show .sticker { opacity: 1; transform: rotate(-1.5deg); }
.tour .stickers.show .sticker:nth-child(2) { transform: rotate(1.2deg); transition-delay: .25s; }
.tour .stickers.show .sticker:nth-child(3) { transform: rotate(-.6deg); transition-delay: .5s; }

/* 7 · closing */
.tour .s7 { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 30px; }
.tour .s7-door { width: 190px; height: auto; margin-bottom: 12px; }
.tour .s7 h2 { font-size: 62px; line-height: 1.04; }
.tour .s7 .lede { max-width: 640px; }
.tour .s7-points { display: flex; gap: 12px; margin-top: 22px; }
.tour .s7-points span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 16px; font-weight: 800; color: #5E7D4F; }
.tour .cta { margin-top: 26px; padding: 17px 32px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 800; box-shadow: 0 0 0 6px rgba(185, 83, 47, .18), 0 14px 30px -10px rgba(164, 71, 31, .6); }

/* pointer */
.tour .pointer { position: absolute; left: 0; top: 0; width: 30px; height: 30px; z-index: 50; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(69, 42, 27, .35)); transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.tour .ping { position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0; z-index: 49; pointer-events: none; }
.tour .ping.click { animation: tour-ping .45s ease-out; }

@keyframes tour-blink { 50% { opacity: 0; } }
@keyframes tour-pulse { 50% { transform: scale(1.15); } }
@keyframes tour-ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.7); } }
@keyframes tour-float { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }

/* ---------- player chrome (real pixels) ---------- */
.tour-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tour-play {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: #A4471F; color: #fff; transition: background-color .2s, box-shadow .2s;
}
.tour-play:hover { background: #B9532F; box-shadow: 0 0 0 4px rgba(185, 83, 47, .22); }
.tour-play .i-play { display: none; margin-left: 2px; }
.tour-player.is-paused .tour-play .i-play { display: block; }
.tour-player.is-paused .tour-play .i-pause { display: none; }
.tour-play:focus-visible, .tour-chapters button:focus-visible, .tour-close:focus-visible { outline: 2px solid #A4471F; outline-offset: 2px; }
.tour-scrub { --p: 0%; flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tour-scrub::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, #A4471F var(--p), #F0DFC4 var(--p)); }
.tour-scrub::-moz-range-track { height: 8px; border-radius: 8px; background: #F0DFC4; }
.tour-scrub::-moz-range-progress { height: 8px; border-radius: 8px; background: #A4471F; }
.tour-scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: #fff; border: 3px solid #A4471F; }
.tour-scrub::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #A4471F; }
.tour-scrub:focus-visible { outline: 2px solid #A4471F; outline-offset: 4px; border-radius: 8px; }
.tour-time { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #6B4E3B; font-variant-numeric: tabular-nums; }
.tour-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tour-chapters button {
  padding: 6px 13px; border-radius: 999px; border: 1px solid #F0DFC4; background: #fff; cursor: pointer;
  font: 700 13px Nunito, system-ui, sans-serif; color: #6B4E3B; transition: background-color .2s, color .2s, border-color .2s;
}
.tour-chapters button:hover { background: #FFF0CC; color: #452A1B; }
.tour-chapters button[aria-current] { background: #F9C884; border-color: #F9C884; color: #452A1B; }

/* phones: poster inline, playback in a full-screen player */
.tour-poster {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; background: rgba(69, 42, 27, .22); color: #fff;
}
.tour-poster[hidden] { display: none; }
.tour-poster-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #A4471F; box-shadow: 0 0 0 8px rgba(249, 200, 132, .55), 0 12px 24px -8px rgba(69, 42, 27, .6); }
.tour-poster-icon svg { margin-left: 3px; }
.tour-poster-label { padding: 6px 14px; border-radius: 999px; background: rgba(69, 42, 27, .85); font: 800 13px Nunito, system-ui, sans-serif; }
.tour-poster:focus-visible { outline: 3px solid #A4471F; outline-offset: -5px; }
.tour-player.is-phone:not(.is-full) .tour-chrome { display: none; }
.tour-close[hidden] { display: none; }

.tour-player.is-full { position: fixed; inset: 0; z-index: 100; background: #2A1A10; }
.tour-player.is-full .tour-frame {
  --fw: 100vw; --fh: 100dvh;
  position: absolute; left: 50%; top: 50%; width: var(--fw); height: var(--fh);
  transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
}
/* Held upright and the browser could not lock to landscape: turn the player so
   it fills the screen and reads correctly once the phone is rotated. */
@media (orientation: portrait) {
  .tour-player.is-full .tour-frame { --fw: 100dvh; --fh: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
}
.tour-player.is-full .tour { width: min(var(--fw), calc(var(--fh) * 16 / 9)); border-radius: 0; border: 0; box-shadow: none; }
.tour-player.is-full .tour-chrome {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgba(42, 26, 16, .85)); transition: opacity .3s;
}
.tour-player.is-full .tour-bar { margin-top: 0; }
.tour-player.is-full .tour-time { color: #F0DFC4; }
.tour-player.is-full .tour-chapters button { background: rgba(42, 26, 16, .6); border-color: rgba(255, 246, 230, .2); color: #F0DFC4; }
.tour-player.is-full .tour-chapters button[aria-current] { background: #F9C884; color: #452A1B; }
.tour-close {
  position: absolute; top: 12px; right: max(12px, env(safe-area-inset-right)); z-index: 3;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(42, 26, 16, .7); color: #FFF6E6; border: 1px solid rgba(255, 246, 230, .25); cursor: pointer; transition: opacity .3s;
}
.tour-player.chrome-hidden .tour-chrome, .tour-player.chrome-hidden .tour-close { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .tour *, .tour *::before { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
