/* CitySync design system
   Official colours from Logos/ — see docs/brand-guidelines.md.
   Lime is never used for small body text. */

:root {
  --cs-slate: #2C3E50;
  --cs-lime: #8FAA12;
  --cs-lime-bright: #BFDE14;
  --cs-white: #FFFFFF;
  --cs-ink: #1C1E22;
  --cs-slate-900: #15202B;
  --cs-slate-800: #1F2E3D;
  --cs-slate-600: #3F5366;
  --cs-slate-400: #7D8E9E;
  --cs-slate-200: #D5DDE4;
  --cs-slate-100: #EDF1F4;
  --cs-slate-50: #F6F8FA;
  --font-display: Manrope, "Segoe UI", sans-serif;
  --font-body: Inter, "Segoe UI", sans-serif;
  --header-h: 76px;
  --measure: 68ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cs-slate);
  background: var(--cs-white);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, .section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--cs-slate);
}

p { margin: 0 0 1rem; }

a { color: var(--cs-slate); }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--cs-slate);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.header.is-overlay:not(.is-scrolled):not(.is-menu-open) :focus-visible {
  outline-color: var(--cs-lime-bright);
}

::selection {
  background: var(--cs-lime-bright);
  color: var(--cs-slate);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--cs-lime-bright);
  color: var(--cs-slate);
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-lime);
}

.on-dark .eyebrow,
.hero .eyebrow { color: var(--cs-lime-bright); }

.mark {
  background-image: linear-gradient(var(--cs-lime-bright), var(--cs-lime-bright));
  background-repeat: no-repeat;
  background-size: 100% 0.22em;
  background-position: 0 88%;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: var(--measure);
  color: var(--cs-slate-600);
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

.on-dark .lede,
.hero .lede { color: var(--cs-slate-100); }

.muted { color: var(--cs-slate-600); }
.kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-slate-600);
}

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-tint { background: var(--cs-slate-50); }
.section-dark {
  background: var(--cs-slate-900);
  color: var(--cs-slate-100);
}
.section-dark h2,
.section-dark h3 { color: var(--cs-white); }
.section-dark .feature-grid p { color: var(--cs-slate-100); }
.section-dark .feature-grid article {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.film { margin: 0; }
.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}
.film h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.film h3 a { color: inherit; text-decoration: none; }
.film h3 a:hover { text-decoration: underline; }
.film p { margin: 0; max-width: 42ch; }

.section-head { max-width: 740px; margin-bottom: 40px; }
.section-head:last-child { margin-bottom: 0; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}
.section-head h2.h2-lines { width: max-content; max-width: none; }
.section-head p:last-child { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary { background: var(--cs-lime-bright); color: var(--cs-slate); }
.btn-primary:hover { background: var(--cs-slate); color: var(--cs-white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--cs-white); }
.btn-ghost:hover { background: var(--cs-white); color: var(--cs-slate); }
.btn-line { border-color: var(--cs-slate); color: var(--cs-slate); }
.btn-line:hover { background: var(--cs-slate); color: var(--cs-white); }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: 0.92rem; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--cs-white);
  border-bottom: 1px solid var(--cs-slate-200);
  color: var(--cs-slate);
}

.header.is-overlay:not(.is-scrolled):not(.is-menu-open) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--cs-white);
}

.header-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-light { display: block; }
.brand-dark { display: none; }
.header.is-overlay:not(.is-scrolled):not(.is-menu-open) .brand-light { display: none; }
.header.is-overlay:not(.is-scrolled):not(.is-menu-open) .brand-dark { display: block; }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px;
  display: inline-flex;
}

.nav-list a[aria-current="page"],
.nav-list > li.is-active > a { box-shadow: inset 0 -2px 0 var(--cs-lime); }
.header.is-overlay:not(.is-scrolled):not(.is-menu-open) .nav-list a[aria-current="page"],
.header.is-overlay:not(.is-scrolled):not(.is-menu-open) .nav-list > li.is-active > a {
  box-shadow: inset 0 -2px 0 var(--cs-lime-bright);
}

.has-menu { position: relative; }
.has-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: var(--cs-white);
  color: var(--cs-slate);
  border: 1px solid var(--cs-slate-200);
  box-shadow: 0 16px 40px rgba(21, 32, 43, 0.08);
}

.has-menu:hover > .nav-menu,
.has-menu:focus-within > .nav-menu { display: grid; }

.nav-list > li:nth-child(n+4) .nav-menu {
  left: auto;
  right: 0;
}

.nav-menu a { padding: 10px 12px; }
.nav-menu a:hover,
.nav-menu a:focus-visible { background: var(--cs-slate-50); }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  color: var(--cs-white);
  background: var(--cs-slate-900);
  overflow: hidden;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
  /* Robots shifted right so the copy sits on the dark side of the frame. */
  transform: translateX(16%) scale(1.18);
  transform-origin: center 74%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  display: block;
}

.hero-video { position: absolute; inset: 0; opacity: 0; }
.hero.is-playing .hero-video { opacity: 1; }

/* Dark where the copy is, clear where the robots are. The stops are anchored to
   the text column (--copy-x is the container's left edge), not to the screen width,
   so wide screens get the same darkness behind the words as a laptop does. */
.hero-shade {
  --copy-x: max(20px, calc(50% - 560px));
  background:
    linear-gradient(0deg, rgba(21, 32, 43, 0.6) 0%, rgba(21, 32, 43, 0) 40%),
    linear-gradient(90deg,
      rgba(21, 32, 43, 0.96) 0%,
      rgba(21, 32, 43, 0.93) calc(var(--copy-x) + 560px),
      rgba(21, 32, 43, 0.78) calc(var(--copy-x) + 780px),
      rgba(21, 32, 43, 0.3) calc(var(--copy-x) + 1000px),
      rgba(21, 32, 43, 0.06) 100%);
}

/* Aligned to the same left edge as the sections below. */
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 24px 0 72px;
}
.hero-copy > .eyebrow { width: fit-content; }
.hero-copy > .lede,
.hero-copy > .hero-points { max-width: 600px; }

.hero h1 {
  margin: 0 0 16px;
  color: var(--cs-white);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  width: max-content;
  max-width: none;
}
.hero h1 .line { display: block; white-space: nowrap; }

.video-toggle {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Hero proof strip: the three things CitySync does on site. */
.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cs-slate-100);
}
.hero-points li {
  position: relative;
  padding-left: 18px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-lime-bright);
}

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--cs-slate-50);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: 16ch;
}
.page-hero h1.h1-lines,
.page-hero h1.h1-line { max-width: none; }

.feature-film { position: relative; margin-top: 28px; }
.feature-film + .prose { margin-top: 28px; }
.feature-film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}
.film-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(21, 32, 43, 0.78));
}
.film-scrub {
  flex: 1;
  margin: 0;
  accent-color: var(--cs-lime-bright);
  cursor: pointer;
}
.film-time {
  color: #fff;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
}
.sound-toggle {
  position: static;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.sound-toggle svg { width: 22px; height: 22px; }
.sound-toggle .icon-on { display: none; }
.sound-toggle.is-on .icon-off { display: none; }
.sound-toggle.is-on .icon-on { display: block; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cs-slate-600);
  font-size: 0.85rem;
}

.crumbs a { color: inherit; }

.product-hero { padding: calc(var(--header-h) + 36px) 0 28px; }
.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.product-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.product-stage {
  background: var(--cs-slate-50);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 28px;
}

.product-stage img { max-height: 460px; max-width: 100%; width: auto; object-fit: contain; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.stat-row span { display: block; color: var(--cs-slate-600); font-size: 0.92rem; }

.photo-band { margin: 0; background: var(--cs-slate-900); }
.photo-band img {
  width: 100%;
  height: auto;
  display: block;
}

.split, .split-asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split-asym { grid-template-columns: 0.9fr 1.1fr; }

.card-grid, .feature-grid, .steps, .tool-grid, .info-grid {
  display: grid;
  gap: 20px;
}

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.tool-grid { grid-template-columns: 1fr 1fr; }
.tool-grid.single { grid-template-columns: minmax(0, 640px); }
.info-grid { grid-template-columns: 1.4fr 0.8fr; gap: 40px; align-items: start; }

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--cs-white);
  border: 1px solid var(--cs-slate-200);
  color: inherit;
  text-decoration: none;
}

a.product-card:hover { border-color: var(--cs-slate); }
.product-card .media {
  height: 230px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--cs-slate-50);
}
.product-card img { max-height: 190px; width: auto; object-fit: contain; }
.product-card .body { padding: 18px 18px 22px; }
.product-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.product-card p { margin: 0; color: var(--cs-slate-600); font-size: 0.95rem; }

.steps .num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cs-lime);
}

.steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--cs-slate-600); }

/* What an installation includes: numbered, two columns, ruled. */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.install-grid li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--cs-slate-200);
}
.install-grid .num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: var(--cs-lime);
}
.install-grid h3 { margin: 0 0 6px; font-size: 1.12rem; }
.install-grid p { margin: 0; color: var(--cs-slate-600); }

/* The two kinds of building CitySync installs in. */
.building-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.building-group {
  padding: 32px;
  background: var(--cs-white);
  border: 1px solid var(--cs-slate-200);
}
.section-tint .building-group { background: var(--cs-white); }
.building-group h3 { margin: 0 0 10px; font-size: 1.45rem; }
.building-group h3 a { color: inherit; text-decoration: none; }
.building-group h3 a:hover { text-decoration: underline; text-decoration-color: var(--cs-lime); }
.building-group > p { color: var(--cs-slate-600); margin-bottom: 22px; }
.building-group .place-list li { background: var(--cs-slate-100); }

.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cs-slate-200);
}

.industry-grid a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--cs-slate-200);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.industry-grid a:hover { background: var(--cs-slate-50); }
.industry-grid.plain { list-style: none; margin: 0; padding: 0; }
.industry-grid.plain li {
  padding: 18px 4px;
  border-bottom: 1px solid var(--cs-slate-200);
  font-weight: 600;
}
.industry-grid svg { flex: none; }

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.place-list li {
  padding: 10px 14px;
  background: var(--cs-slate-50);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.tool-panel {
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tool-panel.dark { background: var(--cs-slate-900); color: var(--cs-white); }
.tool-panel.dark h3 { color: var(--cs-white); }
.tool-panel.light { background: var(--cs-slate-50); }
.tool-panel h3 { margin: 0 0 10px; font-size: 1.6rem; }
.tool-panel p { margin: 0; max-width: 42ch; }
.tool-panel .btn { margin-top: auto; align-self: flex-start; padding-top: 22px; }

.cta-band { background: var(--cs-slate-900); color: var(--cs-white); padding: 88px 0; }
.cta-band h2 { color: var(--cs-white); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; max-width: 16ch; }
.cta-band h2.h2-lines { max-width: none; }
.cta-band .lede { color: var(--cs-slate-100); }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 12px;
  color: var(--cs-slate-600);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  background: var(--cs-lime);
}

.feature-grid h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature-grid p { margin: 0; color: var(--cs-slate-600); }

.table-wrap { overflow-x: auto; }
.spec-table, .compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.spec-table th,
.spec-table td,
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--cs-slate-200);
}
.spec-table th { width: 34%; font-weight: 600; }
.compare thead th { background: var(--cs-slate-50); font-weight: 700; }
.compare td:first-child, .compare th:first-child { font-weight: 600; }

.note {
  margin-top: 14px;
  color: var(--cs-slate-600);
  font-size: 0.92rem;
}

.site-footer {
  background: var(--cs-slate-800);
  color: var(--cs-slate-100);
  padding: 64px 0 28px;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--cs-lime-bright); }
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--cs-white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  column-gap: 32px;
  align-items: stretch;
}
.footer-brand { display: flex; align-items: stretch; }
.footer-logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}
.footer-grid > div:not(.footer-brand) li:first-child { margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.fineprint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cs-slate-200);
  font-size: 0.85rem;
}
.badge-row { display: flex; gap: 28px; align-items: center; }
.badge-row img { width: 148px; height: auto; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field-span-2 { grid-column: span 2; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { display: block; margin-top: 6px; color: var(--cs-slate-600); font-size: 0.85rem; font-weight: 400; }
.req { color: var(--cs-slate); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--cs-slate-200);
  background: var(--cs-white);
  color: var(--cs-slate);
  font: inherit;
  padding: 12px 12px;
  border-radius: 0;
}

textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--cs-slate); }

.form-alert { padding: 14px 16px; border: 1px solid var(--cs-slate-200); margin-bottom: 18px; }
.form-alert.is-error { background: var(--cs-slate-50); }
.form-alert.is-success { background: var(--cs-slate-50); border-color: var(--cs-lime); }
.form-alert ul { margin: 8px 0 0; padding-left: 18px; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#demo-form .form-actions { margin-top: 32px; }
.panel {
  background: var(--cs-slate-50);
  padding: 28px;
}
.panel h2 { margin-top: 0; }

.wizard-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.wizard-progress { height: 2px; background: var(--cs-slate-200); margin-bottom: 28px; }
.wizard-progress span { display: block; height: 100%; background: var(--cs-slate); width: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative;
  display: block;
  border: 1px solid var(--cs-slate-200);
  background: var(--cs-white);
  padding: 16px 16px 16px 18px;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; }
.choice small { display: block; color: var(--cs-slate-600); font-size: 0.88rem; }
.choice:has(input:checked) {
  border-color: var(--cs-slate);
  box-shadow: inset 3px 0 0 var(--cs-lime-bright);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--cs-slate); outline-offset: 2px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.result-list { display: grid; gap: 16px; }
.result-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 20px;
  border: 1px solid var(--cs-slate-200);
  background: var(--cs-white);
  padding: 16px;
}
.result-card img { width: 100%; max-height: 150px; object-fit: contain; background: var(--cs-slate-50); }
.result-card h3 { margin: 0 0 8px; }
.result-card ul { margin: 8px 0; padding-left: 18px; }
.result-card .notes { color: var(--cs-slate-600); }
.rank {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-lime);
}

.compare-note, .gap-note {
  border-left: 3px solid var(--cs-lime-bright);
  padding: 4px 0 4px 16px;
  margin: 8px 0 20px;
}

details.ruled { margin-top: 28px; }
details.ruled summary { cursor: pointer; font-weight: 700; }
.ruled ul { margin: 12px 0 0; padding-left: 18px; color: var(--cs-slate-600); }

.calc-results {
  margin-top: 36px;
  background: none;
  color: var(--cs-slate);
  padding: 0;
}
.calc-results h2 { color: var(--cs-slate); margin: 0 0 8px; font-size: 1.4rem; }
.calc-results p { color: var(--cs-slate-600); }
.result-stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--cs-white);
}
.result-stat span { color: var(--cs-slate-600); }
.result-stat strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cs-slate);
  text-align: right;
}
.result-stat.emphasis strong { color: var(--cs-slate); font-size: 1.7rem; }
.roi-note { margin: 14px 0 0; color: var(--cs-slate-600); font-size: 0.9rem; }
.roi-figure {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  font-weight: 700;
  color: var(--cs-slate);
}
.roi-fleet { margin: 0 0 8px; color: var(--cs-slate-600); }
.assumption-list { margin: 16px 0 0; padding-left: 18px; color: var(--cs-slate-600); }
.assumption-list li { margin: 0 0 10px; }

.range-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--cs-slate-600); }
input[type="range"] { padding: 0; accent-color: var(--cs-slate); }

.portal {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 32px) 20px 48px;
  background: var(--cs-slate-900);
  color: var(--cs-white);
}
.portal-card { width: min(640px, 100%); }
.portal h1 { color: var(--cs-white); margin-top: 18px; }
.portal p { color: var(--cs-slate-100); }

.js .hero-copy > *,
.js .page-hero .container > *,
.js .section-head > *,
.js .card-grid > *,
.js .feature-grid > *,
.js .steps > li,
.js .install-grid > li,
.js .building-groups > *,
.js .place-list > li,
.js .industry-grid > a,
.js .industry-grid > li,
.js .check-list > li,
.js .stat-row > li,
.js .film-grid > *,
.js .info-grid > *,
.js .split > *,
.js .product-hero-grid > *,
.js .form-grid > *,
.js .choice-grid > *,
.js .footer-grid > div,
.js .cta-band .container > *,
.js .product-stage,
.js .feature-film,
.js figure.film {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .hero-copy > *,
.js .page-hero .container > *,
.js .section-head > *,
.js .cta-band .container > * {
  transform: none;
}
.js .hero-copy > *.is-in,
.js .page-hero .container > *.is-in,
.js .section-head > *.is-in,
.js .card-grid > *.is-in,
.js .feature-grid > *.is-in,
.js .steps > li.is-in,
.js .install-grid > li.is-in,
.js .building-groups > *.is-in,
.js .place-list > li.is-in,
.js .industry-grid > a.is-in,
.js .industry-grid > li.is-in,
.js .check-list > li.is-in,
.js .stat-row > li.is-in,
.js .film-grid > *.is-in,
.js .info-grid > *.is-in,
.js .split > *.is-in,
.js .product-hero-grid > *.is-in,
.js .form-grid > *.is-in,
.js .choice-grid > *.is-in,
.js .footer-grid > div.is-in,
.js .cta-band .container > *.is-in,
.js .product-stage.is-in,
.js .feature-film.is-in,
.js figure.film.is-in {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0ms);
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header.is-menu-open .header-cta { display: block; margin: 12px 0 0; }
  .header:not(.is-menu-open) .header-cta { display: none; }
  .site-nav { display: none; }
  .header.is-menu-open .site-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cs-white);
    color: var(--cs-slate);
    overflow: auto;
    padding: 8px 22px 48px;
  }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px 0; }
  .nav-list > .header-cta > a.btn { padding: 12px 18px; }
  .has-menu::after { display: none; }
  .nav-menu {
    position: static;
    display: grid;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }
  .footer-grid, .product-hero-grid, .split, .split-asym, .info-grid { grid-template-columns: 1fr; }
  .footer-brand { display: block; }
  .footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
  .footer-grid > div:not(.footer-brand) { grid-row: auto; }
}

@media (max-width: 800px) {
  .section { padding: 64px 0; }
  .hero-media img {
    object-position: center 70%;
    transform: scale(1.55);
    transform-origin: center 70%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(21, 32, 43, 0.35) 0%, rgba(21, 32, 43, 0.82) 42%, rgba(21, 32, 43, 0.9) 100%);
  }
  .hero h1 { font-size: clamp(1.65rem, 6.6vw, 2.4rem); }
  .section-head h2.h2-lines { font-size: clamp(1.45rem, 5.4vw, 1.85rem); }
  .card-grid, .feature-grid, .steps, .tool-grid, .choice-grid, .industry-grid, .film-grid, .install-grid, .building-groups { grid-template-columns: 1fr; }
  .building-group { padding: 24px 20px; }
  .hero-points { margin-top: 28px; font-size: 0.9rem; }
  .stat-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .result-card { grid-template-columns: 1fr; }
  .result-card img { max-height: 180px; }
  .product-stage { min-height: 280px; }
  .page-hero h1 { max-width: none; }
  .fineprint { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-copy > *,
  .js .page-hero .container > *,
  .js .section-head > *,
  .js .card-grid > *,
  .js .feature-grid > *,
  .js .steps > li,
  .js .install-grid > li,
  .js .building-groups > *,
  .js .place-list > li,
  .js .industry-grid > a,
  .js .industry-grid > li,
  .js .check-list > li,
  .js .stat-row > li,
  .js .film-grid > *,
  .js .info-grid > *,
  .js .split > *,
  .js .product-hero-grid > *,
  .js .form-grid > *,
  .js .choice-grid > *,
  .js .footer-grid > div,
  .js .cta-band .container > *,
  .js .product-stage,
  .js .feature-film,
  .js figure.film {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-video { display: none; }
}

/* Homepage: the use cases CitySync assesses (four across, cards). */
.feature-grid.use-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use-grid article {
  padding: 22px 20px 24px;
  background: var(--cs-white);
  border: 1px solid var(--cs-slate-200);
  border-top: 3px solid var(--cs-lime-bright);
}
.use-grid h3 { font-size: 1.05rem; }
.use-grid p { font-size: 0.95rem; }
.use-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 32px;
}
.use-note p { margin: 0; max-width: 62ch; font-weight: 600; }

/* Careers: one card per opening. */
.feature-grid.job-list { grid-template-columns: 1fr; gap: 24px; }
.job {
  padding: 32px;
  background: var(--cs-white);
  border: 1px solid var(--cs-slate-200);
}
.job-head h3 { margin: 0 0 12px; font-size: 1.45rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.job-meta li {
  padding: 6px 12px;
  background: var(--cs-slate-100);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.job-pay { margin: 12px 0 0; }
.job-summary { margin: 18px 0 8px; font-size: 1.05rem; color: var(--cs-slate-600); max-width: 70ch; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.job-cols h4 { margin: 18px 0 10px; font-size: 1rem; }
.job .actions { margin: 24px 0 0; }

@media (max-width: 1180px) {
  .feature-grid.use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .feature-grid.use-grid, .job-cols { grid-template-columns: 1fr; }
  .job { padding: 24px 20px; }
}
