/* The hero's attract loop (js/attract.js): the clear shield over the frame, the calm pill and the drawn tap ring.
   Prefix sb-at-. Loaded by hero.html only. */

/* while the loop runs the shell's nudges stay hidden. They come back as they were once the visitor takes over */
html.sb-attract .sb-nudge, html.sb-attract .sb-glow { visibility: hidden !important; opacity: 0 !important; animation: none !important; }
html.sb-attract .sb-seg-btn .sb-try, html.sb-attract .sb-state .sb-try { display: none !important; }
html.sb-attract .sb-seg-btn.is-try, html.sb-attract .sb-state.is-try { animation: none !important; }
html.sb-attract .sb-seg-btn.is-try { box-shadow: none !important; }
/* in a narrow frame on a phone, a swipe over the hero still scrolls the homepage */
html.sb-attract, html.sb-attract body { overscroll-behavior: auto !important; }

/* a clear layer over the whole frame: it takes the first touch, so that touch never reaches the app */
.sb-at-shield {
  position: fixed; z-index: 3000; left: 0; top: 0; right: 0; bottom: 0;
  display: block; background: transparent; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent; touch-action: pan-y;
}
.sb-at-shield:focus-visible { box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.7); }

/* the pill: the demo's invitation, never on the app's screen. Framed: a white pill under the phone, in the nudge
   pill's place. Bare app (a narrow frame): the demo layer's card near the top (.is-bare). */
.sb-at-pill {
  position: fixed; z-index: 3001; left: 50%; top: 70%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 8px; border-radius: 19px;
  white-space: nowrap; pointer-events: none;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  letter-spacing: -0.01em; color: #1b2130; background: #ffffff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.18);
  animation: none;
}
.sb-at-pill.is-bare {
  height: 34px; padding: 0 12px 0 6px; border-radius: 8px; border: 1px dashed #c9a227; background: #fff8d6; color: #3b3205;
  font-weight: 500; font-size: 13px; box-shadow: 0 4px 14px rgba(17, 24, 39, 0.16);
}
.sb-at-pill.is-away { opacity: 0 !important; transition: opacity 0.2s; }
.sb-at-pill svg { display: block; flex: none; }
.sb-at-tag {
  flex: none; padding: 3px 6px; border-radius: 4px; background: #ffd60a; color: #1d1a05;
  font: 800 10px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* the drawn tap: the same fingertip dot as the touch suggestions (css/hints.css .hn-touch). Shows, presses, fades */
.sb-at-ring {
  position: fixed; z-index: 3002; left: -100px; top: -100px; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  box-sizing: border-box; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(40, 46, 58, 0.55) 0 34%, rgba(255, 255, 255, 0.5) 37% 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(20, 24, 33, 0.4), 0 3px 12px rgba(17, 24, 39, 0.38);
}
.sb-at-ring.is-show { animation: sbAtRing 0.35s ease-out both; }
.sb-at-ring.is-press { animation: sbAtPress 0.55s ease-out both; }
@keyframes sbAtRing { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: scale(1); } }
@keyframes sbAtPress {
  0% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-at-pill { animation: none; }
  .sb-at-ring { display: none; }
}
