/* Veřejná úvodní stránka (views/landing/index.php). Barvy přes tokeny z app.css a :root níže; raw hex jen
   na sytém modrém pozadí (hrdina, závěr) a v kresbě ilustrace. Animace jen tady (CSP), s prefers-reduced-motion
   se zastaví v „hotovém“ stavu (nákladní auto u závory, SPZ přečtená, závora otevřená). */

:root {
  --lp-wrap: 1160px;
  --lp-alt-bg: #eaf1ff;
  --lp-hero-muted: #d6e3ff;
  --lp-scene-card: #ffffff;
  --lp-scene-text: #55627e;
}
:root[data-theme="dark"] {
  --lp-alt-bg: #0d1630;
  --lp-scene-card: #101a31;
  --lp-scene-text: #9aabc8;
}

html { scroll-behavior: smooth; }
body.layout-landing { background: var(--bg); }
.layout-landing h1, .layout-landing h2, .layout-landing h3 { letter-spacing: -.015em; }
.lp-wrap { width: 100%; max-width: var(--lp-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .lp-wrap { padding: 0 24px; } }

.lp-skip { position: absolute; left: -9999px; top: 8px; }
.lp-skip:focus { left: 16px; z-index: 60; background: var(--surface); color: var(--link); padding: .5rem .8rem; border-radius: 10px; box-shadow: var(--shadow); }

/* --- Horní lišta ------------------------------------------------------- */
.lp-top { position: sticky; top: 0; z-index: 40; background: var(--topbar-bg); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.lp-top-in { display: flex; align-items: center; gap: 1rem; height: 64px; }
/* Na úvodní stránce zůstane název i na telefonu (app.css ho v liště administrace schovává). */
.lp-top .brand > span, .lp-foot .brand > span { display: inline; }
.lp-nav { display: none; gap: .25rem; margin-left: 1rem; }
.lp-nav a { color: var(--text); font-weight: 600; font-size: .93rem; padding: .45rem .75rem; border-radius: 10px; }
.lp-nav a:hover { background: var(--primary-soft); color: var(--brand-700); text-decoration: none; }
:root[data-theme="dark"] .lp-nav a:hover { color: var(--brand-300); }
.lp-top-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
@media (min-width: 900px) { .lp-nav { display: flex; } }

/* --- Hrdina ------------------------------------------------------------ */
.lp-hero { position: relative; overflow: hidden; background: var(--grad-hero); background-color: var(--brand-900); color: #fff; padding: 48px 0 76px; }
.lp-hero-in { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .lp-hero { padding: 72px 0 96px; } .lp-hero-in { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.lp-eyebrow { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22); color: #dbeafe; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lp-hero h1 { color: #fff; font-size: clamp(2.05rem, 5vw, 3.45rem); line-height: 1.07; font-weight: 800; margin: 0 0 1.1rem; }
.lp-lead { color: var(--lp-hero-muted); font-size: 1.12rem; line-height: 1.6; max-width: 36em; margin-bottom: 1.6rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-btn-lg { min-height: 50px; padding: .7rem 1.3rem; font-size: 1rem; border-radius: 14px; }
:root .lp-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .38); }
:root .lp-btn-glass:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.lp-checks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #e6efff; font-weight: 600; font-size: .95rem; }
.lp-checks li { display: inline-flex; align-items: center; gap: .45rem; }
.lp-checks .ic { color: #86efac; }

.lp-hero-visual { position: relative; max-width: 620px; width: 100%; margin: 0 auto; }
.lp-scene { display: block; width: 100%; height: auto; border-radius: 24px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 70px rgba(4, 12, 40, .38); }
.lp-float { position: absolute; display: flex; gap: .65rem; align-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 16px; padding: .7rem .9rem; box-shadow: 0 18px 40px rgba(4, 12, 40, .30); animation: lpFloat 6s ease-in-out infinite alternate; }
.lp-float strong { display: block; color: var(--text-strong); font-size: 1.25rem; line-height: 1.2; }
.lp-float small { color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.lp-float-cap { display: flex; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .78rem; font-weight: 700; }
.lp-float-occ { flex-direction: column; align-items: stretch; gap: .25rem; left: 10px; bottom: -30px; width: 172px; }
.lp-float-occ meter { display: block; width: 100%; height: 8px; margin-top: .2rem; -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: var(--surface-3); }
.lp-float-occ meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; background: var(--surface-3); }
.lp-float-occ meter::-webkit-meter-optimum-value { border-radius: 999px; background: var(--success-600); }
.lp-float-occ meter::-moz-meter-bar { border-radius: 999px; background: var(--success-600); }
/* Stavy počtu volných míst leží přes sebe; vidět je vždy jeden podle toho, kolik vozidel už projelo (lpOcc0–3). */
.lp-occ { display: grid; }
.lp-occ-state { grid-area: 1 / 1; display: flex; flex-direction: column; gap: .25rem; opacity: 0; }
/* Platba vozidla s přečtenou SPZ (lpPay); mezera mezi ikonou a textem stejná jako v kartě (i na telefonu). */
.lp-pay { display: grid; gap: inherit; }
.lp-pay-state { grid-area: 1 / 1; display: flex; align-items: center; gap: inherit; opacity: 0; }
/* Karta platby se ukáže s přečtenou SPZ a zmizí, když vozidlo projede (lpPayShow, 10 s na vozidlo) — mezi vozidly
   by jinak ukazovala platbu předchozího. Mění se jen průhlednost, pohyb nahoru a dolů dál dělá lpFloat. */
.lp-float-pay { right: 10px; top: -22px; animation: lpFloat 6s ease-in-out infinite alternate, lpPayShow 10s infinite; animation-delay: -3s, 0s; }
@keyframes lpPayShow { 0%, 24% { opacity: 0; } 29%, 76% { opacity: 1; } 81%, 100% { opacity: 0; } }
.lp-float-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--success-600); color: #fff; }
:root[data-theme="dark"] .lp-float-ic { color: #06210f; }
@media (min-width: 1100px) { .lp-float-occ { left: -34px; } .lp-float-pay { right: -26px; } }
/* Telefon: menší karty, ať nezakryjí auto u závory. */
@media (max-width: 600px) {
  .lp-float { padding: .45rem .65rem; border-radius: 13px; gap: .45rem; }
  .lp-float strong { font-size: 1.02rem; }
  .lp-float-occ { width: 128px; left: 6px; bottom: -26px; }
  .lp-float-pay { right: 6px; top: -20px; }
  .lp-float-ic { width: 26px; height: 26px; }
  .lp-eyebrow { font-size: .7rem; }
}
@keyframes lpFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Kresba: parkovací dům, silnice, kamera, tři vozidla (nákladní, osobní, dodávka — jedou doprava, předek vpravo),
   závora a karta s přečtenou SPZ. Každé vozidlo má svých 10 s (příjezd, čtení SPZ, závora, odjezd), celý cyklus 30 s;
   kamera, karta a závora se opakují po 10 s. Všechno startuje současně, takže zůstává v souladu bez skriptu. */
.lp-sc-house > rect { fill: rgb(255 255 255 / .07); }
.lp-sc-house .lp-sc-win { fill: rgb(255 255 255 / .13); }
.lp-sc-house .lp-sc-sign { fill: #2563eb; }
.lp-sc-sign-t { fill: #fff; font-size: 24px; font-weight: 800; }
.lp-sc-road { fill: rgb(3 10 35 / .32); }
.lp-sc-lane { fill: none; stroke: rgb(255 255 255 / .38); stroke-width: 3; stroke-dasharray: 22 18; }
.lp-sc-pole, .lp-sc-post { fill: #d6e3fd; }
.lp-sc-cam > rect { fill: #eef4ff; }
.lp-sc-cam .lp-sc-cam-hood { fill: #b9cdfb; }
.lp-sc-lens { fill: #1d4ed8; stroke: #93c5fd; stroke-width: 2; }
.lp-truck-box { stroke: #9db8f0; stroke-width: 1; }
.lp-truck-door { fill: none; stroke: #9db8f0; stroke-width: 1.5; stroke-linecap: round; }
.lp-truck-stripe, .lp-truck-badge { fill: #2563eb; }
.lp-truck-badge-t { fill: #fff; font-size: 17px; font-weight: 800; }
.lp-truck-stack { fill: #cbd5e1; }
.lp-truck-chassis { fill: #1e2a4f; }
.lp-truck-cab { stroke: #c2410c; stroke-width: 1; }
.lp-truck-glass { fill: #29438f; }
.lp-truck-seam { fill: none; stroke: #c2410c; stroke-width: 1.2; }
.lp-truck-handle { fill: #9a3412; }
.lp-truck-bumper { fill: #334155; }
.lp-truck-arch { fill: #9a3412; }
.lp-auto-body { stroke: #ca8a04; stroke-width: 1; }
.lp-auto-glass, .lp-van-glass { fill: #29438f; }
.lp-auto-seam { fill: none; stroke: #ca8a04; stroke-width: 1.2; }
.lp-auto-mirror, .lp-auto-handle { fill: #a16207; }
.lp-auto-bumper, .lp-van-bumper { fill: #334155; }
.lp-auto-arch { fill: #a16207; }
.lp-van-body { stroke: #0f766e; stroke-width: 1; }
.lp-van-stripe { fill: #fff; }
.lp-van-seam { fill: none; stroke: #0f766e; stroke-width: 1.2; }
.lp-van-handle, .lp-van-arch { fill: #115e59; }
.lp-car-head { fill: #fef9c3; stroke: #facc15; stroke-width: 1; }
.lp-car-tail { fill: #ef4444; }
.lp-car-wheel { fill: #0b1430; }
.lp-car-hub { fill: #c7d7fe; }
.lp-light-red { fill: #ef4444; }
.lp-light-green { fill: #22c55e; opacity: 0; }
.lp-arm-base { fill: #fff; }
.lp-arm-stripe { fill: #ef4444; }
.lp-chip-card { fill: var(--lp-scene-card); filter: drop-shadow(0 12px 22px rgba(4, 12, 40, .35)); }
.lp-chip-cap { fill: var(--lp-scene-text); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp-plate { fill: #fff; stroke: #0f172a; stroke-width: 2; }
.lp-plate-eu { fill: #1d4ed8; }
.lp-plate-cc { fill: #fff; font-size: 12px; font-weight: 800; }
.lp-plate-t { fill: #0f172a; font-family: Bahnschrift, "DIN Alternate", "Arial Narrow", var(--font); font-size: 27px; font-weight: 700; letter-spacing: .04em; }
.lp-chip-ok { fill: var(--success-600); }
.lp-chip-tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .lp-chip-tick { stroke: #06210f; }
.lp-chip-txt { fill: var(--success-700); font-size: 15px; font-weight: 700; }

/* Vozidlo n jede ve své třetině cyklu: záporné zpoždění posune začátek (2. vozidlo v 10 s, 3. ve 20 s). Mimo svou
   třetinu stojí za pravým okrajem; skok zpět na start je mimo obraz. */
.lp-car { transform: translateX(-250px); animation: lpVeh 30s infinite; }
.lp-veh-2 { animation-delay: -20s; }
.lp-veh-3 { animation-delay: -10s; }
.lp-turn { opacity: 0; animation: lpTurn 30s step-end infinite; }
.lp-turn-2 { animation-delay: -20s; }
.lp-turn-3 { animation-delay: -10s; }
.lp-occ-s0 { animation: lpOcc0 30s infinite; }
.lp-occ-s1 { animation: lpOcc1 30s infinite; }
.lp-occ-s2 { animation: lpOcc2 30s infinite; }
.lp-occ-s3 { animation: lpOcc3 30s infinite; }
/* Obsah karty platby se přepne s příjezdem vozidla (stejně jako SPZ), kdy je karta ještě schovaná. */
.lp-pay-state { animation: lpTurn 30s step-end infinite; }
.lp-pay-s2 { animation-delay: -20s; }
.lp-pay-s3 { animation-delay: -10s; }
.lp-beam { opacity: 0; animation: lpBeam 10s linear infinite; }
.lp-chip { transform-box: fill-box; transform-origin: 50% 100%; animation: lpChip 10s ease infinite; }
.lp-arm { transform-box: fill-box; transform-origin: 0% 50%; animation: lpArm 10s ease-in-out infinite; }
.lp-light-green { animation: lpGreen 10s step-end infinite; }
@keyframes lpVeh {
  0% { transform: translateX(-250px); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  6% { transform: translateX(166px); animation-timing-function: linear; }
  19.333% { transform: translateX(166px); animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
  26.667%, 100% { transform: translateX(700px); }
}
/* SPZ a důvod vjezdu na kartě: každý text svou třetinu cyklu (karta je při přepnutí schovaná). */
@keyframes lpTurn { 0% { opacity: 1; } 33.333%, 100% { opacity: 0; } }
/* Volná místa ubydou, když vozidlo projede závorou (7,5 s od jeho příjezdu): 42 → 41 → 40 → 39, pak znovu od 42.
   Nové číslo krátce vyjede zdola. */
@keyframes lpOcc0 { 0%, 24.9% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; } }
@keyframes lpOcc1 {
  0%, 24.9% { opacity: 0; }
  25% { opacity: 1; transform: translateY(8px); }
  27%, 58.233% { opacity: 1; transform: none; }
  58.333%, 100% { opacity: 0; }
}
@keyframes lpOcc2 {
  0%, 58.233% { opacity: 0; }
  58.333% { opacity: 1; transform: translateY(8px); }
  60.333%, 91.567% { opacity: 1; transform: none; }
  91.667%, 100% { opacity: 0; }
}
@keyframes lpOcc3 {
  0%, 91.567% { opacity: 0; }
  91.667% { opacity: 1; transform: translateY(8px); }
  93.667%, 99.9% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes lpBeam { 0%, 15% { opacity: 0; } 19%, 32% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes lpChip {
  0%, 22% { opacity: 0; transform: translateY(10px) scale(.96); }
  27%, 66% { opacity: 1; transform: none; }
  71%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes lpArm { 0%, 38% { transform: rotate(0); } 46%, 74% { transform: rotate(-78deg); } 84%, 100% { transform: rotate(0); } }
@keyframes lpGreen { 0% { opacity: 0; } 42% { opacity: 1; } 78% { opacity: 0; } }

/* --- Čísla ------------------------------------------------------------- */
.lp-stats { background: var(--surface); border-bottom: 1px solid var(--border); padding: 30px 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
@media (min-width: 900px) { .lp-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-stat strong { display: block; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--link);
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="dark"] .lp-stat strong { background: var(--grad-sky); -webkit-background-clip: text; background-clip: text; }
.lp-stat span { display: block; color: var(--text-muted); font-size: .92rem; line-height: 1.4; max-width: 17em; }

/* --- Sekce ------------------------------------------------------------- */
.lp-section { padding: 64px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { .lp-section { padding: 88px 0; } }
.lp-section-alt { background: var(--lp-alt-bg); }
#kontakt { scroll-margin-top: 64px; }
.lp-head { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.lp-head h2, .lp-split-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.15; margin-bottom: .7rem; }
.lp-head p:last-child, .lp-split-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.lp-kicker { margin: 0 0 .55rem; color: var(--link); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); overflow: hidden; }
.lp-step-ic, .lp-feature-ic, .lp-aud-ic, .lp-node-ic, .lp-driver-ic { display: grid; place-items: center; flex-shrink: 0; }
.lp-step-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-btn); margin-bottom: 1rem; }
.lp-step-no { position: absolute; top: 10px; right: 18px; font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--surface-3); }
.lp-step h3, .lp-feature h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.lp-step p, .lp-feature p { color: var(--text-muted); margin: 0; line-height: 1.55; }

.lp-features { display: grid; gap: 16px; }
@media (min-width: 640px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.lp-feature-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--brand-700); margin-bottom: .9rem; }
:root[data-theme="dark"] .lp-feature-ic, :root[data-theme="dark"] .lp-aud-ic, :root[data-theme="dark"] .lp-node-ic { color: var(--brand-300); }

.lp-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .lp-split { grid-template-columns: 1fr 1.08fr; gap: 64px; } .lp-split-rev .lp-split-text { order: 2; } }
.lp-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.lp-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--text-strong); }
.lp-list .ic { color: var(--link); }

/* Schéma: centrála bez spojení, server na parkovišti běží, zařízení pod ním. */
.lp-arch { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); }
.lp-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.lp-node strong { display: block; color: var(--text-strong); }
.lp-node > span > span { display: block; color: var(--text-muted); font-size: .88rem; line-height: 1.4; }
.lp-node-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--brand-700); }
.lp-node-cloud { opacity: .72; border-style: dashed; }
.lp-node-edge { border-color: var(--brand-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 16%, transparent); }
:root .lp-node-edge .lp-node-ic { background: var(--grad-primary); color: #fff; }
.lp-node-badge { margin-left: auto; }
.lp-link { width: 2px; height: 30px; margin: 0 auto; background: var(--border-strong); }
.lp-link-broken { position: relative; height: 58px; background: repeating-linear-gradient(to bottom, var(--danger-600) 0 6px, transparent 6px 12px); }
.lp-link-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  padding: .22rem .75rem; border-radius: 999px; background: var(--soft-danger-bg); color: var(--danger-700); font-size: .8rem; font-weight: 800; border: 1px solid var(--surface); }
.lp-devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .lp-devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-devices li { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: .86rem; font-weight: 700; color: var(--text-strong); text-align: center; }
.lp-devices .ic { color: var(--link); }

/* Ukázka přehledu (ilustrační čísla). */
.lp-dash { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding-bottom: 18px; overflow: hidden; }
.lp-dash-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lp-dash-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.lp-dash-bar em { margin-left: 8px; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.lp-dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.lp-dash-kpis > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.lp-dash-kpis span { display: block; color: var(--text-muted); font-size: .74rem; font-weight: 700; line-height: 1.3; }
.lp-dash-kpis strong { display: block; color: var(--text-strong); font-size: clamp(.95rem, 2.6vw, 1.3rem); white-space: nowrap; }
.lp-dash-chart { padding: 16px 16px 0; }
.lp-dash-cap { display: block; color: var(--text-muted); font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.lp-dash-chart svg { display: block; width: 100%; height: auto; }
.lp-chart-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.lp-chart-bar { fill: color-mix(in srgb, var(--brand-500) 38%, transparent); }
.lp-chart-bar.is-now { fill: var(--brand-600); }
:root[data-theme="dark"] .lp-chart-bar.is-now { fill: var(--brand-400); }
.lp-chart-lbl { fill: var(--text-muted); font-size: 11px; font-weight: 600; }
.lp-toast { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--soft-warning-bg); border: 1px solid var(--border); }
.lp-toast strong { display: block; color: var(--text-strong); font-size: .92rem; }
.lp-toast > span > span { display: block; color: var(--text-muted); font-size: .84rem; }
.lp-toast-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--warning-600); color: #fff; }
:root[data-theme="dark"] .lp-toast-ic { color: #2a1a00; }

/* --- Pro koho ---------------------------------------------------------- */
.lp-aud { display: grid; gap: 14px; }
@media (min-width: 640px) { .lp-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .lp-aud { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-aud-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.lp-aud-item strong { display: block; color: var(--text-strong); margin-bottom: .15rem; }
.lp-aud-item > span > span { display: block; color: var(--text-muted); font-size: .92rem; line-height: 1.45; }
.lp-aud-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--primary-soft); color: var(--brand-700); }

/* Pozvánka na živou ukázku (/ukazka). */
.lp-demo { display: grid; gap: 18px; align-items: center; max-width: 980px; margin: 0 auto; padding: 24px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lp-demo:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand-300); }
@media (min-width: 760px) { .lp-demo { grid-template-columns: auto 1fr auto; gap: 26px; padding: 28px 32px; } }
.lp-demo-play { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-btn); }
.lp-demo-play .ic { margin-left: 4px; }
.lp-demo-text { display: flex; flex-direction: column; gap: .3rem; }
.lp-demo-text .lp-kicker { margin: 0; }
.lp-demo-text strong { color: var(--text-strong); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; line-height: 1.2; }
.lp-demo-text > span:last-child { color: var(--text-muted); line-height: 1.6; }

/* --- Řidič, závěr, patička -------------------------------------------- */
.lp-driver { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; }
.lp-driver-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.lp-driver-in p { flex: 1 1 300px; margin: 0; color: var(--text-muted); }
.lp-driver-in strong { color: var(--text-strong); }
.lp-driver-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--grad-sky); color: #fff; }

.lp-final { background: var(--grad-hero); background-color: var(--brand-900); color: #fff; padding: 72px 0; text-align: center; scroll-margin-top: 64px; }
.lp-final-in { max-width: 760px; }
.lp-final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .8rem; }
.lp-final p { color: var(--lp-hero-muted); font-size: 1.08rem; }
.lp-final .lp-cta { justify-content: center; margin: 1.6rem 0 1.4rem; }
:root .lp-final .lp-btn-light { background: #fff; color: #1a3a9c; border-color: transparent; box-shadow: 0 12px 28px rgba(4, 12, 40, .32); }
:root .lp-final .lp-btn-light:hover { background: #eff6ff; color: #13286b; filter: none; }
.lp-final-login { margin: 0; font-size: .95rem; }

/* --- Kontaktní formulář (sekce Kontakt; text vlevo, formulář vpravo, na telefonu pod sebou) --- */
.lp-final-in.lp-final-form { max-width: 1080px; display: grid; gap: 28px 44px; align-items: start; }
@media (min-width: 900px) {
  .lp-final-in.lp-final-form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); text-align: left; }
  .lp-final-form .lp-cta { justify-content: flex-start; flex-wrap: wrap; }
  .lp-final-form .lp-final-text { padding-top: 12px; }
}
.lp-final-form .lp-final-login { grid-column: 1 / -1; text-align: center; }
.lp-contact { background: var(--surface); color: var(--text); border-radius: 18px; padding: 22px; text-align: left;
  box-shadow: 0 18px 44px rgba(4, 12, 40, .35); }
@media (min-width: 640px) { .lp-contact { padding: 28px; } }
.lp-contact h3 { color: var(--text-strong); font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; }
.lp-final .lp-contact p { color: var(--text-muted); font-size: .95rem; }
.lp-contact-grid { display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .lp-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-contact-grid .span-all { grid-column: 1 / -1; } }
.lp-contact-grid textarea.input { min-height: 120px; resize: vertical; }
.lp-contact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.lp-final .lp-contact .lp-contact-note { margin: 0; font-size: .85rem; flex: 1 1 220px; }
.lp-contact-note a { color: var(--link); }
/* Past na roboty — mimo obrazovku (ne display: none, ten některé roboty přeskočí). */
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-contact-sent { text-align: center; padding: 18px 6px; }
.lp-contact-sent-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--soft-success-bg); color: var(--success-600); margin-bottom: .6rem; }
.lp-contact-sent h3 { margin-bottom: .4rem; }
.lp-final-login a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.lp-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lp-foot-copy { color: var(--text-muted); font-size: .88rem; }
.lp-foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; font-size: .92rem; font-weight: 600; }

/* --- Postupné odhalení při rolování (landing.js; bez JS je vše vidět hned) --- */
[data-lp-reveal] { transition: opacity .6s ease, transform .6s ease; }
[data-lp-reveal].lp-pre { opacity: 0; transform: translateY(18px); }
.lp-features > :nth-child(3n+2), .lp-aud > :nth-child(3n+2), .lp-steps > :nth-child(2) { transition-delay: .08s; }
.lp-features > :nth-child(3n), .lp-aud > :nth-child(3n), .lp-steps > :nth-child(3) { transition-delay: .16s; }
.lp-steps > :nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-car, .lp-beam, .lp-chip, .lp-arm, .lp-light-green, .lp-float, .lp-turn, .lp-occ-state, .lp-pay-state { animation: none; }
  .lp-pay-s1 { opacity: 1; }
  .lp-car { transform: translateX(166px); }
  .lp-veh-2, .lp-veh-3 { display: none; }
  .lp-turn-1, .lp-occ-s0 { opacity: 1; }
  .lp-arm { transform: rotate(-78deg); }
  .lp-light-green { opacity: 1; }
  [data-lp-reveal], [data-lp-reveal].lp-pre { opacity: 1; transform: none; transition: none; }
  .lp-feature:hover { transform: none; }
}
