/* Keep the brand and account framing the central section navigation. */
.cl-landing-header {
  position: sticky;
  top: 0;
  z-index: 15;
  padding-inline: var(--lab-gutter);
  background: #17181aeb;
  backdrop-filter: blur(18px);
}
.landing-nav.cl-landing-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 18px;
  width: min(1512px,100%);
  height: 77px;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.cl-landing-brand { display: flex; justify-self: start; align-items: center; }
.cl-landing-brand .logo { font-size: 24px; line-height: 1; text-decoration: none; }
.cl-landing-nav :focus-visible { outline: 2px solid var(--graphite-accent); outline-offset: 3px; }
.cl-landing-links {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--graphite-hairline);
  border-radius: 999px;
  background: var(--graphite-stage);
}
.cl-landing-links a, .cl-landing-login {
  color: var(--graphite-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  transition: background-color .18s, color .18s;
}
.cl-landing-links a { padding: 8px 13px; border-radius: 999px; }
.cl-landing-links a:hover, .cl-landing-links a:focus-visible { color: var(--graphite-ink); background: #ffffff10; }
.cl-landing-links a[aria-current=location], .cl-landing-menu-links a[aria-current=location] { color: var(--graphite-ink); }
.cl-landing-link-indicator {
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 0;
  width: var(--indicator-width,0);
  border-radius: 999px;
  opacity: 0;
  background: #ffffff16;
  transform: translateX(var(--indicator-x,0));
  pointer-events: none;
  transition: width .34s var(--graphite-ease), transform .34s var(--graphite-ease), opacity .2s;
}
.cl-landing-link-indicator.is-visible { opacity: 1; }
.cl-landing-progress { position: absolute; inset: auto 0 0; height: 1px; overflow: hidden; pointer-events: none; }
.cl-landing-progress::before {
  content: '';
  display: block;
  height: 100%;
  background: #a7adb3;
  transform: scaleX(var(--reading-progress,0));
  transform-origin: left center;
}
.cl-landing-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.cl-landing-language { display: flex; align-items: center; gap: 5px; height: 37px; color: var(--graphite-muted); }
.cl-landing-language svg { width: 15px; height: 15px; flex: none; }
.cl-landing-language select {
  width: 49px;
  padding: 4px 13px 4px 0;
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  color: var(--graphite-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cl-landing-language select option { background: var(--graphite-panel); color: var(--graphite-ink); }
.cl-landing-login { padding-block: 9px; }
.cl-landing-login:hover { color: var(--graphite-ink); }
.cl-landing-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  max-width: 190px;
  padding: 0 12px;
  border: 1px solid var(--graphite-hairline);
  border-radius: 999px;
  background: var(--graphite-stage);
  color: var(--graphite-ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.cl-landing-account:hover, .cl-landing-account:focus-visible { background: var(--graphite-raised); border-color: #ffffff3d; }
.cl-landing-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-landing-account .icon { width: 14px; height: 14px; flex: none; color: var(--graphite-muted); }
.cl-landing-cta, .cl-landing-menu-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--graphite-accent);
  color: var(--graphite-bg);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
  transition: transform .18s, background-color .18s;
}
.cl-landing-cta:hover, .cl-landing-menu-actions button:hover { background: #fff; transform: translateY(-1px); }
.cl-landing-cta .icon, .cl-landing-menu-actions .icon { width: 14px; height: 14px; }
.cl-landing-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid var(--graphite-hairline);
  border-radius: 50%;
  color: var(--graphite-ink);
  background: var(--graphite-stage);
}
.cl-landing-menu-toggle span { display: block; width: 15px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.is-menu-open .cl-landing-menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.is-menu-open .cl-landing-menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.cl-landing-menu[hidden] { display: none; }
.cl-landing-menu {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  padding: 8px;
  border: 1px solid var(--graphite-line);
  border-radius: 14px;
  background: var(--graphite-stage);
  box-shadow: 0 14px 36px #0006;
}
.cl-landing-menu-links { display: grid; gap: 2px; }
.cl-landing-menu-links a, .cl-landing-menu-actions a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--graphite-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.cl-landing-menu-links a:hover, .cl-landing-menu-actions a:hover, .cl-landing-menu-links a[aria-current=location] { background: #ffffff12; }
.cl-landing-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--graphite-hairline);
}
.cl-landing-menu-actions button { width: 100%; min-height: 42px; }
.cl-landing-menu-actions a:only-child { grid-column: 1 / -1; background: var(--graphite-panel); }
.cl-nav-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.landing #features, .landing #how, .landing #pricing { scroll-margin-top: 91px; }

@media (max-width: 1000px) {
  .landing-nav.cl-landing-nav { grid-template-columns: minmax(0,1fr) auto auto; }
  .cl-landing-actions { gap: 8px; }
  .cl-landing-links a { padding-inline: 9px; }
}
@media (max-width: 780px) {
  .landing-nav.cl-landing-nav { grid-template-columns: minmax(0,1fr) auto; gap: 10px; height: 63px; }
  .cl-landing-brand .logo { font-size: 21px; }
  .cl-landing-links, .cl-landing-login, .cl-landing-cta { display: none; }
  .cl-landing-menu-toggle { display: flex; }
  .cl-landing-account { max-width: clamp(72px,24vw,140px); padding-inline: 9px; }
  .cl-landing-account .icon { display: none; }
  .landing #features, .landing #how, .landing #pricing { scroll-margin-top: 76px; }
}
@media (max-width: 360px) {
  .cl-landing-language svg { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .cl-landing-menu:not([hidden]) { animation: cl-menu-enter .24s var(--graphite-ease) both; }
}
@keyframes cl-menu-enter {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: none; }
}
