/* The site header, in both of the forms the site uses:
     - the wide form, brand + three always-visible buttons, used by 404 and the
       document pages;
     - the hamburger form (`.site-menu-toggle` + `.is-nav-open` / `.is-nav-closed`,
       driven by js/nav.js), used by the pages that have a real mobile menu.
   A page emits only the markup for the form it needs; there is one stylesheet, not
   one per header.

   Breakpoint-agnostic, and it has to stay that way. The base rules are the narrow
   layout; each page stylesheet declares in its own `@media (width >= …)` block where
   its header expands, because no two pages agree: 404 at 810, the document pages at
   767, integrations at 1100, home at 1280. A breakpoint that leaks in here silently
   reshapes every other page's header — integrations' 1100 block lived here for two
   rounds and gave home the desktop nav from 1100 instead of 1280. */

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 4px;
  overflow: hidden;
  background: #fff;
}

.site-brand {
  display: flex;
  flex-flow: row;
  flex: none;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  width: min-content;
  height: min-content;
  padding: 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  flex: none;
  width: 62px;
  height: 47px;
  object-fit: contain;
  object-position: center;
}

/* Shown only once the header expands. */
.site-brand-name {
  display: none;
  flex: none;
  width: auto;
  font-family: "Exo 2", sans-serif;
  font-size: 53px;
  font-weight: 600;
  line-height: 1em;
  letter-spacing: 0;
  color: var(--color-green);
  text-align: left;
  white-space: pre;
}

.site-nav {
  display: flex;
  flex-flow: row;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  width: min-content;
  height: min-content;
  padding: 0;
  position: relative;
}

.site-nav-item {
  flex: none;
}

.btn {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min-content;
  height: min-content;
  padding: 8px 16px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  background: #000;
  border-radius: 10px;
  box-shadow: inset 0 1px 1px 0 hsl(0 0% 100% / 0.25);
  /* Inherited from the export and kept. It changes no colour, but `filter`
     establishes a stacking context and a containing block for fixed/absolute
     descendants, so deleting it is a behavioural change, not a cosmetic one. */
  filter: brightness(1);
}

.btn-accent {
  background: var(--color-green);
}

.btn-label {
  flex: none;
  width: auto;
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: -0.3px;
  color: #fff;
  text-align: center;
  white-space: pre;
}

.btn-lg {
  padding: 10px 20px;
}

.btn-lg .btn-label {
  font-size: 20px;
}

/* ---------------------------------------------------------------------------
   Product nav: one element, two shapes. Below 1100px it is a 64px bar with a
   hamburger that js/nav.js opens; at 1100px and up it becomes an 80px bar with
   the links inline and the two call-to-action buttons on the right.

   js/nav.js keys off `.nav-bar` and `.nav-toggle`, and toggles the states
   `.is-nav-open` / `.is-nav-closed` on the bar and `.is-menu-open` /
   `.is-menu-closed` on the toggle.
   --------------------------------------------------------------------------- */

.nav-bar {
  z-index: 5;
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.nav-bar.is-nav-open {
  overflow: visible;
}

.nav-row {
  display: flex;
  flex-flow: row;
  flex: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 16px;
  position: relative;
  overflow: visible;
}

.nav-brand {
  display: flex;
  flex-flow: row;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: min-content;
  height: min-content;
  padding: 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.nav-brand-mark {
  display: block;
  z-index: 1;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 100px;
}

.nav-brand-name {
  z-index: 1;
  flex: none;
  width: auto;
  position: relative;
  cursor: pointer;
  white-space: pre;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2em;
  color: #10b981;
}

.nav-toggle-slot {
  flex: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle {
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  overflow: visible;
}

.nav-icon-menu,
.nav-icon-close {
  aspect-ratio: 1;
  flex: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  fill: #000;
  color: #000;
  image-rendering: pixelated;
}

.nav-icon-menu {
  height: 32px;
}

.nav-icon-close {
  height: 24px;
}

.nav-toggle.is-menu-open .nav-icon-close {
  height: 32px;
}

.is-menu-closed .nav-icon-close,
.is-menu-open .nav-icon-menu {
  display: none;
}

.nav-icon-menu svg,
.nav-icon-close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-menu {
  display: flex;
  flex-flow: row;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 1px;
  padding: 0;
  position: relative;
  overflow: visible;
}

.is-nav-open .nav-menu {
  height: min-content;
}

/* Closed, the panel is clipped away by the bar's own overflow. */
.is-nav-closed .nav-menu > * {
  display: none;
}

.nav-menu-list {
  z-index: 10;
  display: flex;
  flex-flow: column;
  flex: 1 0 0;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  width: 1px;
  height: 100vh;
  padding: 16px;
  position: relative;
  overflow: visible;
  background: #fff;
}

.nav-link {
  flex: none;
  width: auto;
  position: relative;
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: 0;
  text-align: left;
  color: #666;
}

.nav-link:hover {
  color: var(--color-green);
}

.nav-link-blog {
  font-family: "Inter Tight", "Inter Tight Placeholder", sans-serif;
}

.nav-link-login {
  font-weight: 400;
  color: var(--color-green);
}

/* The compact menu lists Careers before Features; the wide bar does the reverse.
   The markup follows the wide order and these put it back. */
.nav-link-home { order: 0; }
.nav-link-testimonials { order: 1; }
.nav-link-careers { order: 2; }
.nav-link-features { order: 3; }
.nav-link-blog { order: 4; }
.nav-link-login { order: 5; }

.nav-cta {
  display: none;
}

.nav-line {
  z-index: 1;
  flex: none;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 0.08);
}

.is-nav-open .nav-line {
  display: none;
}

.nav-btn {
  z-index: 1;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min-content;
  height: 40px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  border-radius: 10px;
}

.nav-btn-label {
  flex: none;
  width: auto;
  position: relative;
  white-space: pre;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2em;
  text-align: center;
}

.nav-btn-outline {
  background: #fff;
}

/* An overlay rather than a real border, so the 1px does not eat into the padding
   box the way `border` would. */
.nav-btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-green);
  border-radius: inherit;
  pointer-events: none;
}

.nav-btn-outline .nav-btn-label {
  color: var(--color-green);
}

.nav-btn-solid {
  background: var(--color-green);
}

.nav-btn-solid .nav-btn-label {
  color: #fff;
}
