.site-header {
  --site-header-ink: #34313d;
  --site-header-muted: #625d6b;
  --site-header-soft: #767180;
  --site-header-pink: #e95173;
  --site-header-pink-deep: #d93f63;
  --site-header-line: #eee8ed;
  --site-header-ease: cubic-bezier(.22, 1, .36, 1);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .93);
  transition: background .4s var(--site-header-ease), box-shadow .4s var(--site-header-ease);
}

.site-header--home:not(.scrolled) {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 24px -16px rgba(80, 80, 110, .4);
}

.site-header__inner {
  display: flex;
  width: calc(100% - 48px);
  max-width: 1140px;
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  transition: min-height .4s var(--site-header-ease);
}

.site-header.scrolled .site-header__inner {
  min-height: 72px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: .45em;
  color: var(--site-header-ink);
  text-decoration: none;
}

.site-header__logo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 10px rgba(120, 120, 150, .22));
  object-fit: contain;
}

.site-header__logo span {
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__nav > a {
  position: relative;
  color: var(--site-header-muted);
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s;
}

.site-header__nav > a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--site-header-pink);
  content: "";
  transition: width .3s var(--site-header-ease);
}

.site-header__nav > a:hover,
.site-header__nav > a.active,
.site-header__nav > a[aria-current="page"] {
  color: var(--site-header-pink);
}

.site-header__nav > a:hover::after,
.site-header__nav > a.active::after,
.site-header__nav > a[aria-current="page"]::after {
  width: 100%;
}

.site-header__cta {
  padding: .68em 1.55em;
  border-radius: 999px;
  background: linear-gradient(135deg, #e95173, var(--site-header-pink-deep));
  box-shadow: 0 12px 28px -10px rgba(217, 63, 99, .55);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--site-header-ease), box-shadow .3s;
}

.site-header__cta:hover {
  box-shadow: 0 18px 34px -12px rgba(217, 63, 99, .65);
  transform: translateY(-3px) scale(1.03);
}

.site-header__cta--app,
.site-header__toggle,
.site-header__extra {
  display: none;
}

.site-header__overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
  visibility: hidden;
  background: rgba(35, 28, 38, .35);
  opacity: 0;
  transition: opacity .4s var(--site-header-ease), visibility 0s .4s;
}

.site-header__overlay.open {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s var(--site-header-ease);
}

.site-header__toggle {
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-header__toggle span {
  width: 26px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--site-header-ink);
  transition: transform .3s var(--site-header-ease), opacity .3s;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #1678a7;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .site-header__nav {
    position: fixed;
    z-index: 115;
    inset: 0 0 0 auto;
    visibility: hidden;
    width: min(78vw, 320px);
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
    transform: translateX(100%);
    transition: transform .4s var(--site-header-ease), visibility 0s .4s;
  }

  .site-header__nav.open {
    visibility: visible;
    transform: none;
    transition: transform .4s var(--site-header-ease);
  }

  .site-header__nav > a {
    padding: 8px 0;
  }

  .site-header__extra {
    display: flex;
    width: 100%;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--site-header-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header__download {
    padding: .8em 1.5em;
    border-radius: 999px;
    background: linear-gradient(135deg, #e95173, var(--site-header-pink-deep));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .site-header__sub {
    padding: 10px 0;
    color: var(--site-header-muted);
    font-size: .9rem;
    text-decoration: none;
  }

  .site-header__legal {
    display: flex;
    gap: 16px;
  }

  .site-header__legal a {
    padding: 10px 0;
    color: var(--site-header-soft);
    font-size: .84rem;
    text-decoration: none;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-header__cta--x {
    display: none;
  }

  .site-header__cta--app {
    display: inline-block;
  }

  .site-header__toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .site-header__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .site-header__toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}

@media (max-width: 540px) {
  .site-header__inner {
    width: calc(100% - 40px);
  }

  .site-header__logo span {
    font-size: 1.65rem;
  }

  .site-header__cta--app {
    padding: .65em 1em;
    font-size: .82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header__overlay {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
