/**
 * Public front page.
 *
 * Kept apart from workspace.css on purpose: a visitor opening the site needs a
 * few hundred lines, not the operator interface. The brand colour set in
 * "Бренд і вигляд" arrives as --lp-primary on the page root.
 */

.lp {
    --lp-primary: #3a5999;
    --lp-bg: #f4f6fa;
    --lp-surface: #ffffff;
    --lp-border: #dde3ee;
    --lp-text: #16203a;
    --lp-text-2: #4a5673;
    --lp-muted: #5d6884;
    --lp-soft: color-mix(in srgb, var(--lp-primary) 10%, var(--lp-surface));
    --lp-radius: 8px;
    --lp-shadow: none;

    min-height: 100vh;
    background: var(--lp-bg);
    color: var(--lp-text);
    font: 16px/1.6 "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

@media (prefers-color-scheme: dark) {
    .lp {
        --lp-bg: #0b1220;
        --lp-surface: #131c2e;
        --lp-border: #253048;
        --lp-text: #e2e8f4;
        --lp-text-2: #a6b2c8;
        --lp-muted: #8794ad;
        --lp-soft: color-mix(in srgb, var(--lp-primary) 22%, var(--lp-surface));
        --lp-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

body.ls-public { margin: 0; }
.ls-public__main { display: block; }

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp > * {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Top bar ----------------------------------------------------------------- */

.lp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}

.lp-brand__logo { height: 32px; width: auto; }

.lp-brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #afdb32;
    color: #16203a;
    font-size: 15px;
}

/* Buttons ----------------------------------------------------------------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    background: var(--lp-surface);
    color: var(--lp-text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--lp-shadow);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.lp-btn:hover { border-color: color-mix(in srgb, var(--lp-primary) 40%, var(--lp-border)); }
.lp-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--lp-primary) 45%, transparent); outline-offset: 2px; }

.lp-btn--primary {
    border-color: var(--lp-primary);
    background: var(--lp-primary);
    color: #fff;
}

.lp-btn--primary:hover { background: color-mix(in srgb, var(--lp-primary) 88%, #000); }

.lp-btn--ghost { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: none; }

/* Hero -------------------------------------------------------------------- */

.lp-hero { padding-block: 72px 56px; text-align: center; }

.lp-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lp-soft);
    color: var(--lp-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.lp-hero h1 {
    max-width: 780px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 5.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.lp-lead {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--lp-text-2);
    font-size: clamp(16px, 1.9vw, 19px);
    text-wrap: pretty;
}

.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.lp-hint { margin: 22px 0 0; color: var(--lp-muted); font-size: 14px; }

/* Sections ---------------------------------------------------------------- */

.lp-section { padding-block: 28px; }

.lp-section__title {
    margin: 0 0 18px;
    color: var(--lp-text-2);
    font-size: 15px;
    font-weight: 650;
}

.lp-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background: var(--lp-surface);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--lp-shadow);
}

.lp-channel svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.lp-channel--web svg { color: #1b4dc1; }
.lp-channel--telegram svg { color: #229ed9; }
.lp-channel--whatsapp svg { color: #25a45a; }
.lp-channel--facebook svg { color: #7b3fe4; }
.lp-channel--instagram svg { color: #d62976; }
.lp-channel--email svg { color: #c2701c; }
.lp-channel--social svg { color: #b2276d; }

.lp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lp-feature,
.lp-step {
    padding: 22px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-feature__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: var(--lp-soft);
    color: var(--lp-primary);
}

.lp-feature h3,
.lp-step h3 { margin: 0 0 6px; font-size: 16px; }

.lp-feature p,
.lp-step p { margin: 0; color: var(--lp-text-2); font-size: 14.5px; }

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-step__num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--lp-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* Author ------------------------------------------------------------------ */

.lp-author {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background:
        linear-gradient(135deg, var(--lp-soft), transparent 60%),
        var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-author__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #afdb32;
    color: #16203a;
    font-size: 26px;
}

.lp-author__body { flex: 1; min-width: 0; }
.lp-author__body h3 { margin: 2px 0 2px; font-size: 20px; }
.lp-author__body .lp-author__role { margin: 0 0 10px; color: var(--lp-primary); font-weight: 600; font-size: 14px; }

.lp-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.lp-contacts > div {
    padding: 10px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--lp-surface);
}

.lp-contacts dt { color: var(--lp-muted); font-size: 12px; font-weight: 600; }
.lp-contacts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.lp-contacts a { color: var(--lp-primary); text-decoration: none; }
.lp-contacts a:hover { text-decoration: underline; }
.lp-author__body p { max-width: 640px; margin: 0 0 18px; color: var(--lp-text-2); }
.lp-author__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer ------------------------------------------------------------------ */

.lp-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 40px;
    padding-block: 24px 96px;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-foot__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-foot__version {
    padding: 1px 7px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.lp-foot__credit { color: inherit; opacity: .75; text-decoration: none; }
.lp-foot__credit:hover { opacity: 1; color: var(--lp-primary); }

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 860px) {
    .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .lp > * { padding-inline: 16px; }
    .lp-hero { padding-block: 40px 32px; }
    .lp-features,
    .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-actions .lp-btn,
    .lp-author__links .lp-btn { flex: 1 1 100%; }
    .lp-author { flex-direction: column; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-btn { transition: none; }
    .lp-btn:hover { transform: none; }
}
