/* ==========================================================================
   CityData.AI — Design System
   Abstracted from the original citydata.ai design.
   Edit the variables below to retheme the whole site.

   Typography matches the original site: Roboto Mono for nav/buttons/labels,
   Roboto Serif for headings and body text. Sizes use clamp() so text scales
   up on large screens the way the original (Wix) site does.
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-soft: #fafbfa;
  --color-bg-panel: #f4f5f4;
  --color-text: #4a4a4a;
  --color-heading: #3e3e3e;
  --color-muted: #7a7a7a;
  --color-border: #d9d9d9;
  --color-green: #62bb46;
  --color-green-dark: #4ea437;
  --color-green-soft: #8bd06c;
  --color-red: #d0021b;
  --color-orange: #f5a623;
  --color-footer-bg: #ffffff;

  /* Typography */
  --font-serif: "Roboto Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;
  --font-sans: "Roboto Serif", Georgia, serif;

  /* Fluid type scale (min, preferred vw, max) */
  --fs-body: clamp(17px, 1.0vw, 21px);
  --fs-lead: clamp(20px, 1.5vw, 31px);
  --fs-h1: clamp(44px, 3.3vw, 74px);
  --fs-h2: clamp(36px, 2.8vw, 60px);
  --fs-h2-inner: clamp(26px, 1.9vw, 40px);
  --fs-nav: clamp(11px, 0.78vw, 16px);
  --fs-btn: clamp(12px, 0.85vw, 17px);

  /* Layout */
  --gutter: clamp(24px, 4vw, 86px);
  --header-height: 96px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchored scrolling stops with the section title comfortably below the sticky header.
   Offset tracks the header height (54px logo + clamp(18px,1.8vw,34px) padding top & bottom)
   plus a small gap, so the title of the target section is always clearly visible. */
main [id] { scroll-margin-top: clamp(102px, 3.6vw + 68px, 138px); }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-heading); font-weight: 500; margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: clamp(24px, 1.6vw, 34px); }
p { margin: 0 0 1em; }
address { font-style: normal; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-green); color: #fff; padding: 10px 18px;
  font-family: var(--font-mono); z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons — Roboto Mono, uppercase, letterspaced (matches original UX)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-btn);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.7em 1.55em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--color-green); color: #fff; }
.btn-solid:hover { background: var(--color-green-dark); }
.btn-outline { background: transparent; border-color: var(--color-green-soft); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-green); color: var(--color-green-dark); }

.arrow-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(34px, 2.6vw, 52px); height: clamp(34px, 2.6vw, 52px);
  border-radius: 50%;
  background: var(--color-green); color: #fff; flex: none;
  transition: background-color .2s ease;
}
.arrow-link:hover { background: var(--color-green-dark); }
.arrow-link svg { width: 40%; height: 40%; }

/* --------------------------------------------------------------------------
   Header — logo hugs the left edge, Sign Up hugs the right edge
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: clamp(18px, 1.8vw, 34px) clamp(16px, 1.3vw, 30px);
}
/* Logo: fixed size at every screen width — never shrinks or grows.
   Sized slightly taller than the Sign Up Free button. */
.brand { flex: none; }
.brand img { height: 54px; width: auto; }
.site-nav { flex: 1; }
.site-nav > ul {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(10px, 1.3vw, 32px); list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-nav);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-heading);
  padding: 0.75em clamp(18px, 2.1vw, 46px);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-bg);
  white-space: nowrap;
}
.nav-item > a:hover { color: #000; border-color: #9a9a9a; }
.nav-item > a[aria-current="page"] { color: #000; border-color: #8a8a8a; font-weight: 700; }
.dropdown {
  display: none;
  /* Width grows to fit the longest item on a single line;
     panel is left-aligned with the parent menu tab */
  position: absolute; top: 100%; left: 0;
  width: max-content; min-width: 100%;
  background: #f6f6f6;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  list-style: none; margin: 0; padding: 10px 0;
  z-index: 60;
}
.nav-item.has-children:hover .dropdown,
.nav-item.has-children:focus-within .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 22px;
  font-family: var(--font-serif); font-size: clamp(16px, 1.1vw, 21px); color: var(--color-heading);
  text-align: left;    /* left-aligned, in line with the parent menu item */
  white-space: nowrap; /* submenu items never wrap */
}
.dropdown a:hover { color: #000; background: #efefef; }
.header-cta { flex: none; margin-left: auto; }

.nav-toggle { display: none; }
.subnav-toggle { display: none; }
.nav-arrow { display: none; }

/* --------------------------------------------------------------------------
   Compact navigation (hamburger) — kicks in before the tab row can truncate.
   A right-anchored panel that fits its longest item, scrolls internally,
   and keeps submenus collapsed until tapped.
   -------------------------------------------------------------------------- */
@media (max-width: 1049px) {
  .header-inner { position: relative; }
  .brand { order: 1; }
  .header-cta { order: 2; margin-left: auto; flex: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    order: 3; margin-left: 14px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--color-heading); }

  .site-nav {
    display: none;
    position: absolute; top: 100%; right: clamp(16px, 1.3vw, 30px);
    flex: none;
    background: #fff;
    border: 1px solid var(--color-border); border-radius: 10px;
    box-shadow: 0 20px 50px rgba(62, 62, 62, .22);
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 6px 0;
    z-index: 70;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .nav-item > a {
    flex: 1; text-align: right;
    border: 0; border-radius: 0; background: none;
    padding: 13px 22px;
  }
  .subnav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-right: 8px; flex: none;
    background: none; border: 0; cursor: pointer; color: var(--color-green-dark);
  }
  .subnav-toggle svg { width: 16px; height: 16px; transition: transform .18s ease; }
  .nav-item.expanded .subnav-toggle svg { transform: rotate(180deg); }
  /* Leaf items get a gray left-pointing arrow, aligned with the green chevrons */
  .nav-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-right: 8px; flex: none;
    color: #c2c8c2;
  }
  .nav-arrow svg { width: 15px; height: 15px; }

  /* Submenus: collapsed until their chevron is tapped (overrides desktop hover) */
  .site-nav .dropdown { display: none !important; }
  .site-nav .nav-item.expanded > .dropdown { display: block !important; }
  .site-nav .dropdown {
    position: static; flex-basis: 100%;
    width: auto; min-width: 0;
    background: var(--color-bg-soft);
    border: 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
    border-radius: 0; box-shadow: none;
    padding: 6px 0; margin: 0;
  }
  .site-nav .dropdown a { text-align: right; padding: 10px 22px; white-space: normal; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* Hero — height reduced 15%; the background video/image is center-cropped
   (object-fit: cover), so the trim comes off the top and bottom equally */
.hero { display: grid; grid-template-columns: 52% 48%; }
.hero-copy { padding: clamp(30px, 3.5vw, 70px) var(--gutter) 18px var(--gutter); }
.hero-copy h1 { margin-bottom: 0.42em; }
.hero-sub { font-size: var(--fs-lead); color: var(--color-heading); margin-bottom: 1.1em; }
.hero-media {
  position: relative; min-height: clamp(476px, 52.7vw, 935px); overflow: hidden;
}
@media (min-width: 901px) { .hero-media { min-height: clamp(476px, 35.7vw, 935px); } }
.hero-media video, .hero-media .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stats-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 1.8vw, 34px);
  padding: clamp(30px, 3.6vw, 80px) clamp(32px, 3.4vw, 70px); height: 100%;
  align-content: center;
}
.stat-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
  border-radius: 6px;
  padding: clamp(22px, 2vw, 42px) clamp(18px, 1.6vw, 34px) clamp(34px, 3.1vw, 64px);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.stat-card .stat-value {
  font-family: var(--font-serif); font-size: clamp(38px, 3vw, 64px); font-weight: 500;
  color: var(--color-heading);
  border-bottom: 1px solid #8a8a8a; padding-bottom: 0.22em; margin-bottom: 0.28em;
}
.stat-card .stat-label { font-size: clamp(18px, 1.35vw, 28px); color: var(--color-heading); }

/* Cici strip */
.cici-strip { display: flex; align-items: center; gap: clamp(22px, 2vw, 40px); padding: 14px var(--gutter) clamp(26px, 2.3vw, 46px) var(--gutter); }
.cici-strip img { width: clamp(70px, 5.5vw, 110px); border-radius: 50%; }
.cici-strip h2 { font-size: clamp(24px, 1.95vw, 40px); margin: 0 0 4px; }
.cici-strip p { margin: 0; font-size: clamp(17px, 1.25vw, 26px); }

/* --------------------------------------------------------------------------
   Featured blog / split bands
   -------------------------------------------------------------------------- */
/* Featured blog band — height reduced 25% via panel padding; the park image
   is center-cropped (object-fit: cover), trimming top and bottom equally */
.split-band { display: grid; grid-template-columns: 52% 48%; align-items: stretch; }
.split-band .band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-panel { padding: clamp(36px, 3.6vw, 76px) clamp(48px, 4.6vw, 95px); display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-serif); font-size: clamp(22px, 1.75vw, 36px); font-weight: 500;
  color: var(--color-heading); text-decoration: underline; text-underline-offset: 6px;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}
.band-panel .band-text { font-size: clamp(19px, 1.4vw, 29px); margin-bottom: 1.15em; }

/* Customer logos band — seamless marquee built from individual logo files.
   The track holds the full logo set TWICE with identical margins; animating
   to exactly -50% therefore loops with no spatial or temporal gap. */
.logo-band { padding: clamp(56px, 5vw, 100px) 0 clamp(40px, 3.6vw, 72px); }
.logo-band-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); margin-bottom: 2.6em;
}
.logo-band .band-label {
  font-family: var(--font-mono); font-size: clamp(12px, 0.9vw, 18px); letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--color-heading); margin: 0;
}
.btn-sm { font-size: clamp(11px, 0.8vw, 16px); padding: 0.5em 1.2em; }
.logo-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex; align-items: center; width: max-content;
  animation: logo-scroll 180s linear infinite; /* 45 logos: calm, readable pace */
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: clamp(38px, 3vw, 60px); width: auto; max-width: none;
  margin-right: clamp(56px, 5vw, 104px); /* uniform spacing = seamless -50% loop */
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 24px; padding: 0 var(--gutter); }
  .logo-track img[aria-hidden="true"] { display: none; }
  .logo-track img { margin-right: 0; }
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.products-intro { padding: clamp(44px, 4vw, 80px) var(--gutter) clamp(36px, 3.2vw, 64px); }

/* Shared section header (Products, Solutions) — left-aligned, same scale */
.section-head { text-align: left; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 0.25em; }
.section-head p { font-size: var(--fs-lead); color: var(--color-heading); margin: 0; }

/* Product sections: media cells stretch the full section height, so each
   image touches the section above and below along the center line. */
/* Product sub-sections — height reduced 20%; images are center-cropped
   (object-fit: cover), so the trim comes off the top and bottom equally */
.product-section { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.product-section .product-media { position: relative; min-height: clamp(336px, 32vw, 640px); }
@media (min-width: 901px) { .product-section .product-media { min-height: clamp(384px, 24vw, 640px); } }
.product-section .product-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.product-copy { display: flex; flex-direction: column; justify-content: center; }
.product-copy.align-right { align-items: flex-end; }
.product-copy.align-left { align-items: flex-start; }
.product-copy { padding: clamp(24px, 2.8vw, 56px) clamp(48px, 7.8vw, 160px); }
.product-copy.align-right { text-align: right; }
.product-copy.align-left { text-align: left; }
.product-copy h2 { font-size: clamp(38px, 3vw, 64px); margin-bottom: 0.42em; }
.category-chip {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.95vw, 19px); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.35em 1.1em;
  margin-bottom: 1em;
  border-radius: 4px; /* matches the Sign Up Free button */
  transition: background-color .2s ease;
}
a.category-chip:hover { background: var(--color-green-dark); }
.product-copy p { font-size: clamp(19px, 1.4vw, 29px); margin-bottom: 1.1em; max-width: 24em; }
.product-copy.align-right p { margin-left: auto; }

/* --------------------------------------------------------------------------
   Differentiators
   -------------------------------------------------------------------------- */
.differentiators { padding: clamp(44px, 4vw, 80px) var(--gutter) clamp(40px, 3.6vw, 72px); }
.differentiators-head { margin-bottom: clamp(26px, 2.2vw, 44px); }
.differentiators-head h2 { font-size: clamp(38px, 3vw, 64px); margin-bottom: 0; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 1.8vw, 36px); }
.diff-card {
  background: var(--color-bg-soft);
  border: 1px solid #e8eae8;
  border-radius: 10px;
  padding: clamp(24px, 2.1vw, 42px) clamp(22px, 1.9vw, 38px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-green-soft);
  box-shadow: 0 10px 28px rgba(62, 62, 62, .08);
}
.diff-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(16px, 1.4vw, 26px);
}
.diff-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(46px, 3.4vw, 64px); height: clamp(46px, 3.4vw, 64px);
  border-radius: 50%;
  background: rgba(98, 187, 70, .12);
  color: var(--color-green-dark);
}
.diff-icon svg { width: 54%; height: 54%; }
.diff-card .diff-number {
  font-family: var(--font-mono); font-size: clamp(15px, 1.05vw, 21px); font-weight: 700;
  color: var(--color-green);
}
.diff-card h3 { font-size: clamp(19px, 1.4vw, 28px); font-weight: 600; margin-bottom: 0.4em; }
.diff-card .diff-desc { margin: 0; font-size: clamp(15px, 1.05vw, 20px); color: var(--color-text); }

/* --------------------------------------------------------------------------
   Solutions (homepage section) — each solution is a portfolio of products
   -------------------------------------------------------------------------- */
.solutions-section { padding: clamp(44px, 4vw, 80px) var(--gutter) clamp(40px, 3.6vw, 72px); }
.solutions-section .section-head { margin-bottom: clamp(30px, 2.6vw, 50px); }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 1.8vw, 36px); }
.solution-card {
  background: var(--color-bg-soft);
  border: 1px solid #e8eae8;
  border-radius: 10px;
  padding: clamp(24px, 2.1vw, 42px) clamp(22px, 1.9vw, 38px);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  scroll-margin-top: clamp(102px, 3.6vw + 68px, 138px);
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-green-soft);
  box-shadow: 0 10px 28px rgba(62, 62, 62, .08);
}
.solution-card h3 { font-size: clamp(19px, 1.4vw, 28px); font-weight: 600; margin-bottom: 0.5em; }
.solution-card p { font-size: clamp(15px, 1.05vw, 20px); margin-bottom: 1.2em; flex: 1; }
.solution-products { display: flex; flex-wrap: wrap; gap: 8px; }
.product-pill {
  font-family: var(--font-mono); font-size: clamp(11px, 0.78vw, 15px);
  letter-spacing: 1px;
  color: var(--color-green-dark);
  border: 1px solid var(--color-green-soft);
  border-radius: 4px; /* matches the Sign Up Free button */
  padding: 4px 14px;
  transition: background-color .15s ease, color .15s ease;
}
.product-pill:hover { background: var(--color-green); border-color: var(--color-green); color: #fff; }

/* --------------------------------------------------------------------------
   Product pages (e.g. /products/cityparks/)
   -------------------------------------------------------------------------- */
.product-hero {
  display: grid; grid-template-columns: 44% 56%; align-items: center;
  padding: clamp(40px, 3.6vw, 72px) var(--gutter) clamp(30px, 2.6vw, 50px);
  gap: clamp(30px, 3vw, 60px);
}
.product-hero-copy h1 { font-size: clamp(48px, 3.8vw, 84px); margin: 0.15em 0 0.15em; }
.product-tagline { font-size: var(--fs-lead); color: var(--color-heading); margin-bottom: 0.7em; }
.product-solution-btn { background: #fff; margin-bottom: 0.4em; }
.product-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* App-store download buttons */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store-buttons--center { justify-content: center; margin: 0 auto 2em; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #111; color: #fff;
  border-radius: 9px; padding: 9px 18px;
  transition: background-color .18s ease;
}
.store-btn:hover { background: #000; }
.store-glyph { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.store-btn span small { font-size: 10px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }

/* "Watch the Video" button + lightbox */
.btn-video {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border-color: var(--color-green-soft); color: var(--color-text);
  cursor: pointer;
}
.btn-video:hover { border-color: var(--color-green); color: var(--color-green-dark); }
.play-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--color-green); color: #fff;
  box-shadow: 0 0 0 0 rgba(98, 187, 70, .45);
  animation: play-pulse 2.6s ease-in-out infinite;
  transition: transform .18s ease;
}
.play-badge svg { width: 58%; height: 58%; margin-left: 8%; }
.btn-video:hover .play-badge { transform: scale(1.12); }
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(98, 187, 70, .45); }
  50% { box-shadow: 0 0 0 9px rgba(98, 187, 70, 0); }
}
@media (prefers-reduced-motion: reduce) { .play-badge { animation: none; } }

.video-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 26, 21, .82);
  padding: clamp(16px, 3vw, 48px);
  opacity: 0; transition: opacity .18s ease;
}
.video-lightbox.is-open { opacity: 1; }
.video-lightbox[hidden] { display: none; }
.video-shell { position: relative; width: min(1160px, 94vw); }
.video-embed {
  aspect-ratio: 16 / 9; background: #000;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; right: -6px; top: -52px;
  background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 40px; line-height: 1; padding: 4px 10px;
  font-family: var(--font-serif);
}
.video-close:hover { color: var(--color-green); }

/* Lead capture modal (HubSpot form in-page) */
.lead-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 26, 21, .78);
  padding: clamp(14px, 2.6vw, 40px);
  opacity: 0; transition: opacity .18s ease;
}
.lead-modal.is-open { opacity: 1; }
.lead-modal[hidden] { display: none; }
.lead-panel {
  position: relative;
  width: min(620px, 96vw); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 14px;
  border-top: 5px solid var(--color-green);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  padding: clamp(26px, 2.6vw, 44px) clamp(22px, 2.4vw, 42px) clamp(26px, 2.4vw, 40px);
  transform: translateY(10px); transition: transform .2s ease;
}
.lead-modal.is-open .lead-panel { transform: translateY(0); }
.lead-close {
  position: absolute; right: 14px; top: 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--color-muted); font-size: 34px; line-height: 1; padding: 6px 10px;
  font-family: var(--font-serif);
}
.lead-close:hover { color: var(--color-heading); }
.lead-eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 14px);
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark);
  margin-bottom: 0.9em;
}
.lead-head h3 { font-family: var(--font-serif); font-size: clamp(24px, 1.9vw, 36px); font-weight: 600; color: var(--color-heading); margin: 0 0 0.4em; }
.lead-head p { font-size: clamp(14px, 1vw, 18px); color: var(--color-muted); margin: 0 0 1.6em; }

.lead-spinner { display: flex; justify-content: center; padding: 40px 0; }
.lead-spinner span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #e2eede; border-top-color: var(--color-green);
  animation: lead-spin 0.9s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }
.lead-modal.form-ready .lead-spinner { display: none; }

/* Best-effort styling when HubSpot renders the form inline (non-iframe) */
#lead-form-target .hs-form-field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-heading); }
#lead-form-target input[type="text"],
#lead-form-target input[type="email"],
#lead-form-target input[type="tel"],
#lead-form-target select,
#lead-form-target textarea {
  width: 100%; font-family: var(--font-serif); font-size: 16px; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 6px;
  padding: 10px 14px; margin: 6px 0 14px; background: #fff;
}
#lead-form-target input:focus, #lead-form-target select:focus, #lead-form-target textarea:focus {
  outline: none; border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(98, 187, 70, .18);
}
#lead-form-target .hs-button {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--color-green); color: #fff; border: 0; border-radius: 4px;
  padding: 12px 26px; cursor: pointer;
}
#lead-form-target .hs-button:hover { background: var(--color-green-dark); }
#lead-form-target .hs-error-msg { color: #c0392b; font-size: 13px; }

/* --------------------------------------------------------------------------
   Auth pages (login / signup) — split-screen
   -------------------------------------------------------------------------- */
.auth-body { margin: 0; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-aside {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(32px, 3.4vw, 64px);
  background: url("/assets/images/auth-left-panel.png") left bottom / contain no-repeat, #fff;
  color: var(--color-text);
}
.auth-logo { display: inline-flex; align-self: flex-start; }
.auth-logo img { height: 48px; width: auto; }
.auth-aside-copy { margin-top: 40px; max-width: 30em; }
.auth-aside-copy h2 { color: var(--color-heading); font-size: clamp(30px, 3vw, 54px); font-weight: 500; margin-bottom: 0.35em; }
.auth-aside-copy p { color: var(--color-text); font-size: clamp(16px, 1.2vw, 22px); margin-bottom: 1.5em; }
.auth-points { list-style: none; margin: 0; padding: 0; }
.auth-points li {
  position: relative; padding: 0.4em 0 0.4em 30px;
  color: var(--color-heading); font-size: clamp(14px, 1vw, 19px);
}
.auth-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.85em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--color-green); border-bottom: 2px solid var(--color-green);
  transform: rotate(-45deg);
}
.auth-aside-foot {
  margin: 1.4em 0 0; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1px; color: var(--color-muted);
}

/* Right panel top padding = left panel padding-top + logo height (48) + copy
   margin-top (40), so "Sign in" / "Create your account" aligns exactly with
   "Welcome back." on the left. */
.auth-main {
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(clamp(32px, 3.4vw, 64px) + 88px) clamp(28px, 4vw, 72px) clamp(28px, 4vw, 72px);
  background: var(--color-bg);
}
.auth-card { width: 100%; max-width: 460px; }

.auth-head { margin-bottom: 1.8em; }
.auth-head h1 { font-size: clamp(30px, 2.6vw, 46px); margin-bottom: 0.25em; }
.auth-head p { color: var(--color-muted); font-size: clamp(15px, 1.05vw, 19px); margin: 0; }
.auth-head a { color: var(--color-green-dark); text-decoration: underline; text-underline-offset: 3px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form[hidden], .auth-confirm[hidden], .auth-head[hidden] { display: none; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field > span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--color-heading);
}
.auth-field input, .auth-field select {
  width: 100%; font-family: var(--font-serif); font-size: 16px; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 12px 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus, .auth-field select:focus {
  outline: none; border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(98,187,70,.16);
}
.auth-pw { position: relative; display: block; }
.auth-pw input { padding-right: 46px; }
.auth-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 6px; color: var(--color-muted);
}
.auth-pw-toggle:hover, .auth-pw-toggle.is-on { color: var(--color-green-dark); }
.auth-pw-toggle svg { width: 20px; height: 20px; display: block; }

.auth-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.auth-link-sm { font-size: 14px; color: var(--color-green-dark); text-decoration: underline; text-underline-offset: 3px; }

.auth-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-text); }
.auth-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--color-green); }
.auth-check a { color: var(--color-green-dark); text-decoration: underline; }

.auth-submit { width: 100%; margin-top: 6px; padding: 0.85em 1.5em; font-size: 15px; }

.auth-alert {
  border: 1px solid #f0c8c8; background: #fcecec; color: #a3271f;
  border-radius: 8px; padding: 11px 15px; font-size: 14px;
}
.auth-legal { margin-top: 1.6em; font-size: 13px; color: var(--color-muted); }
.auth-legal a { color: var(--color-green-dark); text-decoration: underline; }

.auth-confirm { text-align: center; padding: 1em 0; }
.auth-confirm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: #eaf5e5; color: var(--color-green-dark); margin-bottom: 0.8em;
}
.auth-confirm-icon svg { width: 34px; height: 34px; }
.auth-confirm h1 { font-size: clamp(26px, 2.2vw, 40px); margin-bottom: 0.4em; }
.auth-confirm p { color: var(--color-muted); font-size: clamp(15px, 1.05vw, 19px); margin-bottom: 1.6em; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  /* Below the split breakpoint, drop the photo and use a sky-to-grass gradient
     (white top for legible black text, light-blue middle, grass-green bottom). */
  .auth-aside {
    min-height: 340px;
    padding: 28px 24px 40px;
    /* Top ~66% stays white so the black text sits on white; the brighter
       sky-blue → grass-green tint is confined to the bottom third. */
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 66%, #d3edf8 84%, #c3ec9f 100%);
  }
  .auth-aside-copy { margin-top: 24px; }
  .auth-points { display: none; }
  .auth-aside-foot { color: rgba(40,54,40,.62); }
  .auth-main { align-items: stretch; padding: clamp(24px, 7vw, 40px) 24px 40px; }
  .auth-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ page — ask widget + accordion
   -------------------------------------------------------------------------- */
.ask-widget { padding: 0 var(--gutter) clamp(30px, 2.6vw, 50px); }
.ask-box {
  background: linear-gradient(180deg, #f4faf1, #eef6ea);
  border: 1px solid #d9ecd1; border-radius: 14px;
  padding: clamp(24px, 2.2vw, 40px) clamp(20px, 2vw, 38px);
  max-width: 62em;
}
.ask-input-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
  padding: 4px 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ask-input-row:focus-within { border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(98,187,70,.16); }
.ask-icon { width: 22px; height: 22px; flex: none; color: var(--color-green-dark); }
#ask-input {
  flex: 1; border: 0; outline: none; background: none;
  font-family: var(--font-serif); font-size: clamp(16px, 1.15vw, 21px);
  color: var(--color-text); padding: 14px 0;
}
.ask-results { margin-top: 16px; display: grid; gap: 12px; }
.ask-hit {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
  padding: 16px 20px;
}
.ask-hit strong { display: block; font-family: var(--font-serif); font-size: clamp(15px, 1.05vw, 20px); color: var(--color-heading); margin: 4px 0 6px; }
.ask-hit p { margin: 0; font-size: clamp(14px, 0.95vw, 18px); color: var(--color-muted); }
.ask-hit-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--color-green-dark); background: #eaf5e5; border-radius: 4px; padding: 2px 8px;
}
.ask-hit-src { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-muted); text-decoration: none; }
a.ask-hit-src:hover, .ask-hit-article:hover { border-color: var(--color-green); }
.ask-hit-llm { border-color: var(--color-green); }
.ask-empty { font-size: clamp(14px, 1vw, 18px); color: var(--color-muted); padding: 8px 4px; }
.ask-empty a { color: var(--color-green-dark); }

.faq-list { padding: 0 var(--gutter) clamp(40px, 3.6vw, 70px); max-width: calc(62em + 2 * var(--gutter)); }
.faq-category { margin-bottom: clamp(28px, 2.6vw, 50px); }
.faq-category h2 { font-size: var(--fs-h2-inner); font-weight: 400; margin-bottom: 0.6em; }
.faq-item { border-bottom: 1px solid #ececec; }
.faq-item summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: clamp(16px, 1.15vw, 22px); color: var(--color-heading);
  padding: clamp(14px, 1.1vw, 20px) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-green-dark); }
.faq-chevron { width: 15px; height: 15px; flex: none; position: relative; top: 2px; color: var(--color-green-dark); transition: transform .18s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item > p { margin: 0 0 1.3em; max-width: 56em; font-size: clamp(15px, 1.02vw, 19px); color: var(--color-text); }

/* Use cases */
.use-cases { padding: clamp(20px, 2vw, 40px) var(--gutter) clamp(44px, 4vw, 84px); }
.use-cases h2 { font-size: var(--fs-h2-inner); font-weight: 400; margin-bottom: 0.5em; }
.use-cases-sub { max-width: 62em; margin-bottom: 2.2em; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 1.7vw, 32px); }
.use-case-card {
  position: relative;
  background: var(--color-bg-soft);
  border: 1px solid #e8eae8; border-radius: 12px;
  padding: clamp(24px, 2.2vw, 42px) clamp(20px, 1.9vw, 36px);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.use-case-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--color-green), var(--color-green-dark));
  opacity: 0; transition: opacity .2s ease;
}
.use-case-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-green-soft);
  box-shadow: 0 16px 38px rgba(62, 62, 62, .12);
}
.use-case-card:hover::before { opacity: 1; }
.use-case-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(46px, 3.4vw, 62px); height: clamp(46px, 3.4vw, 62px);
  border-radius: 12px;
  background: #eaf5e5; color: var(--color-green-dark);
  margin-bottom: 1.1em;
}
.use-case-icon svg { width: 55%; height: 55%; }
.use-case-card h3 { font-size: clamp(19px, 1.35vw, 27px); font-weight: 600; margin-bottom: 0.5em; }
.use-case-card p { font-size: clamp(14px, 1vw, 19px); color: var(--color-muted); margin: 0; }

.product-hero-media img {
  width: 100%; border-radius: 14px;
  box-shadow: 0 14px 44px rgba(62,62,62,.14);
}

/* Product hero banner scene */
.park-scene { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 44px rgba(62,62,62,.14); }
.park-scene svg,
.park-scene > img { display: block; width: 100%; height: auto; }
.park-scene > img { aspect-ratio: 1024 / 687; object-fit: cover; }
.park-scene-caption {
  position: absolute; left: 16px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 15px);
  letter-spacing: 1px; text-transform: uppercase; color: var(--color-heading);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(98,187,70,.5); } 50% { box-shadow: 0 0 0 7px rgba(98,187,70,0); } }

/* Feature rows */
.feature-rows { padding: 0 var(--gutter) clamp(30px, 2.6vw, 50px); }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 3.4vw, 70px);
  align-items: center;
  padding: clamp(16px, 1.4vw, 28px) 0;
}
.feature-row.reverse .feature-shot { order: 2; }
/* Browser-window frame around dashboard screenshots */
.feature-shot {
  background: #fff;
  border: 1px solid var(--color-border); border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(62,62,62,.08);
}
.feature-shot::before {
  content: "";
  display: block; height: 32px;
  background:
    radial-gradient(circle at 20px 16px, #ff5f57 5.5px, transparent 6.5px),
    radial-gradient(circle at 42px 16px, #febc2e 5.5px, transparent 6.5px),
    radial-gradient(circle at 64px 16px, #28c840 5.5px, transparent 6.5px),
    #f2f4f2;
  border-bottom: 1px solid var(--color-border);
}
.feature-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3200 / 1955; object-fit: cover; }

/* Frameless screenshot — no browser chrome, full image shown uncropped */
.feature-shot--bare {
  background: none;
  border: none; border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.feature-shot--bare::before { content: none; display: none; }
.feature-shot--bare img { aspect-ratio: auto; object-fit: contain; }

/* Phone-framed screenshot (portrait) — same light browser-chrome style,
   just narrower and portrait for mobile app features */
.feature-shot--phone { max-width: 320px; margin: 0 auto; }
.feature-shot--phone img { aspect-ratio: 994 / 1726; }
.feature-index {
  font-family: var(--font-mono); font-size: clamp(13px, 0.9vw, 17px); font-weight: 700;
  color: var(--color-green); letter-spacing: 2px;
}
.feature-copy h3 { font-size: clamp(24px, 1.8vw, 36px); font-weight: 600; margin: 0.3em 0 0.4em; }
.feature-copy p { font-size: clamp(16px, 1.15vw, 22px); margin: 0; max-width: 30em; }

/* Feature checklist */
/* "Everything included" — distinct green band with white chip cards */
.included-band {
  background: linear-gradient(180deg, #f4faf1, #e9f4e4);
  border-top: 1px solid #d9ecd1; border-bottom: 1px solid #d9ecd1;
  padding: clamp(52px, 4.6vw, 96px) var(--gutter);
  margin: clamp(30px, 3vw, 60px) 0 clamp(64px, 6vw, 130px);
}
.included-eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 16px);
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark);
  margin-bottom: 1.2em;
}
.included-band h2 { font-size: var(--fs-h2-inner); font-weight: 400; margin-bottom: 0.6em; }
.included-band > p { max-width: 62em; margin-bottom: 2.2em; }

.feature-checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1vw, 18px) clamp(18px, 1.6vw, 30px);
}
.feature-checklist li {
  white-space: nowrap;
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(15px, 1.05vw, 20px);
  background: #fff;
  border: 1px solid #d9ecd1; border-radius: 8px;
  padding: clamp(12px, 1.05vw, 20px) clamp(16px, 1.3vw, 26px);
  box-shadow: 0 4px 14px rgba(62, 62, 62, .05);
}
.feature-checklist svg { width: 0.85em; height: 0.85em; flex: none; color: var(--color-green); position: relative; top: 2px; }
/* Module sub-groups inside "Everything included" */
.included-group { margin-top: clamp(22px, 2.2vw, 42px); }
.included-group h3 {
  font-family: var(--font-mono); font-size: clamp(12px, 0.9vw, 16px);
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark);
  margin: 0 0 0.9em;
}

/* Compatible products */
.compatible-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 1.6vw, 30px); margin-top: 0.8em; }
.compatible-card {
  background: var(--color-bg-soft);
  border: 1px solid #e8eae8; border-radius: 10px;
  padding: clamp(20px, 1.8vw, 34px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.compatible-card:hover { transform: translateY(-4px); border-color: var(--color-green-soft); box-shadow: 0 10px 28px rgba(62,62,62,.08); }
.compatible-card h3 { font-size: clamp(18px, 1.3vw, 26px); font-weight: 600; margin-bottom: 0.4em; }
.compatible-card p { font-size: clamp(14px, 1vw, 19px); margin-bottom: 1em; }
.compatible-more { font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 15px); letter-spacing: 1px; text-transform: uppercase; color: var(--color-green-dark); }

/* Pricing band */
.pricing-band { background: var(--color-bg-panel); text-align: center; padding: clamp(56px, 5vw, 100px) var(--gutter); }
.pricing-band h2 { font-size: clamp(30px, 2.4vw, 50px); margin-bottom: 0.4em; }
.pricing-figure { font-family: var(--font-serif); font-size: clamp(52px, 4.4vw, 96px); font-weight: 600; color: var(--color-heading); margin: 0 0 0.25em; }
.pricing-from { display: block; font-family: var(--font-mono); font-size: clamp(12px, 0.85vw, 17px); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark); margin-bottom: 0.6em; }
.pricing-period { font-size: 0.35em; font-weight: 400; color: var(--color-muted); }
.pricing-note { max-width: 34em; margin: 0 auto 2em; font-size: clamp(15px, 1.1vw, 21px); }
.pricing-plus {
  font-family: var(--font-mono); font-size: clamp(14px, 1.05vw, 20px);
  letter-spacing: 1px; color: var(--color-green-dark);
  margin: -0.4em 0 1.4em;
}

/* Pricing tier cards */
.pricing-tiers {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.3vw, 24px);
  max-width: 1560px; margin: 0 auto 1.6em;
}
.pricing-tier {
  background: #fff;
  border: 1px solid var(--color-border); border-radius: 10px;
  padding: clamp(24px, 2.1vw, 40px) clamp(12px, 1.1vw, 22px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: var(--color-green);
  box-shadow: 0 12px 30px rgba(62,62,62,.10);
}
.tier-name {
  font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 16px);
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark);
}
.tier-price {
  font-family: var(--font-serif); font-size: clamp(30px, 2.5vw, 52px);
  font-weight: 600; color: var(--color-heading); margin: 0.4em 0 0.25em;
}
.tier-period { font-size: 0.36em; font-weight: 400; color: var(--color-muted); }
.tier-blurb { font-size: clamp(13px, 0.92vw, 18px); color: var(--color-muted); margin: 0; }

/* Single-tier "additional costs" cards */
.pricing-extras {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.3vw, 24px);
  max-width: 1560px; margin: 0 auto 1.6em;
  text-align: left;
}
.pricing-extra {
  background: #fff;
  border: 1px solid var(--color-border); border-radius: 10px;
  padding: clamp(20px, 1.8vw, 34px) clamp(16px, 1.5vw, 28px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-extra:hover {
  transform: translateY(-4px);
  border-color: var(--color-green);
  box-shadow: 0 12px 30px rgba(62,62,62,.10);
}
.extra-kind {
  font-family: var(--font-mono); font-size: clamp(10px, 0.72vw, 14px);
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-green-dark);
}
.pricing-extra h3 { font-size: clamp(18px, 1.25vw, 26px); font-weight: 600; margin: 0.4em 0 0.4em; }
.pricing-extra p { font-size: clamp(13px, 0.92vw, 18px); color: var(--color-muted); margin: 0; }
.pricing-extras--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.pricing-extras--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }

/* Third-party integration cards */
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 1.7vw, 32px); }
.integration-card {
  background: var(--color-bg-soft);
  border: 1px solid #e8eae8; border-radius: 12px;
  padding: clamp(22px, 2vw, 38px) clamp(18px, 1.7vw, 32px);
}
.integration-card h3 { font-size: clamp(18px, 1.3vw, 26px); font-weight: 600; margin-bottom: 0.6em; }
.integration-card > p { font-size: clamp(13px, 0.92vw, 18px); color: var(--color-muted); margin-bottom: 1em; }
.erp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.erp-pill {
  font-family: var(--font-mono); font-size: clamp(11px, 0.78vw, 15px);
  letter-spacing: 1px; color: var(--color-green-dark);
  border: 1px solid var(--color-green-soft); border-radius: 4px;
  padding: 4px 12px; background: #fff;
}
.integration-list { list-style: none; margin: 0; padding: 0; }
.integration-list li {
  position: relative; padding: 0.32em 0 0.32em 26px;
  font-size: clamp(14px, 0.98vw, 19px);
}
.integration-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.85em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--color-green); border-bottom: 2px solid var(--color-green);
  transform: rotate(-45deg) translateY(-50%);
}

.tiers-note {
  font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 15px);
  letter-spacing: 1px; text-transform: uppercase; color: var(--color-muted);
  margin: 0 auto 2.4em;
}

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */
.blog-section { padding: 40px var(--gutter) clamp(70px, 7.5vw, 150px); }
.blog-section .blog-head h2 { font-size: clamp(26px, 2.85vw, 60px); white-space: nowrap; }
.blog-section .blog-sub { font-size: var(--fs-lead); color: var(--color-heading); margin-bottom: 2.4em; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 2.2vw, 44px); }
.blog-card img { width: 100%; aspect-ratio: 62/43; object-fit: cover; border: 1px solid var(--color-border); }
.blog-card h3 { font-size: clamp(18px, 1.4vw, 28px); font-weight: 400; margin: 1.1em 0 0.5em; }
.blog-card .read-more {
  font-family: var(--font-sans); font-size: clamp(14px, 0.95vw, 19px); color: var(--color-heading);
  border-bottom: 1px solid var(--color-heading);
}
.blog-card .read-more:hover { color: var(--color-green-dark); border-color: var(--color-green-dark); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { display: grid; grid-template-columns: 50% 50%; background: var(--color-bg-panel); }
.cta-copy { padding: clamp(45px, 4.9vw, 101px) clamp(48px, 4.6vw, 95px); display: flex; flex-direction: column; justify-content: center; }
.cta-copy h2 { font-size: clamp(38px, 3vw, 64px); line-height: 1.2; margin-bottom: 0.42em; }
.cta-copy .sub { font-size: clamp(19px, 1.4vw, 29px); margin-bottom: 1.9em; max-width: 21em; }
.cta-media { position: relative; min-height: clamp(280px, 23.8vw, 490px); overflow: hidden; }
.cta-media img, .cta-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Inner pages (Company, Customers, Careers, legal, docs)
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(60px, 6.2vw, 125px) var(--gutter) 30px; }
.page-hero h1 { font-size: clamp(40px, 3.1vw, 66px); }
.page-hero--tight { padding-bottom: 0; }
.page-hero--tight h1 { margin-bottom: 0.2em; }

/* Stacked intro: heading with left-aligned text directly below it */
.stacked-intro { padding: 0 var(--gutter) clamp(36px, 3.2vw, 64px); }
.stacked-intro h2 { font-size: var(--fs-h2-inner); font-weight: 400; margin-bottom: 0.8em; }
.stacked-intro p { max-width: 62em; }

.two-col { display: grid; grid-template-columns: minmax(240px, 24%) 1fr; gap: clamp(40px, 4vw, 80px); padding: 40px var(--gutter) clamp(50px, 4.8vw, 95px); }
.two-col .col-label h2 { font-size: var(--fs-h2-inner); font-weight: 400; }
.two-col .col-body { max-width: 62em; font-size: inherit; }

.section-title { padding: 40px var(--gutter) 10px; }
.section-title h2 { font-size: clamp(30px, 2.2vw, 46px); font-weight: 400; }

/* Team grid */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(50px, 5vw, 100px) 40px; padding: 40px var(--gutter) clamp(70px, 7.5vw, 150px); text-align: center;
}
.team-member img { width: clamp(160px, 12vw, 240px); height: clamp(160px, 12vw, 240px); border-radius: 50%; object-fit: cover; margin: 0 auto clamp(22px, 1.9vw, 38px); }
.team-member h3 { font-size: clamp(19px, 1.4vw, 28px); font-weight: 600; margin-bottom: 0.35em; }
.team-member p { font-size: clamp(15px, 1.05vw, 21px); margin: 0; }

/* Testimonials */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 2.8vw, 56px); padding: 40px var(--gutter) clamp(56px, 5.5vw, 110px);
}
.testimonial { text-align: center; }
.testimonial img { width: clamp(140px, 10.5vw, 210px); height: clamp(140px, 10.5vw, 210px); border-radius: 50%; object-fit: cover; margin: 0 auto clamp(20px, 1.8vw, 36px); }
.testimonial h3 { font-size: clamp(18px, 1.35vw, 27px); font-weight: 600; margin-bottom: 0.3em; }
.testimonial .org { font-size: clamp(15px, 1.05vw, 21px); font-weight: 600; color: var(--color-heading); margin-bottom: 1.2em; }
.testimonial blockquote { margin: 0; font-size: clamp(15px, 1.05vw, 21px); text-align: left; }

/* Customer logo sections */
.customer-logos { padding: 20px var(--gutter) clamp(44px, 4vw, 80px); }
.customer-logos h2 { font-size: clamp(26px, 2vw, 42px); font-weight: 400; margin: 1.2em 0 1.1em; }
/* Aggregated logo sheets (all 2510px wide): centered on the page and held to
   well under 70% of the page width so the panels feel balanced, not overwhelming */
.customer-logos img {
  display: block;
  width: 64%; max-width: 900px; height: auto;
  margin: 0 auto clamp(34px, 3vw, 58px);
}

/* Legal / documentation prose */
.legal-hero { display: grid; grid-template-columns: minmax(240px, 24%) 1fr; gap: clamp(40px, 4vw, 80px); padding: clamp(60px, 6.2vw, 125px) var(--gutter) 40px; }
.legal-hero .effective-date h2 { font-size: var(--fs-h2-inner); font-weight: 400; line-height: 1.3; }
.legal-hero .lede { max-width: 62em; font-size: inherit; }
.legal-hero .lede h1 { font-size: clamp(38px, 2.9vw, 62px) !important; }
.prose { max-width: 72em; padding: 0 var(--gutter) clamp(60px, 6vw, 120px); margin-left: auto; margin-right: auto; }
.prose-wide { max-width: 88em; }
/* Left-aligned prose: flush with the left gutter (matches Careers/Customers),
   with tighter section spacing */
.prose-left { margin-left: 0; }
.prose-left h2 { margin-top: 1.5em; }
.prose h2 { font-size: clamp(22px, 1.7vw, 34px); font-weight: 600; margin: 1.9em 0 0.6em; }
.prose h3 { font-size: clamp(19px, 1.4vw, 28px); font-weight: 600; margin: 1.7em 0 0.6em; }
.prose ul { padding-left: 26px; }
.prose li { margin-bottom: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0 42px; font-size: clamp(15px, 1vw, 19px); }
.prose th {
  text-align: left; font-family: var(--font-mono); font-size: clamp(12px, 0.8vw, 15px);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
  border-bottom: 2px solid var(--color-heading); padding: 12px 14px;
}
.prose td { border-bottom: 1px solid var(--color-border); padding: 12px 14px; vertical-align: top; }
.prose td:first-child { white-space: nowrap; }

.doc-links { list-style: none; padding: 0; }
.doc-links li { margin-bottom: 14px; }
.doc-links a { color: var(--color-green-dark); text-decoration: underline; text-underline-offset: 4px; font-size: clamp(18px, 1.3vw, 26px); }

/* Documentation hero: title, effective date, and intro left-aligned
   with the content sections below */
.doc-hero { max-width: 88em; margin: 0 auto; padding: clamp(60px, 6.2vw, 125px) var(--gutter) 10px; }
.doc-hero h1 { font-size: clamp(40px, 3.1vw, 66px); margin-bottom: 0.25em; }
.doc-effective {
  font-family: var(--font-mono); font-size: clamp(13px, 0.95vw, 18px);
  letter-spacing: 1px; text-transform: uppercase; color: var(--color-heading);
  margin: 0 0 1.6em;
}
.doc-hero .doc-intro { max-width: 62em; margin-bottom: 1.6em; }

/* Attribute tables: consistent 2-column layout across all datasets.
   Column 1 (CSV column number) has a fixed width on every table, so all
   tables line up; column 2 shows the attribute name with its description
   on the next line in the same cell. */
.attr-table { table-layout: fixed; }
.attr-table .attr-col-num { width: clamp(110px, 9vw, 170px); }
.attr-table td { white-space: normal; }
.attr-table .attr-name {
  display: block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(14px, 0.95vw, 18px);
  color: var(--color-heading);
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.attr-table .attr-desc { display: block; color: var(--color-text); }

/* Anchor menu (dictionary) */
.anchor-menu { padding: 0 var(--gutter) 20px; margin: 0; }
.anchor-menu ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.anchor-menu a {
  font-family: var(--font-mono); font-size: clamp(12px, 0.85vw, 17px); letter-spacing: 1px;
  text-transform: uppercase; color: var(--color-green-dark);
  border-bottom: 1px solid var(--color-green-soft);
}

/* Chat embed (Ask page) */
.chat-hero { display: flex; align-items: center; gap: clamp(24px, 2.2vw, 44px); padding: clamp(48px, 5vw, 100px) var(--gutter) 40px; }
.chat-hero img { width: clamp(100px, 7.8vw, 155px); border-radius: 50%; }
.chat-hero h1 { font-size: clamp(34px, 2.6vw, 54px); margin-bottom: 0.15em; }
.chat-hero p { margin: 0; font-size: clamp(19px, 1.45vw, 30px); }
.chat-embed { padding: 0 clamp(24px, 2.8vw, 56px) clamp(56px, 5.5vw, 110px); }
.chat-embed iframe {
  width: 100%; height: clamp(600px, 60vh, 820px); border: 0; display: block;
  background: var(--color-bg-soft);
}

/* Careers */
.careers-list { list-style: none; padding: 0; max-width: 62em; }
.careers-list li { margin-bottom: 0.9em; font-size: inherit; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-footer-bg); border-top: 1px solid #ececec; padding: clamp(48px, 4.4vw, 88px) 0 0; }
.footer-inner {
  padding: 0 clamp(24px, 2.8vw, 56px);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(30px, 3vw, 60px);
  align-items: start;
}
.footer-brand img { width: clamp(200px, 14vw, 270px); }
.footer-tagline {
  font-size: clamp(14px, 1vw, 20px); color: var(--color-muted);
  margin: 0.9em 0 1.6em; /* sits right below the logo */
}

/* LinkedIn follow button */
.linkedin-follow {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0a66c2; color: #fff;
  font-family: var(--font-mono); font-size: clamp(12px, 0.85vw, 16px);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.65em 1.3em; border-radius: 4px; /* matches the Sign Up Free button */
  transition: background-color .2s ease;
}
.linkedin-follow:hover { background: #004182; }
.linkedin-follow svg { width: 1.35em; height: 1.35em; flex: none; }

/* Footer columns with small mono headers */
.footer-col h4 {
  font-family: var(--font-mono); font-size: clamp(12px, 0.8vw, 15px);
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-muted); margin: 0.35em 0 1.2em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55em; font-size: clamp(14px, 1vw, 20px); color: var(--color-heading); }
.footer-col a { font-family: var(--font-serif); color: var(--color-heading); }
.footer-col a:hover { color: var(--color-green-dark); }
.footer-col address { font-size: clamp(14px, 1vw, 20px); line-height: 1.75; color: var(--color-heading); }

/* Bottom bar */
.footer-bottom {
  margin-top: clamp(40px, 3.6vw, 72px);
  border-top: 1px solid #ececec;
  padding: clamp(18px, 1.6vw, 30px) clamp(24px, 2.8vw, 56px);
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: clamp(13px, 0.9vw, 18px); color: var(--color-muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 2100px) {
  .site-nav > ul { gap: 10px; }
  .nav-item > a { padding: 0.75em 16px; }
}
@media (max-width: 1380px) {
  .site-nav > ul { gap: 7px; }
  .nav-item > a { padding: 8px 10px; letter-spacing: 1.2px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 16px 18px; }
  .site-nav { right: 18px; }
  .hero, .split-band, .product-section, .cta-band, .two-col, .legal-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px var(--gutter) 20px; }
  .cici-strip { padding: 20px var(--gutter) 40px; }
  .stats-grid { padding: 50px 24px; }
  .product-copy, .product-copy.align-right { padding: 50px var(--gutter); text-align: left; }
  .product-copy.align-right p { margin-left: 0; }
  /* Stack copy above media on mobile so images never touch each other */
  .product-section .product-copy { order: 1; }
  .product-section .product-media { order: 2; }
  /* Featured blog: title and text above the image on mobile, so the blog
     image never sits flush against the hero media above it */
  .split-band .band-panel { order: 1; }
  .split-band .band-media { order: 2; }
  .diff-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-shot { order: 0; }
  .feature-checklist { grid-template-columns: 1fr; }
  .feature-checklist li { white-space: normal; }
  .compatible-grid { grid-template-columns: 1fr 1fr; }
  .pricing-tiers { grid-template-columns: 1fr 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .video-close { right: 0; top: -46px; }
  .pricing-tier:nth-child(5) { grid-column: 1 / -1; }
  .pricing-extras, .pricing-extras--two { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .tiers-note { white-space: normal; }
  .blog-section .blog-head h2 { white-space: normal; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  /* On narrow screens let the logo sheets use more width so they stay legible */
  .customer-logos img { width: 88%; max-width: 620px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-tagline { margin-top: 16px; }
  .chat-hero { flex-direction: column; text-align: center; }
}

/* Small phones: shrink logo + CTA so brand stays left with the button to its right on one row */
@media (max-width: 600px) {
  .header-inner { padding: 12px 14px; }
  .brand img { height: 36px; }
  .header-cta { font-size: 11px; padding: 0.55em 1.1em; letter-spacing: 1px; }
  .nav-toggle { margin-left: 8px; padding: 6px; }
}
@media (max-width: 400px) {
  .brand img { height: 30px; }
  .header-cta { font-size: 10px; padding: 0.5em 0.9em; }
}
