/*
 * Small site-wide touches that apply to both the native pages and the older pages.
 */

/* "Book a demo" in the header: a gentle lift, a soft blue glow and the arrow drawing its stem. */
[data-region-slot] a[href*="demo"],
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"],
div[style*="z-index:50"] div[style*="margin-left:auto"] a[href*="demo"] {
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), background-color .2s ease !important;
  will-change: transform;
}
[data-region-slot] a[href*="demo"]:hover,
[data-region-slot] a[href*="demo"]:focus-visible,
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:hover,
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:focus-visible,
div[style*="z-index:50"] div[style*="margin-left:auto"] a[href*="demo"]:hover {
  transform: translateY(-2px);
  background-color: var(--blue-600, #2FA5E0) !important;
  box-shadow: 0 12px 24px -10px rgba(37, 143, 188, .7), 0 0 0 4px rgba(75, 188, 240, .16);
}
[data-region-slot] a[href*="demo"]:active,
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -8px rgba(37, 143, 188, .7);
  transition-duration: .1s !important;
}
/* The arrow: its stem draws in and the head moves along. */
[data-region-slot] a[href*="demo"]:hover svg path:first-child,
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:hover svg path:first-child,
div[style*="z-index:50"] div[style*="margin-left:auto"] a[href*="demo"]:hover svg path:first-child {
  stroke-dashoffset: 0 !important;
}
[data-region-slot] a[href*="demo"]:hover svg path:last-child,
div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:hover svg path:last-child,
div[style*="z-index:50"] div[style*="margin-left:auto"] a[href*="demo"]:hover svg path:last-child {
  transform: translateX(1.5px) !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-region-slot] a[href*="demo"]:hover,
  div[style*="z-index: 50"] div[style*="margin-left: auto"] a[href*="demo"]:hover { transform: none; }
}

/* The blue feature card in the menu drop-downs: a slightly deeper blue and the arrow moving on, on hover. */
.sg-menu-feature,
a[style*="width: 236px"][style*="blue-500"],
a[style*="width:236px"][style*="blue-500"] {
  transition: background-color .25s ease, box-shadow .3s cubic-bezier(.22,1,.36,1);
}
.sg-menu-feature:hover,
a[style*="width: 236px"][style*="blue-500"]:hover,
a[style*="width:236px"][style*="blue-500"]:hover {
  background-color: var(--blue-600, #2FA5E0) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px -14px rgba(37, 143, 188, .8);
}
.sg-menu-feature > span:last-child svg,
a[style*="width: 236px"][style*="blue-500"] > span:last-child svg,
a[style*="width:236px"][style*="blue-500"] > span:last-child svg {
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.sg-menu-feature:hover > span:last-child svg,
a[style*="width: 236px"][style*="blue-500"]:hover > span:last-child svg,
a[style*="width:236px"][style*="blue-500"]:hover > span:last-child svg {
  transform: translateX(3px);
}

/* Platform menu (22 Nov 2026): no feature card, modules in three even columns, one line each. */
a[style*="width:236px"][style*="blue-500"]:has(> span:empty),
a[style*="width: 236px"][style*="blue-500"]:has(> span:empty),
a[style*="width: 236px"][style*="blue-500"]:has(> span:first-of-type > .sc-interp:empty:only-child) { display: none !important; }
@media (min-width: 900px) {
  .sg-menu-grid3,
  div:has(+ a[style*="width:236px"] > span:empty) > div[style*="display:grid"],
  div:has(+ a[style*="width: 236px"] > span:empty) > div[style*="display: grid"],
  div:has(+ a[style*="width: 236px"] > span:first-of-type > .sc-interp:empty:only-child) > div[style*="display: grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px 28px !important;
  }
  .sg-menu-grid3 a > span:last-child > span,
  div:has(+ a[style*="width:236px"] > span:empty) > div[style*="display:grid"] a > span:last-child > span,
  div:has(+ a[style*="width: 236px"] > span:empty) > div[style*="display: grid"] a > span:last-child > span,
  div:has(+ a[style*="width: 236px"] > span:first-of-type > .sc-interp:empty:only-child) > div[style*="display: grid"] a > span:last-child > span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

/* Map breakout band (22 Nov 2026): see map-band.js. */
.sg-mb { position: relative; height: 580px; border-radius: 32px; overflow: hidden; background: rgb(231, 232, 234); box-shadow: 0 40px 80px -40px rgba(32, 60, 90, .35); font-family: var(--font-sans); }
.sg-mb__view { position: absolute; inset: 0; overflow: hidden; }
.sg-mb__world { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; }
.sg-mb__world svg { display: block; width: 1600px; height: 1000px; }
.sg-mb__layer { position: absolute; inset: 0; pointer-events: none; }
.sg-mb__card { position: absolute; left: 28px; top: 28px; bottom: 28px; z-index: 2; width: min(400px, 40%); box-sizing: border-box; padding: 36px 34px; border-radius: 24px; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 48px -24px rgba(32, 60, 90, .45); display: flex; flex-direction: column; justify-content: center; }
.sg-mb__kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sg-mb__title { margin: 18px 0 0; font-size: 28px; font-weight: 600; line-height: 1.22; color: var(--ink-900); text-wrap: balance; }
.sg-mb__text { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-700); text-wrap: pretty; }
.sg-mb__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--blue-700); text-decoration: none; }
.sg-mb__link:hover { color: var(--ink-900); }
.sg-mb__pin { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; background: #fff; color: var(--ink-900); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(32, 60, 90, .5), 0 1px 2px rgba(32, 60, 90, .12); transition: box-shadow .2s; }
.sg-mb__pin:hover { box-shadow: 0 14px 28px -10px rgba(32, 60, 90, .6), 0 0 0 2px var(--blue-500); color: var(--ink-900); }
.sg-mb__pin b { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-500); color: #fff; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.sg-mb__pin b::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(75, 188, 240, .55); animation: sg-mb-pin 2.4s ease-out infinite; }
@keyframes sg-mb-pin { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sg-mb__alert { position: absolute; transform: translate(-50%, -50%) scale(.7) translateY(10px); opacity: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; color: var(--ink-900); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 24px -12px rgba(32, 60, 90, .55), 0 1px 2px rgba(32, 60, 90, .1); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.sg-mb__alert.is-on { opacity: 1; transform: translate(-50%, -50%); }
.sg-mb__alert i { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--blue-500); }
.sg-mb__alert.ok i { background: var(--green-500, #4cbb57); }
.sg-mb__alert.warn i { background: #F2A33A; }
.sg-mb__alert.warn { box-shadow: 0 12px 24px -12px rgba(160, 100, 10, .6), 0 0 0 1.5px rgba(242, 163, 58, .55); }
@media (max-width: 860px) {
  .sg-mb { height: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .sg-mb__view { position: relative; height: 360px; border-radius: 24px; background: rgb(231, 232, 234); }
  .sg-mb__card { position: static; width: auto; margin-top: 16px; padding: 28px 24px; background: var(--surface-alt); box-shadow: none; }
  .sg-mb__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .sg-mb__pin b::after { animation: none; } .sg-mb__alert { transition: none; } }
.sg-mb__card.is-right { left: auto; right: 28px; }
@media (max-width: 860px) { .sg-mb__card.is-right { right: auto; } }
