:root { --lilac:#C9B6FF; --indigo:#1E0F4D; --soft:#DAD3F2; --neutral:#EEECF5; --card:#F5F4FA; --sec:#454745; --ink:#0E0F0C; --line:#E2DFEE;
  --teal:#A0E1E1; --yellow:#FFEB69; --peach:#FFC091; --pink:#FFD7EF; --ease:cubic-bezier(.2,.8,.2,1); }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 Inter, system-ui, sans-serif; color: var(--ink); background: var(--neutral); overflow-x: hidden; min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }
.display { font-family: Archivo, Inter, sans-serif; font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: .92; letter-spacing: -.015em; }

/* ---------- page */
.top { display: flex; align-items: center; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; color: var(--indigo); text-decoration: none; }
.top-tag { font-size: 13px; font-weight: 600; color: var(--indigo); background: var(--lilac); padding: 4px 10px; border-radius: 999px; }
.top-cta { margin-left: auto; background: var(--indigo); color: var(--lilac); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.stage { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: 8px clamp(16px, 4vw, 40px) 24px; max-width: 1240px; margin: 0 auto; align-items: start; }
.tour-head h1 { font-size: clamp(40px, 5vw, 64px); color: var(--indigo); }
.tour-head p { color: var(--sec); margin: 14px 0 18px; }
.play { display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--indigo); color: var(--lilac); font-weight: 600; min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px; }
.play-icon { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play.on .play-icon { width: 11px; height: 13px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.chapters { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-direction: column; gap: 6px; counter-reset: ch; }
.chapters li { counter-increment: ch; }
.chapters button { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 22px; padding: 12px 16px 12px 52px; position: relative; transition: background .2s; }
.chapters button::before { content: counter(ch); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--indigo); font: 700 13px/26px Inter, sans-serif; text-align: center; }
.chapters button:hover { background: rgba(255,255,255,.6); }
.chapters .k { display: block; font-size: 12px; font-weight: 600; color: var(--sec); text-transform: uppercase; letter-spacing: .06em; }
.chapters .t { display: block; font-weight: 600; font-size: 17px; color: var(--indigo); }
.chapters .d { display: none; font-size: 15px; color: var(--sec); margin-top: 4px; }
.chapters .on button { background: #fff; box-shadow: 0 6px 24px rgba(30,15,77,.08); }
.chapters .on button::before { background: var(--indigo); color: var(--lilac); }
.chapters .on .d { display: block; }
.chapters .plus { font-size: 11px; font-weight: 700; background: var(--indigo); color: var(--lilac); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.chapters .bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--neutral); overflow: hidden; display: none; }
.chapters .on .bar { display: block; }
.chapters .bar i { display: block; height: 100%; width: 0; background: var(--indigo); }

.device-col { position: sticky; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.caption { min-height: 48px; max-width: 460px; text-align: center; font-weight: 600; color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.caption span { background: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 24px rgba(30,15,77,.08); animation: pop .35s var(--ease); }
.device-fit { width: 100%; display: flex; justify-content: center; }
.device { width: 418px; height: 872px; padding: 14px; border-radius: 68px; background: #0E0F0C; position: relative; box-shadow: 0 40px 80px rgba(30,15,77,.25), inset 0 0 0 2px #2b2c2a; transform-origin: top center; flex: none; }
.island { position: absolute; z-index: 30; top: 25px; left: 50%; translate: -50% 0; width: 122px; height: 36px; border-radius: 20px; background: #000; }
.pager { display: none; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--indigo); }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--indigo); font-size: 18px; }
.foot { text-align: center; font-size: 12px; color: var(--sec); padding: 24px 16px 32px; }
.foot a { color: inherit; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .tour { order: 2; }
  .tour-head h1, .tour-head p { display: none; }
  .tour-head { margin-bottom: 12px; }
  .play { width: 100%; justify-content: center; }
  .chapters { margin-top: 0; }
  .device-col { position: static; }
  .pager { display: flex; }
  .top-tag { display: none; }
}

/* ---------- phone screen (the app) */
.screen { width: 390px; height: 844px; border-radius: 54px; overflow: hidden; position: relative; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; isolation: isolate; }
.screen * { scrollbar-width: none; }
.screen *::-webkit-scrollbar { display: none; }
.sb { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 44px; font-weight: 600; font-size: 16px; pointer-events: none; }
.sb.dark { color: #fff; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; animation: viewIn .38s var(--ease); }
.view.back { animation: viewBack .38s var(--ease); }
.view.up { animation: sheetUp .45s var(--ease); }
.bd { flex: 1; overflow-y: auto; padding: 60px 16px 24px; display: flex; flex-direction: column; gap: 20px; }
.nav { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; margin-right: 44px; }
.ib { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--neutral); color: var(--indigo); display: inline-grid; place-items: center; flex: none; }
.ib.dk { background: rgba(201,182,255,.18); color: var(--lilac); }
.s-d { font-family: Archivo, Inter, sans-serif; font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; }
.t { font-size: 18px; font-weight: 600; }
.s { font-size: 14px; color: var(--sec); }
.x { font-size: 12px; color: var(--sec); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 600; background: var(--lilac); color: var(--indigo); }
.btn.dark { background: var(--indigo); color: var(--lilac); }
.btn.soft { background: var(--neutral); color: var(--indigo); }
.btn.ghost { background: rgba(201,182,255,.16); color: var(--lilac); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--neutral); color: var(--indigo); }
.card { border-radius: 24px; background: var(--card); padding: 16px; }
.row { display: flex; align-items: center; gap: 14px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: var(--indigo); border: 3px solid #fff; }
.avs { display: flex; }
.avs .av + .av { margin-left: -12px; }
.hs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.photo { background: var(--neutral) center/cover; border-radius: 18px; flex: none; }
.tabbar { display: flex; justify-content: space-around; padding: 8px 8px 28px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; border: 0; background: none; font-size: 11px; font-weight: 600; color: #6A6C6A; }
.tabbar button.on { color: var(--indigo); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); animation: blink 1.4s infinite; }
.pmap { border-radius: 24px; overflow: hidden; background: #E6E2F3; position: relative; z-index: 0; }
.pmap .leaflet-control-attribution { font-size: 8px; }
.pin { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--indigo); }
.pin-photo { width: 40px; height: 40px; border-radius: 12px; border: 3px solid #fff; background: center/cover; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.me-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); border: 4px solid var(--indigo); box-shadow: 0 0 0 0 rgba(201,182,255,.7); animation: ring 1.8s infinite; }
.field { width: 100%; min-height: 48px; border: 1px solid #B9B8C2; border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
textarea.field { resize: none; min-height: 84px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--sec); margin-bottom: 6px; display: block; }
.toast { position: absolute; z-index: 40; left: 16px; right: 16px; bottom: 104px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px; font-size: 14px; animation: pop .3s var(--ease); }
.finger { position: absolute; z-index: 50; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(30,15,77,.25); border: 3px solid rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; transition: left .55s var(--ease), top .55s var(--ease), opacity .3s, transform .15s; opacity: 0; }
.finger.show { opacity: 1; }
.finger.press { transform: scale(.75); background: rgba(30,15,77,.45); }

/* planner */
.stop { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 10px 12px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: var(--lilac); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.step-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--neutral); color: var(--indigo); font-weight: 700; font-size: 18px; line-height: 1; }
.leg { display: flex; align-items: center; gap: 8px; margin-left: 26px; padding: 6px 0 6px 18px; border-left: 2px dashed var(--soft); font-size: 13px; color: var(--sec); }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--sec); }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: var(--lilac); }
.flash { animation: flash .8s var(--ease); }

/* packing */
.pack { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 16px; }
.box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #B9B8C2; display: grid; place-items: center; flex: none; background: #fff; transition: .2s; }
.pack.done .box { background: var(--indigo); border-color: var(--indigo); color: var(--lilac); }
.pack.done .nm { color: var(--sec); text-decoration: line-through; }
.who { font-size: 12px; color: var(--sec); margin-left: auto; }
.prog { height: 10px; border-radius: 99px; background: #fff; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--indigo); border-radius: 99px; transition: width .5s var(--ease); }

/* voting */
.idea { background: #fff; border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: center; transition: transform .4s var(--ease); }
.idea .score { font: 900 26px Archivo, Inter, sans-serif; font-stretch: 112%; color: var(--indigo); min-width: 34px; text-align: center; }
.vote { display: flex; flex-direction: column; gap: 4px; }
.vote button { width: 40px; height: 34px; border-radius: 12px; border: 0; background: var(--neutral); color: var(--indigo); }
.vote button.on { background: var(--indigo); color: var(--lilac); }
.lead { position: relative; }
.lead::after { content: 'Leading'; position: absolute; top: -8px; right: 12px; font-size: 11px; font-weight: 700; background: var(--yellow); color: var(--indigo); padding: 2px 8px; border-radius: 999px; }

/* journal & steps */
.stepc { display: flex; gap: 12px; padding: 12px; background: var(--card); border-radius: 22px; align-items: center; }
.stepc .day { width: 40px; text-align: center; flex: none; }
.stepc .day b { display: block; font-size: 18px; }
.stepc.new { animation: flash 1.4s var(--ease); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.wave i { width: 4px; border-radius: 3px; background: var(--indigo); opacity: .35; transition: opacity .1s; }
.wave i.lit { opacity: 1; }
.rec { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #E5484D; color: #fff; display: grid; place-items: center; flex: none; }
.rec.on { animation: ring-red 1.2s infinite; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.picks button { aspect-ratio: 1; border: 0; border-radius: 16px; background: center/cover; position: relative; padding: 0; }
.picks button.on::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); color: var(--lilac); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.picks button.on { outline: 3px solid var(--indigo); outline-offset: -3px; }
.weather { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 10px 14px; font-size: 14px; }

/* sidequests */
.quest { border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.quest .em { font-size: 34px; line-height: 1; }
.quest.done { opacity: .95; }
.quest.done .qbtn { background: var(--indigo); color: var(--lilac); }
.confetti { position: absolute; z-index: 45; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: fall 1.4s ease-in forwards; }

/* widget home screen */
.home-scr { position: absolute; inset: 0; background: linear-gradient(160deg, #3B2A86, #1E0F4D 45%, #0d0730); padding: 70px 22px 30px; display: flex; flex-direction: column; gap: 22px; }
.home-scr .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.home-scr .app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #fff; }
.home-scr .app i { width: 62px; height: 62px; border-radius: 16px; display: block; }
.widget { background: #fff; border-radius: 26px; padding: 14px; display: grid; grid-template-columns: 1fr 120px; gap: 12px; min-height: 160px; box-shadow: 0 10px 40px rgba(0,0,0,.3); animation: pop .5s var(--ease); }
.widget .ph { border-radius: 16px; background: center/cover; }
.dock { margin-top: auto; background: rgba(255,255,255,.18); border-radius: 30px; padding: 14px; display: flex; justify-content: space-around; }
.dock i { width: 60px; height: 60px; border-radius: 16px; display: block; }
.notif { background: rgba(255,255,255,.92); border-radius: 20px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; animation: dropIn .6s var(--ease); }
.notif .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--indigo); display: grid; place-items: center; flex: none; }

/* wrapped */
.wrap-scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 60px 24px 40px; transition: background .5s; }
.bars { display: flex; gap: 4px; position: absolute; top: 58px; left: 16px; right: 16px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.bars i b { display: block; height: 100%; width: 0; background: #fff; }
.bars i.done b { width: 100%; }
.bars i.cur b { animation: grow 3.6s linear forwards; }
.slide { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; animation: slideIn .6s var(--ease); }
.big { font: 900 104px/.85 Archivo, Inter, sans-serif; font-stretch: 112%; letter-spacing: -.03em; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flags span { font: 700 18px Inter, sans-serif; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.18); animation: pop .5s var(--ease) backwards; }

/* share card */
.share-card { border-radius: 28px; overflow: hidden; background: var(--indigo); color: #fff; box-shadow: 0 20px 40px rgba(30,15,77,.25); }
.collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 210px; }
.collage div { background: center/cover; }
.collage div:first-child { grid-row: span 2; }
.paywall { position: absolute; inset: 0; background: var(--indigo); color: #fff; }
.plan-opt { border: 2px solid rgba(201,182,255,.3); border-radius: 20px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; background: transparent; color: #fff; width: 100%; text-align: left; }
.plan-opt.on { border-color: var(--lilac); background: rgba(201,182,255,.12); }
.save { font-size: 11px; font-weight: 700; background: var(--yellow); color: var(--indigo); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

@keyframes viewIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes viewBack { from { transform: translateX(-40px); opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
@keyframes dropIn { from { transform: translateY(-120%); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(201,182,255,.8); } 100% { box-shadow: 0 0 0 22px rgba(201,182,255,0); } }
@keyframes ring-red { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.6); } 100% { box-shadow: 0 0 0 18px rgba(229,72,77,0); } }
@keyframes flash { 0% { background: var(--lilac); } }
@keyframes fall { to { transform: translate(var(--dx), 520px) rotate(var(--r)); opacity: 0; } }
@keyframes grow { to { width: 100%; } }
@keyframes slideIn { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.view.still { animation: none; }
.pmap .leaflet-tile-pane { filter: saturate(.55) hue-rotate(-8deg) brightness(1.03); }
.bd > * { flex-shrink: 0; }
.home-scr { padding-top: 108px; }
.screen .btn { white-space: nowrap; }

/* ---------- embed (homepage hero): just the screen */
.embed body { background: #fff; overflow: hidden; min-height: 0; }
.embed .top, .embed .tour, .embed .caption, .embed .pager, .embed .foot { display: none; }
.embed .stage { display: block; padding: 0; max-width: none; }
.embed .device-col { position: static; display: block; }
.embed .device { width: 390px; height: 844px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.embed .island { display: none; }
.embed .screen { border-radius: 0; }
