/* Launch navigation
   Mirrors the Studio homepage header across every supporting page. */

.nav,
.pp-nav {
  height: var(--launch-nav-height);
  border-bottom: 1px solid rgba(24, 24, 27, 0.09);
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav-inner,
.pp-nav-inner,
.site-nav-inner {
  width: 100%;
  max-width: var(--launch-nav-outer);
  box-sizing: border-box;
  height: var(--launch-nav-height);
  margin: 0 auto;
  padding-inline: var(--launch-nav-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.pp-logo {
  min-width: 0;
  min-height: 0;
}

.nav-logo-mark,
.pp-logo svg {
  width: 34px;
  height: 39px;
}

.nav-logo-text { display: none; }

.nav-links,
.pp-nav-links,
.site-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--launch-nav-link-gap);
}

.launch-nav-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--launch-nav-action-gap);
}

.studio-head-links { gap: var(--launch-nav-link-gap); }
.studio-head-links .launch-nav-actions { gap: var(--launch-nav-action-gap); }
.site-nav-logo svg { width: 34px; height: 39px; }

.nav-link,
.pp-nav-links > a:not(.pp-nav-cta),
.pp-nav-links .launch-nav-login,
.launch-integrations-nav > a {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(24, 24, 27, 0.62);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.active,
.pp-nav-links > a:not(.pp-nav-cta):hover,
.pp-nav-links > a.active:not(.pp-nav-cta),
.pp-nav-links .launch-nav-login:hover,
.launch-integrations-nav > a:hover,
.launch-integrations-nav > a.active {
  color: #18181b;
}

.launch-platform-nav { position: relative; }
.launch-platform-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(24, 24, 27, 0.62);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.launch-platform-nav summary::-webkit-details-marker { display: none; }
.launch-platform-nav summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}
.launch-platform-nav[open] summary::after { transform: translateY(1px) rotate(225deg); }
.launch-platform-nav.active summary,
.launch-platform-nav summary:hover { color: #18181b; }
.launch-platform-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 16px);
  left: -16px;
  width: 252px;
  padding: 8px;
  border: 1px solid rgba(24,24,27,.09);
  border-radius: 5px;
  background: #fdfdfd;
  box-shadow: 0 24px 60px -36px rgba(24,24,27,.38);
}
.launch-platform-panel a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  color: rgba(24,24,27,.66);
  font-size: 13px;
  text-decoration: none;
}
.launch-platform-panel a:hover { background: #f6f6f7; color: #18181b; }

.launch-integrations-nav { position: relative; }
.launch-integrations-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.launch-integrations-nav > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.launch-integrations-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 16px);
  left: -16px;
  width: 228px;
  padding: 8px;
  border: 1px solid rgba(24,24,27,.09);
  border-radius: 5px;
  background: #fdfdfd;
  box-shadow: 0 24px 60px -36px rgba(24,24,27,.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 160ms ease, visibility 0ms linear 160ms;
}
.launch-integrations-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.launch-integrations-nav:hover .launch-integrations-panel,
.launch-integrations-nav:focus-within .launch-integrations-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0ms;
}
.launch-integrations-panel a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  color: rgba(24,24,27,.66);
  font-size: 13px;
  text-decoration: none;
}
.launch-integrations-panel a:hover,
.launch-integrations-panel a:focus-visible { background: #f6f6f7; color: #18181b; }

/* Integration detail pages are intentionally hidden while the directory owns discovery. */
.launch-integrations-panel { display: none !important; }
.launch-integrations-nav > a::after { content: none !important; }

.nav-right {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav-right .btn-ghost,
body.brand-page .nav-right .btn-ghost {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(24, 24, 27, 0.62);
  font-size: 14px;
  font-weight: 500;
}

.nav-right .btn-primary,
body.brand-page .nav-right .btn-primary,
.pp-nav-links > .pp-nav-cta,
.pp-nav-links .launch-nav-actions > .pp-nav-cta,
.site-nav-links .launch-nav-actions > .btn {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #18181b;
  border-radius: 5px;
  background: #18181b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

body.brand-page { padding-top: 60px; }

.launch-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(24,24,27,.10);
  border-radius: 5px;
  background: transparent;
  color: #18181b;
  cursor: pointer;
}
.launch-menu-toggle span {
  grid-column: 1;
  grid-row: 1;
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease;
}
.launch-menu-toggle span:first-child { transform: translateY(-3px); }
.launch-menu-toggle span:last-child { transform: translateY(3px); }
.launch-menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.launch-menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* The Studio hero navigation sits on video. Injected launch controls need
   the same light-on-dark voice as the links they replace. */
.studio-head-links .launch-platform-nav summary,
.studio-head-links .launch-integrations-nav > a {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
.studio-head-links .launch-platform-nav[open] summary,
.studio-head-links .launch-platform-nav summary:hover,
.studio-head-links .launch-platform-nav summary:focus-visible,
.studio-head-links .launch-integrations-nav > a:hover,
.studio-head-links .launch-integrations-nav > a:focus-visible,
.studio-head-links .launch-integrations-nav.active > a { color: #fff; }
.studio-head-links .launch-platform-panel a,
.studio-head-links .launch-integrations-panel a { color: rgba(24,24,27,.72); }
.studio-head-links .launch-platform-panel a:hover,
.studio-head-links .launch-platform-panel a:focus-visible,
.studio-head-links .launch-integrations-panel a:hover,
.studio-head-links .launch-integrations-panel a:focus-visible { color: #18181b; }
.studio-head-links .launch-menu-toggle {
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.launch-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  justify-items: end;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: rgba(24,24,27,.18);
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.launch-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.launch-menu:not(.is-open),
.launch-menu:not(.is-open) * { pointer-events: none; }
.launch-menu-panel {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(420px, calc(100vw - 16px));
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(24,24,27,.09);
  border-radius: 5px;
  background: #fdfdfd;
  box-shadow: 0 24px 70px -34px rgba(24,24,27,.42);
  transform: translateX(8px);
  transition: transform 220ms cubic-bezier(.22,1,.36,1);
}
.launch-menu.is-open .launch-menu-panel { transform: translateX(0); }
.launch-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(24,24,27,.09); color: rgba(24,24,27,.55); font-size: 12px; }
.launch-menu-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #18181b; font: inherit; cursor: pointer; }
.launch-menu-links {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.launch-menu-links a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24,24,27,.07); color: #18181b; font-size: 22px; font-weight: 400; letter-spacing: -.025em; text-decoration: none; }
.launch-menu-links a::after { content: "→"; color: rgba(24,24,27,.38); font-size: 16px; }
.launch-menu-links .launch-platform-nav { border-bottom: 1px solid rgba(24,24,27,.07); }
.launch-menu-links .launch-platform-nav summary {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  color: #18181b;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.launch-menu-links .launch-platform-panel {
  position: static;
  width: auto;
  padding: 0 0 12px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.launch-menu-links .launch-platform-panel a {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(24,24,27,.62);
  font-size: 15px;
  letter-spacing: 0;
}
.launch-menu-links .launch-platform-panel a::after { content: none; }
.launch-menu-links .launch-integrations-nav { border-bottom: 1px solid rgba(24,24,27,.07); }
.launch-menu-links .launch-integrations-nav > a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  color: #18181b;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.launch-menu-links .launch-integrations-nav > a::after { content: "→"; width: auto; height: auto; border: 0; color: rgba(24,24,27,.38); font-size: 16px; transform: none; }
.launch-menu-links .launch-integrations-panel {
  display: none;
}
.launch-menu-links .launch-integrations-panel::before { content: none; }
.launch-menu-links .launch-integrations-panel a { min-height: 44px; padding: 0; border: 0; border-radius: 0; color: rgba(24,24,27,.62); font-size: 14px; letter-spacing: 0; }
.launch-menu-links .launch-integrations-panel a::after { content: none; }
.launch-menu-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.launch-menu-actions a { min-height: 48px; display: grid; place-items: center; border: 1px solid rgba(24,24,27,.12); border-radius: 5px; color: #18181b; font-size: 14px; font-weight: 500; text-decoration: none; }
.launch-menu-actions .launch-menu-primary { border-color: #18181b; background: #18181b; color: #fff; }
.launch-menu-open { overflow: hidden; }

.launch-footer {
  padding: 72px 0 32px;
  border-top: 1px solid rgba(24,24,27,.09);
  background: #fdfdfd;
  color: #18181b;
  font-size: 16px;
  line-height: 1;
}
.launch-footer-inner {
  width: min(1200px, calc(100% - 96px));
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.launch-footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(128px, .7fr));
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}
.launch-footer-brand { max-width: 280px; }
.launch-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #18181b; text-decoration: none; }
.launch-footer-logo svg { width: 40px; height: 46px; display: block; }
.launch-footer-logo span { font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.launch-footer-brand p { margin: 18px 0 0; color: rgba(24,24,27,.62); font-size: 14px; line-height: 1.55; }
.studio-page .launch-footer-brand p { margin-top: 0; }
.launch-footer-column { display: flex; flex-direction: column; gap: 11px; }
.launch-footer-column strong { margin-bottom: 7px; color: rgba(24,24,27,.48); font-size: 12px; font-weight: 500; }
.launch-footer-column a { color: rgba(24,24,27,.66); font-size: 14px; line-height: 1.45; text-decoration: none; }
.launch-footer-column a:hover { color: #18181b; }
.launch-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid rgba(24,24,27,.09); color: rgba(24,24,27,.54); font-size: 12px; }
.launch-footer-bottom div { display: flex; gap: 16px; }
.launch-footer-bottom a { color: inherit; text-decoration: none; }

@media (max-width: 1100px) {
  .nav-links,
  .pp-nav-links,
  .site-nav-links,
  .studio-head-links { gap: 16px; }

  .nav-links,
  .pp-nav-links > a:not(.pp-nav-cta),
  .pp-nav-links .launch-nav-login,
  .site-nav-links .launch-nav-login,
  .studio-head-links .launch-nav-login { display: none; }

  .pp-nav-links .launch-platform-nav,
  .site-nav-links .launch-platform-nav,
  .studio-head-links .launch-platform-nav { display: none; }
  .pp-nav-links .launch-integrations-nav,
  .site-nav-links .launch-integrations-nav,
  .studio-head-links .launch-integrations-nav { display: none; }

  .launch-menu-toggle { display: grid; }

  .launch-footer-top { grid-template-columns: 1fr repeat(3, minmax(120px, .7fr)); gap: 32px; }
}

@media (max-width: 720px) {
  .nav-right { gap: 12px; }
  .nav-right .btn-ghost { display: none; }

  .nav-right .btn-primary,
  body.brand-page .nav-right .btn-primary,
  .pp-nav-links > .pp-nav-cta,
  .pp-nav-links .launch-nav-actions > .pp-nav-cta,
  .site-nav-links .launch-nav-actions > .btn {
    min-height: 44px;
    padding-inline: 12px;
  }

  .studio-head-links .launch-nav-actions > .btn { min-height: 44px; }

  .launch-footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-bottom: 48px; }
  .launch-footer-brand { grid-column: 1 / -1; }
  .launch-footer-column:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .launch-footer-column:last-child strong { grid-column: 1 / -1; }
  .launch-footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 720px) {
  .nav-inner,
  .pp-nav-inner,
  .site-nav-inner {
    padding-inline: 20px;
    gap: 12px;
  }

  .launch-footer { padding: 56px 0 28px; }
  .launch-footer-inner { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-menu,
  .launch-menu-panel,
  .launch-menu-toggle span { transition: none; }
}
