/* Shared public-site navigation, including the original main hero treatment. */
@media (hover: hover) and (pointer: fine) {
  .landing-header:not(.is-compact) .landing-header-download:hover { background: var(--white); border-color: var(--white); color: var(--coffee-950); }
  .landing-header:not(.is-compact) .landing-header-download:hover .download-button-icon { filter: brightness(0); }
  .landing-header.is-compact .landing-header-download:hover { background: var(--merlot-hover); border-color: var(--merlot-hover); }
}
.landing-header {
  position: fixed;
  z-index: 60;
  top: 16px;
  left: 50%;
  width: min(1140px, calc(100% - 2 * var(--marketing-page-gutter, 24px)));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 88px;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.landing-header .brand-lockup {
  display: block;
  width: 110px;
  height: 26px;
  background: var(--paper);
  -webkit-mask: url("/landing-logo-wordmark.svg") center / contain no-repeat;
  mask: url("/landing-logo-wordmark.svg") center / contain no-repeat;
  transition: background-color 260ms ease;
}
.landing-header .brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.landing-header-download {
  width: auto;
  min-width: max-content;
  max-width: none;
  height: 48px;
  margin-left: 0;
  padding: 14px 20px;
  border: 1.5px solid var(--border-nav);
  background: transparent;
  color: var(--paper);
  box-shadow: none;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}
.landing-header-download::before {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.landing-header-download .download-button-label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 260ms ease,
    opacity 180ms ease;
}
.landing-header-download .download-button-label-desktop {
  max-width: 140px;
  opacity: 1;
}
.landing-header-download .download-button-label-mobile {
  display: none;
  max-width: 0;
  opacity: 0;
}
.landing-header.is-compact {
  height: 66px;
  padding: 8px 8px 8px 20px;
  border-color: var(--border-floating);
  background: var(--white);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.05);
}
.landing-header.is-compact .brand-lockup {
  width: 110px;
  height: 26px;
  background: var(--merlot);
}
.landing-header.is-compact .landing-header-download {
  height: 48px;
  background: var(--merlot);
  border-color: var(--merlot);
  color: var(--white);
  box-shadow: none;
}
.landing-header.is-compact .landing-header-download .download-button-label-desktop {
  max-width: 140px;
  opacity: 1;
}
.landing-header.is-compact .landing-header-download .download-button-label-mobile {
  max-width: 0;
  opacity: 0;
}
@media (min-width: 1024px) {
  .landing-header,
  .landing-header.is-compact {
    top: 21px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
  }
  .landing-header::before {
    content: "";
    position: absolute;
    inset: -9px -9px -9px -21px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid var(--border-floating);
    border-radius: 88px;
    background: var(--white);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 260ms ease;
  }
  .landing-header.is-compact::before {
    opacity: 1;
  }
}
@media (max-width: 1023px) {
  .landing-header {
    top: 16px;
    width: calc(100vw - 32px);
    height: 60px;
    min-height: 60px;
    padding: 8px 8px 8px 18px;
    background: var(--merlot);
    transition: none;
  }

  .landing-header.is-compact {
    border-color: transparent;
    background: var(--merlot);
    box-shadow: none;
  }

  .landing-header .brand-lockup {
    width: 96px;
    height: 23px;
  }
  .landing-header.is-compact .brand-lockup {
    width: 96px;
    height: 23px;
    background: var(--paper);
  }
  .landing-header-download {
    width: auto;
    min-width: max-content;
    max-width: none;
    height: 44px;
    padding: 0 16px;
  }
  .landing-header-download::before {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .landing-header-download .download-button-label-desktop {
    display: inline-block;
    max-width: 0;
    opacity: 0;
  }
  .landing-header.is-compact .landing-header-download .download-button-label-desktop {
    max-width: 0;
    opacity: 0;
  }
  .landing-header-download .download-button-label-mobile {
    display: inline-block;
    max-width: none;
    opacity: 1;
  }
  .landing-header.is-compact .landing-header-download .download-button-label-mobile {
    max-width: none;
    opacity: 1;
  }
  .landing-header.is-compact .landing-header-download {
    background: var(--white);
    border-color: var(--white);
    color: var(--coffee-950);
  }
  .landing-header.is-compact .landing-header-download .download-button-icon {
    filter: brightness(0) saturate(100%) invert(12%) sepia(9%) saturate(593%) hue-rotate(314deg) brightness(93%) contrast(91%);
  }
}
@media (max-width: 520px) {
  .landing-header {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    height: 72px;
    min-height: 72px;
    padding: 16px 24px;
    border: 0;
    border-radius: 0;
    background: var(--merlot);
    box-shadow: none;
  }

  .landing-header.is-compact {
    padding: 16px 24px;
    border-color: transparent;
    background: var(--merlot);
    box-shadow: none;
  }
  .landing-header .brand-lockup {
    width: 100px;
    height: 25px;
  }
  .landing-header.is-compact .brand-lockup {
    width: 100px;
    height: 25px;
    background: var(--paper);
  }
  .landing-header-download {
    width: auto;
    min-width: max-content;
    max-width: none;
    height: 40px;
    padding: 0 20px;
  }
  .landing-header.is-compact .landing-header-download {
    height: 40px;
  }
  .landing-header-download::before {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .landing-header-download .download-button-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .landing-header-download .download-button-label-desktop,
  .landing-header.is-compact .landing-header-download .download-button-label-desktop {
    display: none;
    max-width: 0;
    opacity: 0;
  }
  .landing-header-download .download-button-label-mobile,
  .landing-header.is-compact .landing-header-download .download-button-label-mobile {
    display: inline-block;
    max-width: none;
    opacity: 1;
  }
}
@media (max-width: 380px) {
  .landing-header-download {
    width: auto;
    min-width: max-content;
    max-width: none;
    padding: 0 12px;
  }
  .landing-header-download .download-button-label-desktop,
  .landing-header.is-compact .landing-header-download .download-button-label-desktop {
    max-width: 0;
    opacity: 0;
  }
  .landing-header .brand-lockup,
  .landing-header.is-compact .brand-lockup {
    width: 78px;
    height: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-header,
  .landing-header::before,
  .landing-header .brand-lockup,
  .landing-header-download {
    transition: none;
  }
}

.site-header {
  --paper: #fff9ed;
  --merlot: #51121a;
  --merlot-hover: #651d26;
  --white: #fff;
  --coffee-950: #272121;
  --coffee-900: #3a3333;
  --border-nav: #c9c3bf;
  --border-floating: #e3e1de;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "Segoe UI", sans-serif;
  box-sizing: border-box;
  font-family: var(--body);
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header .landing-header-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.site-header .landing-header-download::before { display: none; }
.site-header .download-button-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.site-header a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.site-header-space { height: 80px; }
.site-header.site-header--light .brand-lockup { background: var(--merlot); }
.site-header.site-header--light .landing-header-download { color: var(--coffee-950); }
.site-header.site-header--light .download-button-icon { filter: brightness(0); }
.site-header.site-header--light.is-compact .landing-header-download { color: var(--white); background: var(--coffee-900); border-color: var(--coffee-900); }
.site-header.site-header--light.is-compact .download-button-icon { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .site-header.site-header--light:not(.is-compact) .landing-header-download:hover { background: var(--white); border-color: var(--white); }
  .site-header.site-header--light.is-compact .landing-header-download:hover { background: var(--coffee-900); border-color: var(--coffee-900); }
}
@media (max-width: 1023px) {
  .site-header-space { height: 72px; }
  .site-header.landing-header { top: 0; left: 0; right: 0; width: auto; transform: none; height: 72px; min-height: 72px; padding: 16px 24px; border: 0; border-radius: 0; }
  .site-header.landing-header .brand-lockup { width: 100px; height: 25px; }
  .site-header .landing-header-download, .site-header.is-compact .landing-header-download { height: 40px; padding: 0 20px; }
  /* Keep the scroll divider attached to the header, never offset below it. */
  .site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 0.5px;
    background: #733f45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .site-header.is-compact::after { opacity: 1; }
  .site-header.site-header--light::after { background: #c4beb5; }
  .site-header.site-header--light { background: var(--paper); }

  .site-header.site-header--light.is-compact .brand-lockup { background: var(--merlot); }
}
@media (max-width: 380px) {
  .site-header .landing-header-download, .site-header.is-compact .landing-header-download { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .site-header::after,
  .site-header .brand-lockup, .site-header .landing-header-download,
  .site-header .download-button-label { transition: none; }
}
@media (min-width: 521px) {
  .site-header { --marketing-page-gutter: 40px; }
}
@media (min-width: 521px) and (max-width: 1023px) {
  .site-header.landing-header { padding-inline: var(--marketing-page-gutter); }
}
