/* VisionSpect Solutions — site.css
   Brand: Montserrat (headings), Lato (body), green #70AD47.
   Bump ?v= in the HTML when this file changes. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  /* brand */
  --green: #70AD47;          /* graphics, fills, button background */
  --green-ink: #3F7A22;      /* green text on light backgrounds (AA) */
  --green-tint: #EDF5E7;
  --green-soft: #CFE5BF;

  /* neutrals: cool, like a lit inspection booth */
  --ink: #1D2326;
  --steel: #55626A;
  --rule: #D7DEE0;
  --paper: #F3F6F5;
  --white: #FFFFFF;

  /* HMI screen */
  --screen: #141B1F;
  --screen-2: #1C252A;
  --screen-line: #2C3940;
  --screen-text: #C9D4D9;
  --screen-dim: #7F9199;

  /* signal */
  --ng: #E5533D;
  --ng-ink: #B53A26;
  --warn: #D9822B;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lato", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { text-wrap: balance; font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 750; line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--ink); background: var(--green);
  padding: 15px 26px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
  transition: background .15s ease;
}
.btn:hover { background: #7FBC55; color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-quiet { font-family: var(--font-head); font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; padding: 12px 4px; }
.btn-quiet:hover { color: var(--green-ink); }

/* header */
/* black, to match the black disc behind the lens in the white wordmark */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #1E2629; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 158px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.site-nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; font: 700 .9rem var(--font-head); color: #fff;
    background: transparent; border: 1.5px solid #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #000; border-bottom: 1px solid #1E2629; padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #1E2629; font-size: 1rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy h1 { max-width: 12ch; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--steel); max-width: 34ch; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-note { margin: 28px 0 0; font-size: .95rem; color: var(--steel); display: flex; align-items: center; gap: 10px; }
.hero-note::before { content: ""; width: 22px; height: 2px; background: var(--green); flex: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 13ch; }
}

/* HMI panel (the hero graphic) */
.hmi {
  margin: 0; background: var(--screen); color: var(--screen-text);
  border-radius: 16px; overflow: hidden;
  border: 1px solid #0c1113;
  box-shadow: 0 30px 60px -30px rgba(20,27,31,.55), 0 0 0 6px #E2E8EA, 0 0 0 7px #CDD6D9;
  font-family: var(--font-body);
}
.hmi-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--screen-2); border-bottom: 1px solid var(--screen-line); font-size: .82rem; }
.hmi-title { color: var(--screen-text); font-weight: 700; }
.hmi-status { display: inline-flex; align-items: center; gap: 8px; color: #A9D38A; font-weight: 700; }
.hmi-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(112,173,71,.25); }
.hmi-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; }
.scene { width: 100%; height: auto; }
.scene-label { font: 700 11px var(--font-body); fill: var(--screen-dim); }
.reject-label { fill: #E98A7B; }
.hmi-side { border-left: 1px solid var(--screen-line); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.hmi-card-title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; color: var(--screen-dim); }
.inset { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--screen-line); }
.score { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; }
.score-label { color: var(--screen-dim); }
.score-track { position: relative; height: 6px; border-radius: 3px; background: var(--screen-line); }
.score-fill { position: absolute; inset: 0 auto 0 0; width: 97%; border-radius: 3px; background: var(--green); transition: width .35s ease, background .2s; }
.score-fill.ng { background: var(--ng); }
.score-limit { position: absolute; top: -4px; bottom: -4px; left: 80%; width: 2px; background: #E98A7B; }
.score-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--screen-text); min-width: 2.6em; text-align: right; }
.hmi-results { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--screen-line); }
.hmi-results .hmi-card-title { margin: 0; flex: none; }
.results { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow: hidden; font-size: .74rem; font-variant-numeric: tabular-nums; }
.results li { display: flex; gap: 6px; padding: 4px 8px; border-radius: 5px; background: var(--screen-2); white-space: nowrap; flex: none; }
.results li .id { color: var(--screen-dim); }
.results li .r { font-weight: 700; color: #A9D38A; }
.results li.ng { background: rgba(229,83,61,.16); }
.results li.ng .r { color: #F09684; }
.hmi-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--screen-line); background: var(--screen-2); }
.hmi-foot > div { padding: 12px 18px; display: flex; flex-direction: column; }
.hmi-foot > div + div { border-left: 1px solid var(--screen-line); }
.hmi-foot .k { font-size: .72rem; color: var(--screen-dim); font-weight: 700; }
.hmi-foot .v { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.hmi-foot .v.ng { color: #F09684; }
.hmi-foot .v.ok { color: #A9D38A; }

@media (max-width: 640px) {
  .hmi-body { grid-template-columns: 1fr; }
  .hmi-side { border-left: 0; border-top: 1px solid var(--screen-line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
  .hmi-side .score { margin-top: 0; grid-template-columns: auto 1fr; }
  .hmi-side .score-val { grid-column: 1 / -1; text-align: left; font-family: var(--font-head); font-size: 1.4rem; }
  .hmi-results { padding: 10px 12px; }
  .results li:nth-child(n+4) { display: none; }
  .hmi-foot > div { padding: 10px 12px; }
  .hmi-foot .v { font-size: 1.1rem; }
}

/* proof strip */
.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.proof-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-list li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-size: .95rem; color: var(--steel); }
.proof-list li + li { border-left: 1px solid var(--rule); }
.proof-list strong { color: var(--ink); }
.proof-list svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li:nth-child(3) { border-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li { padding: 14px 4px; }
  .proof-list li + li { border-left: 0; border-top: 1px solid var(--rule); }
}

/* sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--steel); font-size: 1.125rem; margin: 16px 0 0; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.service { display: flex; flex-direction: column; }
.service-art { background: var(--paper); border-radius: 14px; padding: 18px; margin-bottom: 26px; border: 1px solid var(--rule); }
.service-art svg { width: 100%; height: auto; }
.service h3 { font-size: 1.4rem; }
.hook { font-style: italic; color: var(--green-ink); margin: 8px 0 14px; font-size: 1.05rem; }
.service p:not(.hook) { color: var(--steel); }
.ticks { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: .95rem; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* shared illustration styles */
.axis { stroke: #AEB9BE; stroke-width: 1.5; }
.limit { stroke: var(--ng); stroke-width: 1.5; stroke-dasharray: 5 5; }
.art-label { font: 700 11px var(--font-body); fill: var(--steel); }
.art-label.strong { fill: var(--ink); }
.warn-text { fill: var(--ng-ink); }
.trend { fill: none; stroke: var(--green-soft); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pts circle { fill: var(--green); }
.pt-warn { fill: var(--warn); }
.ring-warn { fill: none; stroke: var(--warn); stroke-width: 2; }
.tile { fill: var(--white); stroke: var(--rule); }
.part { fill: #A9BCC7; }
.hole { fill: var(--paper); stroke: #8FA3AE; }
.missing { fill: none; stroke: var(--ng); stroke-width: 2; stroke-dasharray: 3 3; }
.flag { fill: none; stroke: var(--ng); stroke-width: 2; }
.bottle { fill: #DCE5E9; }
.label { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.5; }
.code rect { fill: var(--ink); }
.dim { fill: none; stroke: var(--green-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bars rect { fill: #E6B8AE; }
.bars.good rect { fill: var(--green); }
.event { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.wrench circle { fill: var(--ink); }
.wrench path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; transform: translate(0px, 0px); }

/* vendor-neutral */
.neutral { background: var(--paper); }
.neutral-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.neutral-copy h2 { margin-bottom: 22px; }
.neutral-copy p { color: var(--steel); font-size: 1.1rem; max-width: 46ch; }
.neutral-art { margin: 0; }
.neutral-art svg { width: 100%; height: auto; }
.paths path { fill: none; stroke: #BCC7CC; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.paths path.best { stroke: var(--green); stroke-width: 4; stroke-dasharray: none; }
.node-main { fill: var(--ink); }
.node-title { font: 800 17px var(--font-head); }
.node-sub { font: 400 12px var(--font-body); }
.light { fill: #fff; }
.node-sub.light { fill: #B5C2C8; }
.opt rect { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; }
.opt text { font: 700 14px var(--font-head); fill: var(--steel); }
.opt.chosen rect { fill: var(--green); stroke: var(--green); }
.opt.chosen text { fill: var(--ink); }
.opt.chosen circle { fill: var(--ink); }
.opt.chosen path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .neutral-grid { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 14px); }
.step { position: relative; padding: 0 24px 0 0; }
.step-num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.1rem var(--font-head); box-shadow: 0 0 0 8px var(--white); }
.step svg { width: 44px; height: 44px; margin: 28px 0 14px; fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--steel); font-size: 1rem; max-width: 26ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 90px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--green) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0; }
  .step-num { grid-row: span 3; }
  .step svg { display: none; }
  .step h3 { margin-top: 10px; }
}

.mep { margin-top: clamp(48px, 6vw, 72px); display: flex; gap: 22px; align-items: flex-start; background: var(--green-tint); border-left: 5px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 28px clamp(20px, 3vw, 36px); }
.mep h3 { margin-bottom: 8px; }
.mep p { margin: 0; color: var(--ink); max-width: 70ch; }
.mep-mark svg { width: 44px; height: 44px; fill: none; stroke: var(--green-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .mep { flex-direction: column; gap: 12px; } }

/* about */
.about { background: var(--white); border-top: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { font-size: 1.1rem; max-width: 56ch; }
.sig { font-family: var(--font-head); font-weight: 700; color: var(--green-ink); margin-top: 24px; }
.path { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 44px; width: 2px; background: var(--rule); }
.path li { position: relative; padding: 0 0 26px 40px; display: flex; flex-direction: column; }
.path li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid #AEB9BE; }
.path li.now::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px var(--green-tint); }
.path-k { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.path-v { color: var(--steel); font-size: .98rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.quote { margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 28px; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule); }
.quote-mark { width: 48px; fill: var(--green); }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 550; line-height: 1.45; letter-spacing: -0.01em; max-width: 60ch; }
.quote figcaption { grid-column: 2; color: var(--steel); }
.quote figcaption strong { color: var(--ink); }
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; } .quote figcaption { grid-column: 1; } }

/* contact */
.contact { background: var(--ink); color: #DCE3E6; }
.contact h2 { color: #fff; margin-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy p { font-size: 1.15rem; max-width: 38ch; color: #C3CED3; }
.contact-direct { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-direct li { display: flex; gap: 12px; align-items: center; }
.contact-direct svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-direct a { color: #fff; font-weight: 700; text-decoration-color: var(--green); }
.contact-direct a:hover { color: var(--green); }

.form { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.opt-text { font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #C2CCD0; border-radius: 8px; background: var(--white); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #8796A0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(112,173,71,.3); }
.chips legend { margin-bottom: 8px; }
.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 400; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid #C2CCD0; border-radius: 999px; font-size: .92rem; }
.chips input:checked + span { background: var(--green-tint); border-color: var(--green-ink); color: var(--ink); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.form-note { margin: 0; font-size: .85rem; color: var(--steel); text-align: center; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: #000; color: #93A3AA; padding: 40px 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-grid img { width: 132px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #C9D4D9; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--green); }
.fine { margin: 0; font-size: .85rem; width: 100%; }

/* simple pages (privacy, thanks, 404) */
.page { padding: clamp(48px, 8vw, 96px) 0; min-height: 60vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.page h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--steel); }
.page-mark { width: 88px; margin-bottom: 28px; }
