/* ============================================================
   Prezentačná stránka „Správa PU" (/) — public/css/landing.css
   Zdieľa tokeny a fonty s administráciou (admin.css, admin-fonts.css),
   aby appka, admin aj landing pôsobili ako jeden systém.
   ============================================================ */

:root {
    --bg: #f2f4f7;
    --surface: #ffffff;
    --line: #e5e7eb;
    --text: #16181d;
    --muted: #6b7280;
    --faint: #9aa4b5;
    --accent: #1e40af;
    --accent-hover: #1d4ed8;
    --accent-soft: #e8edfb;
    --ink: #101828;
    --ink-2: #1d2739;
    --ink-text: #c6d0e2;
    --ok: #16a34a;
    --ok-bg: #e5f5eb;
    --warn-bg: #fdf3d7;
    --warn-tx: #92400e;
    --font-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --r-card: 14px;
    --r-ctl: 8px;
    --gutter: 16px;
    --max: 1180px;
}

@media (min-width: 700px) {
    :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lp-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.lp-skip {
    position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.lp-skip:focus { left: 8px; }

/* ---------- hlavička ---------- */
.lp-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(242, 244, 247, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.lp-header .lp-wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; white-space: nowrap; }
.lp-brand-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
    display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.lp-brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.1; }
.lp-nav { display: none; gap: 22px; margin-left: 16px; }
.lp-nav a { color: var(--muted); font-size: 15px; }
.lp-nav a:hover { color: var(--text); }
.lp-header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 800px) { .lp-nav { display: flex; } }

/* ---------- tlačidlá ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 18px; border-radius: var(--r-ctl); border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.lp-btn-ink { background: var(--ink); color: #fff; }
.lp-btn-ink:hover { background: var(--ink-2); color: #fff; }
.lp-btn-ghost { background: transparent; color: var(--text); border-color: #cfd5e0; }
.lp-btn-ghost:hover { background: #fff; color: var(--text); border-color: #b9c2d1; }
.lp-btn-lg { padding: 14px 22px; font-size: 16px; width: 100%; }
.lp-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.lp-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.lp-hero .lp-wrap { display: grid; gap: 36px; align-items: start; }
@media (min-width: 940px) {
    .lp-hero .lp-wrap { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 56px; align-items: center; }
}
.lp-hero h1 {
    font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.9rem);
    font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; max-width: 13ch;
}
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-lead { margin-top: 22px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: #3b4252; max-width: 36rem; text-wrap: pretty; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lp-hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 36rem; }

/* ---------- release card (APK) ---------- */
.lp-release {
    background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--ink);
    border-radius: var(--r-card); padding: 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 48px -24px rgba(16, 24, 40, 0.25);
}
.lp-release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-release-head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.lp-release-chip { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: #166534; }
.lp-release-chip.is-warn { background: var(--warn-bg); color: var(--warn-tx); }
.lp-version { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.lp-version strong { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.lp-version span { color: var(--muted); font-size: 14px; }
.lp-facts { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lp-facts li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lp-facts dt, .lp-facts .k { color: var(--muted); }
.lp-facts .v { min-width: 0; overflow-wrap: anywhere; }
.lp-hash { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-hash code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lp-copy {
    flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px;
    border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer;
}
.lp-copy:hover { color: var(--text); border-color: #b9c2d1; }
.lp-copy svg { width: 13px; height: 13px; }
.lp-copy.is-done { color: #166534; border-color: #b7e2c6; background: var(--ok-bg); }
.lp-release .lp-btn-lg { margin-top: 18px; }
.lp-release-foot { margin-top: 12px; color: var(--muted); font-size: 13px; }
.lp-release-empty { padding: 10px 0 4px; color: var(--muted); }

/* ---------- sekcie ---------- */
.lp-section { padding: clamp(44px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.lp-section-head { max-width: 40rem; margin-bottom: clamp(26px, 4vw, 44px); }
.lp-section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

/* pipeline – skutočná postupnosť, preto číslovanie */
.lp-flow { display: grid; gap: 14px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .lp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.lp-flow li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px 20px; }
@media (min-width: 1000px) {
    .lp-flow li { border-radius: 0; margin-left: -1px; }
    .lp-flow li:first-child { border-radius: var(--r-card) 0 0 var(--r-card); margin-left: 0; }
    .lp-flow li:last-child { border-radius: 0 var(--r-card) var(--r-card) 0; }
    .lp-flow li:not(:last-child)::after {
        content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg);
        background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 1;
    }
}
.lp-flow li::before {
    content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.lp-flow h3 { margin-bottom: 6px; }
.lp-flow p { color: var(--muted); font-size: 14.5px; }
.lp-flow .lp-where { display: block; margin-top: 12px; font-size: 12.5px; color: var(--faint); }

/* funkcie – definičný zoznam, nie rovnaké karty */
.lp-features { display: grid; gap: 0; margin: 0; }
@media (min-width: 760px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
.lp-feature { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.lp-feature:nth-child(-n+2) { border-top: 0; }
@media (max-width: 759px) { .lp-feature:nth-child(2) { border-top: 1px solid var(--line); } }
.lp-feature-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.lp-feature-ico svg { width: 20px; height: 20px; }
.lp-feature p { color: var(--muted); font-size: 14.5px; margin-top: 4px; text-wrap: pretty; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp-chips span { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #eef2ff; color: #3730a3; }

/* inštalácia – postup krokov */
.lp-install { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .lp-install { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: ins; }
.lp-steps li { counter-increment: ins; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.lp-steps li:first-child { border-top: 0; padding-top: 0; }
.lp-steps li::before { content: counter(ins); font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 15px; padding-top: 2px; }
.lp-steps p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.lp-req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.lp-req h3 { margin-bottom: 8px; }
.lp-req ul { margin: 0; padding: 0; list-style: none; }
.lp-req li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lp-req li span:first-child { color: var(--muted); }
.lp-req li span:last-child { text-align: right; }

/* ---------- správcovia / prevádzka ---------- */
.lp-ops { background: var(--ink); color: var(--ink-text); border-top: 0; }
.lp-ops h2, .lp-ops h3 { color: #fff; }
.lp-ops .lp-section-head p { color: #9db0cc; }
.lp-ops a { color: #fff; }
.lp-ops-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .lp-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-ops-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-stat { border: 1px solid var(--ink-2); border-radius: var(--r-card); padding: 18px; background: rgba(255, 255, 255, 0.02); }
.lp-stat strong { display: block; color: #fff; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.lp-stat span { display: block; margin-top: 6px; font-size: 13.5px; color: #9db0cc; }
.lp-stat .lp-stat-of { display: inline; font-size: 1rem; color: #7f91ad; margin: 0; }
.lp-stat small { display: block; margin-top: 8px; font-size: 12.5px; color: #7f91ad; }
.lp-ops-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-ops-links a { border: 1px solid var(--ink-2); border-radius: var(--r-ctl); padding: 10px 14px; font-size: 14.5px; }
.lp-ops-links a:hover { background: var(--ink-2); }
.lp-ops-guest { display: grid; gap: 20px; align-items: center; }
@media (min-width: 800px) { .lp-ops-guest { grid-template-columns: 1fr auto; } }
.lp-btn-on-ink { color: #fff; border-color: var(--ink-2); }
.lp-btn-on-ink:hover { background: var(--ink-2); color: #fff; }
.lp-ops-guest p { color: #9db0cc; max-width: 40rem; }

/* ---------- päta ---------- */
.lp-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lp-footer .lp-wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .lp-footer .lp-wrap { grid-template-columns: 1fr auto; align-items: start; } }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-footer-name { color: var(--text); }
.lp-footer-legal { margin-top: 10px; font-size: 13px; color: var(--faint); }
