body.bpm-frontend-body {
    background: #eef2f6;
    margin: 0;
}

.bpm-frontend-shell {
    margin: 0 auto;
    max-width: 1440px;
    min-height: 100vh;
    padding: 18px;
}

.bpm-frontend-topbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bpm-frontend-topbar h1 {
    margin: 0;
}

.bpm-frontend-topbar p {
    color: #64748b;
    margin: 4px 0 0;
}

.bpm-frontend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bpm-pwa-hint {
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #ffffff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 14px 16px;
}

.bpm-pwa-hint__content {
    display: grid;
    gap: 4px;
}

.bpm-pwa-hint__content strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.bpm-pwa-hint__content span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.5;
}

.bpm-pwa-hint__close {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    white-space: nowrap;
}

.bpm-install-app[hidden] {
    display: none !important;
}

.bpm-install-app {
    align-items: center;
    border: none;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
}

.bpm-install-app__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

body.bpm-pwa-installed .bpm-install-app {
    display: none !important;
}

.bpm-package-hero {
    align-items: end;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a, #1f2937 60%, #0f766e);
    border-radius: 24px;
    color: #f8fafc;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 28px;
}

.bpm-package-hero__eyebrow {
    color: rgba(255, 255, 255, 0.72);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bpm-package-hero__meta h1 {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -.04em;
    margin: 0;
}

.bpm-package-hero__meta p {
    color: rgba(255, 255, 255, 0.82);
    margin: 10px 0 0;
    max-width: 700px;
}

.bpm-package-hero__badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    min-width: 180px;
    padding: 18px 20px;
}

.bpm-package-hero__badge span {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bpm-package-hero__badge strong {
    display: block;
    font-size: 28px;
    margin-top: 6px;
}

.bpm-package-summary {
    overflow: hidden;
    position: relative;
}

.bpm-package-summary::before {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.bpm-package-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bpm-package-stat {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    min-height: 148px;
    padding: 18px;
}

.bpm-package-stat span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bpm-package-stat strong {
    color: #0f172a;
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-top: 10px;
}

.bpm-package-stat small {
    color: #64748b;
    display: block;
    margin-top: 10px;
}

.bpm-board-finder__head h2,
.bpm-package-table-head h2 {
    margin: 0;
}

.bpm-board-finder__head p,
.bpm-package-table-head p {
    color: #64748b;
    margin: 6px 0 0;
}

.bpm-board-finder__form {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 180px;
    margin-top: 18px;
}

.bpm-board-finder__result {
    margin-top: 18px;
}

.bpm-board-finder__result.is-loading {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.bpm-finder-card {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    overflow: hidden;
}

.bpm-finder-card__head {
    align-items: start;
    background: linear-gradient(135deg, #ecfeff, #f8fafc);
    border-bottom: 1px solid #dbe4ee;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
}

.bpm-finder-card__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.bpm-finder-card__subtitle {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

.bpm-finder-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 10px 14px;
    text-transform: uppercase;
}

.bpm-finder-status.is-packed {
    background: #dcfce7;
    color: #166534;
}

.bpm-finder-status.is-unpacked {
    background: #fef3c7;
    color: #92400e;
}

.bpm-finder-card__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 18px 18px;
}

.bpm-finder-card__item {
    background: #fff;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    padding: 10px 12px;
}

.bpm-finder-card__item span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bpm-finder-card__item strong {
    color: #0f172a;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin-top: 6px;
}

.bpm-finder-card__actions {
    display: flex;
    gap: 12px;
    padding: 0 18px 18px;
}

.bpm-finder-package-focus {
    align-items: center;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 18px;
    color: #f8fafc;
    display: grid;
    gap: 8px;
    justify-items: center;
    margin: 14px 18px 0;
    padding: 16px 18px;
    text-align: center;
}

.bpm-finder-package-focus span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .84;
    text-transform: uppercase;
}

.bpm-finder-package-focus strong {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.bpm-finder-package-focus .btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f766e;
    font-weight: 700;
}

.bpm-finder-card__message {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: #9a3412;
    margin: 0 18px 18px;
    padding: 14px 16px;
}

.bpm-modal-overlay {
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 9999;
}

.bpm-modal-overlay.is-open {
    display: flex;
}

.bpm-modal-card {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
    max-height: min(82vh, 760px);
    max-width: 880px;
    overflow: auto;
    position: relative;
    width: 100%;
}

.bpm-modal-card--finder {
    padding: 18px;
}

.bpm-modal-close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
}

.bpm-modal-close:hover {
    background: #e2e8f0;
}

.bpm-package-table-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bpm-package-table tbody tr td {
    vertical-align: middle;
}

@media (max-width: 782px) {
    .bpm-frontend-shell {
        padding: 10px;
    }

    .bpm-frontend-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .bpm-frontend-actions {
        width: 100%;
    }

    .bpm-install-app {
        width: 100%;
    }

    .bpm-pwa-hint {
        align-items: flex-start;
        flex-direction: column;
    }

    .bpm-pwa-hint__close {
        width: 100%;
    }

    .bpm-package-hero {
        align-items: flex-start;
        border-radius: 18px;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .bpm-package-hero__badge {
        width: 100%;
    }

    .bpm-package-hero__meta h1 {
        font-size: 28px;
    }

    .bpm-package-hero__meta p,
    .bpm-package-stat small,
    .bpm-board-finder__head p,
    .bpm-package-table-head p {
        display: none;
    }

    .bpm-package-stat {
        min-height: auto;
        padding: 14px;
    }

    .bpm-package-stat strong {
        font-size: 18px;
        margin-top: 8px;
    }

    .bpm-package-stats {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bpm-panel {
        margin: 12px 0;
    }

    .bpm-board-finder__form {
        grid-template-columns: 1fr;
    }

    .bpm-finder-card__head {
        flex-direction: column;
    }

    .bpm-finder-card__grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px 12px 14px;
    }

    .bpm-finder-card__item strong {
        font-size: 13px;
    }

    .bpm-finder-package-focus {
        margin: 12px 12px 0;
        padding: 14px 12px;
    }

    .bpm-modal-overlay {
        align-items: end;
        padding: 10px;
    }

    .bpm-modal-card {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 76vh;
    }

.bpm-modal-card--finder {
    padding: 16px 12px 12px;
}
}

.bpm-landing {
    color: #0f172a;
    margin: 0 auto;
    max-width: 1280px;
    padding: 24px 16px 40px;
}

.bpm-landing__hero {
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .24), transparent 28%),
        radial-gradient(circle at left center, rgba(255, 255, 255, .12), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #123047 42%, #155e75 72%, #14b8a6 100%);
    border-radius: 32px;
    color: #f8fafc;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr);
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.bpm-landing__eyebrow,
.bpm-landing__section-head span,
.bpm-landing__cta span {
    color: rgba(226, 232, 240, .84);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bpm-landing__hero-copy h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: .96;
    margin: 12px 0 0;
}

.bpm-landing__hero-copy p {
    color: rgba(248, 250, 252, .86);
    font-size: 17px;
    line-height: 1.7;
    margin: 18px 0 0;
    max-width: 760px;
}

.bpm-landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bpm-landing__actions .btn-light {
    border-radius: 999px;
    color: #0f172a;
    font-weight: 800;
    padding-inline: 24px;
}

.bpm-landing__actions .btn-outline-light {
    border-radius: 999px;
    font-weight: 800;
    padding-inline: 24px;
}

.bpm-landing__hero-card {
    align-self: end;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    padding: 22px;
}

.bpm-landing__hero-card span {
    color: rgba(226, 232, 240, .76);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bpm-landing__hero-card strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-top: 10px;
}

.bpm-landing__hero-card p {
    color: rgba(248, 250, 252, .84);
    margin: 12px 0 0;
}

.bpm-landing__metrics,
.bpm-landing__grid,
.bpm-landing__audience {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.bpm-landing__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bpm-landing__metric,
.bpm-landing__card,
.bpm-landing__audience-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #dbe4ee;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    padding: 22px;
}

.bpm-landing__metric span,
.bpm-landing__card h3,
.bpm-landing__audience-card h3 {
    color: #0f172a;
}

.bpm-landing__metric span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bpm-landing__metric strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-top: 10px;
}

.bpm-landing__metric p,
.bpm-landing__card p,
.bpm-landing__audience-card li,
.bpm-landing__cta p {
    color: #475569;
    line-height: 1.7;
}

.bpm-landing__section,
.bpm-landing__workflow,
.bpm-landing__cta {
    margin-top: 20px;
}

.bpm-landing__section-head {
    margin-bottom: 14px;
}

.bpm-landing__section-head span {
    color: #0f766e;
}

.bpm-landing__section-head h2,
.bpm-landing__cta h2 {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin: 10px 0 0;
    max-width: 780px;
}

.bpm-landing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bpm-landing__card {
    min-height: 210px;
    position: relative;
}

.bpm-landing__card::before {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 999px;
    content: "";
    height: 10px;
    left: 22px;
    position: absolute;
    top: 22px;
    width: 56px;
}

.bpm-landing__card h3 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.18;
    margin: 24px 0 0;
    max-width: 320px;
}

.bpm-landing__steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bpm-landing__step {
    align-items: start;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    display: grid;
    gap: 12px;
    min-height: 152px;
    padding: 18px;
}

.bpm-landing__step strong {
    color: #0f766e;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.bpm-landing__step span {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.bpm-landing__audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bpm-landing__audience-card ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 18px;
}

.bpm-landing__cta {
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 28%),
        linear-gradient(135deg, #f8fafc, #ffffff 45%, #ecfeff 100%);
    border: 1px solid #dbe4ee;
    border-radius: 28px;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    padding: 28px;
}

.bpm-landing__cta span {
    color: #0f766e;
}

.bpm-landing__cta-actions {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.bpm-landing__cta-actions .btn {
    border-radius: 999px;
    font-weight: 800;
    padding-inline: 24px;
}

.bpm-landing__cta-actions code {
    background: #0f172a;
    border-radius: 14px;
    color: #f8fafc;
    display: inline-block;
    font-size: 15px;
    padding: 12px 16px;
}

.bpm-landing__footer {
    align-items: center;
    border-top: 1px solid #dbe4ee;
    color: #475569;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 18px;
    padding-top: 16px;
    text-align: center;
}

.bpm-landing__footer div:first-child {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bpm-landing__footer div + div {
    margin-top: 6px;
}

@media (max-width: 1024px) {
    .bpm-landing__metrics,
    .bpm-landing__grid,
    .bpm-landing__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bpm-landing__hero,
    .bpm-landing__cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .bpm-landing {
        padding: 14px 10px 28px;
    }

    .bpm-landing__hero,
    .bpm-landing__metric,
    .bpm-landing__card,
    .bpm-landing__audience-card,
    .bpm-landing__cta {
        border-radius: 20px;
    }

    .bpm-landing__hero {
        padding: 18px;
    }

    .bpm-landing__hero-copy h1 {
        font-size: 38px;
    }

    .bpm-landing__hero-copy p,
    .bpm-landing__hero-card p,
    .bpm-landing__metric p,
    .bpm-landing__card p,
    .bpm-landing__cta p {
        font-size: 14px;
    }

    .bpm-landing__actions,
    .bpm-landing__metrics,
    .bpm-landing__grid,
    .bpm-landing__steps,
    .bpm-landing__audience {
        grid-template-columns: 1fr;
    }

    .bpm-landing__card {
        min-height: auto;
    }

    .bpm-landing__section-head h2,
    .bpm-landing__cta h2 {
        font-size: 30px;
    }

    .bpm-landing__cta {
        padding: 20px 18px;
    }
}
