:root {
    color-scheme: light;
    font-family: Inter, "SF Pro Display", "Microsoft YaHei", system-ui, sans-serif;
    color: #10172f;
    background: #f8f5ff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { min-height: 100%; margin: 0; }

body.download-page {
    background: linear-gradient(180deg, #f1eaff 0%, #fbf9ff 78%, #fff 100%);
    -webkit-font-smoothing: antialiased;
}

.download-main {
    min-height: calc(100dvh);
    padding: 30px 18px max(36px, env(safe-area-inset-bottom));
}

.download-loader {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #6b7280;
}

.download-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e5dbff;
    border-top-color: #7137ff;
    border-radius: 50%;
    animation: download-spin .8s linear infinite;
}

@keyframes download-spin { to { transform: rotate(360deg); } }

.download-content {
    width: min(100%, 390px);
    margin: 0 auto;
    text-align: center;
}

body.download-ready .download-main { padding-top: 30px; }

.download-eyebrow {
    margin: 0 0 17px;
    color: #7137ff;
    font-size: 12px;
    font-weight: 600;
}

.download-content h1 {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.download-content h1 strong { color: #7137ff; }

.download-intro {
    max-width: 400px;
    margin: 16px auto 14px;
    color: #626a80;
    font-size: 15px;
    line-height: 1.35;
}

.download-card {
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    text-align: left;
    box-shadow: 0 10px 28px rgba(62, 45, 114, .13);
}

.download-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-product img {
    flex: 0 0 auto;
    border-radius: 14px;
    background: #7137ff;
    box-shadow: 0 8px 20px rgba(113, 55, 255, .2);
}

.download-product h2 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.2;
}

.download-product p {
    margin: 2px 0 0;
    color: #64708a;
    font-size: 12px;
}

.apk-download-button {
    min-height: 48px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    background: linear-gradient(93deg, #6d35ff, #8234f0);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(113, 55, 255, .23);
}

.download-assurances {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.download-assurances p { margin: 0; }
.download-assurances strong, .download-assurances span { display: block; }
.download-assurances strong { color: #3e4860; font-size: 9px; line-height: 1.3; }
.download-assurances span { margin-top: 3px; color: #6f778b; font-size: 9px; line-height: 1.3; }

.install-help { margin: 18px auto 0; color: #7137ff; }
.install-help summary { padding: 12px; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
.install-help summary::-webkit-details-marker { display: none; }
.install-help ol { margin: 4px 0 0; padding: 15px 15px 15px 34px; border-radius: 16px; background: rgba(255,255,255,.72); color: #566076; text-align: left; font-size: 13px; line-height: 1.55; }

.safe-card {
    margin-top: 18px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #ebe5ff;
    border-radius: 18px;
    background: rgba(255, 255, 255, .35);
    text-align: left;
}

.safe-card svg { width: 42px; flex: 0 0 auto; fill: none; stroke: #7137ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.safe-card h2 { margin: 0 0 6px; font-size: 14px; }
.safe-card p { margin: 0; color: #687187; font-size: 10px; line-height: 1.5; }
.download-noscript { padding: 20px; text-align: center; }

@media (min-width: 769px) {
    .download-main { min-height: 100vh; }
}
