/* Parkeo360 corporate site. Tokens come from packages/ui (tokens.css): no new colours, fonts or libraries.
   Motif: "el carril", a continuous line with signal-green nodes. Motion: transform and opacity only, never scroll-jacking. */

@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-500-700.woff2) format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(fonts/plus-jakarta-sans-400-700.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/ibm-plex-mono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/ibm-plex-mono-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/ibm-plex-mono-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --navy: #1b3f8f;
  --navy-hi: #2c57b8;
  --navy-deep: #0f2657;
  --signal: #4fae49;
  --signal-hi: #6fd168;
  --void: #080c16;

  --paper: #f6f8fc;
  --paper-2: #eef2f8;
  --rule: #c9d3e3;
  --ink: #131a2c;
  --ink-2: #586279;
  --on-dark: #e6ebf5;
  --on-dark-2: #a9b4cc;
  --amber: #97630b;
  --amber-bg: #fdf1dc;
  --danger: #be3a33;

  --r: 6px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal-hi); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- labels, buttons ---------- */
.tag { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.dark .tag { color: var(--signal-hi); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--signal); color: #0b1a0a; }
.btn--primary:hover { background: var(--signal-hi); }
.btn--line { border-color: color-mix(in srgb, currentColor 40%, transparent); color: inherit; background: transparent; }
.btn--line:hover { border-color: currentColor; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-hi); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: var(--on-dark); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.site-header.is-scrolled, .site-header.is-open { background: color-mix(in srgb, var(--void) 94%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
.nav a:hover { color: #fff; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; color: #0b1a0a; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 44px; height: 44px; border-radius: var(--r); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections ---------- */
.band { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.dark { background: var(--void); color: var(--on-dark); }
.dark--deep { background: var(--navy-deep); }
.band h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 17ch; margin-top: 18px; }
.band .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; margin-top: 22px; }
.dark .lead { color: var(--on-dark-2); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* the lane: a continuous rule with nodes, used as a divider and as structure */
.lane { height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 14px, transparent 14px 22px); position: relative; margin-block: 0; }
.dark .lane { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 14px, transparent 14px 22px); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy-deep), var(--void) 78%); color: var(--on-dark); padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); letter-spacing: -0.035em; line-height: 1; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--signal-hi); }
.hero .lead { color: var(--on-dark-2); margin-top: 26px; font-size: clamp(18px, 1.7vw, 21px); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark-2); letter-spacing: 0.02em; }

.scene { position: relative; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); background: #0a1020; overflow: hidden; }
.scene svg { width: 100%; height: auto; }
.scene__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-2); }
.scene__bar button { background: none; border: none; color: var(--signal-hi); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.scene__panel { position: absolute; right: 12px; top: 52px; display: grid; gap: 4px; padding: 10px 14px; background: rgba(8, 12, 22, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r); font-family: var(--font-mono); font-size: 12px; min-width: 150px; }
.scene__panel b { font-weight: 600; font-size: 22px; color: #fff; font-family: var(--font-display); }
.scene__panel .inside-count { display: block; height: 1.15em; overflow: hidden; line-height: 1.15; }
.scene__panel .inside-count i { display: block; font-style: normal; height: 1.15em; }
.scene__status { position: absolute; left: 12px; top: 54px; font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(8, 12, 22, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); }
.scene__status span { display: none; }

/* scene: the default is the START (barrier down, vehicle out of frame). The final frame is shown when reduced motion is asked
   for, when scripts are off, or after the sequence ended. Transform and opacity only, played once. */
.scene .car { transform: translateX(-280px); }
.scene .arm { transform-box: fill-box; transform-origin: 0% 50%; transform: rotate(0deg); }
.scene .chip { opacity: 0; }
.scene .n { opacity: 0.28; }
.scene .lamp { fill: #e0a73a; }
.scene .roll { display: block; }
.scene .st-ok { display: none; }

.scene.is-playing .car { animation: car-in 3.8s cubic-bezier(0.22, 0.7, 0.2, 1) 0.3s both; }
.scene.is-playing .arm { animation: arm-up 0.9s ease 2.6s both; }
.scene.is-playing .chip { animation: chip-go 1.3s ease 1.1s both; }
.scene.is-playing .n--2 { animation: node-on 0.3s ease 1.9s both; }
.scene.is-playing .n--3 { animation: node-on 0.3s ease 3.4s both; }
.scene.is-playing .lamp { animation: lamp-ok 0.3s ease 2.4s both; }
.scene.is-playing .roll { animation: count-up 0.4s ease 4s both; }
.scene.is-playing .st-wait { animation: hide 0.01s linear 2.4s both; }
.scene.is-playing .st-ok { animation: show 0.01s linear 2.4s both; }

.scene.is-final .car, .no-js .scene .car { transform: translateX(330px); }
.scene.is-final .arm, .no-js .scene .arm { transform: rotate(-70deg); }
.scene.is-final .n--2, .scene.is-final .n--3, .no-js .scene .n--2, .no-js .scene .n--3 { opacity: 1; fill: var(--signal-hi); }
.scene.is-final .lamp, .no-js .scene .lamp { fill: var(--signal-hi); }
.scene.is-final .roll, .no-js .scene .roll { transform: translateY(-50%); }
.scene.is-final .st-wait, .no-js .scene .st-wait { display: none; }
.scene.is-final .st-ok, .no-js .scene .st-ok { display: inline; }

@keyframes car-in { from { transform: translateX(-280px); } 55% { transform: translateX(0); } 72% { transform: translateX(0); } to { transform: translateX(330px); } }
@keyframes arm-up { from { transform: rotate(0deg); } to { transform: rotate(-70deg); } }
@keyframes chip-go { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(150px, 38px); } }
@keyframes node-on { from { opacity: 0.28; } to { opacity: 1; fill: var(--signal-hi); } }
@keyframes lamp-ok { from { fill: #e0a73a; } to { fill: var(--signal-hi); } }
@keyframes count-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hide { to { display: none; } }
@keyframes show { to { display: inline; } }

/* ---------- sequence (sticky stage, normal scroll) ---------- */
.sequence { background: var(--paper); }
.sequence__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.stage { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; padding: 20px; }
.stage__label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; margin-bottom: 14px; }
.stage__frames { position: relative; aspect-ratio: 4 / 3; }
.frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }
.frame svg { width: 100%; height: 100%; }
.stage[data-step="1"] [data-frame="1"], .stage[data-step="2"] [data-frame="2"], .stage[data-step="3"] [data-frame="3"],
.stage[data-step="4"] [data-frame="4"], .stage[data-step="5"] [data-frame="5"], .stage[data-step="6"] [data-frame="6"] { opacity: 1; transform: none; }
.track { display: flex; align-items: center; margin-top: 16px; }
.track i { flex: 1; height: 2px; background: var(--rule); }
.track b { width: 12px; height: 12px; border-radius: 50%; background: var(--rule); transition: background-color 0.3s ease, transform 0.3s ease; }
.stage[data-step="1"] .track b:nth-of-type(-n+1), .stage[data-step="2"] .track b:nth-of-type(-n+2), .stage[data-step="3"] .track b:nth-of-type(-n+3),
.stage[data-step="4"] .track b:nth-of-type(-n+4), .stage[data-step="5"] .track b:nth-of-type(-n+5), .stage[data-step="6"] .track b:nth-of-type(-n+6) { background: var(--signal); transform: scale(1.25); }

.steps { display: grid; }
.step { padding: clamp(28px, 6vh, 64px) 0; border-top: 1px solid var(--rule); min-height: 34vh; opacity: 0.5; transition: opacity 0.3s ease; }
.step.is-active { opacity: 1; }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--navy); font-weight: 600; letter-spacing: 0.06em; }
.step h3 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 14px; }
.step p { color: var(--ink-2); max-width: 46ch; }
.step .caveat { margin-top: 14px; font-size: 14.5px; }
.caveat, .chip-amber { display: inline-block; font-size: 13.5px; color: var(--amber); background: var(--amber-bg); border-radius: 4px; padding: 4px 10px; font-weight: 500; }

/* ---------- platform ---------- */
.bands { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.bandrow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--rule); }
.bandrow h3 { font-size: clamp(24px, 2.6vw, 32px); }
.bandrow .benefit { color: var(--ink-2); margin-top: 12px; max-width: 34ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 14px 0; border-top: 1px solid var(--paper-2); font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--signal); transform: rotate(45deg); }
.facts .m { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }

/* product frames (faithful replicas of the real panel, demo data) */
.win { border: 1px solid var(--rule); border-radius: var(--r); background: #fff; box-shadow: 0 24px 60px -30px rgba(15, 38, 87, 0.35); overflow: hidden; color: var(--ink); }
.win__bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.win__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.win__bar span { margin-left: auto; color: var(--amber); font-weight: 500; }
.win__body { padding: 16px; display: grid; gap: 14px; }
.rh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rh .code { font-family: var(--font-mono); font-weight: 600; font-size: 20px; }
.rh .plate { font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 7px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e6f4e6; color: #377a33; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--n { background: var(--paper-2); color: var(--ink-2); }
.pill--w { background: var(--amber-bg); color: var(--amber); }
.states { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; border-top: 1px solid var(--paper-2); font-size: 12.5px; color: var(--ink-2); align-items: center; }
.states span.k { margin-right: 6px; }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.mini td { padding: 8px; border-bottom: 1px solid var(--paper-2); }
.mini td.m { font-family: var(--font-mono); }
.road { position: relative; height: 34px; border-bottom: 3px solid var(--rule); }
.road::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 3px; width: 46%; background: var(--signal); }
.road .car-s { position: absolute; left: 40%; bottom: 3px; width: 34px; height: 14px; background: var(--navy); border-radius: 4px 7px 2px 2px; }

/* ---------- access (dark) ---------- */
.flow { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.flow__node { padding: 22px 20px 26px 0; border-top: 2px solid rgba(255, 255, 255, 0.22); position: relative; }
.flow__node::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--signal-hi); box-shadow: 0 0 0 5px rgba(111, 209, 104, 0.18); }
.flow__node h3 { font-size: 22px; margin-top: 8px; }
.flow__node p { color: var(--on-dark-2); font-size: 15.5px; margin-top: 10px; }
.flow__node .m { font-family: var(--font-mono); font-size: 12px; color: var(--signal-hi); letter-spacing: 0.06em; text-transform: uppercase; }
.legend { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.legend div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 18px; }
.legend h4 { font-size: 18px; letter-spacing: -0.01em; }
.legend p { color: var(--on-dark-2); font-size: 15.5px; margin-top: 8px; }
.dark .chip-amber { background: rgba(224, 167, 58, 0.14); color: #f0c46c; }

/* ---------- devices ---------- */
.ledger { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.ledger section { border-top: 3px solid var(--navy); padding-top: 18px; }
.ledger section.is-model { border-color: #c98a1b; }
.ledger section.is-soon { border-color: var(--rule); }
.ledger h3 { font-size: 22px; }
.ledger .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.ledger ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.ledger li { padding: 11px 0; border-top: 1px solid var(--paper-2); font-size: 16px; }
.hw { margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(16px, 3vw, 32px); background: #fff; }

/* ---------- security ---------- */
.rows { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--rule); }
.rows article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(16px, 3vw, 40px); padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows h3 { font-size: 20px; letter-spacing: -0.01em; }
.rows p { color: var(--ink-2); font-size: 16px; }
.rows .lim { font-size: 13.5px; color: var(--amber); }

/* ---------- sectors, faq ---------- */
.sectors { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.sectors div { border-top: 1px solid var(--rule); padding-top: 18px; }
.sectors h3 { font-size: 22px; }
.sectors p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--navy); font-size: 24px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 70ch; }

/* ---------- demo form ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.field .opt { font-weight: 400; color: var(--on-dark-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field select option { color: #111; }
.field ::placeholder { color: var(--on-dark-2); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal-hi); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid='true'] { border-color: #ff8b84; }
.field .err { color: #ffb3ad; font-size: 13.5px; min-height: 1.2em; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--on-dark-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--signal); }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; }
.form-col { min-width: 0; }
.form { transition: opacity 0.45s ease; }
.form.is-leaving { opacity: 0; pointer-events: none; }
.form[hidden], .done[hidden] { display: none; }
/* success: only the message remains */
.done { display: grid; gap: 14px; align-content: center; justify-items: start; min-height: 320px; padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(111, 209, 104, 0.45); border-radius: var(--r); background: rgba(79, 174, 73, 0.08); animation: done-in 0.5s ease both; }
.done:focus { outline: none; }
.done__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--signal); color: #0b1a0a; }
.done__mark svg { width: 28px; height: 28px; }
.done h3 { font-size: clamp(26px, 3vw, 34px); }
.done p { color: var(--on-dark); max-width: 40ch; }
.done .done__ref { font-family: var(--font-mono); font-size: 14px; color: var(--on-dark-2); }
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form__status { padding: 14px 16px; border-radius: var(--r); font-size: 15.5px; display: none; }
.form__status.is-ok { display: block; background: rgba(79, 174, 73, 0.14); border: 1px solid var(--signal); }
.form__status.is-err { display: block; background: rgba(190, 58, 51, 0.16); border: 1px solid #ff8b84; }
.form__status a { color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--void); color: var(--on-dark-2); padding: 48px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot h4 { color: #fff; font-size: 15px; letter-spacing: 0; }

/* reveal on scroll (opacity/transform only) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--void); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: none; }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 17px; }
  .nav .btn { margin-top: 14px; min-height: 48px; }
  .nav-toggle { display: block; }
  .hero__grid, .split, .split--flip, .sequence__grid, .bandrow { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: 0; }
  .steps .step { min-height: 0; opacity: 1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .legend, .ledger, .sectors { grid-template-columns: minmax(0, 1fr); }
  .rows article { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form .row, .facts { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .scene__panel { position: static; margin: 0 12px 12px; }
  .scene__status { position: static; display: block; margin: 12px 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* final frame of the hero: vehicle inside, barrier up, everything authorised */
  .scene .car { transform: translateX(330px); }
  .scene .arm { transform: rotate(-70deg); }
  .scene .n--2, .scene .n--3 { opacity: 1; fill: var(--signal-hi); }
  .scene .lamp { fill: var(--signal-hi); }
  .scene .roll { transform: translateY(-50%); }
  .scene .st-wait { display: none; }
  .scene .st-ok { display: inline; }
  .step { opacity: 1; }
}
