/* =========================================================================
   PARKOMAK — Brand layer (logo, intro, language picker, branded motion)
   The mark: a "P" drawn as a camera lens inside scan brackets — the
   number-plate camera and the parking "P" in one shape. Artwork lives in
   assets/js/brand.js (inline) and assets/img/logo*.svg (files).
   ========================================================================= */

/* ---------- Mark internals (animatable parts of the inline SVG) ---------- */
[data-brand-kind] .pk-brackets,
[data-brand-kind] .pk-ring,
[data-brand-kind] .pk-lens { transform-box: fill-box; transform-origin: center; }
[data-brand-kind="mark"] .pk-brackets { transition: transform var(--duration-slow) var(--ease-spring), stroke-opacity var(--duration-normal); }

/* Header / footer logo: brackets "focus" on hover, lens blinks now and then */
.logo:hover .pk-brackets { transform: scale(.84); stroke-opacity: .9; }

/* ---------- Language picker (header) ---------- */
.lang-pick { position: relative; }
.lang-pick__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: #fff; color: var(--ink-800); font-size: var(--text-sm); font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow-xs); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.lang-pick__btn:hover { border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.lang-pick__btn > .icon:first-child { color: var(--sky-700); }
.lang-pick__chev { color: var(--ink-400); transition: transform var(--duration-normal) var(--ease-out); }
.lang-pick__btn[aria-expanded="true"] .lang-pick__chev { transform: rotate(180deg); }
.lang-pick__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; display: flex; flex-direction: column; gap: 2px; min-width: 200px; padding: 6px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); transform-origin: top right; animation: menu-in .22s var(--ease-out); }
.lang-pick__menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.lang-pick__menu a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; color: var(--ink-700); }
.lang-pick__menu a:hover { background: var(--sky-50); color: var(--ink-900); }
.lang-pick__menu a[aria-current="true"] { background: var(--sky-50); color: var(--sky-800); }
.lang-pick__menu a[aria-current="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-500); box-shadow: 0 0 0 3px var(--sun-100); }
.lang-pick__code { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 6px; background: var(--ink-100); font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-600); }
.lang-pick__menu a[aria-current="true"] .lang-pick__code { background: var(--grad-brand); color: #fff; }

/* Language swap: brief fade so the change feels intentional */
main, .site-header nav, .announce__msg, .site-footer { transition: opacity .18s ease; }
html.is-switching main, html.is-switching .site-header nav, html.is-switching .announce__msg, html.is-switching .site-footer { opacity: 0; }

/* ---------- Mark placements ---------- */
.badge--brand { gap: 7px; padding-left: 4px; }
.badge__mark { width: 18px; height: 18px; flex: none; }
.icon-tile--mark { background: none; box-shadow: none; }
.icon-tile__mark { width: 52px; height: 52px; filter: drop-shadow(0 10px 18px rgba(37,99,235,.35)); }
.step__card--final:hover .pk-brackets { transform: scale(.84); }
.app__brand .logo__word { height: 21px; }

.compare__col--after .badge, .compare__col--after .compare__list { position: relative; z-index: 1; }
.contact__panel > :not(.blob):not(.watermark) { position: relative; z-index: 1; }



/* ---------- Back to top (progress ring + mark) ---------- */
.to-top { position: fixed; right: 24px; bottom: 96px; z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity var(--duration-normal), transform var(--duration-normal) var(--ease-spring), visibility var(--duration-normal); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--sky-100); stroke-width: 3; }
.to-top__ring .to-top__fill { stroke: var(--sky-600); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); }
.to-top__mark { width: 28px; height: 28px; }
html.is-static .to-top { display: none; }

/* ---------- Motion details ---------- */
/* Marker underline draws in when its heading arrives */
html.motion .marker::after { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-out) .35s; }
html.motion .marker.is-in::after { transform: scaleX(1); }
/* Photo cards: soft lift */
.use { transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow); }
.use:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.bento__item.card { transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-normal); }
.bento__item.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-200); }

@media (max-width: 1099px) {
  .lang-pick__btn { height: 44px; }
}
@media (max-width: 767px) {
  .logo__mark { width: 34px; height: 34px; }
  .logo__word { height: 22px; }
  .lang-pick__btn { padding: 0 10px; }
  .lang-pick__chev { display: none; }
  .to-top { right: 16px; bottom: 84px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- Header fit (three languages) ---------- */
.site-header__inner { gap: var(--space-6); }
.nav__link { white-space: nowrap; padding: 0 12px; }
.btn--login-desktop { width: 40px; padding: 0; }
.btn--login-desktop .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1279px) { .nav__link { padding: 0 9px; font-size: 13.5px; } }

/* Hero full stops: drawn as round lens dots (the font's "." is square) */
.brand-dot { display: inline-block; width: .15em; height: .15em; margin-left: .03em; border-radius: 50%; background: var(--sun-500); color: transparent; overflow: hidden; line-height: 0; vertical-align: baseline; box-shadow: 0 0 0 .02em rgba(255,176,32,.25); }

/* Dashboard phone: sits over the sidebar foot, not over data */
.phone { bottom: -200px; }
@media (min-width: 1100px) { .app__help { visibility: hidden; } }
.phone__mark { display: block; width: 30px; height: 30px; margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(37,99,235,.3)); }


.site-header .logo { flex: none; }
html[lang="mk"] .nav__link { padding: 0 9px; }
@media (max-width: 1279px) {
  html[lang="mk"] .nav, html[lang="mk"] .header-actions .btn--login-desktop { display: none; }
  html[lang="mk"] .menu-toggle { display: inline-flex; }
}

/* Buttons never get squeezed next to headings; long translations wrap instead of overflowing */
.section-head-row > .btn { flex: none; }
@media (max-width: 767px) {
  .btn--lg { font-size: 16px; padding: 0 20px; }
  .btn--block, .hero__ctas .btn, .cta__actions .btn, .hardware__copy > .btn, .solution__actions .btn--primary { white-space: normal; text-align: center; height: auto; min-height: 50px; padding-block: 10px; line-height: 1.25; }
  .btn--lg.btn--block, .hero__ctas .btn--lg, .cta__actions .btn--lg { min-height: 56px; }
}

/* Floating buttons stay out of the way while the mobile menu is open */
body:has(.drawer.is-open) .fab, body:has(.drawer.is-open) .to-top, body:has(.drawer.is-open) .cookie { display: none; }

/* =========================================================================
   MINIMAL PASS — white, navy, one blue (--brand). Yellow lives only in the
   logo lens. Green/red only where they mean something (granted / denied).
   ========================================================================= */
/* Decoration off */
.blob, .bg-grid, .bg-dots, .js-tilt-glare { display: none !important; }
.btn--primary::after, .announce::before, .beam::after, .spotlight::before { display: none; }
.chip, .flow__badge { animation: none; }

/* Buttons: flat blue, no glow */
.btn--primary { background: var(--brand); box-shadow: none; }
.btn--primary:hover { background: var(--brand-hover); box-shadow: none; }
.btn--secondary { box-shadow: none; }
.btn--secondary:hover { border-color: var(--ink-300); box-shadow: none; }
.btn--link, .panel__link { color: var(--brand); }
.segmented__btn[aria-pressed="true"], .segmented__btn[aria-selected="true"] { box-shadow: none; }
.segmented { box-shadow: none; }

/* Eyebrows: plain small label, no pill, no icon */
.eyebrow, .eyebrow--violet, .eyebrow--coral, .eyebrow--mint, .eyebrow--sun { height: auto; padding: 0; background: none; border: 0; box-shadow: none; color: var(--brand); letter-spacing: .12em; }
.eyebrow__dot { display: none; }

/* Icon tiles: one neutral style */
.icon-tile, .icon-tile--violet, .icon-tile--coral, .icon-tile--sun, .icon-tile--mint { background: var(--ink-50); color: var(--ink-800); box-shadow: inset 0 0 0 1px var(--color-border); }
.icon-tile--brand { background: var(--brand); color: #fff; box-shadow: none; }
.icon-tile--white { background: #fff; color: var(--ink-900); box-shadow: none; }

/* Badges: neutral unless they carry status */
.badge--sky, .badge--info, .badge--violet, .badge--sun, .badge--warn { background: var(--ink-100); color: var(--ink-700); }
.badge--pop { color: #fff; }
.badge--coral, .badge--bad { background: var(--status-bad-bg); color: var(--status-bad-ink); }
.check-list .check, .solution--business .check-list .check { background: var(--ink-100); color: var(--ink-900); }
.solution__kicker, .solution__kicker--violet, .chip__label { color: var(--brand); }
.avatar, .avatar--coral, .avatar--mint, .avatar--violet { background: var(--ink-700); }

/* Highlights: solid blue words, a quiet underline instead of a marker */
.marker::after { height: .08em; bottom: -.02em; background: var(--brand); border-radius: 2px; opacity: .9; }
.marker { white-space: nowrap; }

/* Surfaces */
.section--tint { background: var(--color-bg-tint); }
.section--soft, .dash-section { background: #fff; }
.hero { background: var(--grad-aurora); }
.solution, .step__card, .card, .hw, .package, .accordion__item, .privacy__item, .kpi, .panel, .review { box-shadow: none; }
.solution--business { background: #fff; }
.step__card--final { background: #fff; border-color: var(--ink-300); }
.step__num { color: var(--ink-900); border-color: var(--ink-100); box-shadow: none; }
.steps__rail { background: var(--ink-100); }
.steps__fill { background: var(--brand); }
.compare__col--after { box-shadow: none; }
.compare__arrow .icon { box-shadow: none; border: 1px solid var(--color-border); color: var(--ink-800); }
.bento__item--anpr, .bento__item--api { background: #fff; }
.mini-pass { background: var(--ink-50); border-color: var(--ink-300); }
.mini-open__btn { background: var(--brand); box-shadow: none; }
.mini-open__ring { background: radial-gradient(circle, rgba(37,99,235,.14), transparent 70%); }
.kpi::after { display: none; }
.kpi__ico, .kpi--sky .kpi__ico, .kpi--violet .kpi__ico, .kpi--coral .kpi__ico, .kpi--mint .kpi__ico { color: var(--ink-600); box-shadow: inset 0 0 0 1px var(--color-border); }
.kpi__meter { background: var(--ink-100); } .kpi__meter span { background: var(--brand); }
.bar { background: #BFD3FB; } .bar--peak, .bar:hover { background: var(--brand); }
.app__nav-item.is-active { background: var(--brand-soft); color: var(--brand-hover); }
.app__nav-item.is-active .icon { color: var(--brand); }
.app__help { background: var(--ink-50); border-color: var(--color-border); }
.phone__open { box-shadow: 0 0 0 10px rgba(37,99,235,.08); }
.phone__ico, .phone__ico--violet { background: var(--ink-100); color: var(--ink-800); }
.package--featured { background: #fff; border-color: var(--ink-900); transform: none; }
.package__ribbon { color: #fff; box-shadow: none; }
.package--featured .package__price { -webkit-text-fill-color: var(--ink-900); }
.local__stats strong { background: none; -webkit-text-fill-color: var(--ink-900); color: var(--ink-900); }
.local__stats { box-shadow: none; }
.faq__contact { background: var(--ink-50); border-color: var(--color-border); }
.accordion__chevron { background: var(--ink-50); color: var(--ink-800); }
.contact__panel { box-shadow: none; }
.map { border-color: rgba(255,255,255,.15); }
.map__pin { box-shadow: none; }
.fab__icon { background: var(--brand); }
.feed { box-shadow: var(--shadow-xl); }
.hero__pill .icon { color: var(--brand); }
.hero__trust-item .icon { color: var(--ink-500); }
.stat { box-shadow: none; border-color: var(--color-border); background: #fff; }
.use:hover::after { background: linear-gradient(180deg, rgba(7,20,42,.1) 0%, rgba(7,20,42,.45) 35%, rgba(7,20,42,.95) 100%); }
.footer-wordmark { color: var(--ink-400); opacity: .14; }
.to-top__ring .to-top__fill { stroke: var(--brand); }
.icon-tile__mark { filter: none; }
.logo__mark { filter: none; }

/* Hero: calmer floating cards */
.chip { box-shadow: var(--shadow-md); }
.badge--mint { background: var(--ink-100); color: var(--ink-700); }
.package--featured .package__price small { -webkit-text-fill-color: var(--ink-500); color: var(--ink-500); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.radio-card:has(input:checked) .radio-card__icon { color: var(--brand); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.packages__note .icon, .bento__read .icon { color: var(--ink-600); }

/* =========================================================================
   HERO 3D (assets/js/hero3d.js) — the canvas fades in over the photo
   ========================================================================= */
.feed__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity .9s var(--ease-out); }
.feed.is-3d .feed__canvas { opacity: 1; }
.feed.is-3d .feed__finder, .feed.is-3d .feed__bottom { display: none; }
.feed.is-3d .feed__shade { background: linear-gradient(180deg, rgba(7,20,42,.28) 0%, rgba(7,20,42,0) 18%); }
.feed { background: #EEF1F5; }
/* the two cards appear exactly when the camera reads the plate / grants access */
.hero__visual.is-3d .chip { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); pointer-events: none; }
.hero__visual.is-3d .chip.is-on { opacity: 1; transform: none; }
.hero__visual.is-3d .chip--granted { top: auto; bottom: 16%; }
@media (max-width: 767px) { .hero__visual.is-3d .chip--granted { bottom: 12%; } }

/* =========================================================================
   NAVBAR — floating glass pill, fixed (follows the page)
   ========================================================================= */
html { scroll-padding-top: 104px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); padding-top: 14px; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; transition: padding var(--duration-slow) var(--ease-out); }
.site-header.is-scrolled { padding-top: 10px; }
.site-header__inner {
  pointer-events: auto; position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 64px; padding: 0 10px 0 18px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .56);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(11, 27, 51, .04), 0 14px 34px -18px rgba(11, 27, 51, .25);
  transition: height var(--duration-slow) var(--ease-out), background var(--duration-slow), box-shadow var(--duration-slow);
}
/* soft top sheen, like light on glass */
.site-header__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.site-header.is-scrolled .site-header__inner { height: 58px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 1px rgba(11, 27, 51, .05), 0 18px 40px -20px rgba(11, 27, 51, .32); }
.site-header .logo__mark { width: 36px; height: 36px; }
.site-header .logo__word { height: 23px; }
.nav { position: relative; gap: 2px; }
.nav__link { position: relative; z-index: 1; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 550; color: var(--ink-600); background: none !important; transition: color var(--duration-normal); }
.nav__link:hover, .nav__link.is-active { color: var(--ink-900); }
/* a pill that glides to the hovered / current link */
.nav__pill { position: absolute; z-index: 0; left: 0; top: 50%; height: 38px; margin-top: -19px; width: 0; border-radius: var(--radius-full); background: rgba(11, 27, 51, .06); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .035); opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity var(--duration-normal); pointer-events: none; }
.nav__pill.is-on { opacity: 1; }
.header-actions { gap: 6px; }
.site-header .lang-pick__btn { height: 40px; background: transparent; border-color: transparent; box-shadow: none; }
.site-header .lang-pick__btn:hover, .site-header .lang-pick__btn[aria-expanded="true"] { background: rgba(11, 27, 51, .06); border-color: transparent; }
.site-header .btn--login-desktop { width: 40px; height: 40px; background: transparent; border-color: transparent; color: var(--ink-700); }
.site-header .btn--login-desktop:hover { background: rgba(11, 27, 51, .06); }
.site-header .btn--cta-desktop { height: 42px; padding: 0 18px; margin-left: 4px; }
.site-header .menu-toggle { background: transparent; border-color: transparent; }
.site-header .menu-toggle:hover { background: rgba(11, 27, 51, .06); }
.hero { padding-top: calc(var(--space-16) + 80px); }
@media (max-width: 1099px) { .site-header__inner { padding-right: 8px; } }
@media (max-width: 767px) {
  .site-header { padding-top: 10px; }
  .site-header__inner, .site-header.is-scrolled .site-header__inner { height: 56px; padding: 0 6px 0 14px; }
  .site-header .logo__mark { width: 32px; height: 32px; }
  .site-header .logo__word { height: 21px; }
  .hero { padding-top: calc(var(--space-10) + 70px); }
}

/* =========================================================================
   SMOOTHNESS — no backdrop blur over moving content (the 3D canvas, scrolling
   sections); those surfaces are near-opaque anyway. Only the navbar keeps glass.
   ========================================================================= */
.chip, .feed__live, .feed__time, .feed__bottom span, .stat, .segmented, .hero__pill, .badge--glass, .solution__float, .local__cities li, .card--glass, .local__stats { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.chip { background: rgba(255, 255, 255, .95); }
.feed__live, .feed__time { background: rgba(7, 20, 42, .62); }
.hero__pill { background: rgba(255, 255, 255, .92); }

/* =========================================================================
   3D HERO POSTER — when the 3D scene will run, the old photo never shows
   ========================================================================= */
html.has-3d .feed__media img { visibility: hidden; }
html.has-3d .feed:not(.is-3d) .feed__media { background: linear-gradient(165deg, #EEF2F7 0%, #DDE6EF 100%); }
html.has-3d .feed .feed__finder, html.has-3d .feed .feed__bottom { display: none; }
html.has-3d .hero__visual:not(.is-3d) .chip { opacity: 0 !important; }

/* =========================================================================
   PRELOADER — plate read → access granted → barrier lifts → logo
   ========================================================================= */
html.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 42%, #FFFFFF 0%, #F4F7FA 62%, #E9EFF6 100%); transition: opacity .7s var(--ease-out), visibility .7s; animation: loader-failsafe .01s 9s forwards; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-static .loader { display: none; }
.loader__stage { position: relative; width: 340px; height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.loader.is-out .loader__stage { transform: scale(1.06); filter: blur(3px); }

/* scan frame: the logo's brackets */
.loader__frame { position: relative; z-index: 2; display: grid; place-items: center; width: 304px; height: 112px; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.loader__corner { position: absolute; width: 36px; height: 36px; border: 3.5px solid var(--brand); opacity: 0; transition: transform .6s var(--ease-spring), opacity .35s, border-color .35s, filter .35s; }
.loader__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; transform: translate(-34px, -26px); }
.loader__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; transform: translate(34px, -26px); }
.loader__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; transform: translate(-34px, 26px); }
.loader__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; transform: translate(34px, 26px); }
.loader.is-in .loader__corner { opacity: 1; transform: none; }
.loader.is-granted .loader__corner { border-color: var(--mint-500); filter: drop-shadow(0 0 10px rgba(16, 185, 129, .45)); }

/* the plate drives into focus */
.loader__plate { position: relative; display: flex; align-items: stretch; height: 60px; width: 238px; overflow: hidden; background: #fff; border: 3px solid #0B1B33; border-radius: 10px; box-shadow: 0 18px 34px -18px rgba(11, 27, 51, .45); opacity: 0; transform: translateY(30px) scale(.82); filter: blur(7px); transition: opacity .5s var(--ease-out) .18s, transform .75s var(--ease-out) .18s, filter .75s var(--ease-out) .18s; }
.loader.is-in .loader__plate { opacity: 1; transform: none; filter: none; }
.loader__band { flex: none; width: 30px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0 5px; background: #1A3FA6; color: #fff; font: 700 9px/1 var(--font-body); letter-spacing: .04em; }
.loader__band i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px dotted #FFD23F; }
.loader__chars { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; font: 600 38px/1 var(--font-plate); letter-spacing: .03em; color: #0B1B33; }
.loader__chars b { font-weight: 600; padding: 2px 2px 0; border-radius: 4px; }
.loader.is-reading .loader__chars b { animation: char-read .5s var(--ease-out) both; }
.loader__chars b:nth-child(2) { animation-delay: .08s !important; } .loader__chars b:nth-child(3) { animation-delay: .16s !important; } .loader__chars b:nth-child(4) { animation-delay: .24s !important; }
.loader__chars b:nth-child(5) { animation-delay: .32s !important; } .loader__chars b:nth-child(6) { animation-delay: .4s !important; } .loader__chars b:nth-child(7) { animation-delay: .48s !important; } .loader__chars b:nth-child(8) { animation-delay: .56s !important; }
@keyframes char-read { 0% { color: #0B1B33; box-shadow: none; } 40% { color: var(--brand); background: rgba(37, 99, 235, .1); box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, .7); } 100% { color: #0B1B33; background: transparent; box-shadow: none; } }
.loader__scan { position: absolute; left: 30px; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #60A5FA 18%, #fff 50%, #60A5FA 82%, transparent); box-shadow: 0 0 12px 3px rgba(59, 130, 246, .55); opacity: 0; }
.loader.is-reading .loader__scan { animation: plate-scan .9s ease-in-out 2 alternate; }
@keyframes plate-scan { 0% { top: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 92%; opacity: 0; } }

/* the barrier: arm lifts on "access granted" */
.loader__gate { position: relative; z-index: 1; width: 304px; height: 40px; margin-top: 22px; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); opacity: 0; transform: translateY(8px); }
.loader.is-in .loader__gate { opacity: 1; transform: none; transition-delay: .35s; }
.loader__post { position: absolute; right: 0; bottom: 0; width: 16px; height: 40px; border-radius: 5px; background: #2B3138; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.loader__arm { position: absolute; right: 8px; bottom: 26px; width: 292px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #fff 0 22px, #E5484D 22px 44px); box-shadow: 0 0 0 1px rgba(11, 27, 51, .12), 0 6px 12px -6px rgba(11, 27, 51, .35); transform-origin: calc(100% - 4px) 50%; transition: transform .95s cubic-bezier(.65, 0, .25, 1); }
.loader__arm::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 4px; border-radius: 2px; background: #EF4444; box-shadow: 0 0 8px #EF4444; transition: background .3s, box-shadow .3s; }
.loader.is-open .loader__arm { transform: rotate(78deg); }
.loader.is-granted .loader__arm::after { background: #22C55E; box-shadow: 0 0 10px #22C55E; }

.loader__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); opacity: 0; transition: opacity .4s .45s, color .3s; }
.loader.is-in .loader__status { opacity: 1; }
.loader__led { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); animation: led-pulse 1s ease-in-out infinite; }
.loader.is-granted .loader__status { color: var(--mint-ink); }
.loader.is-granted .loader__led { background: var(--mint-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: none; }
@keyframes led-pulse { 50% { opacity: .35; } }

/* the story ends on the logo */
.loader__brand { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 14px; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .6s var(--ease-out) .12s, transform .8s var(--ease-spring) .12s; pointer-events: none; }
.loader__mark { width: 64px; height: 64px; filter: drop-shadow(0 14px 26px rgba(37, 99, 235, .3)); }
.loader__word { height: 36px; width: auto; color: var(--ink-900); }
.loader.is-brand .loader__brand { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loader.is-brand .loader__frame, .loader.is-brand .loader__gate, .loader.is-brand .loader__status { opacity: 0; transform: translateY(-14px) scale(.94); transition-delay: 0s; }
.loader.is-brand .loader__mark .pk-brackets { animation: mark-lock .7s var(--ease-spring) both; }
.loader.is-brand .loader__mark .pk-lens { animation: mark-lens 1.6s ease-in-out .5s infinite; }
@keyframes mark-lock { from { transform: scale(1.5); stroke-opacity: 0; } }
@keyframes mark-lens { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.loader.is-quick .loader__brand { transition-duration: .3s; transition-delay: 0s; }
.loader.is-quick .loader__frame, .loader.is-quick .loader__gate, .loader.is-quick .loader__status { display: none; }
@media (max-width: 767px) { .loader__stage { transform: scale(.9); } .loader.is-out .loader__stage { transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .loader *, .loader { animation: none !important; transition-duration: .01s !important; } }

/* =========================================================================
   HERO — 3-step action strip (synced to the 3D scene) + mobile layout
   ========================================================================= */
.hero__flow { display: flex; align-items: center; gap: 0; padding-top: var(--space-2); counter-reset: none; }
.hero__flow li { position: relative; display: inline-flex; align-items: center; gap: 10px; padding-right: 44px; font-size: var(--text-sm); font-weight: 600; color: var(--ink-500); transition: color .4s var(--ease-out); }
.hero__flow li:last-child { padding-right: 0; }
/* connector between steps, fills as the scene moves on */
.hero__flow li:not(:last-child)::after { content: ""; position: absolute; right: 10px; top: 50%; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) 0 50%, var(--ink-200) 50% 100%); background-size: 200% 100%; background-position: 100% 0; transition: background-position .6s var(--ease-out); }
.hero__flow-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--ink-500); box-shadow: inset 0 0 0 1px var(--color-border); transition: background .4s var(--ease-out), color .4s, box-shadow .4s, transform .5s var(--ease-spring); }
.hero__flow-ico .icon { width: 17px; height: 17px; }
/* states: active step = blue and lifted, done steps = green tick colour */
.hero[data-phase="scan"] [data-step="1"],
.hero[data-phase="granted"] [data-step="2"],
.hero[data-phase="open"] [data-step="3"] { color: var(--ink-900); }
.hero[data-phase="scan"] [data-step="1"] .hero__flow-ico,
.hero[data-phase="granted"] [data-step="2"] .hero__flow-ico,
.hero[data-phase="open"] [data-step="3"] .hero__flow-ico { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(37, 99, 235, .14); transform: scale(1.06); }
.hero[data-phase="granted"] [data-step="1"] .hero__flow-ico,
.hero[data-phase="open"] [data-step="1"] .hero__flow-ico,
.hero[data-phase="open"] [data-step="2"] .hero__flow-ico { background: var(--mint-50); color: var(--mint-ink); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .35); }
.hero[data-phase="granted"] [data-step="1"]::after,
.hero[data-phase="open"] [data-step="1"]::after,
.hero[data-phase="open"] [data-step="2"]::after { background-position: 0 0; }
.hero[data-phase="open"] [data-step="3"] .hero__flow-ico { background: var(--mint-500); box-shadow: 0 0 0 5px rgba(16, 185, 129, .16); }

@media (max-width: 767px) {
  /* order on phones: headline → one sentence → the scene → the 3 steps → one button */
  .hero { padding-top: calc(var(--space-6) + 66px); }
  .hero__inner { align-items: center; gap: var(--space-5); text-align: center; }
  .hero__copy { display: contents; }
  .hero__pill, .hero__toggle, .hero__ctas .btn--secondary { display: none !important; }
  .hero__title { order: 1; font-size: 40px; line-height: 1.04; text-align: center; }
  .hero__lead { order: 2; max-width: 32ch; margin: -6px auto 0; font-size: 16px; line-height: 1.5; text-align: center; }
  .hero__visual { order: 3; width: 100%; padding: 2px 0 0; }
  .hero__flow { order: 4; width: 100%; justify-content: center; padding-top: 0; }
  .hero__flow li { flex-direction: column; gap: 6px; padding-right: 0; flex: 1; font-size: 12px; line-height: 1.25; }
  .hero__flow li:not(:last-child)::after { right: -16%; top: 18px; width: 32%; }
  .hero__ctas { order: 5; width: 100%; padding-top: 0; }
  .feed { aspect-ratio: 4 / 3.75; border-radius: var(--radius-xl); }
  /* the two cards sit neatly inside the scene's corners */
  .hero__visual.is-3d .chip { transform-origin: left top; }
  .hero__visual .chip--detect { top: 42px; left: 8px; width: 156px; padding: 8px 10px; gap: 6px; }
  .hero__visual .chip--detect .plate { height: 24px; }
  .hero__visual .chip--detect .plate__num { font-size: 15px; }
  .hero__visual .chip--detect .chip__label { font-size: 9.5px; }
  .hero__visual .chip--granted, .hero__visual.is-3d .chip--granted { top: auto; bottom: 10px; right: 8px; left: auto; padding: 8px 10px; }
  .hero__visual .chip--granted .chip__icon { width: 30px; height: 30px; border-radius: 9px; }
  .hero__visual .chip--granted strong { font-size: 13px; }
  .stats { padding-top: var(--space-4); }
  /* compact cookie notice on phones */
  .cookie { padding: 14px 16px; gap: 10px; bottom: 12px; }
  .cookie__head { font-size: 15px; }
  .cookie__head .icon { width: 18px; height: 18px; }
  .cookie__text { font-size: 12.5px; line-height: 1.45; }
  .cookie__actions .btn { height: 36px; font-size: 13px; }
}

/* never wider than the screen (reveal offsets, decorative bleed) */
main, .site-footer { overflow-x: clip; }
@media (max-width: 767px) {
  .hero__title { font-size: clamp(32px, 10.2vw, 42px); }
  .hero__lead { font-size: clamp(14.5px, 4.1vw, 16px); }
  /* plate card: label + plate only, tucked under the LIVE badge */
  .hero__visual .chip--detect { top: 52px; left: 10px; width: auto; padding: 7px 9px; gap: 5px; }
  .hero__visual .chip--detect .chip__meter, .hero__visual .chip--detect .chip__meta { display: none; }
  .hero__visual .chip--granted .chip__meta { display: none; }
  .feed__hud { padding: 12px; }
}
@media (max-width: 767px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--space-4) + 64px); }
  .hero__inner { gap: var(--space-4); }
  .feed { aspect-ratio: 4 / 3.4; }
}
.fab { transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal), visibility var(--duration-normal); }
.fab.is-tucked { opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); }

/* tablets: the same scene-first, centred order as phones (with a little more room) */
@media (min-width: 768px) and (max-width: 1099px) {
  .hero__inner { align-items: center; gap: var(--space-6); text-align: center; }
  .hero__copy { display: contents; }
  .hero__pill { order: 0; }
  .hero__title { order: 1; text-align: center; }
  .hero__lead { order: 2; max-width: 46ch; margin: -4px auto 0; text-align: center; }
  .hero__visual { order: 3; width: 100%; max-width: 640px; padding: 8px 0 0; }
  .hero__flow { order: 4; justify-content: center; padding-top: 0; }
  .hero__toggle { order: 5; justify-content: center; }
  .hero__ctas { order: 6; justify-content: center; }
  .feed { max-width: 640px; aspect-ratio: 16 / 12; }
}

/* =========================================================================
   SCROLL PERFORMANCE
   ========================================================================= */
/* off-screen sections are not laid out or painted until they come near */
main > section:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* the glass navbar gets its own layer so scrolling never repaints it */
.site-header__inner { will-change: transform; transform: translateZ(0); }
.site-header.is-scrolled .site-header__inner { background: rgba(255, 255, 255, .82); }
/* endless decorative loops cost GPU time on every frame — keep the meaningful ones only */
.beam::after, .shield__ring--1, .mini-open__ring, .flow__badge, .cta__plate { animation: none !important; }
.feed__scan { will-change: top; }
.btn, .card, .bento__item, .use, .step__card { will-change: auto; }
.is-revealing { transition: none !important; }

/* =========================================================================
   TYPE + PERFORMANCE PASS (2026-11-16)
   Headings moved to Inter Tight: the old face (Plus Jakarta Sans) has no
   Cyrillic or Greek, so MK / BG / EL headings fell back to a system font.
   Inter Tight is already tightly spaced, so the tracking is eased off and the
   weight comes down to 700, closer to how Apple sets display type.
   Shadows are shorter and smaller: big soft shadows were the main scroll cost.
   ========================================================================= */
:root {
  --shadow-md: 0 6px 16px -10px rgba(11, 27, 51, .14);
  --shadow-lg: 0 10px 24px -14px rgba(11, 27, 51, .18);
  --shadow-xl: 0 16px 32px -18px rgba(11, 27, 51, .22);
}
h1, h2, h3, h4, h5 { font-weight: 680; letter-spacing: -0.006em; }
.hero__title { font-weight: 700; letter-spacing: -0.014em; line-height: 1.04; }
.section-head__title { letter-spacing: -0.012em; line-height: 1.1; }
.card__title, .use__title, .accordion__trigger, .drawer__nav a { font-weight: 640; letter-spacing: -0.004em; }
.kpi__value, .stat dd, .package__price, .local__stats strong, .step__num { font-weight: 700; }
.kpi__value, .stat dd, .logo-item, .app__brand, .local__stats strong { letter-spacing: -0.01em; }
/* Cyrillic and Greek run wider than Latin */
:lang(mk) .hero__title, :lang(bg) .hero__title, :lang(el) .hero__title { letter-spacing: -0.008em; }
.hero__title, .section-head__title { text-wrap: balance; }
.section-head__lead, .hero__lead { text-wrap: pretty; }
@media (max-width: 767px) { .hero__title { letter-spacing: -0.01em; } }
/* the "With Parkomak" badge sits on the dark card: glass on navy, white text */
.compare__col--after .badge { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }

.nobr { white-space: nowrap; }

/* =========================================================================
   HERO FILM (assets/js/hero-film.js) — path-traced Blender loop
   ========================================================================= */
video.feed__canvas { object-fit: cover; object-position: 74% 50%; background: #E9EDF2; }
/* scan brackets locked onto the plate in the film; same corner language as the preloader */
.film-lock { position: absolute; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.35); transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); --c: #fff; }
.film-lock.is-on { opacity: 1; transform: none; }
.film-lock.is-ok { --c: #34D399; }
.film-lock::before, .film-lock::after, .film-lock i { content: ""; position: absolute; width: 22%; height: 34%; min-width: 9px; min-height: 7px; border: 0 solid var(--c); transition: border-color .3s; filter: drop-shadow(0 1px 2px rgba(7, 20, 42, .35)); }
.film-lock::before { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 3px; }
.film-lock::after { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 3px; }
.film-lock i:first-child { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 3px; }
.film-lock i:last-child { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .film-lock { transition: none; } }

/* =========================================================================
   iPHONE 18 PRO MAX mock (dashboard preview). Apple spec: 6.9", 2868 × 1320 px
   at 3x = 440 × 956 pt (screen 2.173:1), body 163 × 78 mm. The screen is laid
   out in real points (440 × 956) and scaled by --s, so the island, status bar,
   type and home indicator sit exactly where they do on the device.
   ========================================================================= */
.phone { --pw: 212px; --s: .481818; position: absolute; left: -72px; bottom: -150px; z-index: 3;
         width: calc(var(--pw) + 18px); padding: 3px; border-radius: 46px; border: 0;
         background: linear-gradient(145deg, #E9EBEE 0%, #B8BDC4 22%, #F4F5F7 48%, #A9AEB6 78%, #DCDFE3 100%);   /* titanium edge */
         box-shadow: 0 50px 90px -30px rgba(11, 27, 51, .45), 0 18px 36px -18px rgba(11, 27, 51, .35); }
.phone__notch { display: none; }
.phone__glass { position: relative; padding: 6px; border-radius: 43px; background: #050506; }   /* black border round the display */
.phone__screen { position: relative; width: 440px; height: 956px; min-height: 0; padding: 0; gap: 0; display: block;
                 border-radius: 58px; overflow: hidden; transform: scale(var(--s)); transform-origin: top left;
                 margin: 0 calc(var(--pw) - 440px) calc(956px * var(--s) - 956px) 0;      /* reserve the scaled size in layout */
                 background: linear-gradient(180deg, #EEF4FD 0%, #fff 46%); font-family: var(--font-body); color: var(--ink-900); }
/* status bar: island 81 × 37 pt, 11 pt from the top; time and system icons level with it */
.phone__status { position: absolute; inset: 0 0 auto; height: 59px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px 0 52px; }
.phone__time { font: 600 17px/1 var(--font-body); letter-spacing: -.01em; padding-top: 10px; }
.phone__island { position: absolute; top: 11px; left: 50%; width: 81px; height: 37px; margin-left: -40.5px; border-radius: 19px; background: #000; }
.phone__sys { display: inline-flex; align-items: center; gap: 7px; padding-top: 10px; }
.phone__sys .icon { width: 17px; height: 17px; stroke-width: 2.6; }
.phone__signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.phone__signal b { display: block; width: 3px; border-radius: 1px; background: var(--ink-900); }
.phone__signal b:nth-child(1) { height: 4px; } .phone__signal b:nth-child(2) { height: 6.5px; } .phone__signal b:nth-child(3) { height: 9px; } .phone__signal b:nth-child(4) { height: 12px; }
.phone__battery { position: relative; display: inline-block; width: 26px; height: 12.5px; border-radius: 4px; border: 1.2px solid rgba(11, 27, 51, .4); padding: 1.5px; }
.phone__battery::after { content: ""; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4.5px; border-radius: 0 1px 1px 0; background: rgba(11, 27, 51, .4); }
.phone__battery b { display: block; width: 78%; height: 100%; border-radius: 2px; background: var(--ink-900); }
/* app: iOS metrics (24 pt margins, 34 pt large title, 17 pt body) */
.phone__app { position: absolute; inset: 59px 0 0; display: flex; flex-direction: column; gap: 16px; padding: 30px 24px 0; }
.phone__hello { margin: 0 0 8px; padding: 0; font: 700 34px/1.12 var(--font-display); letter-spacing: -.01em; }
.phone__mark { display: block; width: 52px; height: 52px; margin-bottom: 18px; filter: drop-shadow(0 10px 20px rgba(37, 99, 235, .28)); }
.phone__gate { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 20px 34px; border-radius: 30px; background: #fff;
               border: 1px solid var(--color-border); box-shadow: 0 18px 40px -24px rgba(11, 27, 51, .25); }
.phone__gate-label { gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink-500); }
.phone__gate strong { font-size: 19px; }
.phone__open { width: 150px; height: 150px; background: var(--brand); box-shadow: 0 0 0 16px rgba(37, 99, 235, .08); }
.phone__open .icon { width: 56px; height: 56px; }
.phone__row { gap: 16px; padding: 18px 20px; border-radius: 22px; font-size: 17px; }
.phone__ico { width: 44px; height: 44px; border-radius: 13px; }
.phone__ico .icon, .phone__row > .icon { width: 22px; height: 22px; }
.phone__home { position: absolute; left: 50%; bottom: 9px; width: 146px; height: 5px; margin-left: -73px; border-radius: 3px; background: rgba(0, 0, 0, .85); }
/* side buttons (left: action, volume up, volume down; right: side button, Camera Control) */
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #9DA3AB, #D9DCE0); }
.phone__btn--action { left: -2px; top: 17%; height: 5.5%; }
.phone__btn--volup { left: -2px; top: 26%; height: 9.5%; }
.phone__btn--voldn { left: -2px; top: 37.5%; height: 9.5%; }
.phone__btn--power { right: -2px; top: 29%; height: 14%; }
.phone__btn--camera { right: -2px; top: 58%; height: 8%; border-radius: 1px; }
