:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f5f7;
    color: #1e2530;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 280px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        linear-gradient(145deg, rgba(197, 0, 20, 0.08), transparent 38%),
        #f4f5f7;
}

button {
    font: inherit;
}

.install-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.install-panel {
    width: min(100%, 440px);
    padding: 34px 28px 30px;
    border: 1px solid #d7dbe0;
    border-top: 4px solid #c50014;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(28, 35, 45, 0.14);
    text-align: center;
}

.brand-mark {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
}

.brand-mark img {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(197, 0, 20, 0.22);
}

.pulse {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(197, 0, 20, 0.3);
    border-radius: 50%;
    animation: pulse 2.4s ease-out infinite;
}

.pulse-two {
    animation-delay: 1.2s;
}

.brand-name {
    margin: 0 0 5px;
    color: #c50014;
    font-size: 15px;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.15;
    letter-spacing: 0;
}

.install-copy {
    margin: 12px 0 24px;
    color: #59636f;
    font-size: 15px;
    line-height: 1.5;
}

.install-button {
    width: 100%;
    min-height: 50px;
    border: 1px solid #a90011;
    border-radius: 5px;
    background: #c50014;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.install-button:disabled {
    border-color: #b9bec5;
    background: #d6d9dd;
    color: #707983;
    cursor: default;
}

.ios-steps {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 3px solid #c50014;
    background: #f7f7f8;
    text-align: left;
}

.ios-steps p {
    margin: 7px 0;
    line-height: 1.4;
}

.install-status {
    min-height: 42px;
    margin: 18px 0 0;
    color: #59636f;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.78);
    }
    75%, 100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse {
        animation: none;
    }
}
