/* Keep the Cloud header aligned with the main site's Webflow navbar. */
.vistr-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-inline: 2rem;
  background: #fff;
  box-shadow: 0 1px 10px 3px rgb(0 0 0 / .1);
  color: #333;
  font: 400 14px/20px Sora, sans-serif;
}

.vistr-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-block: .5rem;
  border-bottom: 1px solid #e7ddda;
}

.vistr-nav-brand {
  flex: none;
  margin-right: calc(60px + 2.5rem);
}

.vistr-nav-brand img {
  width: 7.3rem;
  height: auto;
}

.vistr-nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
}

.vistr-nav-links {
  display: flex;
  gap: 2.8rem;
  font-size: .9rem;
  line-height: 1;
}

.vistr-nav-links a {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  transition: color .35s;
}

.vistr-nav-links a[aria-current="page"] { color: #000; }
.vistr-nav-links a:hover { color: #3b96ff; }
.vistr-nav-actions { display: flex; justify-content: flex-end; }

.vistr-nav-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.5rem;
  border: 1px solid #e7ddda;
  border-radius: 12rem;
  box-shadow: 1px 1px 2px #1018280d;
  color: #151516;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: color .25s, background-color .35s;
}

.vistr-nav-demo:hover {
  background-color: #3b96ff;
  color: #ecf7ff;
}

.vistr-nav-toggle { display: none; }

@media (max-width: 991px) {
  .vistr-header {
    min-height: 4.75rem;
    border-bottom: 1px solid #e7ddda;
  }

  .vistr-nav-shell { border-bottom: 0; }
  .vistr-nav-brand { margin-right: 0; }

  .vistr-nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #151516;
    cursor: pointer;
  }

  .vistr-nav-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    margin-left: 8px;
  }

  .vistr-nav-icon span {
    height: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
  }

  .vistr-nav-toggle[aria-expanded="true"] .vistr-nav-icon span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .vistr-nav-toggle[aria-expanded="true"] .vistr-nav-icon span:nth-child(2) {
    opacity: 0;
  }

  .vistr-nav-toggle[aria-expanded="true"] .vistr-nav-icon span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .vistr-nav-menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100dvh - 100%);
    padding: 1rem 5% 5rem;
    overflow: auto;
    overscroll-behavior: contain;
    background: #ecf7ff;
  }

  .vistr-nav-toggle[aria-expanded="true"] + .vistr-nav-menu { display: block; }

  .vistr-nav-links { flex-direction: column; gap: 0; }
  .vistr-nav-links a {
    padding: 2rem 1rem;
    border-bottom: 1px solid currentColor;
  }

  .vistr-nav-actions { margin-top: 1.5rem; }
  .vistr-nav-demo { flex: 1; }
}

@media (max-width: 767px) {
  .vistr-header { min-height: 4rem; }
  .vistr-nav-brand { padding-left: 10px; }
}

@media (max-width: 479px) {
  .vistr-header { padding-inline: .5rem; }
  .vistr-nav-demo { padding-block: 1rem; }
}

@media (max-width: 991px) and (scripting: none) {
  .vistr-header { position: static; }
  .vistr-nav-shell { flex-wrap: wrap; }
  .vistr-nav-toggle { display: none; }
  .vistr-nav-menu {
    display: block;
    position: static;
    flex-basis: 100%;
    height: auto;
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vistr-header a, .vistr-nav-icon span { transition: none; }
}
