/* ==========================================================================
   Landing page — Pages/Index.cshtml

   The page background is left exactly as the layout renders it; everything
   here is scoped to .lp-* so it cannot leak into other pages. The palette
   follows the sign-in screens: navy #1b2a5e, teal #12b5a0, gold #fbbf24.
   ========================================================================== */

.lp-page {
    width: 100%;
    max-width: 760px;
    margin: 34px auto 52px;
    padding: 0 16px;
}

.lp-card {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, .06),
        0 30px 60px -30px rgba(15, 23, 42, .38);
    animation: lpRise .6s cubic-bezier(.22, .61, .36, 1) both;
}

/* ---------- hero ---------- */

.lp-hero {
    position: relative;
    padding: 42px 34px 38px;
    text-align: center;
    color: #eaf0ff;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 82% -14%, rgba(18, 181, 160, .40), transparent 60%),
        radial-gradient(90% 90% at 6% 110%, rgba(42, 61, 123, .85), transparent 62%),
        linear-gradient(152deg, #1a2a3a 0%, #14213a 48%, #0f172a 100%);
}

.lp-hero__sim {
    position: absolute;
    top: -34px;
    left: -26px;
    width: 190px;
    height: auto;
    opacity: .10;
    color: #9dc4ff;
    transform: rotate(-12deg);
    pointer-events: none;
}

.lp-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 11.5px;
    font-weight: 500;
    color: #c9d8f6;
    backdrop-filter: blur(4px);
}

.lp-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #12b5a0;
    box-shadow: 0 0 0 3px rgba(18, 181, 160, .22);
}

.lp-hero__title {
    position: relative;
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.55;
    color: #fff;
}

.lp-hero__title em {
    font-style: normal;
    color: #fbbf24;
}

.lp-hero__sub {
    position: relative;
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.95;
    color: #b9c9e8;
}

/* ---------- body ---------- */

.lp-body {
    padding: 30px 34px 32px;
}

.lp-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.lp-logo img {
    display: block;
    width: 132px;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(15, 23, 42, .14));
}

.lp-lead {
    margin: 0 0 22px;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 2.1;
    color: #475569;
    text-align: justify;
}

/* ---------- stats ---------- */

.lp-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 24px;
    padding: 14px 10px;
    border-radius: 16px;
    background: #f7f9fd;
    box-shadow: inset 0 0 0 1px #eef2f8;
}

.lp-stat {
    flex: 1 1 0;
    text-align: center;
}

.lp-stat + .lp-stat {
    border-inline-start: 1px solid #e6ebf3;
}

.lp-stat__value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1b2a5e;
}

.lp-stat__label {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 300;
    color: #8593a8;
}

/* ---------- features ---------- */

.lp-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    text-align: justify;
}

.lp-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 14px 13px;
    border: 1px solid #eef2f8;
    border-radius: 16px;
    background: #fcfdff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lp-feature:hover {
    transform: translateY(-2px);
    border-color: #d9e6f6;
    box-shadow: 0 14px 26px -18px rgba(27, 42, 94, .55);
}

.lp-feature__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: #edf7f5;
    color: #0b8f7e;
}

.lp-feature__icon svg {
    width: 18px;
    height: 18px;
}

.lp-feature__title {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
}

.lp-feature__text {
    display: block;
    font-size: 11.5px;
    font-weight: 300;
    line-height: 1.85;
    color: #64748b;
}

/* ---------- actions ---------- */

.lp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border: 0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.22, .61, .36, 1), box-shadow .2s ease,
        border-color .2s ease, background .2s ease;
}

.lp-btn svg {
    width: 17px;
    height: 17px;
}

.lp-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #1b2a5e 0%, #16507a 55%, #0b8f7e 100%);
    box-shadow: 0 18px 32px -18px rgba(27, 42, 94, .85);
}

.lp-btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    left: -60%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(255, 255, 255, .24) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left .75s cubic-bezier(.22, .61, .36, 1);
}

.lp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px -18px rgba(27, 42, 94, .9);
}

.lp-btn--primary:hover::after {
    left: 115%;
}

.lp-btn--ghost {
    color: #1b2a5e;
    background: #fff;
    border: 1.5px solid #dfe7f2;
}

.lp-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: #12b5a0;
    background: #f5fbfa;
    box-shadow: 0 16px 28px -20px rgba(11, 143, 126, .8);
}

.lp-btn:active {
    transform: translateY(0);
}

.lp-btn:focus-visible {
    outline: 2.5px solid #12b5a0;
    outline-offset: 3px;
}

/* ---------- install app (PWA) ---------- */

.lp-install {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e6ebf3;
    text-align: center;
}

.lp-install[hidden] {
    display: none;
}

.lp-btn--install {
    width: 100%;
    min-height: 66px;
    padding: 16px 18px;
    gap: 14px;
    font-size: 15px;
    color: #0b6b5f;
    background: lightgreen;
    border: 1.5px solid #cde9e3;
}

/* Platform marks: Android + iOS, separated from the label by a hairline rule. */
.lp-install__platforms {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-inline-end: 14px;
    border-inline-end: 1px solid rgba(11, 107, 95, .22);
    color: #0b8f7e;
}

.lp-install__platforms svg {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.lp-install__label {
    line-height: 1.5;
}

.lp-btn--install:hover {
    transform: translateY(-2px);
    border-color: #12b5a0;
    background: #e3f4f0;
    box-shadow: 0 16px 28px -20px rgba(11, 143, 126, .8);
}

.lp-btn--install.is-installed,
.lp-btn--install:disabled {
    color: #64748b;
    background: #f4f7fb;
    border-color: #e6ebf3;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/* Busy: the browser's install dialog is open. Declared after :disabled so it wins. */
.lp-btn--install.is-busy {
    color: #0b6b5f;
    background: #e3f4f0;
    border-color: #12b5a0;
    opacity: .85;
}

.lp-install__hint {
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.9;
    color: #8593a8;
}

.lp-install__hint[hidden] {
    display: none;
}

/* ---------- footer strip ---------- */

.lp-foot {
    padding: 15px 20px;
    border-top: 1px solid #eef2f8;
    background: #f8fafc;
    text-align: center;
}

.lp-foot p {
    margin: 0;
    font-size: 11.5px;
    font-weight: 300;
    color: #8593a8;
}

.lp-foot strong {
    font-weight: 700;
    color: #1b2a5e;
}

/* ---------- motion ---------- */

@keyframes lpRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.99);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
    .lp-page {
        margin: 18px auto 36px;
    }

    .lp-card {
        border-radius: 20px;
    }

    .lp-hero {
        padding: 32px 22px 30px;
    }

    .lp-hero__title {
        font-size: 20px;
    }

    .lp-hero__sub {
        font-size: 12px;
    }

    .lp-body {
        padding: 24px 20px 26px;
    }

    .lp-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-lead {
        font-size: 12.5px;
        line-height: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-card {
        animation: none;
    }

    .lp-feature,
    .lp-btn,
    .lp-btn--primary::after {
        transition: none !important;
    }
}
