/* Keep the navigation quiet on iOS; the app invitation lives at the bottom. */
.platform-ios .site-header .js-install-link,
.platform-ios .site-header .site-nav-ios { display: none !important; }
#ios-app-card {
    box-sizing: border-box;
    position: fixed;
    z-index: 900;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 20px 18px;
    border: 1px solid rgba(170, 208, 255, .3);
    border-radius: 24px;
    background: radial-gradient(ellipse at top left, #294665 0, transparent 70%), #111e30;
    color: #f6f9ff;
    box-shadow: 0 16px 60px #0006, 0 2px 8px #0003, inset 0 1px 0 #ffffff12;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: left;
    animation: ios-app-card-enter .55s cubic-bezier(.2, .8, .2, 1) both;
}
#ios-app-card * { box-sizing: border-box; }
#ios-app-card .ios-app-card-close {
    position: absolute; top: 3px; right: 3px;
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: transparent;
    color: #c5d4e8; cursor: pointer;
}
#ios-app-card .ios-app-card-info { display: flex; align-items: center; gap: 14px; padding-right: 12px; }
#ios-app-card .ios-app-card-icon { flex: 0 0 54px; width: 54px; height: 54px; filter: drop-shadow(0 4px 10px #0003); }
#ios-app-card h2 { margin: 0 0 5px; color: #f6f9ff; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; }
#ios-app-card p { margin: 0; color: #bdcce0; font-size: 13px; line-height: 1.5; }
#ios-app-card .ios-app-card-install {
    display: flex; justify-content: center; align-items: center; gap: 12px;
    min-height: 46px; margin-top: 18px; padding: 10px 16px;
    border: 1px solid #d6e9ff; border-radius: 13px;
    background: linear-gradient(135deg, #d4e9ff, #aacefa);
    color: #10283f; font-size: 15px; line-height: 1.4; font-weight: 700;
    text-decoration: none; box-shadow: 0 4px 16px #74b1ff20;
}
#ios-app-card a:focus-visible, #ios-app-card button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#ios-app-card .ios-app-card-close:hover { background: #ffffff12; }
@keyframes ios-app-card-enter { from { opacity: 0; transform: translateY(calc(100% + 40px)); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #ios-app-card { animation: none; } }
@media (max-height: 420px) { #ios-app-card { padding: 14px 18px; } #ios-app-card .ios-app-card-install { margin-top: 10px; } }
