/* ==========================================================================
   SentriTag Systems — base: tokens, type, buttons, forms, utilities
   ========================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand (master brief) */
  --black: #050a12;
  --navy: #081525;
  --navy-2: #0c1d33;
  --navy-3: #132b4a;
  --cyan: #00c8f4;
  --blue: #2475ee;
  --blue-d: #1a5ccc;
  --silver: #dce5ec;

  /* Surfaces */
  --paper: #ffffff;
  --mist: #f1f5f8;
  --mist-2: #e4ebf1;
  --line: #d9e2ea;
  --line-d: rgb(220 229 236 / 0.13);

  /* Text */
  --ink: #0a1a2e;
  --text: #45566b;
  --text-mute: #6a7b8f;
  --text-d: #b5c3d1;

  /* Status */
  --ok: #1fae86;
  --warn: #c98712;
  --bad: #d64545;

  --f-head: "Manrope", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1500px;
  --topbar-h: 42px;
  /* Large-monitor scale (see "Large monitors" below); 1 everywhere else. */
  --z: 1;
  --gut: 24px;
  --r: 8px;
  --r-sm: 4px;
  --chamfer: 12px;
  --shadow: 0 1px 2px rgb(8 21 37 / 0.04), 0 18px 40px -24px rgb(8 21 37 / 0.28);
  --shadow-lg: 0 30px 70px -30px rgb(5 10 18 / 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
 * Wide screens: the layout is designed at 1500px + gutters (1548px). On any
 * wider window the whole page scales up to fill the width exactly, so a 1920
 * monitor, 2560 or 4K screen looks like a larger copy of a laptop instead of a
 * 1500px column with empty sides. --z is set precisely by the inline script in
 * head.php (width / 1548, capped by height so 21:9 ultrawides stay usable);
 * the steps below are the no-JavaScript fallback. Viewport units used in the
 * CSS are divided by --z, because zoom scales them as well. Browsers without
 * zoom keep the normal layout.
 */
@supports (zoom: 2) {
  @media (min-width: 1600px) and (min-height: 765px) { :root { --z: 1.033; } }
  @media (min-width: 1680px) and (min-height: 803px) { :root { --z: 1.085; } }
  @media (min-width: 1760px) and (min-height: 841px) { :root { --z: 1.136; } }
  @media (min-width: 1840px) and (min-height: 880px) { :root { --z: 1.188; } }
  @media (min-width: 1920px) and (min-height: 918px) { :root { --z: 1.24; } }
  @media (min-width: 2000px) and (min-height: 956px) { :root { --z: 1.291; } }
  @media (min-width: 2080px) and (min-height: 994px) { :root { --z: 1.343; } }
  @media (min-width: 2160px) and (min-height: 1033px) { :root { --z: 1.395; } }
  @media (min-width: 2240px) and (min-height: 1071px) { :root { --z: 1.447; } }
  @media (min-width: 2320px) and (min-height: 1109px) { :root { --z: 1.498; } }
  @media (min-width: 2400px) and (min-height: 1147px) { :root { --z: 1.55; } }
  @media (min-width: 2480px) and (min-height: 1186px) { :root { --z: 1.602; } }
  @media (min-width: 2560px) and (min-height: 1224px) { :root { --z: 1.653; } }
  @media (min-width: 2640px) and (min-height: 1262px) { :root { --z: 1.705; } }
  @media (min-width: 2720px) and (min-height: 1301px) { :root { --z: 1.757; } }
  @media (min-width: 2800px) and (min-height: 1338px) { :root { --z: 1.808; } }
  @media (min-width: 2880px) and (min-height: 1377px) { :root { --z: 1.86; } }
  @media (min-width: 2960px) and (min-height: 1415px) { :root { --z: 1.912; } }
  @media (min-width: 3040px) and (min-height: 1453px) { :root { --z: 1.963; } }
  @media (min-width: 3120px) and (min-height: 1492px) { :root { --z: 2.015; } }
  @media (min-width: 3200px) and (min-height: 1530px) { :root { --z: 2.067; } }
  @media (min-width: 3280px) and (min-height: 1568px) { :root { --z: 2.118; } }
  @media (min-width: 3360px) and (min-height: 1606px) { :root { --z: 2.17; } }
  @media (min-width: 3440px) and (min-height: 1645px) { :root { --z: 2.222; } }
  @media (min-width: 3520px) and (min-height: 1683px) { :root { --z: 2.273; } }
  @media (min-width: 3600px) and (min-height: 1721px) { :root { --z: 2.325; } }
  @media (min-width: 3680px) and (min-height: 1759px) { :root { --z: 2.377; } }
  @media (min-width: 3760px) and (min-height: 1797px) { :root { --z: 2.428; } }
  @media (min-width: 3840px) and (min-height: 1836px) { :root { --z: 2.48; } }
  html { zoom: var(--z); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: rgb(36 117 238 / 0.18); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* Dark surfaces flip text colours. */
.dark { background: var(--navy); color: var(--text-d); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark strong { color: #fff; }
.dark ::selection { background: rgb(0 200 244 / 0.3); color: #fff; }
.dark :focus-visible { outline-color: var(--cyan); }

/* --------------------------------------------------------------- sections */
.sec { padding-block: 112px; position: relative; }
.sec--mist { background: var(--mist); }
.sec--tight { padding-block: 80px; }
@media (max-width: 768px) { .sec { padding-block: 76px; } .sec--tight { padding-block: 60px; } }

/* Coordinate grid: a faint lat/long ruling used on dark panels. */
.grid-bg {
  background-image:
    linear-gradient(to right, rgb(220 229 236 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(220 229 236 / 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}
.grid-bg--light {
  background-image:
    linear-gradient(to right, rgb(8 21 37 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(8 21 37 / 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

/*
 * Brand blue panel (used with .dark for white type): the royal blue of the logo
 * shield, lit from the top corner like the shield's glare, with the coordinate
 * grid, a dashed route line and a faint shield watermark as texture.
 */
.blue {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #1450c0;
  background-image:
    radial-gradient(ellipse 55% 75% at 92% -10%, rgb(0 200 244 / 0.32), transparent 62%),
    radial-gradient(ellipse 60% 80% at -5% 110%, rgb(5 10 18 / 0.42), transparent 66%),
    linear-gradient(128deg, #0b3584 0%, #1450c0 46%, #1d66e2 100%);
  color: #d3e1f8;
}
.blue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.075) 1px, transparent 1px),
    radial-gradient(rgb(255 255 255 / 0.16) 1.2px, transparent 1.6px);
  background-size: 72px 72px, 72px 72px, 24px 24px;
  background-position: -1px -1px, -1px -1px, 0 0;
  mask-image: radial-gradient(ellipse 85% 95% at 70% 35%, #000 25%, transparent 90%);
}
.blue::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -120px;
  width: 560px;
  aspect-ratio: 225 / 256;
  pointer-events: none;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.02) 70%);
  -webkit-mask: url("../img/brand/sentritag-shield.png") center / contain no-repeat;
  mask: url("../img/brand/sentritag-shield.png") center / contain no-repeat;
}
.dark.blue .sec-title__intro, .dark.blue p { color: #d3e1f8; }
.dark.blue .sec-title__label, .dark.blue .tech__k { color: #7fe6ff; }
.dark.blue .route-mark { color: #7fe6ff; }
.dark.blue .reticle { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.28); color: #fff; }
.dark.blue .reticle::before, .dark.blue .reticle::after { background: #7fe6ff; }
.dark.blue .btn--primary { --btn-bg: #fff; color: var(--navy); }
.dark.blue .btn--primary:hover { --btn-bg: var(--cyan); color: var(--navy); }
.dark.blue .link-arrow .icon { color: #7fe6ff; }
/* White cards inside a blue panel keep dark text. */
.dark .light .link-arrow { color: var(--ink); }
.dark .light .link-arrow .icon { color: var(--blue); }
.dark .light p { color: var(--text); }
@media (max-width: 760px) { .blue::after { width: 340px; right: -110px; bottom: -80px; } }

/* ----------------------------------------------------------- section title */
.sec-title { max-width: 640px; }
.sec-title--center { margin-inline: auto; text-align: center; }
.sec-title__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.dark .sec-title__label { color: var(--cyan); }
.sec-title__h { font-size: clamp(2rem, 3.3vw, 2.85rem); line-height: 1.1; }
.sec-title__intro { margin-top: 22px; font-size: 1.06rem; }
.dark .sec-title__intro { color: var(--text-d); }

/* Route mark: a short track ending at a position dot (replaces the template's wave). */
.route-mark {
  display: block;
  width: 58px;
  height: 10px;
  margin-top: 20px;
  color: var(--blue);
  background:
    radial-gradient(circle at calc(100% - 5px) 50%, currentColor 3.6px, transparent 4.2px),
    repeating-linear-gradient(to right, currentColor 0 7px, transparent 7px 11px) left center / calc(100% - 13px) 2px no-repeat;
  transform-origin: left center;
}
.dark .route-mark { color: var(--cyan); }
.sec-title--center .route-mark { margin-inline: auto; }

/* ----------------------------------------------------------------- buttons */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
/* Filled buttons carry a chamfered corner, like an equipment nameplate. Their fill
 * (--btn-bg) is drawn by ::before in effects.css so a shadow can follow the shape. */
.btn--primary { --btn-bg: var(--blue); color: #fff; }
.btn--primary:hover { --btn-bg: var(--blue-d); }
.dark .btn--primary:hover { --btn-bg: #fff; color: var(--navy); }
.btn--dark { --btn-bg: var(--navy); color: #fff; }
.btn--dark:hover { --btn-bg: var(--blue); }
.btn--light { --btn-bg: #fff; color: var(--navy); }
.btn--light:hover { --btn-bg: var(--cyan); color: var(--navy); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.74rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow .icon { width: 16px; height: 16px; color: var(--blue); transition: transform 0.25s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.dark .link-arrow { color: #fff; }
.dark .link-arrow .icon { color: var(--cyan); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  background: var(--mist-2);
  color: var(--ink);
}
.chip .icon { width: 14px; height: 14px; }
.chip--gps { background: #dff6fd; color: #035f7a; }
.chip--ble { background: #e2ecfd; color: #1747a3; }
.chip--access { background: #eceff3; color: #3a4a5d; }
.chip--safety { background: #fdf1dc; color: #7a4d06; }
.chip--service { background: #e6f7f1; color: #0b6b50; }
.dark .chip { background: rgb(255 255 255 / 0.08); color: #fff; }
.dark .chip--gps { background: rgb(0 200 244 / 0.14); color: #7fe3fa; }
.dark .chip--ble { background: rgb(36 117 238 / 0.2); color: #a9c6fa; }

/* ------------------------------------------------------------------- forms */
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--text-mute); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color 0.2s, background 0.2s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232475ee' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.field-error { font-size: 0.82rem; color: var(--bad); font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.93rem; }
.form-status--ok { background: #e3f6ef; color: #0b5e46; }
.form-status--bad { background: #fbe9e9; color: #8f2424; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--text-mute); }
.small { font-size: 0.86rem; }
.stack > * + * { margin-top: 1em; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.5em 0 0.5em; }
.prose ul { list-style: none; margin: 1em 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Scroll reveal (added by script, so content shows without it). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .route-mark, .js .route-mark.reveal { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.25s; }
.js .reveal.is-in .route-mark, .js .route-mark.reveal.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Light panel inside a dark section (forms, selector, cards): restore light-surface colours. */
.dark .light { color: var(--text); }
.dark .light h1, .dark .light h2, .dark .light h3, .dark .light h4, .dark .light strong, .dark .light legend { color: var(--ink); }
.dark .light .btn--primary:hover { --btn-bg: var(--blue-d); color: #fff; }
.dark .light :focus-visible { outline-color: var(--blue); }
.dark .light .sec-title__label { color: var(--blue); }
