/* The home hero's guide (js/home-hero.js): an orange outline with a slow pulse around the next thing to click (around
   each, where any of several will do, their pulses passing along them in turn), and a one-line tooltip in the site's
   ink saying what to do. It sits over the app's screens at full size and never takes a click itself. The script
   places them and points the arrow at the control. */
.hero-app>.hero-guide{position:absolute;inset:0;z-index:20;pointer-events:none;opacity:0;transition:opacity .3s cubic-bezier(.22,1,.36,1)}
.hero-app>.hero-guide.on{opacity:1}
/* The outline around the control to click (the script sets its box and corners from the control's): orange, with a
   thin light edge so it reads on any background */
.hero-guide .hg-ring{position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid #D8853A;box-shadow:0 0 0 1px rgba(253,252,250,.85)}
.hero-guide .hg-ring[hidden]{display:none}
/* The pulse: a soft glow that spreads out from the outline and fades, every two seconds (each outline of a group a
   beat after the one before: --hg-delay) */
.hero-guide .hg-ring::after{content:"";position:absolute;inset:-2px;border-radius:inherit;animation:hg-pulse 2s cubic-bezier(.22,1,.36,1) var(--hg-delay,0s) infinite}
@keyframes hg-pulse{from{box-shadow:0 0 0 0 rgba(216,133,58,.5)}to{box-shadow:0 0 0 10px rgba(216,133,58,0)}}
/* Any of several (the welcome's questions): a thin line on each one's own border, tinting it rather than framing it,
   and a soft glow that passes from one to the next, one at a time (each a beat after the last: --hg-delay) */
.hero-guide.group .hg-ring{border-width:1px;border-color:rgba(216,133,58,.6);box-shadow:none}
.hero-guide.group .hg-ring::after{inset:-1px;animation:hg-pass 4.8s ease-in-out var(--hg-delay,0s) infinite}
@keyframes hg-pass{0%{box-shadow:0 0 0 0 rgba(216,133,58,0)}10%{box-shadow:0 0 0 4px rgba(216,133,58,.14)}25%,100%{box-shadow:0 0 0 7px rgba(216,133,58,0)}}
.hero-guide .hg-tip{position:absolute;left:0;top:0;box-sizing:border-box;max-width:min(300px,calc(100% - 16px));padding:7px 12px;background:#161514;color:#FDFCFA;font:500 13px/1.35 var(--sans,'Geist',system-ui,sans-serif);letter-spacing:0;box-shadow:0 6px 18px rgba(22,21,20,.18)}
/* The welcome's tooltip fades out after two seconds (home-hero.js invite); the outlines stay */
.hero-guide .hg-tip{transition:opacity .3s cubic-bezier(.22,1,.36,1)}
.hero-guide.tip-gone .hg-tip{opacity:0}
/* In a phone-sized hero, a little more compact, to fit the room between a heading and the control under it */
.hero-guide.tight .hg-tip{padding:5px 10px;font-size:12px}
/* The arrow on the edge that faces the control (the tooltip's side of it: above, below, left or right) */
.hero-guide .hg-arrow{position:absolute;width:0;height:0;border:6px solid transparent}
.hero-guide .hg-tip.above .hg-arrow{top:100%;margin-left:-6px;border-top-color:#161514}
.hero-guide .hg-tip.below .hg-arrow{bottom:100%;margin-left:-6px;border-bottom-color:#161514}
.hero-guide .hg-tip.left .hg-arrow{left:100%;margin-top:-6px;border-left-color:#161514}
.hero-guide .hg-tip.right .hg-arrow{right:100%;margin-top:-6px;border-right-color:#161514}
@media (prefers-reduced-motion:reduce){
  .hero-guide .hg-ring::after, .hero-guide.group .hg-ring::after{animation:none}
  .hero-app>.hero-guide{transition:none}
}
