/* SmartPatch e-brochure (/smartpatch). Same page prints to the PDF (print rules at the end).
   Colours come from the box itself: graphite housing, steel, aluminium; Nexion red only for the brand and safety. */
:root {
  --graphite: #1a2129;
  --steel: #2b3640;
  --alu: #e9edf0;
  --paper: #ffffff;
  --ink: #1a2129;
  --ink-2: #4a5763;
  --rule: #cfd6dc;
  --red: #c41130;
  --now: #1e7f55;
  --demo: #2364a8;
  --road: #6a7682;
  --measure: 68ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--alu); color: var(--ink);
  font: 400 17px/1.55 "Barlow", system-ui, sans-serif;
}
h1, h2, h3, .product, .theme-name, .hero-shot, dt { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 22px; }
h3 { font-size: 28px; }
p { margin: 0 0 12px; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--demo); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.small { font-size: 14px; color: var(--ink-2); }

/* ---- Hero: the box on its own graphite, bleeding off the right edge */
.hero { background: var(--graphite); color: #f2f5f7; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 12px;
  min-height: 560px; padding-top: 48px; padding-bottom: 48px; }
.logo { display: block; margin-bottom: 44px; }
.product { font-weight: 600; font-size: 22px; color: #9fb0bf; margin: 0 0 8px; }
h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.95; margin-bottom: 26px; text-wrap: balance; }
.lede { font-size: 19px; color: #c9d3dc; max-width: 46ch; }
.hero-shot { margin: 0 -18vw 0 0; }
.hero-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #a50e28; }
.btn.ghost { border: 1.5px solid currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }

main > section { padding-top: 64px; padding-bottom: 64px; }

/* ---- The gap */
.gap h2 { max-width: 20ch; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 980px; color: var(--ink-2); font-size: 18px; }

/* ---- Diagram */
main > .how { padding-top: 0; }
.diagram { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 24px 18px 18px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 24px; text-align: center; margin-top: 8px; }
.dg-fill { fill: var(--steel); }
.dg-radio { fill: var(--graphite); } .dg-ant { stroke: var(--graphite); stroke-width: 4; stroke-linecap: round; }
.dg-vehicle { fill: var(--alu); stroke: var(--rule); stroke-width: 2; }
.dg-box { fill: var(--paper); stroke: #9aa7b3; stroke-width: 1.5; }
.dg-hub { fill: var(--graphite); }
.dg-hub-t { fill: #fff; font: 700 22px "Barlow Condensed", sans-serif; text-anchor: middle; }
.dg-room { fill: var(--steel); } .dg-screen { fill: #3c4b58; stroke: #6f8191; }
.dg-label { font: 700 22px "Barlow Condensed", sans-serif; fill: var(--ink); text-anchor: middle; }
.dg-small { font: 600 15px "Barlow", sans-serif; fill: var(--ink); text-anchor: middle; }
.dg-small.light { fill: #e8eef4; }
.dg-note { font: 400 14px "Barlow", sans-serif; fill: var(--ink-2); text-anchor: middle; }
.left { text-anchor: start; }
.dg-links path, .dg-line { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.dg-arrowhead { fill: var(--ink-2); } .dg-em-head { fill: var(--red); }
.dg-air { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.dg-tunnel { fill: none; stroke: var(--ink); stroke-width: 6; }
.dg-tunnel-end { fill: var(--ink); }
.dg-em { fill: none; stroke: var(--red); stroke-width: 3; }
.dg-beacon { fill: var(--red); }
.dg-note.em { fill: var(--red); font-weight: 600; }

/* ---- Status tags: shape differs as well as colour, so they read in greyscale print too */
.tag { display: inline-block; justify-self: start; white-space: nowrap; font: 600 13px/1 "Barlow", sans-serif; padding: 6px 9px; border-radius: 3px; }
.tag.now { background: var(--now); color: #fff; }
.tag.demo { color: var(--demo); box-shadow: inset 0 0 0 1.5px var(--demo); background: #fff; }
.tag.road { color: var(--road); border: 1.5px dashed var(--road); background: transparent; padding: 4.5px 7.5px; }

.legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 18px 0 28px;
  border-bottom: 1px solid var(--rule); }
.legend > p { font-weight: 600; margin: 4px 0 0; }
.legend dl { margin: 0; display: grid; gap: 10px; }
.legend dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.legend dd { margin: 0; color: var(--ink-2); }

/* ---- Feature themes: the story on the left, the tagged list on the right */
.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; padding: 44px 0;
  border-bottom: 1px solid var(--rule); }
.theme header > p:last-child { color: var(--ink-2); max-width: 46ch; }
.theme-name { font-weight: 600; font-size: 19px; color: var(--ink-2); margin-bottom: 6px; }
.theme h3 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 16px; }
.theme.safety .theme-name, .theme.safety h3 { color: var(--red); }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--rule); }
.flist li:first-child { border-top: 0; padding-top: 4px; }
.flist p { margin: 0; max-width: var(--measure); }
.flist li.headline-feature { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(106,118,130,0.08) 8px 16px);
  padding-left: 10px; margin-left: -10px; padding-right: 10px; border-radius: 4px; }

/* ---- See it live */
.live { background: var(--steel); color: #eef2f5; }
.live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.live p { color: #c9d3dc; max-width: 52ch; }
.live-points { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--red); }
.live-points li { padding: 10px 0 10px 20px; font-size: 18px; }

/* ---- Built for, ways to buy: plain lists, not cards */
.sector-list, .buy-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 32px; }
.sector-list div, .buy-list div { border-top: 3px solid var(--graphite); padding-top: 12px; }
.sector-list dt, .buy-list dt { font-weight: 700; font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.sector-list dd, .buy-list dd { margin: 0; color: var(--ink-2); }
.cta-line { margin-top: 32px; font-weight: 600; font-size: 19px; }

/* ---- Specifications */
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.faces figure { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 12px; }
.faces img { display: block; width: 100%; height: auto; }
.faces figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; text-align: center; }
.spec-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.spec { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--rule); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { font-weight: 600; width: 32%; white-space: nowrap; }
.proven { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--now); padding: 18px 20px; font-size: 15px; }
.proven h3 { font-size: 24px; margin-bottom: 6px; }
.proven ul { padding-left: 18px; margin: 10px 0 12px; }
.proven li { margin: 3px 0; }

/* ---- Roadmap: hatched, set apart, never looks like a shipping feature */
.roadmap { background: repeating-linear-gradient(-45deg, #dfe4e8 0 10px, #e6eaed 10px 20px); border-top: 1px dashed var(--road);
  border-bottom: 1px dashed var(--road); }
.roadmap h2 { color: var(--ink-2); margin-bottom: 10px; }
.disclaimer { font-weight: 600; margin-bottom: 18px; }
.roadmap .flist { max-width: 860px; }
.roadmap .flist p { color: var(--ink-2); }
.roadmap .flist li { border-top-color: rgba(106,118,130,0.3); }

/* ---- Footer */
.foot { background: var(--graphite); color: #c9d3dc; padding: 44px 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot address { font-style: normal; line-height: 1.7; }
.foot strong { color: #fff; }
.fine p { margin: 0 0 6px; font-size: 13px; color: #9fb0bf; }

/* ---- Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 36px; }
  .logo { margin-bottom: 28px; }
  .hero-shot { margin: 8px -24vw 0 0; order: -1; }
  .hero-grid .hero-copy { order: 1; }
  .lede { font-size: 17px; }
  main > section { padding-top: 52px; padding-bottom: 52px; }
  .cols, .theme, .live-grid, .faces, .spec-grid, .legend, .foot-grid { grid-template-columns: 1fr; }
  .theme { gap: 18px; padding: 32px 0; }
  .legend { gap: 12px; }
  .legend dl div { grid-template-columns: 1fr; gap: 4px; }
  .flist li { grid-template-columns: 1fr; gap: 6px; }
  .spec th { white-space: normal; width: 38%; }
  .diagram { padding: 12px 8px 12px; margin: 0 -8px; overflow-x: auto; }
  .diagram svg { min-width: 640px; } /* readable labels; the drawing scrolls inside its box, never the page */
}

/* ---- The PDF (headless Chromium prints this page) */
@page { size: A4; margin: 12mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.45; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .hero { border-radius: 6px; }
  .hero-grid { min-height: 0; padding: 9mm 8mm; grid-template-columns: 1fr 1.1fr; }
  .logo { margin-bottom: 8mm; }
  .hero-shot { margin: 0 -8mm 0 0; }
  h1 { font-size: 40pt; margin-bottom: 12px; }
  .lede { font-size: 11pt; }
  h2 { font-size: 22pt; margin-bottom: 10px; break-after: avoid; }
  .actions { display: none; }
  main > section { padding-top: 7mm; padding-bottom: 4mm; }
  .cols { font-size: 10pt; gap: 8mm; }
  .how { break-inside: avoid; }
  .diagram { padding: 8px; } .diagram svg { max-height: 62mm; }
  .diagram figcaption { font-size: 15pt; }
  .legend { padding: 6px 0 10px; }
  .theme { gap: 8mm; padding: 10px 0; break-inside: avoid; }
  .theme h3 { font-size: 17pt; margin-bottom: 8px; }
  .theme-name { font-size: 11pt; }
  .flist li { padding: 4px 0; grid-template-columns: 96px minmax(0, 1fr); break-inside: avoid; }
  .tag { font-size: 8pt; padding: 4px 6px; }
  .tag.road { padding: 2.5px 4.5px; }
  .live { padding: 6mm 8mm; border-radius: 6px; break-inside: avoid; }
  .live-grid { gap: 8mm; }
  .live-points li { font-size: 10pt; padding: 4px 0 4px 12px; }
  .sector-list, .buy-list { grid-template-columns: repeat(5, 1fr); gap: 4mm; }
  .buy-list { grid-template-columns: repeat(3, 1fr); }
  .sector-list dt, .buy-list dt { font-size: 13pt; }
  .gap h2 { max-width: none; }
  .hero-grid { padding: 7mm 8mm; }
  .faces { gap: 4mm; margin-bottom: 4mm; } .faces figure { padding: 8px; }
  .spec { font-size: 8.5pt; } .spec th, .spec td { padding: 4px 8px; }
  .spec-grid { gap: 5mm; break-inside: avoid; }
  .proven { font-size: 8.5pt; padding: 10px 12px; }
  .roadmap { break-inside: avoid; padding: 6mm !important; border-radius: 6px; }
  .roadmap .flist li { padding: 2px 0; }
  .foot { padding: 6mm 8mm; break-inside: avoid; border-radius: 6px; }
  a { text-decoration: none; }
}

/* ---- 12 Oct redesign: plain dot-points, the in-development group, the four differentiators */
.pts { list-style: none; margin: 0; padding: 0; }
.pts li { position: relative; padding: 7px 0 7px 22px; max-width: var(--measure); }
.pts li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--graphite); }
.theme.safety .pts li::before { background: var(--red); }
.dev { margin-top: 20px; padding: 14px 18px 10px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--demo); }
.dev-h { font: 600 19px/1.2 "Barlow Condensed", "Arial Narrow", sans-serif; color: var(--demo); margin: 0 0 4px; }
.dev .pts li { color: var(--ink-2); padding-top: 5px; padding-bottom: 5px; }
.dev .pts li::before, .theme.safety .dev .pts li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--demo); top: 15px; }
.features > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }

/* ---- What sets it apart: four wide rows, the name set large (owner pick, 12 Oct) */
.apart-b h2 { margin-bottom: 24px; }
.apart-b > p { color: var(--ink-2); max-width: 60ch; margin-bottom: 22px; }
.apart-b ul { list-style: none; margin: 0; padding: 0; border-bottom: 3px solid var(--graphite); }
.apart-b li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; padding: 26px 0; border-top: 3px solid var(--graphite); }
.apart-b h3 { font-size: clamp(34px, 4.6vw, 54px); line-height: 0.98; }
.apart-b h3 span { display: block; font-size: 0.5em; font-weight: 600; color: var(--red); margin-top: 8px; line-height: 1.15; }
.apart-b li p { margin: 4px 0 0; font-size: 19px; max-width: 52ch; }

@media (max-width: 760px) {
  .apart-b li { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .apart-b li p { font-size: 17px; }
  .dev { padding: 12px 14px 8px; }
}
@media print {
    .pts li { padding: 2px 0 2px 16px; } .pts li::before { top: 8px; width: 5px; height: 5px; } .dev .pts li::before { top: 8px; }
  .dev { margin-top: 6px; padding: 5px 10px 4px; } .dev-h { font-size: 11pt; }
  .apart-b li { padding: 8px 0; gap: 8mm; break-inside: avoid; } .apart-b h3 { font-size: 22pt; } .apart-b li p { font-size: 10pt; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
