/* Ported from get-zeus.com / OpenFi-Ltd/OpenFi
   apps/website/app/components/root/navigation.tsx
   apps/website/app/components/root/main-nav.tsx
   apps/website/app/components/ui/navigation-menu.tsx
   apps/website/app/components/ui/button.tsx
   apps/website/app/components/root/mobile-nav/mobile-nav.tsx
   apps/website/app/tailwind.css + libs/ui-config tokens

   Differences from that source: icon logo (not wordmark), click-outside close. */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap");

:root {
  --site-header-h: 88px;
  --zs-primary-800: 267 92% 25%;
  --zs-gray-100: 233 34% 96.5%;
  --zs-gray-300: 233 20% 77%;
  --zs-gray-950: 233 42% 6.5%;
  --background: 0 0% 100%;
  --primary: var(--zs-primary-800);
  --primary-foreground: 0 0% 100%;
  --accent: var(--zs-gray-100);
  --accent-foreground: var(--zs-gray-950);
  --popover: 0 0% 100%;
  --radius: 0.5rem;
}

@media (min-width: 768px) {
  :root {
    --site-header-h: 104px;
  }
}

html {
  scroll-padding-top: calc(var(--site-header-h) + 20px);
}

body.has-site-header main section[id] {
  scroll-margin-top: calc(var(--site-header-h) + 20px);
}

body.has-site-header .top-actions {
  display: none;
}

body.has-site-header .landing-sidebar-brand {
  display: none !important;
}

@media (min-width: 981px) {
  body.has-site-header {
    --landing-sidebar-w: 220px;
    --landing-sidebar-rail-w: 0px;
    --landing-sidebar-current: 0px;
  }

  body.has-site-header .ds-layout .ds-main,
  body.has-site-header .ds-main {
    margin-left: 0 !important;
  }

  body.has-site-header aside.landing-sidebar,
  body.has-site-header aside.ds-sidebar.landing-sidebar {
    top: var(--site-header-h);
    left: 0;
    height: calc(100vh - var(--site-header-h));
    width: var(--landing-sidebar-w);
    padding: 1rem 0.75rem;
    overflow-y: auto;
    border-right: 1px solid hsl(var(--zs-gray-100));
    background: hsl(0 0% 100% / 0.96);
    box-shadow: 8px 0 24px rgb(16 12 32 / 0.08);
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    z-index: 40;
  }

  body.has-site-header .ds-layout.landing-sidebar-open {
    --landing-sidebar-current: 0px;
  }

  body.has-site-header .ds-layout.landing-sidebar-open aside.landing-sidebar,
  body.has-site-header .ds-layout.landing-sidebar-open aside.ds-sidebar.landing-sidebar {
    transform: translateX(0);
  }

  body.has-site-header .landing-nav {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dcddea;
  font-family: Manrope, sans-serif;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
}

@media (min-width: 768px) {
  .site-header {
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 3.5rem 1.5rem;
  }
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__brand img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-header__brand img {
    width: 72px;
    height: 72px;
  }
}

.site-header__grow {
  flex: 1 1 auto;
}

.site-header__nav {
  display: none;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
  }
}

.site-header__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__links,
.site-header__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.site-header__links {
  gap: 0.25rem;
}

.site-header__actions {
  gap: 0.5rem;
}

.site-header__link {
  display: inline-flex;
  height: 2.5rem;
  width: max-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  background: transparent;
  color: hsl(var(--primary));
  text-decoration: none;
  font: 500 0.875rem / 1.25rem Manrope, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header__link:hover,
.site-header__link:focus,
.site-header__link.is-active,
.site-header__dd.is-open .site-header__link--btn {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header__link:focus-visible {
  outline: none;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header__chev {
  position: relative;
  top: 1px;
  margin-left: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease;
}

.site-header__dd.is-open .site-header__chev {
  transform: rotate(180deg);
}

.site-header__dd {
  position: relative;
}

.site-header__viewport {
  position: absolute;
  left: 0;
  top: 100%;
  display: flex;
  justify-content: center;
}

.site-header__viewport[hidden] {
  display: none;
}

.site-header__panel {
  margin-top: 0.375rem;
  width: 400px;
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  list-style: none;
  overflow: hidden;
  border: 1px solid hsl(var(--zs-gray-100));
  border-radius: var(--radius);
  background: hsl(var(--popover));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.site-header__panel a {
  display: block;
  user-select: none;
  border-radius: 0.375rem;
  padding: 0.75rem;
  line-height: 1;
  text-decoration: none;
  outline: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header__panel a:hover,
.site-header__panel a:focus,
.site-header__panel a.is-active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header__item-title {
  display: block;
  font: 500 0.875rem / 1 Manrope, sans-serif;
  color: hsl(var(--primary));
}

.site-header__item-desc {
  display: block;
  margin-top: 0.25rem;
  font: 400 0.875rem / 1.375 Manrope, sans-serif;
  color: hsl(var(--zs-gray-300));
}

.site-header__btn {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font: 700 0.875rem / 1.25rem Manrope, sans-serif;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header__btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 0;
}

.site-header__btn--primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.site-header__btn--outline {
  background: hsl(var(--background));
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
}

.site-header__btn--outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header__btn:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.site-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-header__burger:hover,
.site-header__burger:focus-visible {
  background: transparent;
  outline: none;
}

@media (min-width: 768px) {
  .site-header__burger,
  .site-header__sheet-head,
  .site-header__overlay,
  .site-header__mobile-cta {
    display: none;
  }
}

.site-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.8);
}

.site-header__overlay[hidden] {
  display: none;
}

.site-header__sheet-head {
  display: none;
}

.site-header__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0.125rem;
  background: transparent;
  color: hsl(var(--primary));
  opacity: 0.7;
  cursor: pointer;
}

.site-header__close:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .site-header.is-open .site-header__overlay {
    display: block;
  }

  .site-header.is-open .site-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 75%;
    max-width: 24rem;
    padding: 1.5rem 0 0;
    background: hsl(var(--background));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    overflow: hidden;
  }

  .site-header__sheet-head {
    display: flex;
    align-items: center;
    margin: 0 0 1.5rem 1.5rem;
  }

  .site-header__sheet-head img {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  .site-header__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
    flex: 1 1 auto;
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
  }

  .site-header__links,
  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
  }

  .site-header__dd {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .site-header__actions {
    display: none;
  }

  .site-header__link {
    justify-content: flex-start;
    height: auto;
    width: auto;
    padding: 0;
    color: hsl(var(--primary));
    font: 700 1.25rem / 1.75rem Manrope, sans-serif;
  }

  .site-header__link:hover,
  .site-header__link:focus,
  .site-header__link.is-active,
  .site-header__dd.is-open .site-header__link--btn {
    background: transparent;
    color: hsl(var(--primary));
  }

  .site-header__group-label {
    display: block;
    margin-bottom: 1rem;
    color: hsl(var(--zs-gray-300));
    font: 400 0.875rem / 1.25rem Manrope, sans-serif;
  }

  .site-header__dd {
    width: 100%;
  }

  .site-header__link--btn {
    display: none;
  }

  .site-header__viewport,
  .site-header__viewport[hidden] {
    position: static;
    display: block;
  }

  .site-header__panel {
    width: auto;
    margin: 0.75rem 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    gap: 1rem;
  }

  .site-header__panel a {
    padding: 0;
  }

  .site-header__panel a:hover,
  .site-header__panel a:focus,
  .site-header__panel a.is-active {
    background: transparent;
  }

  .site-header__item-title {
    font: 700 1.25rem / 1.75rem Manrope, sans-serif;
  }

  .site-header__item-desc {
    margin-top: 0.25rem;
    font: 400 0.875rem / 1.25rem Manrope, sans-serif;
  }

  .site-header__mobile-cta {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1 1 auto;
    margin: 1.5rem 0 2rem;
  }

  .site-header__mobile-cta .site-header__btn {
    height: 3rem;
    padding: 0 1.75rem;
  }
}

@media (min-width: 768px) {
  .site-header__group-label {
    display: none;
  }
}
