/* Page-aware reading progress and back-to-top control. */
.back-to-top {
  --top-accent: var(--brand-500);
  --top-progress: 0%;
  position: fixed;
  z-index: 1040;
  right: 25px;
  bottom: 30px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: conic-gradient(var(--top-accent) var(--top-progress), rgba(64, 80, 160, .14) 0);
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(23, 40, 74, .13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s, box-shadow .2s
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 13px;
  background: #fff
}

.back-to-top>span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center
}

.back-to-top i {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--top-accent);
  border-left: 2px solid var(--top-accent);
  transform: translateY(3px) rotate(45deg)
}

.back-to-top i::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 13px;
  top: -3px;
  left: 3px;
  border-radius: 2px;
  background: var(--top-accent);
  transform: rotate(-45deg);
  transform-origin: center
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(23, 40, 74, .19)
}

.back-to-top:focus-visible {
  outline: 3px solid var(--top-accent);
  outline-offset: 3px
}

.back-to-top.theme-home {
  --top-accent: var(--brand-coral)
}

.back-to-top.theme-product {
  --top-accent: var(--brand-500)
}

.back-to-top.theme-case {
  --top-accent: var(--brand-orange)
}

.back-to-top.theme-solution {
  --top-accent: var(--brand-teal)
}

.back-to-top.theme-docs {
  --top-accent: var(--brand-cyan)
}

.back-to-top.theme-about {
  --top-accent: var(--brand-coral)
}

.back-to-top.theme-golf {
  --top-accent: var(--brand-teal)
}

.floating-tech-contact.is-open~.back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

@media(max-width:700px) {
  .back-to-top {
    right: 14px;
    bottom: 72px;
    width: 44px;
    height: 44px;
    border-radius: 15px
  }

  .back-to-top::before {
    border-radius: 12px
  }

  .back-to-top:hover {
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .back-to-top {
    transition: none
  }
}

@media print {
  .back-to-top {
    display: none !important
  }
}
