/* Shared website navigation. Page artwork and content use site.css. */
:root { --header-h: 80px; }
html { scrollbar-gutter: stable; }
html.s-menu-open { overflow: hidden; }
.s-menu-open .s-dock, .s-menu-open .s-wa { visibility: hidden; }

/* A quiet sticky bar, with enough room for laptop navigation. */
.s-header { background: rgba(255, 255, 255, .96); }
.s-header__bar { max-width: 1360px; height: var(--header-h); gap: clamp(16px, 2.3vw, 36px); position: static; }
.s-header .s-logo, .s-footer .s-logo { gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.045em; }
.s-header .s-logo img, .s-footer .s-logo img { width: 36px; height: 36px; flex: none; border-radius: 11px; }
.s-header .s-nav { display: block; margin-left: auto; }
.s-nav__list { gap: 2px; }
.s-nav__link { height: 44px; padding: 0 12px; gap: 8px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.s-nav__link[aria-current="page"], .s-nav__link.is-current { color: var(--blue); background: var(--blue-soft); border-radius: 10px; box-shadow: none; }
.s-nav__item.is-open .s-nav__link { color: var(--blue); background: var(--blue-soft); }
.s-nav__chevron { width: 7px; height: 7px; display: inline-block; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.s-nav__link[aria-expanded="true"] .s-nav__chevron { transform: rotate(225deg) translate(-1px, -1px); }
.s-header__actions { margin-left: 0; flex: none; gap: 10px; }
.s-header__signin { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.s-header__actions .s-header__demo { display: inline-flex; height: 44px; gap: 12px; padding: 0 18px; font-size: 14px; border-radius: 12px; white-space: nowrap; }

/* The three dropdowns stay inside the viewport and scroll on short screens. */
.s-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 48px)); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 24px 70px -24px rgba(23, 42, 106, .25), 0 4px 12px rgba(23, 42, 106, .04); }
.s-menu[hidden] { display: none; }
.s-menu::before { content: ""; position: fixed; top: -12px; left: 0; right: 0; height: 12px; }
.s-menu__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 25px 28px 21px; border-bottom: 1px solid var(--line); }
.s-menu__eyebrow { display: block; font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.s-menu__heading p { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.s-menu__overview { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; font-weight: 650; color: var(--blue); }
.s-menu__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 23px 18px 20px; }
.s-menu__group { min-width: 0; }
.s-menu__label { margin: 0 10px 10px; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.s-menu__item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 11px 10px; border-radius: 12px; color: var(--ink-2); transition: background .15s ease; }
.s-menu__item > span:not(.s-ico):not(.s-menu__arrow) { min-width: 0; }
.s-menu__item .s-ico { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; background: #f3f6ff; box-shadow: inset 0 0 0 1px #e6ebff; }
.s-menu__item b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.45; color: var(--ink); }
.s-menu__item small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.s-menu__item[aria-current="page"] { background: var(--blue-soft); }
.s-menu__item[aria-current="page"] b { color: var(--blue); }
.s-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 28px; border-top: 1px solid var(--line); background: #f8faff; font-size: 12px; color: var(--muted); }
.s-menu__foot a { display: inline-flex; align-items: center; gap: 14px; min-height: 28px; font-weight: 650; color: var(--blue); }
.s-menu--solutions { width: min(760px, calc(100vw - 48px)); }
.s-menu__solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.s-menu__solution-grid .s-menu__item { padding: 18px 14px; align-items: center; }
.s-menu__arrow { color: var(--blue); margin-left: auto; }
.s-menu--resources { width: min(390px, calc(100vw - 48px)); left: auto; right: max(24px, calc((100vw - 1312px) / 2 + 236px)); transform: none; padding: 20px 14px 14px; }
.s-menu--resources .s-menu__label { margin-bottom: 12px; }
.s-menu--resources .s-menu__item { padding: 14px 10px; }

/* A native modal provides focus containment and Escape support on touch devices. */
.s-menu-toggle { display: none; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: white; font-size: 13px; font-weight: 650; flex: none; }
.s-menu-toggle__lines { display: grid; gap: 5px; width: 16px; }
.s-menu-toggle__lines span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; }
.s-mobile-menu { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 480px); height: 100dvh; max-width: 100%; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid var(--line); color: var(--ink-2); background: #fff; box-shadow: -20px 0 70px rgba(23, 42, 106, .12); overscroll-behavior: contain; }
.s-mobile-menu[open] { display: flex; flex-direction: column; }
.s-mobile-menu::backdrop { background: rgba(14, 23, 50, .38); backdrop-filter: blur(3px); }
.s-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; padding: max(14px, env(safe-area-inset-top)) 22px 14px; border-bottom: 1px solid var(--line); }
.s-mobile-menu__head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.s-mobile-menu__head img { border-radius: 9px; flex: none; }
.s-mobile-menu__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; }
.s-mobile-menu__close span { position: relative; display: block; width: 16px; height: 16px; }
.s-mobile-menu__close span::before, .s-mobile-menu__close span::after { content: ""; position: absolute; top: 7px; left: 0; width: 17px; height: 1.5px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.s-mobile-menu__close span::after { transform: rotate(-45deg); }
.s-mobile-menu__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px 20px; }
.s-mobile-menu__eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.s-mobile-menu__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.s-mobile-menu__quick a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; background: #f5f7ff; border: 1px solid #e8edfa; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.s-mobile-menu__quick a span { color: var(--blue); }
.s-mobile-menu__group { border-bottom: 1px solid var(--line); }
.s-mobile-menu__group summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 78px; padding: 15px 2px; list-style: none; cursor: pointer; color: var(--ink); font-size: 19px; font-weight: 650; }
.s-mobile-menu__group summary::-webkit-details-marker { display: none; }
.s-mobile-menu__group summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.s-mobile-menu__group summary .s-nav__chevron { margin-right: 4px; }
.s-mobile-menu__group[open] summary .s-nav__chevron { transform: rotate(225deg); }
.s-mobile-menu__links { padding: 0 0 16px; }
.s-mobile-menu__links > a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.s-mobile-menu__links .s-menu__label { margin: 20px 10px 7px; }
.s-mobile-menu__links .s-mobile-menu__all { justify-content: space-between; color: var(--blue); font-weight: 650; background: #f5f7ff; }
.s-mobile-menu__links a[aria-current="page"], .s-mobile-menu__quick a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.s-mobile-menu__actions { flex: none; display: grid; gap: 13px; padding: 18px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fbfcff; }
.s-mobile-menu__actions > .s-btn { width: 100%; height: 48px; gap: 16px; }
.s-mobile-menu__actions > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.s-mobile-menu__actions > div > span { color: var(--muted); }
.s-mobile-menu__actions > div > a { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; color: var(--blue); font-weight: 650; }
.s-mobile-menu__trial { justify-self: center; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; padding: 4px; }

/* Stronger footer hierarchy, with the existing artwork clear of the links. */
.s-footer { --scene-pull: 0px; padding: 64px 0 0; background: linear-gradient(180deg, #f8faff, #fff 65%); }
.s-footer > .s-container { max-width: 1360px; }
.s-footer__layout { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3fr); gap: clamp(36px, 4vw, 72px); padding-bottom: 30px; }
.s-footer__brand { gap: 20px; min-width: 0; }
.s-footer__brand p { margin-top: 18px; max-width: 310px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.s-footer__demo { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 12px; color: var(--blue); font-size: 14px; font-weight: 650; }
.s-footer__contact { gap: 8px; font-size: 13px; line-height: 1.6; }
.s-footer__contact li { align-items: flex-start; gap: 9px; min-width: 0; }
.s-footer__contact i { margin-top: 3px; flex: none; }
.s-footer__contact a, .s-footer__contact span { overflow-wrap: anywhere; }
.s-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; min-width: 0; }
.s-footer__group { min-width: 0; }
.s-footer__group summary { list-style: none; margin-bottom: 17px; pointer-events: none; }
.s-footer__group summary::-webkit-details-marker { display: none; }
.s-footer__group summary h2 { font-size: 14px; font-weight: 750; line-height: 1.6; letter-spacing: -.01em; color: var(--ink); }
.s-footer__group summary .s-nav__chevron { display: none; }
.s-footer__group ul { display: grid; gap: 2px; }
.s-footer__group li { min-width: 0; }
.s-footer__group a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; color: var(--muted); }
.s-footer__group .s-footer__all { color: var(--blue); font-weight: 650; }
.s-footer__scene { margin: 0; overflow: hidden; pointer-events: none; }
.s-footer__scene > img { position: relative; left: 50%; transform: translateX(-50%); width: 100%; min-width: 720px; max-width: 1920px; height: auto; }
.s-footer__street { height: clamp(170px, 20vw, 300px); }
.s-footer__street img { width: auto; max-width: none; }
.s-footer__base { border-top: 1px solid #dce7f8; background: #f5f8fe; }
.s-footer__bottom { max-width: 1360px; padding: 20px 24px; border-top: 0; align-items: center; gap: 12px 28px; font-size: 12px; line-height: 1.7; }
.s-footer__copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.s-footer__copyright span { overflow-wrap: anywhere; }
.s-footer__copyright span + span::before { content: "\00b7"; margin-right: 14px; color: #a0adc2; }
.s-footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.s-footer__legal-links a { display: inline-flex; align-items: center; min-height: 32px; }
.s-footer__legal-links .s-footer__to-top { gap: 9px; color: var(--blue); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
    .s-nav__link:hover, .s-menu__item:hover { background: #f4f7ff; color: var(--blue); }
    .s-menu__item:hover b, .s-footer a:hover { color: var(--blue); }
    .s-footer__group a:hover, .s-footer__legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    .s-header__bar { gap: 18px; }
    .s-header .s-logo { font-size: 19px; gap: 8px; }
    .s-header .s-logo img { width: 32px; height: 32px; }
    .s-nav__link { padding: 0 9px; font-size: 13px; gap: 7px; }
    .s-header__actions { gap: 6px; }
    .s-header__actions .s-header__demo { padding: 0 13px; font-size: 13px; gap: 8px; }
    .s-header__signin { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 1199px) {
    .s-footer__layout { grid-template-columns: 1fr; gap: 34px; }
    .s-footer__brand { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
    .s-footer__contact { justify-self: end; max-width: 300px; font-size: 13px; }
}
@media (max-width: 1023px) {
    :root { --header-h: 72px; }
    .s-header__bar { gap: 16px; }
    .s-header .s-nav, .s-header__signin { display: none; }
    .s-header__actions { margin-left: auto; }
    .s-menu-toggle { display: inline-flex; }
    .s-menu { display: none; }
}
@media (max-width: 767px) {
    .s-header .s-logo { font-size: 20px; }
    .s-header .s-logo img { width: 34px; height: 34px; }
    .s-footer { padding-top: 40px; }
    .s-footer__brand { align-items: start; }
    .s-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .s-footer__group a { min-height: 40px; font-size: 13px; }
    .s-footer__bottom { padding: 20px 18px max(24px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 599px) {
    .s-header__bar { gap: 10px; }
    .s-header__actions .s-header__demo { display: none; }
    .s-header .s-logo { font-size: 19px; gap: 8px; }
    .s-header .s-logo img { width: 32px; height: 32px; }
    .s-mobile-menu { width: 100%; border-left: 0; }
    .s-mobile-menu__head { padding-left: 18px; padding-right: 18px; }
    .s-mobile-menu__body { padding-left: 20px; padding-right: 20px; }
    .s-mobile-menu__actions { padding-left: 20px; padding-right: 20px; }
    .s-footer__layout { gap: 24px; padding-bottom: 24px; }
    .s-footer__brand { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; border-bottom: 0; }
    .s-footer__brand p { max-width: none; font-size: 13px; line-height: 1.8; }
    .s-footer__contact { justify-self: start; max-width: 100%; font-size: 12px; }
    .s-footer__contact li { align-items: center; }
    .s-footer__contact i { margin-top: 0; }
    .s-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
    .s-footer__nav { grid-template-columns: 1fr; gap: 0; }
    .s-footer__group { border-bottom: 1px solid var(--line); }
    .s-footer__group:first-child { border-top: 1px solid var(--line); }
    .s-footer__group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; margin: 0; cursor: pointer; pointer-events: auto; }
    .s-footer__group summary h2 { font-size: 14px; }
    .s-footer__group summary .s-nav__chevron { display: block; margin-right: 4px; }
    .s-footer__group[open] summary .s-nav__chevron { transform: rotate(225deg); }
    .s-footer__group ul { padding-bottom: 16px; }
    .s-footer__group a { min-height: 44px; padding-left: 10px; }
    .s-footer__copyright { display: grid; gap: 4px; }
    .s-footer__copyright span + span::before { display: none; }
    .s-footer__legal-links { gap: 8px 18px; }
    .s-footer__legal-links a { min-height: 44px; }
    .s-footer__bottom { gap: 10px; }
}
@media (max-width: 359px) {
    .s-header .s-logo { font-size: 17px; }
    .s-menu-toggle { padding: 0 12px; gap: 9px; }
    .s-mobile-menu__head h2 { font-size: 18px; }
}
@media (max-height: 500px) {
    .s-mobile-menu__head { padding-top: 8px; padding-bottom: 8px; }
    .s-mobile-menu__body { padding-top: 14px; }
    .s-mobile-menu__actions { padding-top: 10px; padding-bottom: 10px; gap: 6px; }
    .s-mobile-menu__trial { display: none; }
}
