/* TeleLive — App download page (flat home shell) */
.tl-app-page {
    width: min(1160px, calc(100% - 24px));
    margin: 0 auto;
    padding: 22px 0 40px;
}

.tl-app-page-head {
    margin-bottom: 18px;
}

.tl-app-hero,
.tl-app-downloads,
.tl-app-features {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #161820;
    box-shadow: none;
}

.tl-app-hero {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 24px;
    align-items: center;
    padding: 22px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.tl-app-hero::before { display: none; }

.tl-app-hero__eyebrow,
.tl-app-hero__chips,
.tl-app-chip { display: none; }

.tl-app-hero__title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.35;
}

.tl-app-hero__desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.88rem;
    max-width: 48ch;
}

.tl-app-hero__cta {
    margin-top: 0;
}

.tl-app-hero__device {
    display: flex;
    justify-content: center;
    position: relative;
}

.tl-app-phone {
    position: relative;
    width: 240px;
}

.tl-app-phone__frame {
    position: relative;
    z-index: 1;
    padding: 10px;
    border-radius: 28px;
    background: #12151e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.tl-app-phone__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: #090b11;
    z-index: 3;
    pointer-events: none;
}

.tl-app-phone__screen {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 390 / 844;
}

.tl-app-phone__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tl-app-phone__glow { display: none; }

.tl-app-downloads,
.tl-app-features {
    padding: 20px;
    margin-bottom: 16px;
}

.tl-app-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
}
.tl-app-section-head.section-header {
    flex-direction: column;
    align-items: flex-start;
}
.tl-app-section-head h2,
.tl-app-section-head .tl-hl-title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #fff;
}
.tl-app-section-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.88rem;
}

.tl-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tl-app-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    box-shadow: none;
    transition: border-color 0.15s ease;
}
.tl-app-card:hover {
    transform: none;
    border-color: rgba(107, 159, 255, 0.35);
}

.tl-app-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
}
.tl-app-card:hover .tl-app-card__icon { transform: none; }

.tl-app-card.is-ready .tl-app-card__icon {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
}
.tl-app-card.is-soon .tl-app-card__icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.tl-app-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.tl-app-card__head h3 {
    margin: 0;
    font-size: 1rem;
}

.tl-app-card__badge {
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.tl-app-card.is-ready .tl-app-card__badge {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.14);
}
.tl-app-card.is-soon .tl-app-card__badge {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}
.tl-app-card.is-recommended {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: none;
}
.tl-app-card.is-recommended .tl-app-card__badge {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.16);
}

.tl-app-hero__cta-hint {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tl-app-card__body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

.tl-app-card__cta {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.tl-app-badge-link img {
    height: 48px;
    width: auto;
    display: block;
}

.tl-app-btn,
.tl-app-soon-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.tl-app-btn {
    background: #1e56f5;
    color: #fff;
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: none;
}
.tl-app-btn--android {
    background: #1faa59;
    border-color: rgba(61, 220, 132, 0.45);
}
.tl-app-btn:hover {
    color: #fff;
    transform: none;
    filter: brightness(1.08);
}
.tl-app-btn i { font-size: 1.1rem; }

.tl-app-soon-box {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

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

.tl-app-feature {
    padding: 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease;
}
.tl-app-feature:hover {
    transform: none;
    border-color: rgba(107, 159, 255, 0.35);
}
.tl-app-feature i {
    font-size: 1.1rem;
    color: var(--brand);
    margin-bottom: 10px;
}
.tl-app-feature:hover i { transform: none; }
.tl-app-feature h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}
.tl-app-feature p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.88rem;
}

/* Legacy reveal class — no motion */
.tl-app-reveal {
    opacity: 1;
    animation: none;
}

@media (max-width: 960px) {
    .tl-app-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tl-app-hero__cta {
        display: flex;
        justify-content: center;
    }
    .tl-app-grid,
    .tl-app-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tl-app-page {
        width: min(100% - 16px, 1160px);
        padding-top: 18px;
    }
    .tl-app-hero,
    .tl-app-downloads,
    .tl-app-features {
        padding: 16px;
        border-radius: 10px;
    }
    .tl-app-phone {
        width: min(100%, 200px);
    }
    .tl-app-card {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    .tl-app-card__icon { margin: 0 auto; }
    .tl-app-card__head {
        flex-direction: column;
        align-items: center;
    }
    .tl-app-btn,
    .tl-app-soon-box {
        width: 100%;
        justify-content: center;
    }
    .tl-app-badge-link {
        display: block;
    }
    .tl-app-badge-link img {
        margin: 0 auto;
        width: min(100%, 180px);
        height: auto;
    }
    .tl-app-feature { text-align: center; }
}

[data-theme="light"] .tl-app-hero,
[data-theme="light"] .tl-app-downloads,
[data-theme="light"] .tl-app-features {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .tl-app-section-head h2,
[data-theme="light"] .tl-app-section-head .tl-hl-title {
    color: var(--text);
}
