/* ---------- EMS CE Radar App Splash Page ---------- */
/* Save as /assets/app-page.css and link it from _legal_layout.php,
   or paste at the bottom of /assets/legal.css. */

.app-splash-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 42px;
    align-items: center;
    padding: 62px 48px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 14%, rgba(126, 219, 213, 0.28), transparent 28%),
        radial-gradient(circle at 12% 20%, rgba(11, 163, 166, 0.16), transparent 30%),
        linear-gradient(135deg, #0B1D3A 0%, #123A6D 52%, #0BA3A6 145%);
    box-shadow: 0 28px 70px rgba(11, 29, 58, 0.18);
    color: #ffffff;
    margin-bottom: 34px;
}

.app-splash-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    border: 1px solid rgba(126, 219, 213, 0.25);
    box-shadow:
        0 0 0 80px rgba(126, 219, 213, 0.08),
        0 0 0 160px rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.app-splash-copy,
.app-phone-stage {
    position: relative;
    z-index: 2;
}

.app-kicker {
    margin: 0 0 12px;
    color: #7EDBD5;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 900;
}

.app-splash-copy h1 {
    margin: 0;
    max-width: 680px;
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.app-lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: #E5EEF7;
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.55;
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.app-actions.centered {
    justify-content: center;
}

.store-badge {
    min-width: 164px;
    min-height: 58px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 14px;
    padding: 9px 16px;
    background: #ffffff;
    color: #0B1D3A;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.store-badge span {
    font-size: 12px;
    line-height: 1.1;
    color: #475569;
    font-weight: 700;
}

.store-badge strong {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 900;
}

.store-badge-disabled {
    opacity: 0.92;
}

.app-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    background: #0BA3A6;
    color: #ffffff !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.app-button:hover {
    filter: brightness(0.96);
}

.app-button-light {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
}

.app-button-outline {
    background: #ffffff;
    color: #0B1D3A !important;
    border: 2px solid #0BA3A6;
    box-shadow: none;
}

.app-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.app-trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(126, 219, 213, 0.16);
    border: 1px solid rgba(126, 219, 213, 0.22);
    color: #EFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.app-phone-stage {
    display: flex;
    justify-content: center;
}

.app-phone {
    width: min(360px, 100%);
    aspect-ratio: 9 / 18.7;
    padding: 12px;
    border-radius: 46px;
    background: #05070B;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: rotate(2deg);
}

.app-phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 36px;
    background: #F3F6F9;
    color: #0B1D3A;
    padding: 20px 18px;
}

.app-phone-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 74px;
    height: 23px;
    border-radius: 999px;
    background: #000;
    transform: translateX(-50%);
    z-index: 5;
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 12px;
    margin-bottom: 24px;
}

.app-phone-screen h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #0B1D3A;
}

.app-mobile-brand-card {
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(135deg, #0B1D3A, #0d4568);
    color: #ffffff;
}

.app-mobile-brand-card img {
    width: 170px;
    max-width: 100%;
    background: #ffffff;
    padding: 8px;
    margin-bottom: 12px;
}

.app-mobile-brand-card strong {
    display: block;
    color: #7EDBD5;
    font-size: 18px;
    margin-bottom: 6px;
}

.app-mobile-brand-card p {
    margin: 0;
    color: #E5EEF7;
    font-size: 13px;
    line-height: 1.4;
}

.app-search-preview {
    margin-top: 16px;
    height: 48px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(11, 163, 166, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #475569;
    font-weight: 700;
}

.app-chip-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.app-chip {
    border: 1px solid #0BA3A6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    background: #ffffff;
    color: #0B1D3A;
}

.app-chip.active {
    background: #D9F7F5;
}

.app-filter-preview {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
    margin-top: 14px;
}

.app-filter-preview span {
    border: 1px solid #0BA3A6;
    border-radius: 14px;
    padding: 8px 10px;
    font-size: 12px;
    background: #ffffff;
    font-weight: 800;
}

.app-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px;
}

.app-count-row strong {
    font-size: 14px;
}

.app-count-row small {
    color: #64748B;
}

.app-class-card {
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(11, 29, 58, 0.08);
}

.app-class-card h3 {
    margin: 10px 0 4px;
    color: #0B1D3A;
    font-size: 17px;
}

.app-class-card p {
    margin: 0 0 8px;
    color: #64748B;
    font-weight: 800;
    font-size: 12px;
}

.app-class-card ul {
    margin: 0;
    padding-left: 18px;
    color: #0B1D3A;
    font-size: 12px;
}

.app-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 900;
}

.app-tag.online {
    background: #7EDBD5;
    color: #0B1D3A;
}

.app-tag.joinable {
    background: #FFF7ED;
    color: #C2410C;
}

.app-bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 64px;
    background: #E9F2F3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.app-feature-section,
.app-split-section,
.app-final-cta {
    margin-top: 34px;
}

.app-section-header {
    max-width: 760px;
    margin-bottom: 18px;
}

.app-section-header h2,
.app-split-card h2,
.app-final-cta h2 {
    margin: 0;
    color: #0B1D3A;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.app-section-header p,
.app-split-card p,
.app-final-cta p {
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.app-feature-card,
.app-split-card,
.app-final-cta {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 4px solid #0BA3A6;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(11, 29, 58, 0.08);
}

.app-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(11, 163, 166, 0.12);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.app-feature-card h3 {
    margin: 0 0 8px;
    color: #0B1D3A;
    font-size: 20px;
}

.app-feature-card p {
    margin: 0;
    color: #475569;
}

.app-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.app-dark-card {
    background: linear-gradient(135deg, #0B1D3A, #123A6D);
    color: #ffffff;
}

.app-dark-card h2 {
    color: #ffffff;
}

.app-dark-card p {
    color: #E5EEF7;
}

.app-link-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.app-link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #0B1D3A;
    text-decoration: none;
    font-weight: 900;
}

.app-link-list a::after {
    content: "→";
    color: #0BA3A6;
}

.app-final-cta {
    text-align: center;
    padding: 36px;
}

.app-final-cta p {
    max-width: 760px;
    margin: 14px auto 0;
}

@media (max-width: 980px) {
    .app-splash-hero {
        grid-template-columns: 1fr;
        padding: 44px 28px;
    }

    .app-phone {
        width: min(340px, 100%);
        transform: none;
    }

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

    .app-split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .app-splash-hero {
        padding: 34px 20px;
        border-radius: 20px;
    }

    .app-feature-grid {
        grid-template-columns: 1fr;
    }

    .store-badge,
    .app-button {
        width: 100%;
    }

    .app-phone {
        width: 100%;
    }
}
