/* Shared AIBridges header + footer for business pages.
   Markup is stamped into each page by scripts/apply-site-shell.py between
   <!-- site-shell:header --> / <!-- site-shell:footer --> markers.
   Look follows the homepage: white bar, Archivo, bay blue CTA, orange accent. */

:root {
  --ab-ink: #101827;
  --ab-muted: #4a5668;
  --ab-line: #e3e8ef;
  --ab-bay: #0b5ca8;
  --ab-bay-deep: #084683;
  --ab-accent: #e08b22;
  --ab-navy: #061224;
  --ab-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* One heading typeface across the business pages. */
body.ab-shelled h1,
body.ab-shelled h2,
body.ab-shelled h3 {
  font-family: var(--ab-head);
}

.ab-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ab-line);
  font-family: var(--ab-head);
}
.ab-header__in {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ab-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ab-ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.ab-brand img {
  width: 36px;
  height: 36px;
  display: block;
}
.ab-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.ab-nav a {
  color: var(--ab-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.ab-nav a:hover {
  color: var(--ab-ink);
}
.ab-nav a[aria-current="page"] {
  color: var(--ab-ink);
  border-bottom-color: var(--ab-accent);
}
.ab-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ab-bay);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}
.ab-cta:hover {
  background: var(--ab-bay-deep);
}

/* Mobile menu: <details>, so it works without JavaScript. */
.ab-menu {
  display: none;
  position: relative;
  margin-left: auto;
}
.ab-menu > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ab-ink);
}
.ab-menu > summary::-webkit-details-marker {
  display: none;
}
.ab-menu > summary svg {
  width: 24px;
  height: 24px;
}
.ab-menu[open] > summary {
  background: #f1f4f8;
}
.ab-menu__panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(300px, 88vw);
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 24, 39, 0.14);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.ab-menu__panel a {
  color: var(--ab-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
}
.ab-menu__panel a:hover {
  background: #f1f4f8;
}
.ab-menu__panel .ab-cta {
  justify-content: center;
  margin-top: 6px;
  font-size: 15px;
  padding: 12px 18px;
}

@media (max-width: 960px) {
  .ab-nav {
    display: none;
  }
  .ab-header__cta {
    display: none;
  }
  .ab-menu {
    display: block;
  }
}

.ab-footer {
  background: var(--ab-navy);
  color: #b9c6d8;
  font-family: var(--ab-head);
  font-size: 14.5px;
  line-height: 1.6;
}
.ab-footer__in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.ab-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.ab-footer .ab-brand {
  color: #fff;
}
.ab-footer__pitch {
  margin: 14px 0 18px;
  max-width: 300px;
}
.ab-footer h2 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 700;
}
.ab-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-footer li {
  margin: 0 0 8px;
}
.ab-footer a {
  color: #b9c6d8;
  text-decoration: none;
}
.ab-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--ab-accent);
}
.ab-footer__note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #8a9ab0;
}
.ab-footer__base {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #8a9ab0;
}
@media (max-width: 900px) {
  .ab-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ab-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Guards: pages style bare header/nav/footer tags with selectors like
   `body.offer-page nav a:not(.button)`, which outrank anything reasonable here.
   The shell must look the same on every page, so its visual properties are locked. */
header.ab-header {
  display: block !important; position: sticky !important; top: 0 !important;
  width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  background: #fff !important; border: 0 !important;
  border-bottom: 1px solid var(--ab-line) !important; box-shadow: none !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
  color: var(--ab-ink) !important;
}
.ab-header .ab-header__in { height: 68px !important; padding: 0 24px !important; }
.ab-header nav.ab-nav {
  position: static !important; max-width: none !important; width: auto !important; height: auto !important;
  margin: 0 0 0 auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
}
header.ab-header nav.ab-nav a[href] {
  color: var(--ab-muted) !important; font-family: var(--ab-head) !important; font-size: 14.5px !important;
  font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
  background: none !important; padding: 6px 0 !important; margin: 0 !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
}
header.ab-header nav.ab-nav a[href]:hover, header.ab-header nav.ab-nav a[aria-current="page"] { color: var(--ab-ink) !important; }
.ab-header .ab-brand, .ab-header .ab-brand * { color: var(--ab-ink) !important; font-family: var(--ab-head) !important; opacity: 1 !important; }
.ab-header .ab-cta, .ab-footer .ab-cta {
  background: var(--ab-bay) !important; color: #fff !important; font-family: var(--ab-head) !important;
  font-size: 14px !important; font-weight: 700 !important; line-height: 1.2 !important; padding: 11px 18px !important;
  border: 0 !important; border-radius: 999px !important; letter-spacing: 0 !important; text-transform: none !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
}
.ab-header .ab-cta:hover, .ab-footer .ab-cta:hover { background: var(--ab-bay-deep) !important; }
@media (max-width: 960px) {
  .ab-header nav.ab-nav, .ab-header .ab-header__cta { display: none !important; }
}
footer.ab-footer {
  display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  text-align: left !important; background: var(--ab-navy) !important; color: #b9c6d8 !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
}
footer.ab-footer a:not(.ab-cta) { color: #b9c6d8 !important; background: none !important; }
footer.ab-footer a:not(.ab-cta):hover { color: #fff !important; }
footer.ab-footer a.ab-brand:not(.ab-cta) { color: #fff !important; }
footer.ab-footer h2 { color: #fff !important; font-family: var(--ab-head) !important; }

/* Narrated product tour block on app pages. */
section.ab-tour { scroll-margin-top: 68px; background: #f5f8fc !important; padding: 72px 24px !important; margin: 0 !important; border: 0 !important; }
.ab-tour__in { max-width: 1040px; margin: 0 auto; text-align: center; font-family: var(--ab-head); }
section.ab-tour p.ab-tour__kicker { color: var(--ab-bay) !important; font-size: 13px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px !important; }
section.ab-tour h2 { color: var(--ab-ink) !important; -webkit-text-fill-color: var(--ab-ink) !important; background: none !important; font-size: clamp(28px, 4vw, 42px) !important; line-height: 1.1 !important; letter-spacing: -0.02em; margin: 0 0 28px !important; }
.ab-tour video { display: block; width: 100%; height: auto; border-radius: 16px; background: #061224; box-shadow: 0 24px 60px rgba(16, 24, 39, 0.18); }
section.ab-tour .ab-tour__note { color: var(--ab-muted) !important; font-size: 14.5px !important; margin: 16px 0 0 !important; }
