/*
 * The home page's phone demo (index.html → .dphone / .demo), driven by js/home.js: the script adds one class per moment
 * (s-tap1, s-sheet, s-map, …) and this file does all the moving, with transform and opacity only.
 * Motion is opt-in (html.motion): without it every moment shows its end state. See the header of home.css.
 */

/* ── the phone. Its screen is the APP, so it keeps the app's light palette in dark mode too. ── */
.dphone { position: relative; width: 316px; height: 660px; border-radius: 52px; background: #15101D; padding: 10px; box-shadow: 0 40px 70px -30px rgba(35,26,51,.55), inset 0 0 0 1.5px rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dphone { box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.14); } }
.demo { position: relative; width: 296px; height: 640px; border-radius: 42px; overflow: hidden; background: #CFEFDC; color: #231A33; font: 13px/1.35 -apple-system, BlinkMacSystemFont, sans-serif; isolation: isolate; }
.demo * { box-sizing: border-box; }
.demo p { margin: 0; max-width: none; }
.no-tr, .no-tr * { transition: none !important; animation: none !important; }
html:not(.motion) .demo, html:not(.motion) .demo * { transition: none !important; animation: none !important; }
.island { position: absolute; top: 10px; left: 50%; width: 94px; height: 28px; margin-left: -47px; border-radius: 20px; background: #000; z-index: 30; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 4px 24px 0 32px; font: 600 14px -apple-system, sans-serif; z-index: 29; color: #FFFFFF; transition: color .35s; }
.sbar svg { height: 11px; fill: currentColor; }
.s-map .sbar { color: #231A33; }
.screen { position: absolute; inset: 0; transition: opacity .35s; }
.s-end .screen { opacity: 0; }

/* act 1: a post drawn in LinkUp's own layout (never TikTok's or Instagram's chrome), then the system share sheet */
.lpost { position: absolute; inset: 0; background: linear-gradient(172deg, #3A2338 0%, #7A3F2C 56%, #2A1B24 100%); transition: opacity .35s; }
.s-map .lpost { opacity: 0; }
.bowl { position: absolute; left: 22px; right: 22px; top: 132px; }
.creator { position: absolute; top: 56px; left: 12px; display: flex; align-items: center; gap: 7px; background: rgba(26,20,38,.55); border-radius: 999px; padding: 4px 11px 4px 4px; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.creator svg { width: 24px; height: 24px; border-radius: 50%; background: #FFF0C7; }
.creator span { opacity: .6; font-weight: 500; }
.caption { position: absolute; left: 12px; right: 70px; bottom: 22px; background: rgba(26,20,38,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 10px 12px; color: #FFFFFF; font-size: 12px; line-height: 1.4; }
.caption .c2 { margin-top: 6px; color: rgba(255,255,255,.7); font-size: 11px; display: flex; gap: 12px; }
.sharebtn { position: absolute; right: 12px; bottom: 28px; width: 46px; text-align: center; color: #FFFFFF; font-size: 10px; font-weight: 700; }
.sharebtn b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; margin-bottom: 4px; }
.sharebtn svg { width: 21px; height: 21px; }
.touch { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.6); opacity: 0; pointer-events: none; z-index: 15; }
.touch.t1 { right: 12px; bottom: 46px; }
.s-tap1 .touch.t1 { animation: touch .7s ease-out; }
@keyframes touch { 0% { opacity: 0; transform: scale(.5); } 25% { opacity: .95; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.ssheet { position: absolute; left: 0; right: 0; bottom: 0; background: #F2F2F7; border-radius: 20px 20px 0 0; padding: 8px 14px 26px; transform: translateY(105%); transition: transform .38s cubic-bezier(.22,1,.36,1); z-index: 12; color: #1C1C1E; }
.s-sheet .ssheet { transform: none; }
.s-map .ssheet { transform: translateY(105%); transition-duration: .28s; }
.ssheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #C9C6CF; margin: 0 auto 10px; }
.shead { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #E3E1E8; }
.shead .th { width: 40px; height: 40px; border-radius: 9px; background: #5A3418; display: grid; place-items: center; font-size: 20px; flex: none; }
.shead b { display: block; font-size: 13px; }
.shead span { font-size: 11px; color: #8A8494; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.shead .x { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #E5E5EA; display: grid; place-items: center; color: #8A8494; font-size: 12px; flex: none; }
.sapps { display: flex; justify-content: space-between; padding: 16px 2px 14px; }
.sapp { width: 50px; text-align: center; font-size: 10.5px; color: #4B4553; position: relative; }
.sapp .tile { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 5px; transition: box-shadow .2s; overflow: hidden; }
.sapp .tile svg { width: 26px; height: 26px; }
.sapp .tile img { width: 50px; height: 50px; display: block; }
.t-messages { background: #34C759; } .t-mail { background: #3B82F6; } .t-notes { background: #FFCC00; } .t-more { background: #E5E5EA; }
.s-tap2 .sapp.lu .tile { box-shadow: 0 0 0 3px #F2F2F7, 0 0 0 6px #FF5A3C; }
.sapp .touch { left: 2px; top: 2px; background: rgba(35,26,51,.28); }
.s-tap2 .sapp .touch { animation: touch .7s ease-out; }
.srow { background: #FFFFFF; border-radius: 12px; padding: 11px 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; color: #1C1C1E; }
.srow span { color: #8A8494; }

/* acts 2 + 3: the circle's map, the "Placing your spot…" card, Scout searching, the pin landing, the pin sheet */
.lmap { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .4s, transform .7s cubic-bezier(.22,1,.36,1); }
.s-map .lmap { opacity: 1; transform: none; }
.lmap .mapart { position: absolute; inset: 0; width: 100%; height: 100%; }
.mhead { position: absolute; top: 50px; left: 12px; right: 12px; display: flex; align-items: center; }
.cchip { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.94); border: 1px solid #E4EEE8; border-radius: 999px; padding: 7px 12px; font: 800 12.5px Nunito, sans-serif; box-shadow: 0 2px 8px rgba(35,26,51,.08); }
.cchip i { width: 9px; height: 9px; border-radius: 50%; background: #8B5CF6; }
.avs { margin-left: auto; display: flex; padding-left: 8px; }
.avs span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #FFFFFF; margin-left: -9px; overflow: hidden; display: grid; place-items: center; }
.avs svg { width: 20px; height: 22px; margin-top: 4px; }
.bg-sky { background: #E6F3FF; } .bg-bubble { background: #FFE1EF; } .bg-sun { background: #FFF0C7; } .bg-violet { background: #F3EAFD; }
.pin { position: absolute; width: 40px; height: 50px; }
.pin svg { width: 100%; height: 100%; overflow: visible; }
.pin.p1 { left: 40px; top: 300px; } .pin.p2 { left: 214px; top: 430px; }
.scout { position: absolute; left: 34px; top: 420px; width: 60px; opacity: 0; transition: opacity .3s; z-index: 3; }
.s-placing .scout { opacity: 1; animation: search 2.3s cubic-bezier(.45,0,.55,1) forwards; }
html:not(.motion) .s-placing .scout { transform: translate(66px, -104px); }
.s-saved .scout { opacity: 0; }
@keyframes search { 0% { transform: translate(0, 0); } 30% { transform: translate(130px, -30px) rotate(6deg); } 62% { transform: translate(30px, -150px) rotate(-6deg); } 100% { transform: translate(66px, -104px); } }
.target { position: absolute; left: 126px; top: 296px; width: 48px; height: 48px; border-radius: 50%; border: 3px dashed #8B5CF6; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s cubic-bezier(.22,1,.36,1); }
.s-found .target { opacity: .9; transform: none; }
.s-saved .target { opacity: 0; }
.newpin { left: 130px; top: 270px; opacity: 0; z-index: 2; }
.s-saved .newpin { opacity: 1; animation: drop .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-70px); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.rip { position: absolute; left: 150px; top: 320px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #8B5CF6; opacity: 0; }
.s-saved .rip { animation: rip 1.5s ease-out .45s 2; }
.s-saved .rip.r2 { animation-delay: .9s; }
@keyframes rip { from { opacity: .75; transform: scale(.6); } to { opacity: 0; transform: scale(4.5); } }
.pcd { position: absolute; left: 12px; right: 12px; top: 96px; background: #FFFFFF; border: 1px solid #E4EEE8; border-radius: 18px; padding: 11px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 20px rgba(35,26,51,.12); opacity: 0; transform: translateY(-16px); transition: opacity .3s, transform .38s cubic-bezier(.22,1,.36,1); z-index: 4; }
.s-placing .pcd { opacity: 1; transform: none; }
.s-peek .pcd { opacity: 0; transform: translateY(-16px); }
.pc-ic { position: relative; width: 30px; height: 30px; flex: none; }
.pc-ic .ring { position: absolute; inset: 0; transition: opacity .2s; }
.pc-ic .arc { transform-box: fill-box; transform-origin: center; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-saved .pc-ic .ring { opacity: 0; }
.okchip { position: absolute; inset: 0; border-radius: 50%; background: #DDF7E6; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.22,1,.36,1); }
.okchip svg { width: 15px; height: 15px; stroke: #15803D; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-saved .okchip { opacity: 1; transform: none; }
.pc-t { position: relative; flex: 1; height: 34px; }
.pc-t > div { position: absolute; inset: 0; transition: opacity .25s; }
.pc-t b { display: block; font: 800 13.5px Nunito, sans-serif; }
.pc-t span { font-size: 11.5px; color: rgba(35,26,51,.7); }
.t-b, .t-c { opacity: 0; }
.s-found .t-a { opacity: 0; } .s-found .t-b { opacity: 1; }
.s-saved .t-b { opacity: 0; } .s-saved .t-c { opacity: 1; }
.psheet { position: absolute; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .42s cubic-bezier(.22,1,.36,1); box-shadow: 0 -8px 24px rgba(35,26,51,.12); overflow: hidden; z-index: 5; }
.s-peek .psheet { transform: none; }
.route { position: relative; height: 66px; background: #CFEFDC; border-radius: 0 0 50% 50% / 0 0 14px 14px; }
.route .gb { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #FFFFFF; }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.psb { padding: 10px 16px 26px; }
.psb .nm { font: 900 19px Nunito, sans-serif; }
.psb .mt { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #8E8499; margin: 4px 0 12px; }
.psb .mt em { font-style: normal; background: #FFF0C7; color: #231A33; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 11px; }
.psb .bt { display: flex; gap: 8px; }
.psb .bt span { flex: 1; height: 40px; border-radius: 14px; display: grid; place-items: center; font: 800 13px Nunito, sans-serif; }
.psb .bt .c { background: #FF5A3C; color: #FFFFFF; } .psb .bt .m { background: #F1F7F3; }


/* The text swaps in the cards: the old line leaves before the new one arrives, so two lines never show on top of each other. */
.pc-t > div { transition: opacity .16s; }
.s-found .t-b, .s-saved .t-c, .s-found2 .b-b, .s-done2 .b-c { transition-delay: .16s; }

/* ══ Chapter 2, "From a list": an itinerary pasted into Import a list becomes four pins (s-ch2 … s-done2). ══ */
.demo:not(.s-ch2) .ch2only { display: none !important; }
.s-ch2 .ch1only, .s-ch2 .lpost { display: none !important; }
.s-ch2 .sbar { color: #231A33; }

/* act 1: LinkUp's own Import a list screen */
.limport { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; transition: opacity .35s; }
.s-imp .limport { opacity: 1; }
.s-map2 .limport { opacity: 0; }
.iband { position: absolute; left: 0; right: 0; top: 0; height: 172px; background: #CFEFDC; border-radius: 0 0 50% 50% / 0 0 22px 22px; padding: 60px 16px 0; }
.iband b { display: block; font: 900 22px Nunito, sans-serif; }
.iband span { display: block; font-size: 12px; color: rgba(35,26,51,.7); max-width: 160px; margin-top: 4px; line-height: 1.35; }
.iband svg { position: absolute; right: 12px; top: 56px; width: 84px; }
.ibox { position: absolute; left: 14px; right: 14px; top: 192px; height: 178px; border: 1.5px solid #E4EEE8; border-radius: 16px; padding: 12px; background: #F1F7F3; }
.iph { color: #8E8499; font-size: 13px; padding-left: 6px; transition: opacity .15s; }
.s-pasted .iph { opacity: 0; }
.icaret { position: absolute; left: 13px; top: 13px; width: 2px; height: 17px; background: #FF5A3C; animation: blink 1s steps(1) infinite; }
.s-pasted .icaret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.itext { position: absolute; left: 14px; top: 12px; right: 12px; display: grid; gap: 5px; font-size: 13px; color: #231A33; }
.itext b { font: 800 15px Nunito, sans-serif; }
.itext > * { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s cubic-bezier(.22,1,.36,1); }
.s-pasted .itext > * { opacity: 1; transform: none; }
.s-pasted .itext > :nth-child(2) { transition-delay: .05s; } .s-pasted .itext > :nth-child(3) { transition-delay: .1s; }
.s-pasted .itext > :nth-child(4) { transition-delay: .15s; } .s-pasted .itext > :nth-child(5) { transition-delay: .2s; }
.pastemenu { position: absolute; left: 4px; top: -30px; background: #1C1C1E; color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 9px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.pastemenu::after { content: ""; position: absolute; left: 16px; bottom: -5px; border: 6px solid transparent; border-top-color: #1C1C1E; border-bottom: 0; }
.s-pmenu .pastemenu { opacity: 1; transform: none; }
.s-pasted .pastemenu { opacity: 0; }
.touch.t3 { left: 6px; top: -38px; background: rgba(35,26,51,.25); }
.s-ptap .touch.t3 { animation: touch .7s ease-out; }
.iinto { position: absolute; left: 16px; right: 16px; top: 386px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #8E8499; }
.ichip { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid #E4EEE8; border-radius: 999px; padding: 5px 10px; font: 800 12px Nunito, sans-serif; color: #231A33; }
.ichip i { width: 8px; height: 8px; border-radius: 50%; background: #60A5FA; }
.ihint { position: absolute; left: 16px; right: 16px; top: 436px; font-size: 11.5px; line-height: 1.4; color: #8E8499; }
.ifind { position: absolute; left: 14px; right: 14px; bottom: 30px; height: 50px; border-radius: 16px; background: #FF5A3C; color: #FFFFFF; display: grid; place-items: center; font: 800 15px Nunito, sans-serif; opacity: .45; transition: opacity .25s; }
.s-pasted .ifind { opacity: 1; }
.touch.t4 { left: 50%; margin-left: -23px; bottom: 32px; background: rgba(255,255,255,.6); }
.s-ftap .touch.t4 { animation: touch .7s ease-out; }

/* acts 2 + 3: the map in the list's circle, the batch card, four pins */
.s-map2 .lmap { opacity: 1; transform: none; }
.cchip i.sky { background: #60A5FA; }
.scout2 { left: 160px; top: 430px; }
.s-map2 .scout2 { opacity: 1; animation: search2 2s cubic-bezier(.45,0,.55,1) forwards; }
html:not(.motion) .s-map2 .scout2 { transform: translate(-70px, -120px); }
.s-found2 .scout2 { opacity: 0; }
@keyframes search2 { 0% { transform: translate(0, 0); } 40% { transform: translate(-110px, -60px) rotate(-6deg); } 75% { transform: translate(-30px, -190px) rotate(6deg); } 100% { transform: translate(-70px, -120px); } }
.s-map2 .bcd { opacity: 1; transform: none; }
.bcd .b-b, .bcd .b-c { opacity: 0; }
.s-found2 .bcd .b-a { opacity: 0; } .s-found2 .bcd .b-b { opacity: 1; }
.s-done2 .bcd .b-b { opacity: 0; } .s-done2 .bcd .b-c { opacity: 1; }
.s-done2 .bcd .ring { opacity: 0; }
.s-done2 .bcd .okchip { opacity: 1; transform: none; }
.mgs { display: inline-flex !important; gap: 4px; margin-top: 3px; }
.mg { width: 11px; height: 14px; fill: none; stroke: #60A5FA; stroke-width: 5; overflow: visible; transition: fill .2s; }
.s-l1 .mg.m1, .s-l2 .mg.m2, .s-l3 .mg.m3, .s-l4 .mg.m4 { fill: #60A5FA; }
.rv { margin-left: auto; background: #FF5A3C; color: #FFFFFF; border-radius: 999px; padding: 5px 11px; font: 800 12px Nunito, sans-serif; opacity: 0; transform: scale(.9); transition: opacity .25s .16s, transform .3s .16s cubic-bezier(.22,1,.36,1); }
.s-done2 .rv { opacity: 1; transform: none; }
.lpin { opacity: 0; z-index: 2; }
.lpin.l1 { left: 46px; top: 196px; } .lpin.l2 { left: 206px; top: 236px; } .lpin.l3 { left: 118px; top: 344px; } .lpin.l4 { left: 222px; top: 456px; }
.s-l1 .lpin.l1, .s-l2 .lpin.l2, .s-l3 .lpin.l3, .s-l4 .lpin.l4 { opacity: 1; animation: drop .55s cubic-bezier(.22,1,.36,1) both; }
