:root {
  --cust-header-height: 72px;
}

html:has([data-shared-header]) {
  scroll-padding-top: calc(var(--cust-header-height) + 20px);
}

body[data-world] .skip-link {
  z-index: 1001;
}

.cust-header,
.cust-footer {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  color: #242822;
  background: #fff;
}

.cust-header *,
.cust-footer * {
  box-sizing: border-box;
}

.cust-header a,
.cust-footer a {
  color: inherit;
  text-decoration: none;
}

.cust-header a:focus-visible,
.cust-header summary:focus-visible,
.cust-menu-toggle:focus-visible,
.cust-footer a:focus-visible {
  outline: 2px solid #fd7e14;
  outline-offset: 5px;
}

.cust-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

.cust-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  max-width: 1200px;
  min-height: var(--cust-header-height);
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border-radius: 0;
  transform: translateY(0);
  pointer-events: auto;
  transition: width 350ms cubic-bezier(.4, 0, .2, 1),
              max-width 350ms cubic-bezier(.4, 0, .2, 1),
              transform 350ms cubic-bezier(.4, 0, .2, 1),
              background-color 350ms cubic-bezier(.4, 0, .2, 1),
              border-radius 350ms cubic-bezier(.4, 0, .2, 1),
              box-shadow 350ms cubic-bezier(.4, 0, .2, 1);
}

/* Match production: steady content alignment as the surrounding surface floats. */
.cust-header.is-scrolled .cust-header-inner {
  width: calc(100% - 32px);
  max-width: 1200px;
  transform: translateY(12px);
  background: rgb(255 255 255 / 97%);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgb(0 0 0 / 8%), 0 1px 4px rgb(0 0 0 / 4%);
}

.cust-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 4px;
}

.cust-logo img {
  display: block;
  width: auto;
  max-width: none;
  height: 24px;
}

.cust-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.3vw, 32px);
  margin: 0;
  padding: 0;
}

.cust-nav-link,
.cust-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #42473f;
  font: inherit;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}

.cust-nav-link:hover,
.cust-login:hover {
  color: #11150f;
}

.cust-nav-link.is-active,
.cust-nav-link[aria-current="page"] {
  color: #1e251b;
  font-weight: 650;
}

.cust-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 5px 6px;
  border-radius: 999px;
  background: #c85200;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}

.cust-footer .cust-new-badge {
  padding-inline: 3.5px;
}

.cust-footer .cust-footer-teammates {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cust-nav-link.is-active::after,
.cust-nav-link[aria-current="page"]::after {
  content: none;
}

.cust-platform {
  position: relative;
  margin: 0;
  padding: 0;
}

.cust-platform > summary {
  list-style: none;
}

.cust-platform > summary::-webkit-details-marker {
  display: none;
}

.cust-platform > summary svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.cust-platform[open] > summary svg {
  transform: rotate(180deg);
}

.cust-platform-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  z-index: 1;
  min-width: 186px;
  padding: 8px;
  border: 1px solid #e8eae4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px #26302012, 0 3px 8px #26302005;
}

.cust-platform-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #4e5549;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.cust-platform-menu a:hover,
.cust-platform-menu a[aria-current="page"] {
  color: #242b20;
  background: #f4f6f0;
}

.cust-platform-menu a[aria-current="page"] {
  font-weight: 600;
}

.cust-nav-account {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 0;
  padding-left: 24px;
  position: relative;
}

.cust-nav-account::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: #e5e7eb;
}

.cust-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  background: #fd7e14;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  transition: background 160ms ease;
}

.cust-contact[data-demo-open] {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
}

.cust-contact:hover {
  background: #ea6a0e;
}

.cust-contact svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.cust-menu-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cust-menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease;
}

.cust-header.is-open .cust-menu-toggle span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.cust-header.is-open .cust-menu-toggle span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

body[data-world] .industry-hero {
  --hero-header-height: var(--cust-header-height);
}

.cust-footer {
  background: #000;
  color: #fff;
  border-top: 0;
  margin-top: 0;
  padding: 64px 24px 32px;
}

.cust-footer-inner {
  width: min(100%, 1152px);
  margin: 0 auto;
}

.cust-footer-brand {
  margin: 0 0 44px;
}

.cust-footer-brand img {
  display: block;
  width: 119px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.cust-footer-brand p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #9ca3af;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.cust-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px;
}

.cust-footer-col h2 {
  margin: 0 0 15px;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cust-footer-col a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.cust-footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #6b7280;
  text-underline-offset: 4px;
}

.cust-footer-col a img {
  filter: brightness(0) invert(.65);
}

.cust-footer-col a:hover img {
  filter: brightness(0) invert(1);
}

.cust-footer-bottom {
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .cust-header-inner {
    gap: 24px;
    padding-inline: 24px;
  }

  .cust-nav {
    gap: 20px;
  }

  .cust-nav-account {
    gap: 20px;
    margin-left: 0;
    padding-left: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --cust-header-height: 72px;
  }

  .cust-header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-inline: 24px;
  }

  .cust-logo {
    min-height: var(--cust-header-height);
  }

  .cust-logo img {
    width: auto;
    height: 24px;
  }

  .cust-nav {
    flex: 0 0 100%;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 0 24px;
  }

  .cust-nav-link,
  .cust-login {
    min-height: 46px;
    padding: 10px 0;
    font-size: 18px;
  }

  .cust-platform > summary {
    justify-content: space-between;
    width: 100%;
  }

  .cust-platform-menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 12px;
    border: 0;
    border-radius: 12px;
    background: #f6f7f3;
    box-shadow: none;
  }

  .cust-platform-menu a {
    min-height: 44px;
    font-size: 15px;
  }

  .cust-nav-account {
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0 0;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid #e8eae4;
  }

  .cust-nav-account::before {
    display: none;
  }

  .cust-contact {
    min-height: 46px;
    padding-inline: 22px;
    font-size: 15px;
  }

  .cust-header.is-enhanced .cust-header-inner {
    flex-wrap: nowrap;
  }

  .cust-header.is-enhanced .cust-menu-toggle {
    display: flex;
  }

  .cust-header.is-enhanced .cust-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--cust-header-height));
    max-height: calc(100dvh - var(--cust-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 24px max(26px, env(safe-area-inset-bottom));
    border-bottom: 1px solid #e8eae4;
    background: #fff;
    box-shadow: 0 20px 28px #2630200a;
  }

  .cust-header.is-enhanced.is-open .cust-nav {
    display: flex;
  }

  /* The mobile drawer belongs to the full-width header, not the floating pill. */
  .cust-header.is-open .cust-header-inner {
    width: 100%;
    max-width: 1200px;
    transform: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }

  .cust-footer {
    padding: 48px 24px 24px;
  }

  .cust-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 28px;
  }

  .cust-footer-brand {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cust-header-inner,
  .cust-header a,
  .cust-footer a,
  .cust-header summary svg,
  .cust-menu-toggle span {
    transition: none;
  }
}
