/* ═══════════════════════════════════════════════════════════
   SITE CHROME — the one header, menu and footer every page shares.

   The markup is stamped into each page by scripts/build-site-chrome.py;
   change it there, never in a page. This file is self-contained (its own
   tokens, font and button) so the chrome renders the same on every page,
   whatever stylesheet the page itself brings.

   Three building blocks, used everywhere:
     .site-link   a top-level link: header bar, footer
     .site-row    a menu entry, title + optional line: Industries
                  dropdown, phone menu
     .site-cta    the buttons: filled "Get started", outlined (.is-line) "Book a demo"
   Current page, everywhere: aria-current="page" → ink + forest underline.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}

:root {
  --site-cream: #faf8f4;
  --site-linen: #f2eee7;
  --site-hair: #e7e1d8;
  --site-ink: #14170f;
  --site-graphite: #45483e;
  --site-smoke: #6b6d63;
  --site-forest: #0a3d26;
  --site-neon: #a8ff00;
  --site-max: 1180px;
  --site-gutter: clamp(16px, 5vw, 32px);
  --site-bar: 64px;
  --site-ease: cubic-bezier(.22, 1, .36, 1);
}

.site-nav, .site-mobile, .site-foot {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.4; letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.site-nav *, .site-mobile *, .site-foot * { box-sizing: inherit; }
.site-nav a, .site-mobile a, .site-foot a { text-decoration: none; }
.site-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Header bar ─────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .86); border-bottom: 1px solid var(--site-hair);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .32s, border-color .32s;
}
.site-nav-in {
  max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter);
  height: var(--site-bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.site-brand { grid-column: 1; justify-self: start; display: inline-flex; flex: none; border-radius: 6px; }
.site-brand svg { display: block; height: 21px; width: auto; }
.site-brand .mark { fill: var(--site-forest); }
.site-brand .word { fill: var(--site-ink); }
.site-brand path { transition: fill .32s; }
/* Links in the middle of the page, whatever the logo and the button weigh */
.site-links { grid-column: 2; display: flex; align-items: center; gap: 4px; }
.site-act { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; flex: none; }

/* The one link */
.site-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px;
  font: inherit; color: var(--site-smoke); cursor: pointer; list-style: none;
  transition: color .2s, background .2s;
}
.site-link:hover, .site-dd[open] > .site-link { color: var(--site-ink); background: rgba(20, 23, 15, .05); }

/* The one current-page mark */
.site-link[aria-current="page"], .site-dd.is-current > .site-link,
.site-row[aria-current="page"] b, .site-mobile .site-dd.is-current > .site-row b { color: var(--site-ink); }
.site-link[aria-current="page"] > span, .site-dd.is-current > .site-link > span,
.site-row[aria-current="page"] b {
  text-decoration: underline; text-decoration-color: var(--site-forest);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}

/* Industries: a disclosure whose summary is a .site-link */
.site-dd { position: relative; }
.site-dd > summary::-webkit-details-marker { display: none; }
.site-chev {
  width: 6px; height: 6px; margin: -3px 0 0 10px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .18s;
}
.site-dd[open] > summary .site-chev { transform: rotate(225deg); margin-top: 3px; }
.site-panel {
  position: absolute; top: calc(100% + 12px); left: 0; width: 320px; padding: 6px;
  display: grid; gap: 2px;
  background: var(--site-cream); border: 1px solid var(--site-hair); border-radius: 14px;
  box-shadow: 0 18px 45px -15px rgba(5, 26, 16, .38);
}

/* The one menu entry */
.site-row { display: block; padding: 10px 12px; border-radius: 10px; color: var(--site-ink); transition: background .2s; }
.site-row:hover { background: var(--site-linen); }
.site-row b { display: block; font-size: 15px; font-weight: 500; }
.site-row small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--site-smoke); }

/* The one button */
.site-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--site-ink); color: var(--site-cream);
  transition: background .2s, color .2s;
}
.site-cta:hover { background: var(--site-forest); }
.site-cta.is-line { background: transparent; color: var(--site-ink); box-shadow: inset 0 0 0 1px rgba(20, 23, 15, .22); }
.site-cta.is-line:hover { background: transparent; color: var(--site-forest); box-shadow: inset 0 0 0 1px var(--site-forest); }

.site-toggle {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; padding: 0;
  background: transparent; color: var(--site-smoke); cursor: pointer; align-items: center; justify-content: center;
}
.site-toggle:hover { color: var(--site-ink); background: rgba(20, 23, 15, .05); }
.site-toggle svg { width: 22px; height: 22px; }
.site-toggle .i-close, .site-toggle[aria-expanded="true"] .i-open { display: none; }
.site-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav :focus-visible, .site-mobile :focus-visible, .site-foot :focus-visible {
  outline: 2px solid var(--site-forest); outline-offset: 2px;
}

/* ── Phone menu: the same .site-row, stacked ────────── */
.site-mobile {
  position: fixed; top: var(--site-bar); left: 0; right: 0; z-index: 59;
  max-height: calc(100dvh - var(--site-bar)); overflow-y: auto;
  padding: 8px calc(var(--site-gutter) - 12px) 16px;
  background: var(--site-cream); border-bottom: 1px solid var(--site-hair);
  box-shadow: 0 16px 34px -20px rgba(20, 23, 15, .35);
}
.site-mobile[hidden] { display: none; }
.site-mobile .site-row { padding: 12px; }
.site-mobile .site-row b { font-size: 17px; font-weight: 400; }
.site-mobile .site-dd > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.site-mobile .site-dd > summary .site-chev { margin-right: 6px; }
.site-mobile .site-dd > div { display: grid; gap: 2px; padding: 0 0 8px 12px; }
.site-mobile-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 4px; }
.site-mobile-act .site-cta { justify-content: center; height: 44px; }
/* Open, the bar is solid cream (glass over the dark hero turned it grey) and the page dims */
.site-nav.is-open { background: var(--site-cream); backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.site-nav.is-open .site-brand path, .site-nav.is-open .site-cta, .site-nav.is-open .site-toggle { transition: none; }
.site-scrim {
  position: fixed; inset: var(--site-bar) 0 0; z-index: 58;
  background: rgba(5, 26, 16, .42); animation: site-fade .2s var(--site-ease);
}
.site-scrim[hidden] { display: none; }
@keyframes site-fade { from { opacity: 0; } }

@media (max-width: 900px) {
  .site-links { display: none; }
  .site-act { margin-left: auto; }
  .site-toggle { display: flex; }
}
@media (min-width: 901px) { .site-mobile, .site-scrim { display: none !important; } }
/* Two buttons beside six links: tighten the links before the bar runs out of room */
@media (max-width: 1100px) and (min-width: 901px) {
  .site-links { gap: 0; }
  .site-link { padding: 0 7px; }
}
/* On phones the bar keeps "Get started"; booking a demo is in the menu */
@media (max-width: 560px) {
  .site-act > .site-cta.is-line { display: none; }
  .site-act > .site-cta { height: 36px; padding: 0 14px; }
}

/* ── Over a dark hero (home): the same bar, colours inverted until it has
   scrolled past. Only the colours change; every element stays the same. ── */
.site-nav.is-fixed { position: fixed; left: 0; right: 0; }
.site-nav.is-over:not(.is-open) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-nav.is-over:not(.is-open).is-scrolled {
  background: rgba(5, 26, 16, .78); border-bottom-color: rgba(238, 243, 234, .1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-nav.is-over:not(.is-open) .site-brand .mark { fill: var(--site-neon); }
.site-nav.is-over:not(.is-open) .site-brand .word { fill: #fff; }
.site-nav.is-over:not(.is-open) .site-links > .site-link, .site-nav.is-over:not(.is-open) .site-dd > .site-link, .site-nav.is-over:not(.is-open) .site-toggle { color: rgba(238, 243, 234, .78); }
.site-nav.is-over:not(.is-open) .site-links > .site-link:hover, .site-nav.is-over:not(.is-open) .site-dd[open] > .site-link, .site-nav.is-over:not(.is-open) .site-toggle:hover { color: #fff; background: rgba(238, 243, 234, .1); }
.site-nav.is-over:not(.is-open) .site-cta { background: var(--site-neon); color: #04150d; }
.site-nav.is-over:not(.is-open) .site-cta:hover { background: #bcff33; }
.site-nav.is-over:not(.is-open) .site-cta.is-line { background: transparent; color: #eef3ea; box-shadow: inset 0 0 0 1px rgba(238, 243, 234, .28); }
.site-nav.is-over:not(.is-open) .site-cta.is-line:hover { color: var(--site-neon); box-shadow: inset 0 0 0 1px var(--site-neon); }
.site-nav.is-over:not(.is-open) :focus-visible { outline-color: var(--site-neon); }

/* ── Footer: the same .site-link, in columns ────────── */
.site-foot { background: var(--site-linen); border-top: 1px solid var(--site-hair); color: var(--site-smoke); }
.site-foot-in { max-width: var(--site-max); margin: 0 auto; padding: 48px var(--site-gutter) 28px; }
.site-foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot-brand p { margin: 14px 0 0; max-width: 26ch; font-size: 14px; line-height: 1.5; }
.site-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-foot-col > p { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--site-ink); }
.site-foot .site-link { height: auto; min-height: 30px; padding-block: 5px; margin-left: -10px; font-size: 14px; line-height: 1.35; }
.site-foot .site-link:hover { background: rgba(20, 23, 15, .05); }
.site-foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--site-hair); font-size: 13px;
}
@media (max-width: 900px) { .site-foot-top { grid-template-columns: 1fr 1fr; } .site-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot-top { gap: 28px 16px; } }

@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav *, .site-mobile *, .site-foot * { transition: none !important; animation: none !important; }
}
