html { scroll-padding-top: 88px; }
/* Shared marketing header and footer. Names stay separate from page styles. */
.nsc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 24px;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
  color: #000;
  font-family: Poppins, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ai-lab .nsc-header, .rpm .nsc-header {
  margin-inline: calc(-1 * var(--gutter-l));
  padding-inline: var(--gutter-l) var(--gutter-r);
}
.nsc-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: rgba(0, 0, 0, .06);
  box-shadow: 0 8px 24px rgba(12, 18, 29, .06);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nsc-header.is-scrolled {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
.nsc-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--frame, 1392px);
  margin: auto;
}
.nsc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nsc-brand img { display: block; flex: none; height: 32px; width: auto; }
.nsc-nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.nsc-nav a { font-size: 16px; line-height: 24px; font-weight: 400; text-decoration: none; color: #000; }
.nsc-nav a:hover, .nsc-nav a[aria-current] { color: #009f61; }
.nsc-actions { display: flex; gap: 8px; align-items: center; }
.nsc-action, .nsc-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 40px;
  min-height: 48px;
  padding: 12px 24px;
  font: 600 16px/24px Poppins, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nsc-action svg, .nsc-menu-toggle img { display: block; flex: none; width: 24px; height: 24px; }
.nsc-demo { background: #009f61; color: #fff; }
.nsc-demo:hover { background: #008c55; }
.nsc-login, .nsc-menu-toggle { background: #eaebed; color: #000; }
.nsc-login { padding-inline: 32px; }
.nsc-login:hover, .nsc-menu-toggle:hover { background: #dfe0e3; }
.nsc-menu-toggle { display: none; }
.nsc-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: var(--frame, 1392px);
  margin: 0 auto;
  padding: 24px 0 40px;
  color: #050506;
  font-size: 16px;
  line-height: 24px;
}
.nsc-footer .nsc-brand { gap: 8px; justify-self: start; }
.nsc-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.nsc-footer nav a { color: #555d66; text-decoration: underline; text-underline-offset: 3px; }
.nsc-footer nav a:hover { color: #009f61; }
.nsc-copyright { margin: 0; justify-self: end; }
.nsc-foot-note { grid-column: 1 / -1; text-align: center; color: #555d66; font-size: 12px; line-height: 16px; margin: 0; }
.nsc-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: #fff; color: #050506; }
.nsc-skip:focus { top: 8px; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid #00663e; outline-offset: 4px; }
.nsc-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(380px, calc(100vw - 40px));
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
  font-family: Poppins, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-shadow: -24px 0 48px rgba(12, 18, 29, .14);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.nsc-drawer.is-open { transform: none; }
.nsc-drawer::backdrop { background: rgba(5, 5, 6, 0); transition: background .32s ease; }
.nsc-drawer.is-open::backdrop { background: rgba(5, 5, 6, .45); }
.nsc-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: max(8px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(24px, env(safe-area-inset-bottom, 0px)) 24px;
  overflow-y: auto;
}
.nsc-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nsc-drawer-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #eaebed;
  color: #000;
  cursor: pointer;
}
.nsc-drawer-close:hover { background: #dfe0e3; }
.nsc-drawer-nav { display: grid; margin-top: 24px; font: 600 20px/28px Poppins, "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
.nsc-drawer-nav a { padding: 16px 0; border-bottom: 1px solid #eaebed; color: #000; text-decoration: none; }
.nsc-drawer-nav a:hover, .nsc-drawer-nav a[aria-current] { color: #009f61; }
.nsc-drawer-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 32px; }
.nsc-drawer .nsc-action { width: 100%; min-height: 48px; padding: 12px 24px; border-radius: 24px; font-size: 16px; line-height: 24px; }
@media (max-width: 1259px) {
  .nsc-header-inner { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .nsc-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; flex-wrap: wrap; }
  .nsc-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; padding: 12px 0; }
  .nsc-header[data-menu-ready] .nsc-actions { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
  .nsc-header[data-menu-ready] .nsc-nav { display: none; }
  .nsc-header[data-menu-ready] .nsc-menu-toggle { display: inline-flex; width: 48px; padding: 12px; }
}
@media (max-width: 900px) {
  .nsc-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nsc-footer .nsc-brand, .nsc-copyright { justify-self: center; }
}
@media (max-width: 600px) {
  .nsc-header { padding-inline: 16px; }
  .nsc-header-inner { gap: 8px; }
  .nsc-header .nsc-action { padding: 10px 12px; font-size: 14px; min-height: 44px; }
  .nsc-header[data-menu-ready] .nsc-actions > a { display: none; }
  .nsc-nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .nsc-nav > a { padding: 10px 12px; border-radius: 12px; }
  .nsc-nav > a[aria-current] { background: #e6f5ef; }
}
@media (max-width: 480px) {
  .nsc-header .nsc-brand, .nsc-drawer .nsc-brand { gap: 8px; }
  .nsc-header .nsc-brand img:first-child, .nsc-drawer .nsc-brand img:first-child { height: 28px; }
  .nsc-header .nsc-brand img:last-child, .nsc-drawer .nsc-brand img:last-child { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .nsc-drawer, .nsc-drawer::backdrop { transition: none; }
}
