/*
    Landing page of the bare product domain.
    Colours follow the ERP theme (themes/erp/erp.css): ink, accent and paper are the same values, the rest are
    tints and shades of them. Spacing is a scale of 8px. Layout uses logical properties, so a right-to-left
    language needs no second stylesheet.
*/
:root {
    --lp-ink: #1e4b7a;
    --lp-ink-soft: #3b6ea5;
    --lp-ink-deep: #16385c;
    --lp-steel: #3d5270;
    --lp-slate: #24344a;
    --lp-night: #121a26;
    --lp-accent: #2563eb;
    --lp-accent-deep: #1d4ed8;
    --lp-accent-soft: #e6eefc;
    --lp-paper: #f4f6f9;
    --lp-card: #ffffff;
    --lp-line: #d5dbe3;
    --lp-line-soft: #e6eaf0;
    --lp-text: #1c2430;
    --lp-muted: #5c6b7c;
    --lp-ok: #15803d;
    --lp-ok-soft: #dcf3e4;
    --lp-warn: #b45309;
    --lp-warn-soft: #fdecd2;
    --lp-danger: #be123c;

    --lp-s1: 8px;
    --lp-s2: 16px;
    --lp-s3: 24px;
    --lp-s4: 32px;
    --lp-s5: 40px;
    --lp-s6: 48px;
    --lp-s8: 64px;
    --lp-s12: 96px;

    --lp-radius-sm: 10px;
    --lp-radius: 14px;
    --lp-radius-lg: 20px;
    --lp-shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.06), 0 4px 12px rgba(30, 41, 59, 0.05);
    --lp-shadow: 0 16px 36px rgba(30, 41, 59, 0.1);
    --lp-shadow-lg: 0 30px 70px rgba(18, 26, 38, 0.2);

    --lp-wrap: 1200px;
    --lp-top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--lp-top-h) + var(--lp-s2));
    -webkit-text-size-adjust: 100%;
}

.lp-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--lp-paper);
    color: var(--lp-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Resets carry no specificity, so any class below can set its own margin. */
:where(.lp-body) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.lp-body) :where(ul, ol) { padding: 0; list-style: none; }
.lp-body main { flex: 1; }

.lp-body :focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.lp-wrap {
    width: 100%;
    max-width: var(--lp-wrap);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.lp-wrap.narrow { max-width: 880px; }

.lp-skip {
    position: absolute;
    inset-inline-start: var(--lp-s2);
    top: -100px;
    z-index: 60;
    padding: var(--lp-s1) var(--lp-s2);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.lp-skip:focus { top: var(--lp-s1); }

/* Icons that point forward follow the reading direction. */
[dir="rtl"] .lp-flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-s1);
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--lp-accent);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.lp-btn:hover { background: var(--lp-accent-deep); border-color: var(--lp-accent-deep); }
.lp-btn .material-symbols-rounded { font-size: 20px; }

.lp-btn.ghost { border-color: var(--lp-line); background: var(--lp-card); color: var(--lp-ink); }
.lp-btn.ghost:hover { border-color: var(--lp-ink-soft); background: var(--lp-card); }

.lp-btn.lg { min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 17px; }
.lp-btn.lg:not(.ghost):not(.outline-light) { box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28); }

.lp-btn.light { border-color: #fff; background: #fff; color: var(--lp-ink); box-shadow: 0 10px 24px rgba(18, 26, 38, 0.25); }
.lp-btn.light:hover { border-color: #fff; background: var(--lp-accent-soft); }
.lp-btn.outline-light { border-color: rgba(255, 255, 255, 0.6); background: transparent; color: #fff; }
.lp-btn.outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- Top bar ---------- */

.lp-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--lp-line-soft);
    backdrop-filter: saturate(1.4) blur(10px);
    transition: box-shadow 160ms ease;
}

.lp-top.is-scrolled, .lp-top.is-open { box-shadow: 0 6px 20px rgba(30, 41, 59, 0.08); }

.lp-top-in {
    display: flex;
    align-items: center;
    gap: var(--lp-s2);
    min-height: var(--lp-top-h);
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-s1);
    color: var(--lp-ink);
    font-size: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.lp-brand .material-symbols-rounded { font-size: 26px; color: var(--lp-accent); }

.lp-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: var(--lp-s3);
}

.lp-nav-link {
    padding: var(--lp-s1) 12px;
    border-radius: 8px;
    color: var(--lp-muted);
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.lp-nav-link:hover { background: var(--lp-paper); color: var(--lp-ink); }
.lp-nav-login { display: none; }

.lp-top-actions {
    display: flex;
    align-items: center;
    gap: var(--lp-s1);
    margin-inline-start: auto;
}

.lp-lang { position: relative; }

.lp-lang > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--lp-radius-sm);
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 550;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.lp-lang > summary::-webkit-details-marker { display: none; }
.lp-lang > summary:hover, .lp-lang[open] > summary { background: var(--lp-paper); color: var(--lp-ink); }
.lp-lang > summary .material-symbols-rounded { font-size: 20px; }
.lp-lang-caret { transition: transform 160ms ease; }
.lp-lang[open] .lp-lang-caret { transform: rotate(180deg); }

.lp-lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    z-index: 5;
    display: grid;
    min-width: 168px;
    padding: 6px;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    background: var(--lp-card);
    box-shadow: var(--lp-shadow);
}

.lp-lang-item, .lp-foot-language {
    border: 0;
    background: transparent;
    color: var(--lp-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lp-lang-item { padding: 10px 12px; border-radius: 8px; text-align: start; }
.lp-lang-item:hover { background: var(--lp-paper); }
.lp-lang-item.is-current { color: var(--lp-accent); font-weight: 650; }

.lp-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-card);
    color: var(--lp-ink);
    cursor: pointer;
}

.lp-burger-close, .lp-top.is-open .lp-burger-open { display: none; }
.lp-top.is-open .lp-burger-close { display: inline-block; }

@media (max-width: 1079.98px) {
    .lp-top-login { display: none; }
    .lp-nav-login { display: inline-flex; }

    /* With the script the links open under the bar; without it they wrap to a second row. */
    html.lp-js .lp-burger { display: inline-flex; }

    html.lp-js .lp-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: var(--lp-s2) clamp(16px, 4vw, 32px) var(--lp-s3);
        border-bottom: 1px solid var(--lp-line);
        background: var(--lp-card);
        box-shadow: 0 18px 30px rgba(30, 41, 59, 0.1);
    }

    html.lp-js .lp-top.is-open .lp-nav { display: flex; }
    html.lp-js .lp-nav-link { padding: 12px; font-size: 16px; }
    html.lp-js .lp-nav-login { margin-top: var(--lp-s1); min-height: 46px; }

    html:not(.lp-js) .lp-top-in { flex-wrap: wrap; padding-block: var(--lp-s1); }
    html:not(.lp-js) .lp-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin: 0; }
}

@media (max-width: 479.98px) {
    .lp-lang-current, .lp-lang-caret { display: none; }
    .lp-top-in { gap: var(--lp-s1); }
    .lp-top .lp-btn { padding: 0 14px; }
}

/* ---------- Hero ---------- */

.lp-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fd 55%, var(--lp-paper) 100%);
}

/* Soft light behind the hero: glows in the theme's blues, drifting slowly. */
.lp-hero::before {
    content: "";
    position: absolute;
    inset: -25% -10% -10%;
    z-index: -2;
    background:
        radial-gradient(38% 46% at 80% 30%, rgba(37, 99, 235, 0.4), transparent 70%),
        radial-gradient(32% 40% at 58% 82%, rgba(96, 165, 250, 0.38), transparent 70%),
        radial-gradient(38% 46% at 8% 24%, rgba(59, 110, 165, 0.3), transparent 70%),
        radial-gradient(28% 32% at 32% 98%, rgba(148, 163, 184, 0.38), transparent 70%);
    animation: lp-drift 26s ease-in-out infinite alternate;
}

/* A fine grid over the light, fading out towards the edges. */
.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(30, 75, 122, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 75, 122, 0.15) 1px, transparent 1px);
    background-position: center top;
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 78% 88% at 50% 28%, #000 18%, transparent 78%);
    mask-image: radial-gradient(ellipse 78% 88% at 50% 28%, #000 18%, transparent 78%);
}

/* Text over the light keeps AA contrast: a darker grey here, and a weaker light where the text sits on top of it. */
.lp-hero .lp-lead, .lp-hero .lp-note { color: #4b5a6c; }

@media (max-width: 999.98px) {
    .lp-hero::before { opacity: 0.62; }
}

/* The light sits behind the screen sample, which is on the other side in a right-to-left language. */
[dir="rtl"] .lp-hero::before { scale: -1 1; }

@keyframes lp-drift {
    from { translate: -2% -1%; }
    to { translate: 3% 2%; }
}

.lp-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 1000px) {
    .lp-hero-in { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}

.lp-eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid #c9d8f8;
    border-radius: 999px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent-deep);
    font-size: 13px;
    font-weight: 650;
}

.lp-hero h1 {
    margin-top: var(--lp-s2);
    color: var(--lp-ink);
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

[dir="rtl"] .lp-hero h1, [dir="rtl"] .lp-section-head h2, [dir="rtl"] .lp-cta-band h2 { letter-spacing: 0; line-height: 1.35; }

.lp-lead {
    margin-top: var(--lp-s3);
    max-width: 58ch;
    color: var(--lp-muted);
    font-size: clamp(17px, 1.5vw, 19px);
}

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--lp-s4); }

.lp-note {
    display: flex;
    align-items: flex-start;
    gap: var(--lp-s1);
    margin-top: var(--lp-s3);
    color: var(--lp-muted);
    font-size: 14px;
}

.lp-note .material-symbols-rounded { flex: none; color: var(--lp-ok); font-size: 20px; }

@media (max-width: 999.98px) {
    .lp-hero-text { text-align: center; }
    .lp-lead { margin-inline: auto; }
    .lp-hero-actions, .lp-note { justify-content: center; }
    .lp-note { text-align: start; }
    .lp-hero-mock { max-width: 720px; margin-inline: auto; width: 100%; }
}

@media (max-width: 479.98px) {
    .lp-hero-actions .lp-btn { flex: 1 1 100%; }
}

/* ---------- Screen samples (drawn with CSS, sized in em so they scale with their container) ---------- */

.lp-mock { container-type: inline-size; min-width: 0; }

.lp-screen {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lp-line);
    border-radius: 1.1em;
    background: var(--lp-card);
    box-shadow: var(--lp-shadow-lg);
    color: var(--lp-text);
    font-size: 10px;
    font-size: clamp(6.5px, 2.1cqi, 13px);
    line-height: 1.35;
    text-align: start;
    user-select: none;
}

.lp-screen .material-symbols-rounded { font-size: 1.5em; }
.lp-screen b { font-weight: 650; }

.lp-win-bar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 2.5em;
    padding-inline: 1em;
    border-bottom: 1px solid var(--lp-line);
    background: #eef1f5;
}

.lp-win-bar i { width: 0.75em; height: 0.75em; border-radius: 50%; background: #c5ccd6; }

.lp-win-url {
    flex: 1;
    max-width: 22em;
    height: 1.3em;
    margin-inline-start: 1em;
    border: 1px solid var(--lp-line-soft);
    border-radius: 999px;
    background: #fff;
}

.lp-app { position: relative; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); min-height: 29em; }

.lp-app-side {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    padding: 1em 0.75em;
    color: #f8fafc;
    background:
        radial-gradient(22em 13em at 118% -8%, rgba(96, 165, 250, 0.45), transparent 64%),
        linear-gradient(180deg, var(--lp-steel) 0%, var(--lp-slate) 38%, var(--lp-night) 100%);
}

.lp-app-brand { display: flex; align-items: center; gap: 0.5em; padding: 0.25em 0.5em 1em; font-size: 1.15em; }

.lp-app-nav {
    display: flex;
    align-items: center;
    gap: 0.6em;
    overflow: hidden;
    padding: 0.55em 0.6em;
    border-radius: 0.6em;
    color: rgba(248, 250, 252, 0.8);
    white-space: nowrap;
}

.lp-app-nav > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lp-app-nav.is-active { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; }

.lp-app-main, .lp-pane {
    display: flex;
    flex-direction: column;
    gap: 1em;
    min-width: 0;
    padding: 1.2em 1.4em;
    background: var(--lp-paper);
}

.lp-pane { min-height: 24em; }

.lp-app-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.lp-app-head > b { color: var(--lp-ink); font-size: 1.35em; }

.lp-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    flex: none;
    height: 2.4em;
    padding-inline: 0.9em;
    border: 1px solid var(--lp-line);
    border-radius: 0.6em;
    background: #fff;
    color: var(--lp-ink);
    font-weight: 600;
    white-space: nowrap;
}

.lp-app-btn.primary { border-color: var(--lp-accent); background: var(--lp-accent); color: #fff; }
.lp-app-btn.icon { width: 2.4em; justify-content: center; padding: 0; }

.lp-app-filters { display: flex; gap: 0.6em; }

.lp-app-input {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex: 1;
    min-width: 0;
    height: 2.4em;
    padding-inline: 0.7em;
    border: 1px solid var(--lp-line);
    border-radius: 0.6em;
    background: #fff;
    color: var(--lp-muted);
    white-space: nowrap;
}

.lp-app-input.short { flex: 0 0 8em; justify-content: space-between; }
.lp-app-input.short .lp-bar { flex: 1; max-width: 60%; }
.lp-app-input.is-value { justify-content: flex-end; color: var(--lp-text); }
.lp-app-input > .lp-bar { flex: 1; max-width: 60%; }
.lp-app-input > .lp-bar + .material-symbols-rounded { margin-inline-start: auto; }

.lp-app-table { overflow: hidden; border: 1px solid var(--lp-line); border-radius: 0.8em; background: #fff; }

.lp-app-row {
    display: grid;
    gap: 1em;
    align-items: center;
    padding: 0.9em 1em;
    border-top: 1px solid var(--lp-line-soft);
}

.lp-app-row:first-child { border-top: 0; }
.lp-app-row.head { background: #f8fafc; color: var(--lp-muted); font-size: 0.9em; font-weight: 600; }
.lp-app-row.head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-app-row.is-low { background: #fff9ef; }
.lp-app-row.is-selected { background: var(--lp-accent-soft); }

.cols-4 .lp-app-row { grid-template-columns: 0.9fr 1.7fr 1.2fr 1.2fr; }
.cols-3 .lp-app-row { grid-template-columns: 0.9fr 1.8fr 1.2fr; }
.cols-stock .lp-app-row { grid-template-columns: 1fr 1.6fr 1.2fr 0.8fr; }
.cols-team .lp-app-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.cols-auto .lp-app-row { grid-template-columns: 1.15fr 1.4fr 1fr 1fr; }

.lp-plate {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    padding-inline-end: 0.45em;
    border: 1px solid #334155;
    border-radius: 0.3em;
    background: #fff;
    color: var(--lp-ink);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.lp-plate::before { content: ""; flex: none; width: 0.55em; margin-inline-end: 0.45em; background: #1d4ed8; }

.lp-state {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 0.2em 0.7em;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-state.is-open { background: #fdf0d9; color: #8a5300; }
.lp-state.is-done { background: #dcf3e4; color: #1c6b3c; }

.lp-num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; white-space: nowrap; }
[dir="rtl"] .lp-num[dir="ltr"] { text-align: start; }
.lp-num.pos { color: var(--lp-ok); }
.lp-num.neg { color: var(--lp-danger); }
.lp-num.warn { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.3em; color: var(--lp-warn); }
[dir="rtl"] .lp-num.warn { justify-content: flex-start; }

.lp-bar { display: block; height: 0.7em; border-radius: 999px; background: #dfe5ec; }
.lp-bar.lg { height: 1em; background: #c9d3df; }
.lp-bar.w30 { width: 30%; }
.lp-bar.w40 { width: 40%; }
.lp-bar.w50 { width: 50%; }
.lp-bar.w60 { width: 60%; }
.lp-bar.w70 { width: 70%; }
.lp-bar.w80 { width: 80%; }
.lp-bar.w90 { width: 90%; }

.lp-app-modal {
    position: absolute;
    inset-inline-start: 13.7em;
    bottom: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 17em;
    padding: 1.1em;
    border: 1px solid var(--lp-line);
    border-radius: 1em;
    background: #fff;
    box-shadow: 0 1.4em 3em rgba(18, 26, 38, 0.28);
}

.lp-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3em; color: var(--lp-ink); font-size: 1.2em; }
.lp-modal-head .material-symbols-rounded { color: var(--lp-muted); }
.lp-app-label { color: var(--lp-muted); font-size: 0.9em; font-weight: 600; }
.lp-app-modal .lp-app-input { flex: none; }
.lp-modal-foot { display: flex; justify-content: flex-end; margin-top: 0.5em; }

.lp-pane-head { display: flex; align-items: center; gap: 0.9em; }
.lp-pane-title { display: grid; gap: 0.5em; flex: 1; min-width: 0; }

.lp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 3em;
    height: 3em;
    border-radius: 0.8em;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
}

.lp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; }

.lp-tile {
    display: grid;
    gap: 0.3em;
    min-width: 0;
    padding: 0.8em 0.9em;
    border: 1px solid var(--lp-line);
    border-radius: 0.8em;
    background: #fff;
}

.lp-tile > span { overflow: hidden; color: var(--lp-muted); font-size: 0.9em; text-overflow: ellipsis; white-space: nowrap; }
.lp-tile > b { font-size: 1.25em; text-align: start; }
[dir="rtl"] .lp-tile > b.lp-num[dir="ltr"] { text-align: end; }

.lp-barcode {
    display: block;
    width: 6em;
    max-width: 100%;
    height: 1.5em;
    background: repeating-linear-gradient(90deg, #334155 0 0.14em, transparent 0.14em 0.3em, #334155 0.3em 0.36em, transparent 0.36em 0.62em, #334155 0.62em 0.86em, transparent 0.86em 1em);
}

.lp-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; align-items: start; }
.lp-board-col { display: grid; gap: 0.6em; min-width: 0; }

.lp-board-head {
    display: flex;
    align-items: center;
    gap: 0.4em;
    overflow: hidden;
    color: var(--lp-ink);
    font-weight: 650;
    white-space: nowrap;
}

.lp-card-s {
    display: grid;
    gap: 0.5em;
    padding: 0.8em;
    border: 1px solid var(--lp-line);
    border-radius: 0.8em;
    background: #fff;
}

.lp-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3em; }
.lp-dot { display: block; flex: none; width: 1.4em; height: 1.4em; border-radius: 50%; background: #c9d3df; }
.lp-dot.lg { width: 2em; height: 2em; }
.lp-pill { display: block; width: 3.6em; height: 1.2em; border-radius: 999px; background: var(--lp-accent-soft); }
.lp-pill.info { background: #cfdcfa; }
.lp-pill.ok { background: #bfe8cd; }
.lp-pill.warn { background: #f9d9a8; }

.lp-team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.8em; align-items: start; }

.lp-role {
    padding: 0.2em 0.7em;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--lp-muted);
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.lp-role.is-manager { background: var(--lp-accent-soft); color: var(--lp-accent-deep); }

.lp-perms {
    display: grid;
    gap: 0.6em;
    min-width: 0;
    padding: 0.9em;
    border: 1px solid var(--lp-line);
    border-radius: 0.8em;
    background: #fff;
}

.lp-perms > b { color: var(--lp-ink); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 0.4em; }

.lp-chip {
    padding: 0.2em 0.7em;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    color: var(--lp-muted);
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.lp-chip.is-on { border-color: var(--lp-accent); background: var(--lp-accent); color: #fff; }
.lp-check { display: flex; align-items: center; gap: 0.5em; overflow: hidden; color: var(--lp-muted); white-space: nowrap; }
.lp-check.is-on { color: var(--lp-text); }
.lp-check.is-on .material-symbols-rounded { color: var(--lp-accent); }

/* ---------- Highlights strip ---------- */

.lp-stats { border-block: 1px solid var(--lp-line-soft); background: var(--lp-card); }

.lp-stats-in {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--lp-s3) var(--lp-s4);
    padding-block: var(--lp-s4);
}

.lp-stat { display: flex; align-items: flex-start; gap: 12px; }

.lp-stat > .material-symbols-rounded {
    flex: none;
    padding: 9px;
    border-radius: 12px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    font-size: 24px;
}

.lp-stat strong { display: block; color: var(--lp-ink); font-size: 18px; line-height: 1.3; }
.lp-stat span:not(.material-symbols-rounded) { color: var(--lp-muted); font-size: 14px; }

/* ---------- Sections ---------- */

.lp-section { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 104px); }
.lp-section.alt { border-block: 1px solid var(--lp-line-soft); background: var(--lp-card); }

/* The paper-coloured sections carry a faint dot pattern with a glow in two corners; the white ones stay plain. */
.lp-section:not(.alt)::before, .lp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(46% 52% at 100% 4%, rgba(37, 99, 235, 0.2), transparent 70%),
        radial-gradient(42% 50% at 0% 96%, rgba(59, 110, 165, 0.2), transparent 70%),
        radial-gradient(circle, rgba(30, 75, 122, 0.24) 1px, transparent 1.6px) 0 0 / 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

[dir="rtl"] .lp-section:not(.alt)::before, [dir="rtl"] .lp-cta::before { scale: -1 1; }

.lp-section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }

.lp-section-head h2, .lp-cta-band h2 {
    color: var(--lp-ink);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.lp-section-head p { margin-top: var(--lp-s2); color: var(--lp-muted); font-size: clamp(16px, 1.4vw, 18px); }

/* Features */

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--lp-s3); }

.lp-feature {
    padding: var(--lp-s4);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-card);
    box-shadow: var(--lp-shadow-sm);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lp-feature:hover { border-color: #b9c8e2; box-shadow: var(--lp-shadow); transform: translateY(-2px); }

.lp-feature-icon, .lp-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
}

.lp-feature-icon .material-symbols-rounded, .lp-step-icon .material-symbols-rounded { font-size: 26px; }
.lp-feature h3, .lp-step h3 { margin-top: var(--lp-s2); color: var(--lp-ink); font-size: 19px; line-height: 1.3; }
.lp-feature p, .lp-step p { margin-top: var(--lp-s1); color: var(--lp-muted); font-size: 15.5px; }

/* How it works */

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--lp-s3); counter-reset: lp-step; }

.lp-step {
    position: relative;
    padding: var(--lp-s4);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-paper);
    counter-increment: lp-step;
}

.lp-step::before {
    content: counter(lp-step);
    position: absolute;
    inset-inline-end: var(--lp-s3);
    top: var(--lp-s2);
    color: #c3cfdf;
    font-size: 44px;
    font-weight: 750;
    line-height: 1;
}

.lp-step-icon { background: var(--lp-ink); color: #fff; }

/* Modules */

.lp-tabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto var(--lp-s4);
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--lp-card);
    scrollbar-width: none;
}

.lp-tabs::-webkit-scrollbar { display: none; }
html:not(.lp-js) .lp-tabs { display: none; }

.lp-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-s1);
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--lp-radius-sm);
    background: transparent;
    color: var(--lp-muted);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

/* On a narrow screen every tab stays visible: two rows of two instead of a strip that scrolls sideways. */
@media (max-width: 599.98px) {
    .lp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .lp-tab { justify-content: center; padding: 0 10px; }
}

.lp-tab .material-symbols-rounded { font-size: 20px; }
.lp-tab:hover { color: var(--lp-ink); }
.lp-tab[aria-selected="true"] { background: var(--lp-ink); color: #fff; }

.lp-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 3.5vw, 48px);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-lg);
    background: var(--lp-card);
    box-shadow: var(--lp-shadow-sm);
}

.lp-panel + .lp-panel { margin-top: var(--lp-s3); }
.lp-panel[hidden] { display: none; }
.lp-panel .lp-screen { box-shadow: var(--lp-shadow); }

@media (min-width: 900px) {
    .lp-panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.lp-panel-text h3 { color: var(--lp-ink); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.lp-panel-text p { margin-top: var(--lp-s2); color: var(--lp-muted); }
.lp-points { display: grid; gap: 12px; margin-top: var(--lp-s3); }
.lp-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; }
.lp-points .material-symbols-rounded { flex: none; margin-top: 1px; color: var(--lp-ok); font-size: 22px; }

/* FAQ */

.lp-faq { display: grid; gap: 12px; }

.lp-faq-item { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-paper); }
.lp-faq-item[open] { border-color: #b9c8e2; background: var(--lp-card); box-shadow: var(--lp-shadow-sm); }

.lp-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s2);
    padding: 18px var(--lp-s3);
    border-radius: var(--lp-radius);
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

.lp-faq-item > summary::-webkit-details-marker { display: none; }
.lp-faq-item > summary .material-symbols-rounded { flex: none; color: var(--lp-muted); transition: transform 160ms ease; }
.lp-faq-item[open] > summary .material-symbols-rounded { transform: rotate(180deg); }
.lp-faq-item > p { padding: 0 var(--lp-s3) var(--lp-s3); color: var(--lp-muted); }

/* Closing call to action */

.lp-cta { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 88px); }

.lp-cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s4);
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--lp-radius-lg);
    color: #fff;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(96, 165, 250, 0.4), transparent 62%),
        linear-gradient(135deg, var(--lp-ink) 0%, var(--lp-ink-deep) 55%, var(--lp-slate) 100%);
    box-shadow: var(--lp-shadow-lg);
}

/* The same grid as the hero, in white, fading in towards the buttons. */
.lp-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 100%);
    mask-image: linear-gradient(105deg, transparent 20%, #000 100%);
}

[dir="rtl"] .lp-cta-band::before { scale: -1 1; }

.lp-cta-band > div:first-child { flex: 1 1 360px; }
.lp-cta-band h2 { color: #fff; }
.lp-cta-band p { margin-top: 12px; max-width: 56ch; color: rgba(255, 255, 255, 0.86); font-size: 17px; }
.lp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta-band :focus-visible { outline-color: #fff; }

@media (max-width: 479.98px) {
    .lp-cta-actions { width: 100%; }
    .lp-cta-actions .lp-btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */

.lp-foot { border-top: 1px solid var(--lp-line); background: var(--lp-card); color: var(--lp-muted); font-size: 14px; }

.lp-foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s2) var(--lp-s4);
    padding-block: var(--lp-s4);
}

.lp-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--lp-s2); }
.lp-foot-brand .lp-brand { font-size: 18px; }
.lp-foot-languages { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-foot-language { padding: var(--lp-s1) 10px; border-radius: 8px; color: var(--lp-muted); }
.lp-foot-language:hover { background: var(--lp-paper); color: var(--lp-ink); }
.lp-foot-language.is-current { color: var(--lp-ink); font-weight: 650; }

@media (max-width: 719.98px) {
    .lp-foot-in { flex-direction: column; text-align: center; }
    .lp-foot-brand { justify-content: center; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    [data-lp-reveal] { transition: opacity 520ms ease, transform 520ms ease; }
    [data-lp-reveal].is-waiting { opacity: 0; transform: translateY(18px); }
}

/* Paper has no scrolling: nothing waits to be shown. */
@media print {
    [data-lp-reveal].is-waiting { opacity: 1; transform: none; }
    .lp-top { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-body *, .lp-body *::before, .lp-body *::after { transition: none !important; animation: none !important; }
}
