/* Carried over from the live zwischen.ai header, minus the Docs link; the
   phone menu at the foot is the revamp's own. */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--bar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bar-border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.wordmark-icon {
  height: 16px;
  width: auto;
  object-fit: contain;
  margin-top: -1px;
  margin-bottom: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition:
    color 0.2s,
    background 0.2s;
}

.topbar-link:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-cta {
  padding: 8px 18px;
  border: 1px solid rgba(255, 45, 45, 0.4);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bar-red);
  transition: all 0.2s;
}

.topbar-cta:hover {
  background: var(--bar-red-glow);
  border-color: var(--bar-red);
}

/* The phone menu (js/menu.js): a two-line toggle that turns to a cross, and a
   compact panel dropping from the bar's foot in the bar's own colours. */
.topbar-menu {
  display: none;
}

.topbar-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 4px 20px 16px;
  background: var(--bar-solid);
  border-bottom: 1px solid var(--bar-border);
  animation: topbar-drop 0.2s var(--ease);
}

.topbar-panel[hidden] {
  display: none;
}

.topbar-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.topbar-panel a + a {
  border-top: 1px solid var(--bar-border);
}

.topbar-panel a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.topbar-panel .topbar-panel__cta {
  color: var(--bar-red);
}

.topbar-panel svg {
  width: 18px;
  height: 18px;
}

@keyframes topbar-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px 20px;
  }

  .topbar-cta {
    display: none;
  }

  .topbar.has-menu .topbar-actions {
    display: none;
  }

  .topbar.has-menu .topbar-menu {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .topbar-menu span {
    width: 20px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.85);
    transition: transform var(--dur) var(--ease);
  }

  .topbar.is-open .topbar-menu span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .topbar.is-open .topbar-menu span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .topbar-panel {
    display: none;
  }
}
