/* Shared launch header and footer. Scoped so older page styles keep their own layout. */

.gs-header,
.gs-footer {
  --gs-ink: #17151d;
  --gs-muted: #7c7784;
  --gs-line: #e8e4de;
  --gs-purple: #24104f;
  --gs-orange: #f66327;
  --gs-orange-text: #cc4127;
  --gs-font: "Inter", Arial, sans-serif;
  color: var(--gs-ink);
  font-family: var(--gs-font);
}

.gs-wrap {
  width: min(1060px, calc(100% - 56px));
  margin: 0 auto;
}

.gs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  border-bottom: 1px solid rgba(232, 228, 222, 0.72);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(10px);
}

.gs-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
}

.gs-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #17151d;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.gs-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gs-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.gs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #55505d;
  font-size: 14px;
  font-weight: 600;
}

.gs-nav a,
.gs-menu a {
  color: inherit;
  text-decoration: none;
}

.gs-nav a[aria-current="page"],
.gs-menu a[aria-current="page"] {
  color: var(--gs-ink);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--gs-orange-text);
}

.gs-header-cta,
.gs-menu-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(36, 16, 79, 0.28);
  background: #fff;
  color: var(--gs-purple);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gs-menu-toggle,
.gs-menu {
  display: none;
}

.gs-menu-toggle {
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gs-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gs-purple);
}

.gs-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gs-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.gs-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.gs-header a:focus-visible,
.gs-footer a:focus-visible,
.gs-menu-toggle:focus-visible {
  outline: 2px solid var(--gs-purple);
  outline-offset: 3px;
}

.gs-footer a:focus-visible {
  outline-color: #fff;
}

.gs-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--gs-purple);
  color: #fff;
}

.gs-footer-watermark {
  position: absolute;
  z-index: 0;
  right: -0.04em;
  bottom: -0.34em;
  color: rgba(255, 255, 255, 0.075);
  font-size: clamp(44px, 11vw, 132px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.72;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.gs-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.gs-footer .gs-brand {
  color: #fff;
  letter-spacing: -0.03em;
}

.gs-footer .gs-footer-copy,
.gs-footer .gs-footer-promise p {
  max-width: 245px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.48;
}

.gs-footer .gs-footer-copy {
  max-width: 280px;
}

.gs-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.gs-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.82);
}

.gs-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.gs-socials a:hover,
.gs-socials a:focus-visible {
  border-color: var(--gs-orange);
  color: var(--gs-orange);
}

.gs-footer-nav .gs-footer-chat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.gs-footer-nav .gs-footer-chat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.gs-footer-nav .gs-footer-chat svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.gs-footer-nav .gs-footer-chat:hover,
.gs-footer-nav .gs-footer-chat:focus-visible {
  color: #fff;
}

.gs-footer-nav .gs-footer-chat:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gs-footer-nav .gs-footer-chat-status {
  max-width: 16rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.gs-footer-nav .gs-footer-chat-status[hidden] {
  display: none;
}

.gs-footer-nav .gs-footer-chat-status a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gs-footer-nav .gs-footer-chat-status a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#hubspot-messages-iframe-container {
  display: none !important;
}

body.gs-chat-open #hubspot-messages-iframe-container {
  display: block !important;
}

.gs-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 0 32px;
  color: rgba(255, 255, 255, 0.78);
}

.gs-footer-nav div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.gs-footer-label {
  display: block;
  margin-bottom: 4px;
  color: var(--gs-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gs-footer-nav a {
  color: inherit;
  text-decoration: none;
}

.gs-footer-nav a:hover,
.gs-footer-nav a:focus-visible {
  color: #fff;
}

.gs-footer-promise {
  justify-self: end;
  max-width: 360px;
  text-align: left;
}

.gs-footer-promise strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  text-wrap: balance;
}

.gs-footer .gs-footer-promise p {
  max-width: 360px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.gs-footer .gs-copyright {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 28px;
  width: min(1060px, calc(100% - 56px));
  margin: 48px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.gs-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.gs-lang img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

.gs-lang:hover,
.gs-lang:focus-visible {
  color: #fff;
}

.gs-lang:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gs-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 22px;
  max-width: 100%;
}

.gs-legal a,
.gs-legal .gs-cookie-preferences {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
}

.gs-legal > :not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 10.5px);
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
  pointer-events: none;
}

.gs-legal .gs-cookie-preferences {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gs-legal .gs-cookie-preferences::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.gs-legal a:hover,
.gs-legal a:focus-visible,
.gs-legal .gs-cookie-preferences:hover,
.gs-legal .gs-cookie-preferences:focus-visible {
  color: #fff;
}

.gs-legal .gs-cookie-preferences:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.gs-menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gs-header-inner {
    display: flex;
    justify-content: space-between;
  }

  .gs-nav,
  .gs-header-cta {
    display: none;
  }

  .gs-menu-toggle {
    display: flex;
  }

  .gs-menu:not([hidden]) {
    display: block;
    border-top: 1px solid rgba(232, 228, 222, 0.9);
    background: #fbfaf7;
  }

  .gs-menu nav {
    display: grid;
    gap: 4px;
    padding: 12px 0 22px;
  }

  .gs-menu a {
    justify-self: start;
    width: fit-content;
    padding: 12px 2px;
    color: #17151d;
    font-size: 16px;
    font-weight: 700;
  }

  .gs-menu-cta {
    justify-self: start;
    margin-top: 8px;
  }

  .gs-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
  }

  .gs-footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gs-footer .gs-brand {
    min-height: 44px;
  }

  .gs-footer .gs-footer-copy,
  .gs-footer .gs-footer-promise p {
    margin-right: auto;
    margin-left: auto;
  }

  .gs-socials {
    justify-content: center;
  }

  .gs-socials a {
    width: 44px;
    height: 44px;
  }

  .gs-footer-nav {
    width: min(100%, 340px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    justify-self: center;
  }

  .gs-footer-nav div {
    justify-items: start;
    gap: 0;
    text-align: left;
  }

  .gs-footer-nav a,
  .gs-footer-nav .gs-footer-chat {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .gs-footer-promise {
    justify-self: center;
    max-width: 320px;
    text-align: center;
  }

  .gs-footer .gs-copyright {
    align-items: center;
    text-align: center;
  }

  .gs-legal {
    justify-content: center;
    width: 100%;
  }

  .gs-legal a,
  .gs-legal .gs-cookie-preferences {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .gs-lang {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .gs-wrap,
  .gs-footer .gs-copyright {
    width: min(1060px, calc(100% - 32px));
  }
}

@media (min-width: 1100px) {
  .gs-footer .gs-copyright {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    row-gap: 8px;
  }

  .gs-footer .gs-copyright > span:first-child {
    justify-self: start;
  }

  .gs-legal {
    justify-self: center;
    justify-content: center;
  }

  .gs-lang {
    justify-self: end;
  }
}

@media (max-width: 1099px) {
  .gs-legal > :not(:last-child)::after {
    content: none;
  }
}

@media (max-width: 700px) {
  .gs-footer {
    padding-bottom: 54px;
  }

  .gs-footer-watermark {
    bottom: -0.18em;
  }
}

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