/* ============================================================
   Installer — clean, single-source stylesheet (no duplicates)
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e7eaf0;
    --brand: #6366f1;
    --brand2: #8b5cf6;
    --brand-ink: #4f46e5;
    --ok: #16a34a;
    --bad: #dc2626;
    --soft: #f8fafc;
    --card: #ffffff;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 560px at 50% -8%, #eef2ff 0%, transparent 55%),
        linear-gradient(180deg, #fbfcff 0%, #f5f3ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 18px;
    position: relative;
    overflow-x: hidden;
}

/* ambient orbs */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.bg-orbs span:nth-child(1) { width: 360px; height: 360px; background: #c7d2fe; top: -110px; left: -70px; }
.bg-orbs span:nth-child(2) { width: 300px; height: 300px; background: #ddd6fe; bottom: -90px; right: -50px; }
.bg-orbs span:nth-child(3) { width: 240px; height: 240px; background: #e0e7ff; top: 42%; right: 18%; opacity: .32; }

/* wrapper — horizontal center only; page scrolls naturally, no clipping */
.wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.wrap.wide { max-width: 720px; }

/* the single card holding everything */
.card {
    background: var(--card);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 22px;
    box-shadow: 0 30px 70px -22px rgba(79,70,229,.28), 0 8px 24px -12px rgba(15,23,42,.12);
    overflow: hidden;
}

/* header (brand + steps + title) */
.head {
    text-align: center;
    padding: 26px 32px 20px;
    border-bottom: 1px solid #f1f3f9;
}
.brandbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.brandbar img { max-height: 42px; }
.brandmark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 19px;
    box-shadow: 0 8px 18px rgba(99,102,241,.4);
}
.brandname { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

.steps { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.dot { width: 24px; height: 6px; border-radius: 99px; background: #e5e7f2; transition: all .3s ease; }
.dot.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.dot.now { width: 32px; }

.head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.head p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* body */
.body { padding: 22px 32px 26px; }

/* footer (contact) — centered */
.foot {
    padding: 15px 32px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    border-top: 1px solid #f1f3f9;
    background: #fcfcfe;
}
.foot b { color: var(--ink); font-weight: 700; }

/* intro banner */
.intro {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff;
    border-radius: 13px;
    padding: 13px 15px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4338ca;
    margin-bottom: 18px;
}

/* welcome step list */
.slist { display: flex; flex-direction: column; gap: 10px; }
.sitem {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--soft);
}
.sitem .n {
    flex: none; width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.sitem .t { font-size: 14px; font-weight: 600; }
.sitem .d { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* requirements groups */
.req-group { margin-bottom: 16px; }
.req-group:last-of-type { margin-bottom: 2px; }
.req-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--brand-ink);
    margin-bottom: 9px; padding-left: 2px;
}
.req-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.req-grid.single { grid-template-columns: 1fr; }

.chip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.chip span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .mark {
    flex: none; width: 20px; height: 20px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.chip.ok  { border-color: #c9f2d5; background: #f3fdf6; }
.chip.ok .mark { color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); }
.chip.bad { border-color: #fbcfcf; background: #fef4f4; }
.chip.bad .mark { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); }

/* forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14.5px;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* buttons */
.btns { display: flex; gap: 12px; margin-top: 22px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 12px 26px -8px rgba(99,102,241,.6);
    transition: transform .08s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn.sec { color: var(--brand-ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.btn.sec:hover { background: var(--soft); filter: none; }
.btn.disabled { opacity: .5; pointer-events: none; box-shadow: none; }

/* alerts */
.alert { padding: 12px 15px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.alert.err  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* success */
.success-ico {
    width: 80px; height: 80px;
    margin: 4px auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--ok);
    box-shadow: 0 12px 28px -8px rgba(22,163,74,.4);
}
.center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
    .req-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .req-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    body { padding: 24px 14px; }
    .req-grid { grid-template-columns: 1fr; }
    .grid2 { grid-template-columns: 1fr; }
    .btns { flex-direction: column-reverse; }
    .head { padding: 22px 20px 16px; }
    .body { padding: 18px 20px 22px; }
    .foot { padding: 14px 20px; }
    .head h1 { font-size: 20px; }
}
