:root {
  --site-header-height: 74px;
  --site-bottom-height: 340px;
  --site-footer-height: 112px;
  --site-scrollbar-track: #dff1ef;
  --site-scrollbar-thumb: #078e91;
  --site-scrollbar-thumb-hover: #073760;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 20px);
  scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track);
  scrollbar-width: thin;
}

body.site-chrome-ready {
  overflow: hidden;
}

body.site-chrome-ready > header:first-of-type {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  box-shadow: 0 8px 28px rgba(7, 55, 96, 0.08);
}

.site-scroll-area {
  position: fixed;
  inset: var(--site-header-height) 0 var(--site-footer-height);
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(var(--site-bottom-height) - var(--site-footer-height) + 28px);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar,
.site-scroll-area::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
.site-scroll-area::-webkit-scrollbar-track {
  background: var(--site-scrollbar-track);
}

html::-webkit-scrollbar-thumb,
.site-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #72cfce, var(--site-scrollbar-thumb));
  background-clip: padding-box;
  border: 3px solid var(--site-scrollbar-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
.site-scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--site-scrollbar-thumb-hover);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
.site-scroll-area::-webkit-scrollbar-corner {
  background: var(--site-scrollbar-track);
}

.site-bottom-shell {
  display: contents;
}

.site-scroll-cue {
  position: fixed;
  inset: auto auto calc(var(--site-footer-height) + 16px) 50%;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #073760;
  cursor: pointer;
  background: rgba(220, 247, 245, 0.94);
  border: 2px solid rgba(8, 163, 163, 0.72);
  border-radius: 50%;
  box-shadow:
    0 9px 24px rgba(7, 55, 96, 0.16),
    inset 0 0 0 3px rgba(255, 255, 255, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    background-color 180ms ease;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.site-scroll-cue.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-scroll-cue:hover,
.site-scroll-cue:focus-visible {
  color: #073760;
  background: rgba(200, 241, 239, 0.98);
  border-color: #078e91;
}

.site-scroll-cue:focus-visible {
  outline: 3px solid rgba(8, 163, 163, 0.28);
  outline-offset: 3px;
}

.site-scroll-cue svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: site-scroll-cue-bounce 1.7s ease-in-out infinite;
}

body[data-site-chrome-trigger="after-hero"].site-chrome-ready:not(.site-chrome-visible)
  .site-scroll-cue {
  bottom: max(18px, env(safe-area-inset-bottom));
}

@keyframes site-scroll-cue-bounce {
  0%,
  100% {
    transform: translateY(-1px);
  }

  50% {
    transform: translateY(4px);
  }
}

.site-wave {
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: var(--site-bottom-height);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 320ms ease;
}

.site-bottom-shell > .site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  width: 100%;
  margin: 0;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  pointer-events: auto;
  transition:
    opacity 240ms ease,
    transform 300ms ease;
}

body[data-site-chrome-trigger="after-hero"].site-chrome-ready:not(.site-chrome-visible) .site-wave {
  opacity: 0;
  transform: translateY(18%);
}

body[data-site-chrome-trigger="after-hero"].site-chrome-ready:not(.site-chrome-visible) .site-scroll-area {
  bottom: 0;
}

body[data-site-chrome-trigger="after-hero"].site-chrome-ready:not(.site-chrome-visible)
  .site-bottom-shell
  > .site-footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.site-bottom-shell > .site-footer,
.site-bottom-shell > .site-footer .muted,
.site-bottom-shell > .site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-bottom-shell > .site-footer a:hover {
  color: #ffffff;
}

.site-bottom-shell .footer-product-logo {
  filter: none;
}

.site-bottom-shell .footer-company-logo {
  filter: none;
  opacity: 0.94;
}

/* Shared compact breakpoint: keep aligned with navigation and page layouts. */
@media (max-width: 860px) {
  .site-scroll-cue {
    bottom: calc(var(--site-footer-height) + 10px);
    width: 44px;
    height: 44px;
  }

  .site-scroll-cue svg {
    width: 24px;
    height: 24px;
  }

  .site-bottom-shell > .site-footer .footergrid > .tiny:first-child {
    display: none;
  }

  .site-bottom-shell .footer-product-logo,
  .site-bottom-shell .footer-company-line > span,
  .site-bottom-shell .footer-company-line a {
    display: none;
  }

  .site-bottom-shell > .site-footer .footergrid {
    grid-template-columns: 1fr;
  }

  .site-bottom-shell > .site-footer .right {
    text-align: center;
  }

  .site-bottom-shell > .site-footer .footer-company-line {
    justify-content: center;
  }

  .site-bottom-shell > .site-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* Keep the fixed footer compact on short viewports, independent of width. */
@media (max-height: 700px) {
  .site-bottom-shell .footer-product-logo,
  .site-bottom-shell .footer-company-line > span,
  .site-bottom-shell .footer-company-line a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-wave,
  .site-bottom-shell > .site-footer,
  .site-scroll-cue {
    transition: none;
  }

  .site-scroll-cue svg {
    animation: none;
  }
}

@media print {
  html {
    scroll-padding-top: 0;
  }

  body.site-chrome-ready {
    overflow: visible;
  }

  body.site-chrome-ready > header:first-of-type,
  .site-scroll-area,
  .site-bottom-shell > .site-footer {
    position: static;
    box-shadow: none;
  }

  .site-scroll-area {
    overflow: visible;
    padding-bottom: 0;
  }

  .site-wave {
    display: none;
  }

  .site-scroll-cue {
    display: none;
  }

  .site-bottom-shell > .site-footer,
  .site-bottom-shell > .site-footer .muted,
  .site-bottom-shell > .site-footer a {
    color: inherit;
  }

  .site-bottom-shell .footer-product-logo {
    filter: none;
  }
}
