:root {
    --ba-blue: #075ff0;
    --ba-blue-2: #0f7cff;
    --ba-blue-soft: #eaf3ff;
    --ba-bg: #f5f8ff;
    --ba-card: #ffffff;
    --ba-text: #12213f;
    --ba-muted: #65748b;
    --ba-line: #dfeafe;
    --ba-shadow: 0 28px 90px rgba(20, 82, 180, .14);
    --ba-radius: 30px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 124, 255, .14), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, var(--ba-bg) 100%);
    color: var(--ba-text);
}

button, a { -webkit-tap-highlight-color: transparent; }

.install-page {
    min-height: 100vh;
    padding: clamp(14px, 3vw, 34px);
    display: grid;
    place-items: center;
}

.install-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: stretch;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(223, 234, 254, .95);
    border-radius: 38px;
    box-shadow: var(--ba-shadow);
    padding: clamp(22px, 4vw, 44px);
    overflow: hidden;
    position: relative;
}

.install-card::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -160px;
    top: -170px;
    background: rgba(7, 95, 240, .09);
    border-radius: 999px;
    pointer-events: none;
}

.install-left,
.install-right { position: relative; z-index: 1; }

.install-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.brand-block {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 20px;
    align-items: start;
}

.brand-icon {
    width: 78px;
    height: 78px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--ba-blue), #56a9ff);
    box-shadow: 0 20px 44px rgba(7, 95, 240, .28);
}

.brand-icon svg { width: 42px; height: 42px; }

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ba-blue);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.brand-block h1 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(39px, 5.4vw, 68px);
    line-height: .96;
    letter-spacing: -.06em;
}

.brand-block p {
    margin: 18px 0 0;
    max-width: 610px;
    color: var(--ba-muted);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.65;
    font-weight: 650;
}

.value-list {
    display: grid;
    gap: 12px;
    max-width: 640px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--ba-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 34px rgba(11, 68, 150, .055);
}

.value-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--ba-blue-soft);
    font-size: 23px;
}

.value-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.value-item small {
    display: block;
    color: var(--ba-muted);
    line-height: 1.4;
    font-weight: 650;
}

.desktop-note {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    width: fit-content;
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 20px;
    background: #f0f6ff;
    border: 1px solid #d7e7ff;
    color: var(--ba-muted);
    font-weight: 700;
}

.desktop-note strong { color: var(--ba-text); }

.install-right {
    display: grid;
    align-content: center;
    gap: 16px;
}

.qr-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--ba-line);
    border-radius: var(--ba-radius);
    padding: 22px;
    text-align: center;
    box-shadow: 0 22px 60px rgba(17, 79, 172, .11);
}

.qr-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ba-blue-soft);
    color: #07459f;
    font-weight: 900;
    font-size: 13px;
}

.qr-frame {
    background: #fff;
    border: 1px solid var(--ba-line);
    border-radius: 26px;
    padding: 14px;
    display: grid;
    place-items: center;
}

.qr-frame img {
    width: min(260px, 100%);
    height: auto;
    display: block;
    border-radius: 16px;
}

.qr-card p {
    margin: 14px auto 0;
    max-width: 300px;
    color: var(--ba-muted);
    line-height: 1.45;
    font-weight: 700;
}

.install-actions {
    display: grid;
    gap: 11px;
}

.btn-primary,
.btn-secondary,
.btn-whatsapp,
.link-muted {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 14px 18px;
    border: 0;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ba-blue), var(--ba-blue-2));
    box-shadow: 0 16px 34px rgba(7, 95, 240, .26);
}

.btn-secondary {
    color: #08469f;
    background: var(--ba-blue-soft);
    border: 1px solid #d6e7ff;
}

.btn-whatsapp {
    color: #08783b;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.link-muted {
    min-height: auto;
    padding: 8px 10px;
    color: var(--ba-muted);
    background: transparent;
    font-weight: 850;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-whatsapp:hover { transform: translateY(-1px); }

.btn-primary:active,
.btn-secondary:active,
.btn-whatsapp:active { transform: translateY(0); }

.install-hint {
    display: none;
    border: 1px solid #cfe1ff;
    background: #f5f9ff;
    border-radius: 20px;
    padding: 14px 15px;
    color: var(--ba-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.install-hint.is-visible { display: block; }

.start-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.start-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--ba-line);
    border-radius: 32px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--ba-shadow);
}

.start-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -.04em;
}

.start-card p {
    color: var(--ba-muted);
    line-height: 1.55;
    font-weight: 700;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid #dceaff;
    border-top-color: var(--ba-blue);
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 900px) {
    .install-card {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 32px;
    }

    .brand-block { grid-template-columns: 62px 1fr; }
    .brand-icon { width: 62px; height: 62px; border-radius: 22px; }
    .brand-icon svg { width: 34px; height: 34px; }
}

@media (max-width: 560px) {
    .install-page {
        padding: 0;
        place-items: stretch;
    }

    .install-card {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
        padding: 20px;
        box-shadow: none;
    }

    .brand-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-icon { margin: 0 auto; }

    .brand-block h1 { font-size: 38px; }
    .brand-block p { font-size: 16px; }

    .desktop-note { display: none; }

    .value-item { align-items: flex-start; }
    .qr-card { padding: 18px; }
}
