/* sumore, up close: the real app in a phone on the desk, with a wall of index cards beside it
   explaining whatever the phone is showing. Pick a card and the phone goes there; move around
   in the phone and the matching card comes forward. */

.tour-page{--s:.8}
.tour-header{padding-bottom:0}
.tour{padding:18px 0 72px}

.tour-intro{margin:0 0 26px}
.tour-intro .note{margin-bottom:6px}
.tour-title{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:clamp(32px,4.4vw,48px);font-weight:800;letter-spacing:-.02em;line-height:1}
.tour-title .title-mark{width:.95em;height:auto;flex:none}
.tour-lede{margin:0;color:var(--ink-soft);font-size:18px;max-width:56ch}

.tour-stage{display:grid;grid-template-columns:auto minmax(0,500px);gap:clamp(36px,6vw,84px);justify-content:center;align-items:start}

/* the phone */
.tour-phone-col{position:sticky;top:16px;display:flex;flex-direction:column;align-items:center;gap:14px}
.tour-phone{position:relative;padding:9px;border-radius:calc(54px * var(--s) + 9px);background:var(--night);border:2px solid #4b5059;box-shadow:7px 8px 0 var(--edge);animation:phone-in .7s cubic-bezier(.2,.9,.3,1.15) both}
@keyframes phone-in{from{opacity:0;transform:translateY(26px) rotate(5deg)}}
.tour-phone .island{top:calc(9px + 11px * var(--s));width:calc(110px * var(--s));height:calc(30px * var(--s));margin-left:calc(-55px * var(--s));z-index:4;pointer-events:none}
.tour-screen{position:relative;width:calc(390px * var(--s));height:calc(844px * var(--s));border-radius:calc(54px * var(--s));overflow:hidden;background:#0b141b;isolation:isolate}
.tour-status{position:absolute;left:0;right:0;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:calc(47px * var(--s));padding:0 calc(30px * var(--s)) 0 calc(42px * var(--s));background:#0b141b;color:#fff;font:700 calc(16px * var(--s))/1 -apple-system,'SF Pro Text',system-ui,sans-serif;pointer-events:none}
.tour-status svg{width:calc(66px * var(--s));height:calc(14px * var(--s));fill:currentColor}
.tour-home{position:absolute;left:50%;bottom:calc(8px * var(--s));z-index:2;width:calc(134px * var(--s));height:calc(5px * var(--s));margin-left:calc(-67px * var(--s));border-radius:999px;background:rgba(255,255,255,.75);pointer-events:none}
/* a pretend iPhone notification that drops in from the top */
.tour-notif{position:absolute;z-index:5;top:calc(52px * var(--s));left:calc(10px * var(--s));right:calc(10px * var(--s));display:flex;align-items:center;gap:calc(11px * var(--s));padding:calc(12px * var(--s)) calc(14px * var(--s));border:0;border-radius:calc(24px * var(--s));background:rgba(242,242,246,.82);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);box-shadow:0 8px 28px rgba(0,0,0,.35);color:#111;text-align:left;font-family:-apple-system,'SF Pro Text',system-ui,sans-serif;cursor:pointer;transform:translateY(calc(-100% - 70px * var(--s)));transition:transform .55s cubic-bezier(.2,1.25,.35,1)}
.tour-notif.is-in{transform:none}

.tour-notif.is-out{transition:transform .35s ease-in}
.tour-notif[hidden]{display:none}
.tour-notif:focus-visible{outline:3px solid var(--bird-ink);outline-offset:2px}
.tour-notif-icon{flex:none;display:grid;place-items:center;width:calc(38px * var(--s));height:calc(38px * var(--s));border-radius:calc(9px * var(--s));background:#14212b}
.tour-notif-icon img{width:72%;height:auto}
.tour-notif-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:calc(1px * var(--s))}
.tour-notif-top{display:flex;justify-content:space-between;font-size:calc(12.5px * var(--s));color:#555}
.tour-notif-top b{font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.tour-notif-title{font-weight:600;font-size:calc(15px * var(--s))}
.tour-notif-body{font-size:calc(15px * var(--s))}
.tour-viewport{position:absolute;left:0;right:0;bottom:0;top:calc(47px * var(--s))}
.tour-screen iframe{position:absolute;left:0;top:0;width:390px;height:797px;border:0;transform:scale(var(--s));transform-origin:0 0;background:#0b141b;opacity:0;transition:opacity .45s}
.tour-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;z-index:1;transition:opacity .45s;pointer-events:none}
.tour-loading{position:absolute;left:0;right:0;bottom:14%;z-index:2;margin:0;text-align:center;font:400 20px/1 var(--hand);color:#ffe0ac;text-shadow:0 1px 6px rgba(0,0,0,.6);animation:flicker 1.6s ease-in-out infinite;pointer-events:none}
@keyframes flicker{50%{opacity:.45}}
.tour-screen.is-ready iframe{opacity:1}
.tour-screen.is-ready .tour-poster,.tour-screen.is-ready .tour-loading{opacity:0;animation:none;visibility:hidden;transition:opacity .45s,visibility 0s .45s}

/* a pulsing ring over the thing a card's "try" button will press */
.tour-ring{position:absolute;left:0;top:0;z-index:3;width:0;height:0;border:3px solid var(--bird-ink);border-radius:14px;box-shadow:0 0 0 4px rgba(252,148,0,.25),0 0 18px rgba(252,148,0,.55);opacity:0;pointer-events:none;transition:opacity .2s,transform .3s cubic-bezier(.2,.8,.3,1),width .3s,height .3s}
.tour-ring.is-on{opacity:1;animation:ring 1.1s ease-in-out infinite}
@keyframes ring{50%{box-shadow:0 0 0 9px rgba(252,148,0,.12),0 0 26px rgba(252,148,0,.7)}}

.tour-fine{margin:0;max-width:calc(390px * var(--s) + 40px);text-align:center;font-size:13.5px;line-height:1.45;color:var(--ink-soft)}
.tour-fine .text-link{font-size:13.5px;min-height:32px}

/* the wall of cards */
.tour-guide{min-width:0}
.stops{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.stop{--c:var(--cow-deep);--cp:var(--cow-paper);position:relative;background:var(--card);border:1.5px solid var(--line);border-radius:6px;box-shadow:4px 5px 0 var(--edge);transform:rotate(var(--tip,0deg));transition:transform .35s cubic-bezier(.2,.8,.3,1.2),box-shadow .35s,border-color .35s}
.stop:nth-child(4n+1){--tip:-.6deg}
.stop:nth-child(4n+2){--tip:.5deg;--c:var(--cat-deep);--cp:var(--cat-paper)}
.stop:nth-child(4n+3){--tip:-.3deg;--c:var(--bird-deep);--cp:var(--bird-paper)}
.stop:nth-child(4n+4){--tip:.7deg;--c:var(--leaf-deep);--cp:#e0ebcd}
.stop::before{content:"";position:absolute;left:-1.5px;top:-1.5px;bottom:-1.5px;width:6px;border-radius:6px 0 0 6px;background:var(--c);transform:scaleY(0);transform-origin:top;transition:transform .35s cubic-bezier(.2,.8,.3,1)}
.stop .tape{top:-11px;left:auto;right:28px;transform:rotate(6deg) scale(.6);opacity:0;transition:opacity .25s,transform .35s}
.stop.is-on{--tip:0deg;border-color:var(--c);box-shadow:6px 8px 0 var(--edge);z-index:1}
.stop.is-on::before{transform:none}
.stop.is-on .tape{opacity:1;transform:rotate(4deg)}
.stop-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;min-height:58px;padding:10px 16px 10px 14px;border:0;background:none;text-align:left;cursor:pointer}
.stop-num{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cp);color:var(--card-ink);font:400 20px/1 var(--hand);transform:rotate(-6deg)}
.stop-name{font-weight:800;font-size:17px;line-height:1.2}
.stop-where{font-size:13px;color:var(--ink-soft);white-space:nowrap}
.stop-head:hover .stop-name{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.stop-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.2,.8,.3,1)}
.stop-body>div{overflow:hidden;min-height:0}
.stop.is-on .stop-body{grid-template-rows:1fr}
.stop-text{margin:0;padding:0 18px 4px 58px;color:var(--ink-soft);font-size:16px;line-height:1.6}
.stop-try{display:flex;flex-wrap:wrap;align-items:center;gap:10px 10px;margin:0;padding:12px 18px 18px 58px}
.stop-try-label{font:400 19px/1 var(--hand);color:var(--c)}
.stop-done{font-size:14px;color:var(--ink-soft);font-style:italic}

/* "try" buttons: tiny sticky notes, the same family as the site's buttons */
.try{--n:var(--cp);position:relative;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px 0 11px;border:0;border-radius:2px;font:700 14px/1.1 var(--body);color:var(--card-ink);background:linear-gradient(315deg,transparent 6px,var(--n) 6.4px);filter:drop-shadow(1.5px 2px 0 var(--edge));transform:rotate(-1deg);transition:transform .15s,filter .15s}
.try:nth-of-type(even){transform:rotate(1.2deg)}
.try::before{content:"";width:0;height:0;border-left:6px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;opacity:.7}
.try:hover,.try:focus-visible{transform:rotate(0) translateY(-2px);filter:drop-shadow(2px 4px 0 var(--edge))}
.try:active{transform:translate(1px,1px);filter:drop-shadow(.5px .5px 0 var(--edge))}
.try[disabled]{--n:var(--line);color:var(--card-ink-soft);opacity:.55;cursor:not-allowed;transform:rotate(0);filter:none}

.tour-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:30px}
.tour-cta-note{font-size:14px;color:var(--ink-soft)}

/* phones and narrow windows: the phone on top, the cards in a strip you swipe under it */
@media (max-width:900px){
  .tour{padding-top:6px}
  .tour-wide{display:none}
  .tour-header .wordmark{font-size:21px}
  .tour-intro{margin-bottom:18px}
  .tour-lede{font-size:16px}
  .tour-stage{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .tour-guide{display:contents}
  .tour-intro{order:-1;margin-bottom:22px}
  .tour-phone-col{margin-bottom:6px}
  .tour-phone-col{position:static}
  .stops{min-width:0;flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin:0 -16px;padding:14px 16px 16px;scrollbar-width:none;overscroll-behavior-x:contain}
  .stops::-webkit-scrollbar{display:none}
  .stop{flex:0 0 min(84%,360px);scroll-snap-align:center}
  .stop-body{grid-template-rows:1fr}
  .stop-head{min-height:52px;padding-bottom:4px}
  .stop-where{display:none}
  .stop-text{padding:0 16px 2px;font-size:15px;line-height:1.5}
  .stop-try{padding:10px 16px 16px}
  .tour-cta{justify-content:center;text-align:center;margin-top:16px}
}

@media (prefers-reduced-motion:reduce){
  .tour-phone,.tour-loading,.tour-ring.is-on{animation:none}
  .tour-notif{transition:none}
  .stop,.stop::before,.stop-body,.tour-ring,.try{transition:none}
}
