/* Property Inspect — shared site styles */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* ---------- Announce bar ---------- */
.announce {
  background: var(--anthracite-100);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}
.announce strong { color: var(--green-100); font-weight: 600; margin-right: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.announce a { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--color-border);
  /* Background + backdrop-filter moved to ::before below.
   * Reason: when backdrop-filter sits directly on a fixed/sticky element
   * (which the site header is), Chromium and iOS Safari both mis-position
   * native <select> popups across the entire page — popups render
   * shrunken at the top-left of the viewport instead of anchored under
   * the focused select. Pushing the filter to an absolutely-positioned
   * child pseudo isolates it: the visual frosted-glass look survives,
   * but the filter no longer taints the page's stacking context for OS-
   * level UI. (Chromium bug 1135077 / WebKit bug 196313.) */
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  z-index: -1;
  pointer-events: none;
}
.site-header.on-dark {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.site-header.on-dark::before {
  background: rgba(27, 32, 38, 0.72);
}
.site-header .bar {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.site-header .logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.site-header .logo img { height: 26px; width: auto; max-width: none; display: block; }
.site-header nav.primary {
  display: flex; gap: 4px; align-items: center;
  flex-wrap: nowrap;
  margin-left: 8px;
}
.site-header nav.primary > * { flex-shrink: 0; }
.site-header nav.primary > .dropdown { display: inline-flex; align-items: center; }
.nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  position: relative;
  transition: all 150ms var(--ease-standard);
}
.site-header.on-dark .nav-item { color: rgba(255,255,255,0.72); }
.nav-item:hover { color: var(--color-text); background: var(--off-white-60); }
.site-header.on-dark .nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-item .chev { width: 12px; height: 12px; opacity: 0.6; }

/* Tighten primary-nav items on narrower desktop widths so the full
 * row (logo + 6 nav items + region pill + 3 CTAs) fits comfortably
 * without wrapping or hiding items behind overflow. Drops the chev
 * gap to 0 (chev already has visual breathing room from its own
 * size) and trims horizontal padding from 12px → 10px. */
@media (max-width: 1280px) {
  .nav-item { gap: 0; padding: 8px 10px; }
}
/* Second tier of tightening for the 1168-1250px range. The previous
 * 1280px rule alone wasn't enough to keep the row on one line at this
 * width — the .bar's 32px gap between (logo / nav / spacer / region /
 * CTAs) adds up to 128px across four join points, pushing the trailing
 * CTAs off-canvas and creating horizontal scroll. Halve the bar gap to
 * 16px and trim nav-item padding + font size to claw back the ~30-50px
 * needed. Kicks in at 1250 and rides down to 1169px, where the burger
 * takes over via the existing 1168px breakpoint below. */
@media (max-width: 1250px) {
  .site-header .bar { gap: 16px; }
  .nav-item { padding: 7px 8px; font-size: 15px; }
  .site-header nav.primary { gap: 2px; margin-left: 4px; }
}
/* Flag-only band for the region pill — 1169-1340px. The labelled pill is
 * fine ≥1341px (plenty of room) AND ≤1168px (where the primary nav
 * collapses into the burger and frees the row again). In between, the
 * 6-item primary nav plus the labelled region pill plus 3 CTAs is too
 * tight, so drop the 2-letter label and render the flag glyph only.
 * The region-menu dropdown still shows full labels per row so visitors
 * can pick a region by name regardless. */
@media (min-width: 1169px) and (max-width: 1340px) {
  .site-header .region-pill { padding: 6px 8px; gap: 0; }
  .site-header .region-pill [data-region-label] { display: none; }
}

.nav-spacer { flex: 1; }

.region-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  color: var(--color-text-muted);
  background: #fff;
  /* Lock the pill against parent flex squeeze. Without this, the header
   * `.bar` (display: flex) was applying `flex-shrink: 1` to the pill at
   * narrow widths (~1240-1310px range, where nav + pill + CTAs compete
   * for the same row) — and although flex-shrink doesn't change the
   * pill's `font-size` directly, sub-pixel rounding of the flex-shrunk
   * box visibly distorted the emoji glyph's rendered size. */
  flex-shrink: 0;
}
.site-header.on-dark .region-pill { background: transparent; border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
/* Trigger flag — explicit, locked size in pixels. `!important` blocks any
 * cascade override from the parent pill (`font-size: 12px`) bleeding into
 * the emoji glyph at narrow widths, and `flex-shrink: 0` prevents the
 * surrounding flexbox from squeezing the glyph's containing box. Matches
 * the `.region-menu-item .flg` sizing in the dropdown for visual parity. */
.region-pill [data-region-flag] {
  font-size: 16px !important;
  line-height: 1;
  flex-shrink: 0;
}

.region-pill-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.region-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  min-width: 200px; padding: 6px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.region-menu[hidden] { display: none; }
.region-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--color-text);
  text-decoration: none;
}
.region-menu-item:hover { background: var(--off-white-60); }
.region-menu-item.is-active { background: var(--off-white-60); font-weight: 600; }
.region-menu-item .flg { font-size: 16px; line-height: 1; }
.region-menu-item .lbl { flex: 1; }
.region-menu-item .ccy { font-size: 12px; color: var(--color-text-subtle); font-weight: 600; letter-spacing: 0.04em; }

/* Pull the CTAs cluster closer to the region pill (the parent .bar uses
 * gap: 32px between header children — too generous now that the Login link
 * + bar separator are inside .header-ctas, which was crowding "Book demo"
 * tight enough to wrap to two lines on narrower desktop widths). The
 * negative margin reduces the visual gap region-pill → Login from 32px
 * to ~18px without affecting any of the other .bar gaps. */
.header-ctas { display: flex; align-items: center; gap: 10px; margin-left: -14px; }
.header-ctas a { white-space: nowrap; }
.header-ctas .btn-text { font-size: 16px; font-weight: 600; padding: 8px 4px; }

/* Subtle "Login" link sandwiched between the region pill and the
 * Book demo / Start free trial CTAs. Lower-weight + muted colour so it
 * reads as a utility link rather than a primary action. A 1px vertical
 * divider sits in the gap between Login and Book demo via ::after to
 * separate the utility link from the marketing CTAs. Hidden on the
 * mobile breakpoint — the burger menu's mobile-cta-row covers it there. */
.header-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-subtle);
  text-decoration: none;
  padding: 8px 8px;
  margin-right: 14px;
  border-radius: 6px;
  transition: color 150ms var(--ease-standard);
}
.header-login::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.header-login:hover { color: var(--color-text); }
.site-header.on-dark .header-login { color: rgba(255,255,255,0.55); }
.site-header.on-dark .header-login:hover { color: #fff; }
.site-header.on-dark .header-login::after { background: rgba(255, 255, 255, 0.25); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 12px); left: -16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-width: 560px;
  color: var(--color-text);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 180ms var(--ease-standard);
  z-index: 60;
}
/* Three open triggers — any one is sufficient:
 *   :hover        → mouse devices (native, always fires on pointer enter).
 *   :focus-within → keyboard users (tab into trigger or panel).
 *   .open         → set by JS for touch devices (see site.js).
 * We use `any-hover` + `any-pointer: fine` instead of `hover`/`pointer` so
 * hybrid devices (touch laptop with mouse, trackpad Macs) still get hover
 * behaviour when the user is using the pointing device. */
@media (any-hover: hover) and (any-pointer: fine) {
  .dropdown:hover .dropdown-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pi-nav-col { min-width: 0; }
/* Scale the panel to fit 3–4 equal-width columns comfortably. */
.dropdown-panel:has(.pi-nav-col:nth-child(3)) { min-width: 640px; }
.dropdown-panel:has(.pi-nav-col:nth-child(4)) { min-width: 820px; }
.dd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-radius: 10px;
  transition: background 150ms;
}
/* When the link has a description (.d) below the title, the icon should
 * align with the FIRST line of text — not the visual middle of the
 * stacked title + description (which would put it floating between the
 * two lines). The `:has()` selector keeps this conditional in CSS so
 * single-line entries don't pay for it. */
.dd-link:has(.d) { align-items: flex-start; }
.dd-link:hover { background: transparent; }
.dd-link:hover .t { color: var(--green-100); }
.dd-link .ic {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--off-white-100);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.dd-link .ic svg { width: 16px; height: 16px; stroke: var(--anthracite-100); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dd-link .t { font-size: 16px; font-weight: 600; color: var(--color-text); }
/* Text-only dd-links (Solutions menu): no icon slot, slightly lighter weight
 * for the labels. Padding/hover behaviour comes from the .dd-link base rule. */
.dd-link.no-ic .t { font-weight: 500; font-size: 15px; }
.dd-link .d { font-size: 12px; color: var(--color-text-subtle); margin-top: 2px; line-height: 1.4; }
.nav-new-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #1E7A2B; background: var(--green-20); border-radius: 999px; vertical-align: middle; }

.dropdown-footer {
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--color-text-subtle);
}
.dropdown-footer a { color: var(--color-text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 150ms var(--ease-standard);
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-xl { padding: 16px 26px; font-size: 16px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-md { padding: 11px 18px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.btn-primary { background: var(--anthracite-100); color: #fff; }
.btn-primary:hover { background: var(--anthracite-90); transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: var(--anthracite-100); }
.btn-accent:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-surface); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-text { background: transparent; color: var(--color-text); padding-left: 4px; padding-right: 4px; }
.btn-text:hover { color: var(--color-accent-hover); }

.btn .arr { width: 14px; height: 14px; transition: transform 150ms; }
.btn:hover .arr { transform: translateX(2px); }

/* ---------- Kicker / section heads ---------- */
.kicker {
  font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-text); }
.kicker.on-dark { color: #61CE70; }
.kicker.on-dark .dot { background: #61CE70; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--green-20);
  color: #1E7A2B;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
}
.eyebrow.on-dark { background: rgba(97, 206, 112, 0.18); color: var(--green-100); }

/* ---------- Page sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }
.section-alt { background: var(--off-white-60); }
.section-dark {
  background: var(--gradient-deep);
  color: #fff;
}
.section-dark.grad-primary { background: var(--gradient-primary); }
.section-dark .kicker { color: #61CE70; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 740px; margin-bottom: 56px; }
.section-head .kicker { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: 20px;
}
.section-head .lead {
  margin-top: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 640px;
}
.section-dark .section-head .lead { color: rgba(255,255,255,0.72); }

.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Trust strip (logos) ---------- */
.trust-strip {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}
.trust-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  font-weight: 600;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logo {
  color: var(--anthracite-60);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 180ms, color 180ms;
}
.trust-logo:hover { color: var(--anthracite-100); opacity: 1; }
.trust-logo .sub { display: block; font-size: 9px; letter-spacing: 0.2em; font-weight: 500; text-transform: uppercase; margin-top: 2px; }

/* ---------- Metric strip ---------- */
.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.metric {
  text-align: left;
}
.metric .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric .l {
  font-size: 14px;
  color: var(--color-text-subtle);
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--anthracite-100);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 28px; width: auto; max-width: none; display: block; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 16px; line-height: 1.6; max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: color 150ms;
}
.footer-col a:hover { color: var(--green-100); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.6);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }

/* reCAPTCHA: the standard floating badge is hidden site-wide (the
 * .footer-recaptcha attribution below — only emitted on the signup,
 * demo and contact page templates — is the Google-mandated alternative).
 * `visibility: hidden` rather than `display: none` because Google's
 * grecaptcha script measures the element on init; removing it from
 * layout entirely can fail the badge-presence check on some pages. */
.grecaptcha-badge { visibility: hidden !important; }
.footer-recaptcha {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.footer-recaptcha a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-recaptcha a:hover { color: #fff; }

/* Footer responsive — stack into 2 cols per row at mobile, 1 col at phones. */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding-bottom: 48px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom .legal { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.icn { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.icn-sm { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(27, 32, 38, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; visibility: hidden;
  transition: all 200ms var(--ease-standard);
  padding: 20px;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.98);
  transition: transform 200ms var(--ease-emphasized);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.modal p.desc {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.modal .field {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.modal .field label {
  font-size: 14px; font-weight: 600;
}
.modal .field input {
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
}
.modal .field input:focus { outline: none; border-color: var(--green-100); box-shadow: var(--shadow-focus); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-subtle);
}
.modal-close:hover { background: var(--off-white-100); color: var(--color-text); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal { position: relative; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-pass { background: var(--color-success-soft); color: #2C7C3E; } .badge-pass .dot { background: #3FAE52; }
.badge-action { background: var(--color-warning-soft); color: #8A6518; } .badge-action .dot { background: #E0A62B; }
.badge-fail { background: var(--color-danger-soft); color: #9C2F2F; } .badge-fail .dot { background: #D14848; }
.badge-info { background: var(--color-info-soft); color: #3E578B; } .badge-info .dot { background: #5577B0; }

/* ============ Mobile nav (burger + slide-out panel) ============ */

/* Burger button — hidden above the breakpoint. position+z-index keep it
 * clickable above the open mobile-nav panel (which has z-index: 80) so
 * tapping the burger again always closes the menu — even if the panel's
 * top calc overlaps the header by a sub-pixel rounding error. */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 90;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 220ms var(--ease-standard), opacity 160ms var(--ease-standard);
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1168px) {
  /* Below breakpoint: hide the primary nav, show the burger. */
  .nav-burger { display: flex; }
  .site-header nav.primary { display: none; }

  /* When body has .nav-open, render the primary nav as a fixed slide-down
   * panel just below the sticky header. The --pi-header-h variable is
   * written from site.js (getBoundingClientRect on #siteHeader) so it
   * always reflects the actual header bottom — accounts for announce-bar
   * wrap on narrow viewports, admin-bar height for logged-in users, etc.
   * Fallback 100px = desktop bar (68px) + single-line announce (~32px) so
   * the panel still positions reasonably if the JS hasn't run yet. */
  body.nav-open .site-header nav.primary {
    display: flex;
    position: fixed;
    top: var(--pi-header-h, 100px);
    left: 0; right: 0;
    max-height: calc(100vh - var(--pi-header-h, 100px));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    margin: 0;
    z-index: 80;
    box-shadow: 0 24px 48px rgba(12,24,44,0.16);
  }
  body.nav-open .site-header nav.primary > * { flex-shrink: 0; }

  /* Mobile: dropdowns are click-to-open, not hover. Reset positioning. */
  body.nav-open .site-header nav.primary > .dropdown { display: block; width: 100%; }
  body.nav-open .site-header nav.primary > .nav-item,
  body.nav-open .site-header nav.primary .dropdown > .nav-item {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border-subtle, #F0F2F0);
    font-size: 17px;
    width: 100%;
  }
  body.nav-open .dropdown .chev { margin-left: auto; transition: transform 160ms var(--ease-standard); }
  body.nav-open .dropdown.open .chev { transform: rotate(180deg); }

  /* Panel flows in-document on mobile; hidden until .dropdown.open */
  body.nav-open .site-header .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    min-width: 0 !important;
    transition: max-height 260ms var(--ease-standard);
  }
  body.nav-open .site-header .dropdown.open .dropdown-panel {
    visibility: visible;
    max-height: 2000px;
    padding: 4px 0 12px;
  }
  /* Disable the desktop hover behaviour on mobile */
  body.nav-open .site-header .dropdown:hover .dropdown-panel,
  body.nav-open .site-header .dropdown:focus-within .dropdown-panel {
    visibility: hidden;
    max-height: 0;
    padding: 0;
  }
  body.nav-open .site-header .dropdown.open:hover .dropdown-panel,
  body.nav-open .site-header .dropdown.open:focus-within .dropdown-panel {
    visibility: visible;
    max-height: 2000px;
    padding: 4px 0 12px;
  }

  /* Stack the dropdown-grid columns on mobile. */
  body.nav-open .site-header .dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  body.nav-open .site-header .pi-nav-col { padding: 4px 8px; }
  body.nav-open .site-header .dropdown-footer { margin-top: 8px; padding: 12px 8px; }

  /* Keep Book demo + Start free trial visible at mobile — shrink to fit alongside the burger. */
  .site-header .header-ctas { display: flex; gap: 6px; }
  .site-header .header-ctas .btn-text { font-size: 14px; padding: 6px 4px; }
  .site-header .header-ctas .btn { padding: 9px 14px; font-size: 13px; }
  /* Inline Login is hidden at this breakpoint — it appears in the
   * mobile-cta-row at the top of the burger panel instead (below). */
  .site-header .header-login { display: none; }
  /* Region pill returns to its labelled (flag + 2-letter code) state at
   * this width — the primary nav has collapsed into the burger so the
   * row has room for the full pill again. Flag-only is scoped to the
   * 1169-1340px range only (see the min-width+max-width @media above). */

  /* Cluster Logo + Burger + Pill together on the LEFT side of the bar.
   * DOM order is
   *   logo → nav (hidden) → burger → spacer → pill → header-ctas
   * so by default the burger sits next to the logo but the pill is
   * stranded on the right (after the spacer). Promoting `.nav-spacer`
   * (order:1) and `.header-ctas` (order:2) past everything else makes
   * the four default-order items (Logo, Nav-hidden, Burger, Pill) render
   * first as a tight left-aligned group, then the spacer eats the
   * remaining width, then the CTAs land on the far right:
   *   [Logo] [Burger] [Pill] · · · · · · [Demo] [Trial]
   * Pill stays visible all the way down to 0 — no `display: none` is
   * applied to it at any narrower breakpoint. */
  .site-header .nav-spacer { order: 1; }
  .site-header .header-ctas { order: 2; }

  /* 2-col CTA row at the top of the open burger panel (above the
   * first nav item — the filter in inc/nav.php prepends this row to
   * the primary-nav HTML). Start free trial + Book demo split the full
   * panel width 50/50. Hidden by default; only renders when the burger
   * is open. */
  body.nav-open .site-header .mobile-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-subtle, var(--color-border));
  }
  body.nav-open .site-header .mobile-cta-row .mctr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 150ms var(--ease-standard);
  }
  body.nav-open .site-header .mobile-cta-row .mctr-btn:hover {
    border-color: var(--anthracite-100);
    color: var(--anthracite-100);
  }
  body.nav-open .site-header .mobile-cta-row .mctr-btn.is-primary {
    background: var(--color-accent);
    color: var(--anthracite-100);
    border-color: var(--color-accent);
  }
  body.nav-open .site-header .mobile-cta-row .mctr-btn.is-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
  }

  /* Utility footer row — appended at the bottom of the slide-down
   * panel. Two equal columns of plain inline links (Contact us +
   * Login), separated from the menu items above by a thin divider.
   * Lighter weight than the menu items above so they read as
   * secondary / utility actions. */
  body.nav-open .site-header .mobile-cta-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
    padding-top: 12px;
  }
  body.nav-open .site-header .mobile-cta-foot a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color 150ms var(--ease-standard);
  }
  body.nav-open .site-header .mobile-cta-foot a:hover {
    color: var(--color-text);
  }

  /* Lock body scroll while the mobile nav is open */
  body.nav-open { overflow: hidden; }
}

/* Both mobile-only rows are part of the rendered nav.primary HTML on
 * every viewport (so they slide down + scroll with the rest of the
 * panel when the burger is open) but stay hidden outside the mobile
 * breakpoint so they don't disturb the inline desktop nav layout. */
.mobile-cta-row,
.mobile-cta-foot { display: none; }

@media (max-width: 560px) {
  /* The left-cluster shape from the 1168px rule is preserved:
   *   [Logo] [Burger] [Pill] · · · · · [Trial]
   * Just shrink chrome to give the bar room — hide Book demo, scale the
   * logo + burger + trial CTA down. */
  .site-header .header-ctas .btn-text { display: none; }
  .site-header .bar { gap: 14px; }
  .site-header .logo img { height: 20px; }
  .site-header .header-ctas .btn { padding: 8px 12px; font-size: 12.5px; }
  .site-header .nav-burger { width: 38px; height: 38px; }
}
@media (max-width: 460px) {
  /* Very narrow phones: hide Start free trial entirely. Pill stays on
   * the left cluster next to the burger:
   *   [Logo] [Burger] [Pill] · · · · · · · · · · ·
   * Trial CTA is still reachable inside the open burger panel via
   * .mobile-cta-row. */
  .site-header .header-ctas { display: none; }
}
@media (max-width: 400px) {
  .site-header .logo img { height: 18px; }
  .site-header .bar { gap: 10px; }
}

/* ─── Customer logos ─────────────────────────────────────────────────────
 * Shared sizing for the <img> emitted by pi_render_logo(). Every wrapper
 * (trust-logo, tile, logo-item, cs-logo, cust-logos .logo, ent-proof .lg)
 * keeps its existing layout box; the image fits inside via object-fit. */
.customer-logo { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Homepage trust strip */
.trust-logos .trust-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
.trust-logo .customer-logo { max-height: 32px; max-width: 140px; opacity: 0.72; transition: opacity 180ms; }
.trust-logo:hover .customer-logo { opacity: 1; }

/* Customers page — ph-wall tiles (mosaic of brand tiles + accent stat tiles) */
.ph-wall .tile .customer-logo { max-height: 56px; max-width: 80%; }
.ph-wall .tile.dark .customer-logo { filter: brightness(0) invert(1); }

/* Customers + vertical pages — logo-strip grid */
.logo-strip-grid .logo-item .customer-logo { max-height: 36px; max-width: 100%; opacity: 0.85; transition: opacity 180ms; }
.logo-strip-grid .logo-item:hover .customer-logo { opacity: 1; }

/* Front page + customers — case-study card logos */
.cs-logo .customer-logo { max-height: 36px; max-width: 180px; }
.cs-card.feature .cs-logo .customer-logo { filter: brightness(0) invert(1); }

/* About page — customer logo grid */
.cust-logos .logo .customer-logo { max-height: 44px; max-width: 70%; }

/* Enterprise page — proof logo strip */
.ent-proof-logos .lg { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; }
.ent-proof-logos .lg .customer-logo { max-height: 28px; max-width: 130px; }

/* ─── Geo-prompt banner ───────────────────────────────────────────────
 * Bottom-right toast surfaced on first Global visit when the geo lookup
 * suggests a regional site. Built dynamically by site.js. */
#pi-geo-prompt {
  position: fixed; right: 20px; bottom: 20px; z-index: 220;
  max-width: 380px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 220ms cubic-bezier(0.2,0,0,1), transform 220ms cubic-bezier(0.2,0,0,1);
  pointer-events: none;
}
#pi-geo-prompt.pi-geo-in { opacity: 1; transform: translateY(0); pointer-events: auto; }
#pi-geo-prompt.pi-geo-leaving { opacity: 0; transform: translateY(8px); }
#pi-geo-prompt .pi-geo-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 18px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
#pi-geo-prompt .pi-geo-flag {
  font-size: 28px; line-height: 1;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--off-white-60);
  display: flex; align-items: center; justify-content: center;
}
#pi-geo-prompt .pi-geo-body { flex: 1; min-width: 0; }
#pi-geo-prompt .pi-geo-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--anthracite-100);
  margin: 0 0 4px;
  line-height: 1.3;
}
#pi-geo-prompt .pi-geo-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 12px;
}
#pi-geo-prompt .pi-geo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#pi-geo-prompt .pi-geo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  text-decoration: none;
}
#pi-geo-prompt .pi-geo-btn-primary {
  background: var(--anthracite-100);
  color: #fff;
  border-color: var(--anthracite-100);
}
#pi-geo-prompt .pi-geo-btn-primary:hover { background: var(--anthracite-90); border-color: var(--anthracite-90); }
#pi-geo-prompt .pi-geo-btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
#pi-geo-prompt .pi-geo-btn-ghost:hover { color: var(--anthracite-100); border-color: var(--anthracite-100); }
#pi-geo-prompt .pi-geo-close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  border: none; background: transparent;
  font-size: 20px; line-height: 1;
  color: var(--color-text-subtle);
  cursor: pointer;
  border-radius: 6px;
}
#pi-geo-prompt .pi-geo-close:hover { background: var(--off-white-60); color: var(--anthracite-100); }

@media (max-width: 480px) {
  #pi-geo-prompt { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

/* ============================================================
 * Buttons — mobile centering
 * ============================================================
 * On mobile, CTA buttons frequently stretch to share row width via
 * flex: 1 1 0 (e.g. paired Book demo + Start free trial in
 * .final-cta .btns, .ai-hero .ctas, .srt-cta-row, etc.) or get
 * full-width via wrapper styles (e.g. sample-report's "Add to my
 * templates" / "Download or share" action row). When the button
 * stretches, its inline-flex content (text + arrow icon) defaults
 * to justify-content: flex-start, leaving the text left-aligned
 * inside an otherwise-symmetric pill. justify-content: center
 * here centers the text + icon group inside the stretched button
 * across every page that uses .btn — applies to all variants
 * (.btn-accent, .btn-ghost, .btn-ghost-dark, .btn-text, .btn-primary,
 * .btn-xl, .btn-lg, .btn-md, .btn-sm). */
@media (max-width: 768px) {
  .btn { justify-content: center; text-align: center; }
}

