/* LicensePlatesRecognition.com — "road sign" design system.
   Overpass = the open-source cut of Highway Gothic; green = guide-sign green; yellow = plate yellow. */
:root {
  --ground: #F2F4F7; --surface: #FFFFFF; --ink: #0F1B2D; --muted: #4A5668; --line: #D6DDE6;
  --sign: #0A6B3F; --sign-2: #085833; --sign-ink: #FFFFFF; --plate: #F5C400; --plate-ink: #111;
  --hero-fade: rgba(10, 18, 30, .82);
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.06);
  --radius: 14px; --wrap: 1160px;
  --f-display: "Overpass", "Segoe UI", system-ui, sans-serif;
  --f-body: "Overpass", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B121B; --surface: #111B27; --ink: #EDF1F6; --muted: #A7B2C1; --line: #22303F;
    --sign: #17925B; --sign-2: #127A4B; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --ground: #0B121B; --surface: #111B27; --ink: #EDF1F6; --muted: #A7B2C1; --line: #22303F;
  --sign: #17925B; --sign-2: #127A4B; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sign); text-underline-offset: 3px; }
a:hover { color: var(--sign-2); }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.read { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 17px/1 var(--f-display); letter-spacing: -.01em; }
.brand small { display: block; font: 600 11px/1.2 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.plate-mark { display: inline-grid; place-items: center; width: 54px; height: 30px; border-radius: 5px; background: var(--plate); color: var(--plate-ink); font: 800 14px/1 var(--f-mono); letter-spacing: .08em; box-shadow: inset 0 0 0 2px #111, inset 0 0 0 4px var(--plate); position: relative; }
.plate-mark::before, .plate-mark::after { content: ""; position: absolute; top: 5px; width: 3px; height: 3px; border-radius: 50%; background: #111; }
.plate-mark::before { left: 6px; } .plate-mark::after { right: 6px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { background: color-mix(in srgb, var(--sign) 10%, transparent); color: var(--sign); }
.nav .btn { margin-left: 6px; }
.nav a.btn--sign, .nav a.btn--sign:hover { color: var(--sign-ink); background: var(--sign); }
.nav a.btn--sign:hover { background: var(--sign-2); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 700 15px var(--f-body); }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* buttons: green guide-sign */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 800 17px/1.1 var(--f-display); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--sign { background: var(--sign); color: var(--sign-ink); box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px rgba(255,255,255,.85); }
.btn--sign:hover { background: var(--sign-2); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--sign); color: var(--sign); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-note { font-size: 14px; color: var(--muted); }

/* plate chip (eyebrow) */
.chip { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; background: var(--plate); color: var(--plate-ink); font: 800 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #111; }

/* hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: #0B121B; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; z-index: -2; }
.hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-fade) 0%, rgba(10,18,30,.62) 50%, rgba(10,18,30,.15) 100%); }
.hero .wrap { padding-block: 72px 76px; display: grid; gap: 20px; max-width: var(--wrap); }
.hero h1 { max-width: 760px; }
.hero .lead { max-width: 620px; font-size: 20px; color: #E7ECF2; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.hero .btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero .btn-note { color: #CFD8E3; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(10,18,30,.45) 0%, rgba(10,18,30,.86) 55%, rgba(10,18,30,.95) 100%); }
  .hero .wrap { padding-block: 120px 44px; }
  .hero .lead { font-size: 18px; }
}
.hero--page .wrap { padding-block: 56px 54px; }

/* sections */
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 760px; }
.head p { color: var(--muted); font-size: 19px; }
.prose { display: grid; gap: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose h2 { margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 17px; }
.card a.more { font-weight: 700; text-decoration: none; }
.card--img { padding: 0; overflow: hidden; }
.card--img .body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.card--img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.split { display: grid; gap: 34px; grid-template-columns: 1.05fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
figure { margin: 0; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { font-size: 14px; color: var(--muted); padding: 10px 14px; }

/* numbered pipeline — the real stages of an LPR read */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; }
.pipeline li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; }
.pipeline li::before { content: "0" counter(s); font: 800 14px var(--f-mono); color: var(--sign); letter-spacing: .08em; }
.pipeline p { color: var(--muted); font-size: 16px; }

/* the exit sign: every page's route to VISEC */
.exit { background: var(--sign); color: #fff; border-radius: 16px; padding: 26px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px rgba(255,255,255,.9), var(--shadow); display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: center; }
.exit .tab { display: inline-block; background: #fff; color: var(--sign); font: 800 13px/1 var(--f-mono); letter-spacing: .12em; padding: 6px 10px; border-radius: 5px; margin-bottom: 10px; }
.exit h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.exit p { color: #E3F3EA; margin-top: 8px; }
.exit ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: 16px; }
.exit ul li::before { content: "✓ "; }
.exit .btn { background: #fff; color: var(--sign); box-shadow: none; }
.exit .btn:hover { background: #F2FFF7; color: var(--sign-2); }
@media (max-width: 760px) { .exit { grid-template-columns: 1fr; padding: 22px; } .exit .btn { width: 100%; } }

/* comparison / spec tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-display); font-size: 15px; background: color-mix(in srgb, var(--sign) 7%, var(--surface)); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--sign); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font: 700 18px/1.35 var(--f-display); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sign); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 16px; color: var(--muted); display: grid; gap: 10px; }

/* callout box */
.tip { border-left: 5px solid var(--plate); background: var(--surface); border-radius: 0 12px 12px 0; padding: 16px 18px; }
.tip b { display: block; margin-bottom: 4px; }

/* breadcrumbs */
.crumbs { font: 600 13px var(--f-mono); letter-spacing: .04em; color: #CFD8E3; }
.crumbs a { color: #fff; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 44px 110px; font-size: 15px; color: var(--muted); }
.foot .cols { display: grid; gap: 26px; grid-template-columns: 1.4fr repeat(2, 1fr); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h3 { font-size: 14px; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); } .foot a:hover { color: var(--sign); }
.foot .disclose { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* mobile sticky exit */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; }
.sticky .btn { width: 100%; }
@media (max-width: 760px) { .sticky { display: block; transform: translateY(140%); transition: transform .25s ease; } .sticky.show { transform: none; } }

/* hero secondary link + compatibility strip + table marks */
.text-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; }
.text-link:hover { color: var(--plate); }
.compat { background: var(--surface); border-bottom: 1px solid var(--line); }
.compat .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-block: 14px; font-size: 15px; color: var(--muted); }
.compat span { font: 700 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.compat b { color: var(--ink); font-weight: 700; }
td.yes::before { content: "✔ "; }
td.no { color: var(--muted); }
td.no::before { content: "✕ "; color: #B4232A; font-weight: 800; }
.mini { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); margin-top: 8px; }
.mini div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.mini div small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
