/* Authoritative public-site header and footer. Page-body systems load separately. */
:root {
  --shell-blue-950: #0e222f;
  --shell-blue-900: #143043;
  --shell-blue-800: #204964;
  --shell-blue-200: #c4dae8;
  --shell-text: #111;
  --shell-text-tertiary: #5d6e78;
  --shell-border: #c8d3da;
  --shell-divider: #dce4e8;
  --shell-surface: #fff;
  --shell-on-dark-heading: #fff;
  --shell-on-dark-text: #e6eff4;
  --shell-on-dark-accent: #c4dae8;
  --shell-gutter: 20px;
  --shell-header-height: 64px;
  --shell-frame-width: calc(100% - (2 * max(var(--shell-gutter), 8%)));
  --shell-radius-sm: 4px;
  --shell-radius-md: 8px;
  --shell-elevation-1: 0 1px 12px #0002;
  --shell-elevation-2: 0 8px 24px rgb(14 34 47 / 12%);
  --shell-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.site-header,
.site-footer {
  box-sizing: border-box;
  font-family: var(--shell-font);
  letter-spacing: normal;
}

.site-header *,
.site-header *::before,
.site-header *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  min-height: var(--shell-header-height);
  border-bottom: 1px solid var(--shell-divider);
  background: var(--shell-surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shell-elevation-1);
  font-size: 18px;
  line-height: 1.58;
}

.header-inner,
.site-footer .footer-grid,
.site-footer .footer-bottom {
  width: var(--shell-frame-width);
  max-width: none;
  margin-inline: auto;
}

/* Interior pages share the same standard frame and breadcrumb treatment as pricing. */
body[data-page-kind="interior"] main .container:not(.narrow),
body[data-page-kind="interior"] main .l-container--wide {
  width: var(--shell-frame-width);
  max-width: none;
  margin-inline: auto;
}

body[data-page-kind="interior"] {
  background: #f7f9fa;
  color: var(--shell-text);
  font-family: var(--shell-font);
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: normal;
}

body[data-page-kind="interior"] main > section:first-child {
  padding-top: 20px;
}

body[data-page-kind="interior"] main > section:first-child h1 {
  font-size: clamp(2.125rem, 1.75rem + 1.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

body[data-page-kind="interior"] main .breadcrumbs {
  display: block;
  margin: 0;
  color: var(--shell-text-tertiary);
  font: 600 0.8125rem/1.5 var(--shell-font);
  letter-spacing: normal;
}

body[data-page-kind="interior"] main .breadcrumbs + * {
  margin-top: 28px;
}

body[data-page-kind="interior"] main .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-kind="interior"] main .breadcrumbs li {
  margin: 0;
  padding: 0;
}

body[data-page-kind="interior"] main .breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--shell-text-tertiary);
}

body[data-page-kind="interior"] main .breadcrumbs a,
body[data-page-kind="interior"] main .breadcrumbs span {
  display: inline;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--shell-text-tertiary);
  font: inherit;
}

body[data-page-kind="interior"] main .breadcrumbs a {
  color: var(--shell-text);
  text-decoration-color: var(--shell-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body[data-page-kind="interior"] main .breadcrumbs a:hover,
body[data-page-kind="interior"] main .breadcrumbs a:focus-visible {
  color: var(--shell-blue-800);
  text-decoration-color: currentColor;
}

body[data-shared-chrome="v2"][data-page-kind="interior"] main h1,
body[data-shared-chrome="v2"][data-page-kind="interior"] main h2,
body[data-shared-chrome="v2"][data-page-kind="interior"] main h3 {
  color: var(--shell-text);
  font-family: var(--shell-font);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body[data-shared-chrome="v2"][data-page-kind="interior"] main h1 {
  font-size: clamp(2.125rem, 1.75rem + 1.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

body[data-shared-chrome="v2"][data-page-kind="interior"] main h2 {
  font-size: clamp(1.75rem, 1.55rem + 0.8vw, 2.375rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

body[data-shared-chrome="v2"][data-page-kind="interior"] main h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: normal;
}

body[data-page-kind="interior"] main .eyebrow,
body[data-page-kind="interior"] main .c-eyebrow,
body[data-shared-chrome="v2"][data-page-kind="interior"] main [class$="__eyebrow"] {
  display: block;
  margin-bottom: 12px;
  color: var(--shell-blue-800);
  font: 700 0.8125rem/1.35 var(--shell-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Dark surfaces opt into an explicit foreground palette so shared typography
   cannot accidentally reduce contrast when page-level heading rules change. */
body[data-page-kind] main [data-surface="dark"] {
  color: var(--shell-on-dark-text);
}

body[data-page-kind] main [data-surface="dark"] :is(h1, h2, h3, h4, h5, h6) {
  color: var(--shell-on-dark-heading);
}

body[data-page-kind] main [data-surface="dark"] :is(.eyebrow, .c-eyebrow, [class$="__eyebrow"], [class$="-kicker"]) {
  color: var(--shell-on-dark-accent);
}

.header-inner {
  position: relative;
  min-height: var(--shell-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--shell-blue-900);
  font-family: var(--shell-font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  background: transparent;
  color: var(--shell-blue-900);
}

.brand-logo {
  width: 42px;
  height: 38px;
}

.brand-text {
  display: none;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  white-space: normal;
}

.brand-text strong {
  font-weight: 700;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius-sm);
  background: var(--shell-surface);
  color: var(--shell-blue-900);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
}

.site-nav {
  position: absolute;
  inset: 100% 0 auto;
  width: auto;
  height: calc(100dvh - var(--shell-header-height));
  max-height: calc(100dvh - var(--shell-header-height));
  display: none;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px var(--shell-gutter) 32px;
  border: 0;
  border-bottom: 1px solid var(--shell-border);
  border-radius: 0;
  background: var(--shell-surface);
  box-shadow: var(--shell-elevation-2);
  color: var(--shell-text);
  font-family: var(--shell-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.58;
  margin-left: 0;
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.site-nav__primary,
.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav__primary > a,
.site-nav__actions > a,
.nav-dropdown-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--shell-radius-sm);
  background: transparent;
  color: var(--shell-text);
  font: 400 0.9375rem/1.2 var(--shell-font);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: stretch;
}

.nav-dropdown-trigger .nav-features-link {
  min-height: 48px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 12px 4px 12px 16px;
  border-radius: var(--shell-radius-sm) 0 0 var(--shell-radius-sm);
  background: transparent;
  color: var(--shell-text);
  font: 400 0.9375rem/1.2 var(--shell-font);
  text-decoration: none;
}

.nav-dropdown-toggle {
  width: 48px;
  flex: 0 0 48px;
  justify-content: flex-start;
  padding-inline: 4px 12px;
  border-radius: 0 var(--shell-radius-sm) var(--shell-radius-sm) 0;
  cursor: pointer;
}

.nav-label {
  display: grid;
}

.nav-label::before,
.nav-label > span {
  grid-area: 1 / 1;
}

.nav-label::before {
  content: attr(data-nav-label);
  visibility: hidden;
  font-weight: 700;
}

/* Keep legacy page styles from changing the shared Features trigger. */
body[data-shared-chrome="v2"] .nav-dropdown-toggle .nav-label,
body[data-shared-chrome="v2"] .nav-dropdown-toggle .nav-label > span {
  color: inherit;
  font: inherit;
}

body[data-shared-chrome="v2"] .nav-dropdown-toggle::after {
  display: none;
  content: none;
}

.nav-dropdown-caret,
.nav-dropdown-toggle .nav-dropdown-caret {
  display: block;
  margin: 0;
  color: currentColor;
  font-size: 0.74rem;
  line-height: 1;
}

.nav-dropdown::after,
.features-menu::before {
  display: none;
}

.features-menu {
  position: static;
  z-index: 30;
  display: none;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 12px 0 16px;
  border: 0;
  border-top: 1px solid var(--shell-divider);
  border-radius: 0;
  background: var(--shell-surface);
  box-shadow: none;
  transform: none;
}

.nav-dropdown.is-open .features-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.features-menu-group {
  display: grid;
  align-content: start;
  gap: 6px;
}

.features-menu-label {
  display: block;
  margin: 0;
  padding: 0 16px 10px;
  color: #3e5362;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.features-menu-label::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 8px;
  background: var(--shell-divider);
}

.features-menu .features-menu-label--link {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
  border-radius: 0;
  background: transparent;
  color: #555;
  font: 700 0.8125rem/1.2 var(--shell-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.features-menu .features-menu-label--link::after {
  display: none;
}

.features-menu .features-menu-label--link:hover,
.features-menu .features-menu-label--link:focus,
.features-menu .features-menu-label--link:focus-visible {
  background: transparent;
  color: var(--shell-blue-900);
  font-weight: 700;
}

.features-menu-group > :first-child {
  margin-bottom: 0;
}

.features-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--shell-radius-sm);
  background: transparent;
  color: #1a3646;
  font: 400 0.9375rem/1.4 var(--shell-font);
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.features-menu .nav-label {
  width: 100%;
  min-width: 0;
}

.features-menu .nav-label > span,
.features-menu .nav-label::before {
  overflow-wrap: anywhere;
}

.site-nav__primary > a[aria-current="page"],
.site-nav__actions > a[aria-current="page"],
.nav-features-link[aria-current="page"],
.features-menu a[aria-current="page"] {
  background: #e6eff4;
  color: var(--shell-blue-900);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-within,
.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown--current .nav-dropdown-trigger {
  border-radius: var(--shell-radius-sm);
  background: #edf4f9;
  color: #112a38;
}

.nav-dropdown-trigger:hover .nav-features-link,
.nav-dropdown-trigger:focus-within .nav-features-link,
.nav-dropdown.is-open .nav-features-link,
.nav-dropdown--current .nav-features-link,
.nav-dropdown-trigger:hover .nav-dropdown-toggle,
.nav-dropdown-trigger:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown--current .nav-dropdown-toggle {
  background: transparent;
  color: inherit;
}

.features-menu a:hover,
.features-menu a:focus,
.features-menu a:focus-visible,
.site-nav__primary > a:hover,
.site-nav__primary > a:focus,
.site-nav__actions > a:hover,
.site-nav__actions > a:focus,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  background: #edf4f9;
  color: #112a38;
}

.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  background: #edf4f9;
  color: #112a38;
}

.features-menu a:focus-visible,
.nav-features-link:focus-visible,
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid #8eb9d8;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .features-menu a {
    transition: none;
  }
}

.site-nav__actions > .nav-login {
  gap: 8px;
  margin-left: 0;
  color: var(--shell-text);
}

.nav-login__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav__actions > a.nav-cta {
  min-height: 48px;
  justify-content: center;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--shell-radius-sm);
  background: var(--shell-blue-800);
  color: #fff;
  font-weight: 700;
  transform: none;
}

.site-nav__actions > a.nav-cta:hover,
.site-nav__actions > a.nav-cta:focus {
  background: #2d6386;
  color: #fff;
  transform: none;
}

body.menu-open #main,
body.menu-open .site-footer {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.site-footer {
  margin: 0;
  padding: 64px 0 0;
  border: 0;
  border-top: 1px solid var(--shell-divider);
  background: var(--shell-blue-950);
  color: #fff;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 24px;
  padding: 0;
}

.footer-intro {
  max-width: 320px;
  grid-row: auto;
}

.footer-brand,
.footer-brand:hover,
.footer-brand:focus {
  color: #fff;
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
}

.footer-intro p,
.site-footer .footer-bottom,
.footer-link-group a {
  color: var(--shell-blue-200);
}

.footer-intro p {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.58;
}

.footer-link-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
}

.footer-link-group {
  margin: 0;
  padding: 0;
}

.footer-link-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-group li {
  margin: 0;
  padding: 0;
}

.footer-link-group a {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.58;
  text-decoration: none;
}

.footer-link-group a:hover,
.footer-link-group a:focus {
  color: #fff;
  text-decoration: underline;
}

.site-footer .footer-motion {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--shell-blue-200);
  font: inherit;
  font-size: .9375rem;
  line-height: 1.58;
  text-align: left;
  cursor: pointer;
}
.site-footer .footer-motion[hidden] { display: none; }
.site-footer .footer-motion:hover,
.site-footer .footer-motion:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .footer-motion:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid rgb(149 190 218 / 24%);
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.58;
}

/* Keep the homepage header fixed and use the shared light palette in every state. */
.home-v2-preview .site-header {
  position: fixed;
  inset: 0 0 auto;
}

/* Retain the navigation fallback before JavaScript enhancement. */
html:not(.home-v2-js) body.home-v2-preview:not(.home-v2--enhanced) .nav-toggle {
  display: none;
}

html:not(.home-v2-js) body.home-v2-preview:not(.home-v2--enhanced) .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

html:not(.home-v2-js) body.home-v2-preview:not(.home-v2--enhanced) .features-menu {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  :root {
    --shell-gutter: 32px;
  }

  .brand-text {
    display: grid;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: span 3;
  }

  .site-footer .footer-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: space-between;
  }

  .site-footer .footer-bottom span:last-child {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  :root {
    --shell-gutter: 48px;
    --shell-header-height: 80px;
  }

  body.menu-open {
    overflow: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav.is-open {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .site-nav__primary,
  .site-nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .site-nav__actions {
    margin-left: 8px;
  }

  .site-nav__primary > a,
  .site-nav__actions > a,
  .nav-dropdown-toggle {
    min-height: 44px;
    padding: 8px 12px;
  }

  .nav-dropdown-trigger .nav-features-link {
    min-height: 44px;
    padding: 8px 4px 8px 12px;
  }

  .nav-dropdown-trigger .nav-dropdown-toggle {
    width: 32px;
    min-height: 44px;
    flex-basis: 32px;
    padding: 8px 12px 8px 4px;
  }

  .site-nav__actions > a.nav-cta {
    min-height: 44px;
    margin-left: 8px;
    padding: 8px 16px;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown.is-open .nav-dropdown-trigger {
    position: relative;
    z-index: 31;
    border-radius: var(--shell-radius-md) var(--shell-radius-md) 0 0;
    background: var(--shell-surface);
    color: var(--shell-text);
  }

  .nav-dropdown.is-open .nav-dropdown-trigger::before,
  .nav-dropdown.is-open .nav-dropdown-trigger::after {
    position: absolute;
    right: 0;
    left: 0;
    box-sizing: border-box;
    border: 1px solid var(--shell-border);
    border-bottom: 0;
    content: "";
  }

  .nav-dropdown.is-open .nav-dropdown-trigger::before {
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
  }

  /* Cover the panel border beneath the tab for one continuous surface. */
  .nav-dropdown.is-open .nav-dropdown-trigger::after {
    top: 100%;
    height: 1px;
    border-top: 0;
    background: var(--shell-surface);
  }


  .features-menu {
    position: absolute;
    top: calc(50% + 22px);
    right: auto;
    left: 50%;
    width: min(1080px, calc(100vw - (2 * var(--shell-gutter))));
    max-height: calc(100dvh - var(--shell-header-height) - var(--shell-gutter));
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 52px);
    row-gap: 0;
    padding: clamp(32px, 4vw, 40px) clamp(18px, 3vw, 24px);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius-md);
    box-shadow: var(--shell-elevation-2);
    background: linear-gradient(180deg, #fff, #fbfdff);
    transform: translateX(-50%);
  }


  .nav-dropdown.is-open .features-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features-menu-label {
    padding-inline: 0;
  }

  .features-menu-label::after {
    margin-inline: 0;
  }

  .features-menu-group {
    gap: 6px;
  }

  .features-menu a {
    padding-inline: 10px;
    min-height: 44px;
  }

  .features-menu-label + a {
    margin-top: 4px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 2fr repeat(5, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: auto;
  }

  html:not(.home-v2-js) body.home-v2-preview:not(.home-v2--enhanced) .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
}

@media (min-width: 1280px) {
  .site-nav__primary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .features-menu {
    top: 100%;
  }

  .site-nav__actions {
    margin-left: auto;
  }
}

@media (min-width: 1440px) {
  :root {
    --shell-gutter: 64px;
  }
}

/* Keep both parts of the exposed Features tab dark on every header theme. */
.site-header .site-nav .nav-dropdown.is-open .nav-dropdown-trigger > a,
.site-header .site-nav .nav-dropdown.is-open .nav-dropdown-trigger > button {
  background: transparent;
  color: var(--shell-text);
}

@media (forced-colors: active) {
  .features-menu {
    border: 1px solid CanvasText;
  }
}
