/* The home page's tour (showtour.js): a full screen over the page, a word or two above the app in a silver phone */
body.st-open { overflow: hidden; }
.st { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); }
.st-top { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px; }
.st-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-t small { color: var(--ink-2); font-size: 14px; }
.st-t b { font: 600 21px/1.25 "Noto Serif", "Fraunces", Georgia, serif; }
.st-x { flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.st-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.st-phone { position: relative; height: 100%; max-height: 640px; aspect-ratio: 390 / 720; max-width: 100%; padding: 10px; border: 0; border-radius: 34px; background: linear-gradient(145deg, #f4f5f7, #c9cdd2 40%, #e6e8eb 65%, #a9afb6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px #9aa0a7, 0 10px 28px rgba(0, 0, 0, .2); cursor: pointer; }
.st-phone::before { content: ""; position: absolute; inset: 10px; border-radius: 24px; background: #fff; }
.st-scr { position: absolute; inset: 10px; overflow: hidden; border-radius: 24px; background: #fff; opacity: 0; transition: opacity .5s ease; }
.st-scr.on { opacity: 1; }
.st-scr.wide { background: #eceae6; }
.st-img { position: absolute; left: 0; top: 0; width: 100%; transition: transform 1.3s cubic-bezier(.45, 0, .25, 1); }
.st-img img { display: block; width: 100%; height: auto; }
.st-ring { position: absolute; border: 3px solid var(--accent); border-radius: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.st-ring.on { opacity: 1; animation: st-pulse 1.6s ease-in-out infinite; }
.st-tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; pointer-events: none; }
.st-tap.on { animation: st-tap .9s ease-out 2; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 12%, transparent); } }
@keyframes st-tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.st-paused { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 24px; border-radius: 16px; background: rgba(0, 0, 0, .66); color: #fff; font: 600 22px/1.2 "DM Sans", sans-serif; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.st-paused small { font-size: 15px; font-weight: 500; opacity: .9; }
.st.is-paused .st-paused { opacity: 1; }
.st-prog { width: 100%; max-width: 560px; display: flex; gap: 4px; }
.st-prog i { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.st-prog b { display: block; height: 100%; width: 0; background: var(--accent); }
.st-cap { min-height: 2.6em; width: 100%; max-width: 560px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink); font: 600 19px/1.3 "DM Sans", sans-serif; opacity: 0; transition: opacity .35s ease; }
.st-cap.on { opacity: 1; }
.st-foot { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px; }
.st-dots { flex: 1; display: flex; gap: 4px; justify-content: center; min-width: 0; }
.st-prev { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 16px "DM Sans", sans-serif; cursor: pointer; }
.st-prev:disabled { opacity: .35; cursor: default; }
.st-dots button { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.st-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--line); }
.st-dots button[aria-current]::after { background: var(--accent); width: 22px; margin-left: -11px; border-radius: 6px; }
.st-next { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--card); font: 600 17px "DM Sans", sans-serif; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .st-img, .st-scr, .st-ring, .st-cap, .st-prog b { transition: none !important; } .st-ring.on, .st-tap.on { animation: none; } }
