/* ============================================================================
 * inkkore/v5.css — Onboarding artiste + Mode démo (spotlight).
 * ==========================================================================*/

/* ── Onboarding ────────────────────────────────────────────────────────── */
.ob { position: fixed; inset: 0; z-index: 200; background: var(--ink-1000); display: flex; flex-direction: column; overflow-y: auto; }
.ob-grain { position: fixed; inset: 0; pointer-events: none; }
.ob-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.6rem; position: relative; z-index: 2; }
.ob-skip { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--fg-mute); font-size: .9rem; font-weight: 500; transition: color .15s; }
.ob-skip:hover { color: var(--fg); }
.ob-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 1.6rem; position: relative; z-index: 1; }

.ob-card { width: 100%; max-width: 460px; animation: obIn .4s cubic-bezier(.2,.9,.3,1) both; }
.ob-card.wide { max-width: 620px; }
@keyframes obIn { from { opacity: 0; transform: translateY(14px); } }
.ob-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-top: 1rem; }
.ob-sub { color: var(--fg-dim); font-size: 1rem; margin-top: .6rem; line-height: 1.5; }

.ob-stepper { display: flex; gap: 6px; }
.ob-pip { width: 28px; height: 4px; border-radius: 99px; background: var(--ink-750); transition: background .3s; }
.ob-pip.on { background: var(--acc); }
.ob-pip.done { background: var(--acc-deep); }

/* welcome */
.ob-card.welcome { text-align: center; max-width: 540px; }
.ob-card.welcome .eyebrow { justify-content: center; }
.ob-card.welcome h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.015em; margin: 1.2rem 0; }
.ob-card.welcome h1 em { font-style: italic; color: var(--acc); }
.ob-lead { color: var(--fg-dim); font-size: 1.1rem; line-height: 1.55; max-width: 42ch; margin: 0 auto 2rem; }
.ob-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 auto 2.2rem; max-width: 440px; text-align: left; }
.ob-bullets div { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-md); font-size: .92rem; color: var(--fg-dim); }
.ob-bullets svg { color: var(--acc); flex: none; }

/* slug */
.ob-slug { display: flex; align-items: center; gap: 0; margin-top: 1.6rem; background: var(--ink-1000); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .3rem .3rem .3rem 1rem; transition: border-color .15s; }
.ob-slug:focus-within { border-color: var(--acc-line); }
.ob-slug-pre { font-family: ui-monospace, monospace; color: var(--fg-mute); font-size: 1.05rem; flex: none; }
.ob-slug input { flex: 1; background: none; border: 0; color: var(--fg); font: inherit; font-size: 1.15rem; font-weight: 600; padding: .6rem .2rem; min-width: 0; }
.ob-slug input:focus { outline: none; }
.ob-slug-ok { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--ok); background: rgba(143,185,138,.12); padding: .35rem .6rem; border-radius: 8px; flex: none; }
.ob-hint { margin-top: 1rem; font-size: .9rem; color: var(--fg-mute); }
.ob-hint.warn { color: var(--warn); }

.ob-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ob-card .fld { margin-top: 1rem; }

/* langues */
.ob-presets { display: flex; gap: .5rem; margin: 1.4rem 0 1rem; flex-wrap: wrap; }
.ob-preset { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-900); color: var(--fg-dim); font-weight: 600; font-size: .88rem; transition: .14s; }
.ob-preset:hover { border-color: var(--line-2); color: var(--fg); }
.ob-preset.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.ob-langgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-height: 280px; overflow-y: auto; padding: 2px; }
.ob-lang { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-1000); color: var(--fg-dim); transition: .14s; min-width: 0; }
.ob-lang:hover { border-color: var(--line-2); }
.ob-lang.on { border-color: var(--acc-line); background: var(--acc-soft); color: var(--fg); }
.ob-lang .lc-flag { font-size: 1.1rem; flex: none; }
.ob-lang .lc-text { flex: 1; min-width: 0; }
.ob-lang .lc-text b { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ob-lang .lc-check { color: var(--acc); flex: none; }

/* sliders */
.ob-slider { margin-top: 1.6rem; }
.ob-slider-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
.ob-slider-top span { font-size: .92rem; color: var(--fg-dim); }
.ob-slider-top b { font-family: var(--serif); font-size: 1.4rem; }
.ob-slider input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--ink-750); outline: none; }
.ob-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); cursor: pointer; box-shadow: 0 2px 8px -2px rgba(255,77,46,.7); border: 3px solid var(--ink-1000); }
.ob-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--acc); cursor: pointer; border: 3px solid var(--ink-1000); }
.ob-slider-ends { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .76rem; color: var(--fg-faint); }

/* channels */
.ob-channels { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.6rem; }
.ob-channel { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-900); transition: .14s; }
.ob-channel.on { border-color: var(--line-2); }
.ob-ch-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; transition: background .2s; }
.ob-channel b { flex: 1; text-align: left; font-size: .98rem; }
.ob-ch-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg-mute); flex: none; transition: .15s; }
.ob-ch-check.on { background: var(--acc); border-color: var(--acc); color: #fff; }

/* done */
.ob-card.done .ob-done-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc); display: grid; place-items: center; margin: 0 auto 1.5rem; animation: obPop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes obPop { from { opacity: 0; transform: scale(.6); } }

.ob-foot { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.6rem; border-top: 1px solid var(--line); position: relative; z-index: 2; background: var(--ink-1000); max-width: 700px; margin: 0 auto; width: 100%; }
.ob-back { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--fg-mute); font-weight: 500; transition: color .15s; }
.ob-back:hover { color: var(--fg); }

/* sidebar demo button */
.sb-demo { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-900); color: var(--fg-dim); font-weight: 600; font-size: .9rem; transition: .14s; }
.sb-demo:hover { border-color: var(--acc-line); color: var(--acc); }
.sb-demo svg { color: var(--acc); }

/* ── Mode démo (spotlight) ─────────────────────────────────────────────── */
.demo-mask { position: fixed; z-index: 150; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,6,5,.74); transition: top .35s cubic-bezier(.3,.9,.3,1), left .35s, width .35s, height .35s; pointer-events: none; border: 1.5px solid var(--acc-line); }
.demo-catch { position: fixed; inset: 0; z-index: 151; }
.demo-card { position: fixed; z-index: 152; width: 380px; max-width: calc(100vw - 32px); background: var(--ink-850); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: 0 30px 70px -24px rgba(0,0,0,.9); animation: demoIn .3s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes demoIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.demo-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.demo-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line); padding: .25rem .6rem; border-radius: 999px; }
.demo-count { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--fg-mute); }
.demo-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.demo-card p { color: var(--fg-dim); font-size: .94rem; line-height: 1.55; margin-top: .5rem; }
.demo-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.demo-quit { background: none; border: 0; color: var(--fg-mute); font-size: .88rem; font-weight: 500; transition: color .15s; }
.demo-quit:hover { color: var(--fg); }
.demo-nav { display: flex; align-items: center; gap: .5rem; }
.demo-prev { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--ink-900); color: var(--fg-dim); display: grid; place-items: center; transition: .14s; }
.demo-prev:hover { color: var(--fg); border-color: var(--fg-mute); }
.demo-progress { display: flex; gap: 4px; margin-top: 1rem; }
.demo-progress span { flex: 1; height: 3px; border-radius: 99px; background: var(--ink-750); transition: background .3s; }
.demo-progress span.on { background: var(--acc); }

@media (max-width: 920px) {
  .ob-bullets, .ob-row2 { grid-template-columns: 1fr; }
  .ob-langgrid { grid-template-columns: repeat(2, 1fr); }
  .demo-card { width: calc(100vw - 32px); left: 16px !important; right: 16px; }
}
