/* mypro.ch · go — onboarding nouvelle centrale */

:root {
    --primary: #0f172a;
    --accent: #f59e0b;
    --ring: 0 0 0 4px rgb(245 158 11 / 0.15);
}

html, body, #root { min-height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; }

.bg-grid {
    background-image:
        linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Inputs */
.go-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: white;
    transition: all .15s;
}
.go-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring);
}
.go-input.err { border-color: #ef4444; }
.go-input.ok  { border-color: #22c55e; }

/* Buttons */
.go-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600; font-size: 0.95rem;
    transition: all .15s;
    cursor: pointer;
}
.go-btn-primary { background: var(--primary); color: white; }
.go-btn-primary:hover:not(:disabled) { background: #1e293b; }
.go-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.go-btn-accent { background: var(--accent); color: var(--primary); }
.go-btn-accent:hover:not(:disabled) { background: #fbbf24; }
.go-btn-accent:disabled { opacity: .5; cursor: not-allowed; }
.go-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid #e2e8f0;
}
.go-btn-ghost:hover { border-color: var(--primary); }

/* Step indicator */
.step-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 600;
    background: #e2e8f0; color: #64748b;
    transition: all .2s;
}
.step-pill.active { background: var(--primary); color: white; }
.step-pill.done { background: #dcfce7; color: #166534; }
.step-pill .num {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700;
    background: rgba(255,255,255,.25);
}
.step-pill.done .num { background: #166534; color: white; }

/* Plan card */
.plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all .15s;
    background: white;
    text-align: left;
}
.plan-card:hover { border-color: #cbd5e1; }
.plan-card.selected {
    border-color: var(--accent);
    background: #fffbeb;
    box-shadow: var(--ring);
}

/* Key field indicator */
.key-status {
    position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
    font-size: .85rem;
}

/* Reveal */
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .35s ease-out; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block; width: 1em; height: 1em;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: spin .7s linear infinite;
}
