/* Product navigation ported from origin/holon-launch-paul. */
:root {
  --launch-nav-height: 68px;
  --launch-content-gutter: max(32px, calc((100vw - 1240px) / 2));
}

html { scroll-padding-top: calc(var(--launch-nav-height) + 24px); }

.launch-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--launch-nav-height);
  padding: 0 var(--launch-content-gutter);
  display: flex;
  align-items: center;
  background: #faf9fc;
  border-bottom: 1px solid #dcdde8;
}

.launch-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--launch-nav-height);
  gap: 26px;
}

.launch-nav a { color: #10102e; text-decoration: none; }
.launch-nav .brand { display: flex; align-items: center; flex-shrink: 0; }
.launch-nav .brand img { display: block; width: 130px; height: auto; max-width: none; filter: none; }
.nav-product { padding-left: 20px; border-left: 1px solid #dcdde8; font-size: 15px; line-height: 1.4; white-space: nowrap; }
.chapter-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.chapter-links .nav-product-mobile { display: none; }
.chapter-links a { position: relative; padding: 12px 0; font-size: 15px; line-height: 1.4; white-space: nowrap; }
.chapter-links a[aria-current] { color: #343cbc; }
.chapter-links a[aria-current]::after { content: ''; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: #343cbc; }

.nav-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid #10102e;
  border-radius: 999px;
  background: #10102e;
  color: #fff !important;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav-access:hover { background: #252d58; transform: translateY(-2px); }
.applications-toggle { display: none; }

@media (max-width: 1160px) {
  .launch-nav-inner { gap: 20px; }
  .launch-nav .brand img { width: 115px; }
  .chapter-links { gap: 15px; }
}

@media (max-width: 1020px) {
  .chapter-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 15px var(--launch-content-gutter) 25px;
    border-bottom: 1px solid #dcdde8;
    background: #faf9fc;
    box-shadow: 0 12px 25px #12132e0a;
  }
  .chapter-links.is-open { display: grid; grid-template-columns: 1fr; gap: 8px 25px; }
  .chapter-links a { min-height: 44px; font-size: 15px; white-space: normal; }
  .applications-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    background: none;
    color: #10102e;
    font-size: 14px;
  }
  .applications-toggle span { font-size: 22px; }
}

@media (max-width: 760px) {
  /* A slimmer sticky bar leaves phones more room; controls keep 44 px targets. */
  :root { --launch-content-gutter: 22px; --launch-nav-height: 58px; }
  .nav-product { display: none; }
  .chapter-links .nav-product-mobile { display: block; color: #666980; font-size: 14px; }
  .launch-nav-inner { gap: 12px; }
  .launch-nav .brand img { width: 100px; }
  .nav-access { gap: 10px; padding: 10px 14px; }
  .applications-toggle { gap: 6px; padding-inline: 4px; }
}

@media (max-width: 380px) {
  .launch-nav .brand img { width: 82px; }
  .launch-nav-inner { gap: 4px; }
  .applications-toggle { gap: 4px; padding-inline: 2px; }
  .nav-access { gap: 6px; padding-inline: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-access { transition: none; }
}
