/* Homepage "Check my visibility" search bar: in the hero (in place of the engine-name row) and a sticky copy docked
   at the bottom of the screen once the hero is scrolled past (assets/js/home-visibility-bar.js). */

.hero.aud-hx .aud-hx__eng { display: none; } /* the bar replaces it; kept in the DOM for hero-v4.js */

.aud-vbar { --vb-blue: #06B0F7; --vb-cyan: #39c4ff; --vb-ink: #0A1620; position: relative; width: 100%; max-width: 560px; margin: 26px 0 0; font-family: 'Geist', system-ui, sans-serif; }
.aud-vbar__in { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(13, 30, 43, .72); box-shadow: inset 0 0 0 1px rgba(127, 207, 245, .28), 0 20px 50px -24px rgba(6, 176, 247, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .2s; }
.aud-vbar__in:focus-within { box-shadow: inset 0 0 0 1.5px var(--vb-blue), 0 0 0 4px rgba(6, 176, 247, .18), 0 20px 50px -24px rgba(6, 176, 247, .55); }
.aud-vbar.is-error .aud-vbar__in { box-shadow: inset 0 0 0 1.5px #f0716f, 0 0 0 4px rgba(240, 113, 111, .16); }
.aud-vbar__ic { flex: none; width: 18px; height: 18px; stroke: rgba(234, 242, 248, .55); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.aud-vbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aud-vbar input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: #fff; font: 450 16px/1 'Geist', system-ui, sans-serif; letter-spacing: -.005em; padding: 0 4px; }
.aud-vbar input::placeholder { color: rgba(234, 242, 248, .45); }
.aud-vbar__go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--vb-blue); color: var(--vb-ink); font: 500 15px/1 'Geist', system-ui, sans-serif; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: background .2s, box-shadow .2s, transform .12s; }
.aud-vbar__go:hover { background: var(--vb-cyan); box-shadow: 0 12px 34px -12px rgba(6, 176, 247, .75); }
.aud-vbar__go:active { transform: scale(.97); }
.aud-vbar__go:focus-visible, .aud-vbar-dock__x:focus-visible { outline: 3px solid var(--vb-blue); outline-offset: 3px; }
.aud-vbar__go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aud-vbar__note { margin: 10px 0 0 20px; font-size: 13px; line-height: 1.4; color: rgba(234, 242, 248, .55); }
.aud-vbar__err { margin: 8px 0 0 20px; font-size: 13px; line-height: 1.4; color: #ff9b99; min-height: 0; }
.aud-vbar__err:empty { display: none; }

/* Sticky copy */
.aud-vbar-dock { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(620px, calc(100vw - 32px)); display: flex; align-items: center; gap: 8px; transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.aud-vbar-dock.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.aud-vbar-dock.is-on.is-foot { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.aud-vbar-dock .aud-vbar { margin: 0; max-width: none; flex: 1; }
.aud-vbar-dock .aud-vbar__in { background: rgba(10, 22, 32, .9); box-shadow: inset 0 0 0 1px rgba(127, 207, 245, .3), 0 24px 60px -18px rgba(0, 0, 0, .7); }
.aud-vbar-dock .aud-vbar__note { display: none; }
.aud-vbar-dock .aud-vbar__err { position: absolute; bottom: calc(100% + 8px); left: 0; margin: 0; padding: 8px 14px; border-radius: 10px; background: #0A1620; box-shadow: inset 0 0 0 1px rgba(240, 113, 111, .5); }
.aud-vbar-dock__x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(10, 22, 32, .85); box-shadow: inset 0 0 0 1px rgba(127, 207, 245, .25); display: grid; place-items: center; cursor: pointer; }
.aud-vbar-dock__x svg { width: 16px; height: 16px; stroke: rgba(234, 242, 248, .75); fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 640px) {
  /* The bar does the ghost button's job on phones: one website field, one demo button. */
  .hero.aud-hx .aud-hx__row .aud-hx__btn--ghost { display: none; }
  .aud-vbar { margin-top: 14px; }
  .aud-vbar__in { flex-wrap: wrap; border-radius: 26px; padding: 6px; gap: 6px; }
  .aud-vbar__ic { margin-left: 12px; }
  .aud-vbar input { flex: 1 1 calc(100% - 48px); }
  .aud-vbar__go { flex: 1 1 100%; justify-content: center; }
  .aud-vbar__note { margin-left: 14px; }
  /* Docked on phones: one row, arrow-only button (it keeps its accessible name). */
  .aud-vbar-dock .aud-vbar__in { flex-wrap: nowrap; border-radius: 999px; padding-left: 14px; }
  .aud-vbar-dock .aud-vbar__ic { margin-left: 0; }
  .aud-vbar-dock .aud-vbar__go { flex: none; width: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .aud-vbar-dock .aud-vbar__go svg { width: 20px; height: 20px; }
  .aud-vbar-dock { width: calc(100vw - 20px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .aud-vbar-dock__x { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .aud-vbar-dock, .aud-vbar__go { transition: none; }
}
