/* Musico — onboarding: welcome, studio tour, help menu, shortcuts sheet */

/* ---------- modal shell ---------- */
.ob-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.ob-scrim { position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 0%, rgba(227,196,140,.08), transparent 70%), rgba(4,5,8,.72);
  backdrop-filter: blur(8px) saturate(.9); opacity: 0; transition: opacity .3s var(--ease); }
.ob-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(28,33,44,.98), rgba(17,20,27,.98)); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, var(--shadow-3), 0 0 0 1px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(14px) scale(.975); transition: opacity .32s var(--ease), transform .42s var(--ease-spring); }
.ob-overlay.in .ob-scrim, .ob-overlay.in .ob-card { opacity: 1; }
.ob-overlay.in .ob-card { transform: none; }
.ob-overlay.out .ob-scrim, .ob-overlay.out .ob-card { opacity: 0; transition-duration: .22s; }
.ob-overlay.out .ob-card { transform: translateY(6px) scale(.985); }

/* ---------- welcome ---------- */
.ob-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0 26px; }
.ob-brand { font: 500 15px/1 var(--f-display); color: var(--text-2); letter-spacing: -0.01em; }
.ob-brand i { color: var(--brass); }
.ob-skip { color: var(--text-3); }
.ob-viewport { overflow: hidden; }
.ob-track { display: flex; transition: transform .5s var(--ease); }
.ob-slide { flex: 0 0 100%; min-width: 0; padding: 8px 26px 4px; opacity: .25; transition: opacity .4s var(--ease); }
.ob-slide.on { opacity: 1; }
.ob-art { position: relative; height: 196px; margin: 6px 0 18px; border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(360px 180px at 50% 0%, rgba(227,196,140,.09), transparent 70%), var(--ink-0); border: 1px solid var(--line); }
.ob-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 -30px 40px -30px rgba(0,0,0,.6); pointer-events: none; }
.ob-art-start { height: 150px; }
.ob-art-start .ob-svg { max-width: 290px; }
.ob-svg { display: block; width: 100%; max-width: 360px; }
.ob-svg svg { display: block; width: 100%; height: auto; }
.ob-copy .eyebrow { color: var(--brass-2); }
.ob-title { margin: 10px 0 8px; font-size: 30px; line-height: 1.1; font-variation-settings: "opsz" 144, "SOFT" 50; }
.ob-title i { color: var(--brass); font-style: italic; }
.ob-body { color: var(--text-2); font-size: 15px; line-height: 1.55; min-height: 48px; text-wrap: pretty; }
.ob-body b { font-weight: 600; }
.ob-body b.lh { color: var(--lh); }
.ob-body b.rh { color: var(--rh); }
.ob-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ob-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 20px 20px; margin-top: 10px; border-top: 1px solid var(--line); }
.ob-foot > :first-child { justify-self: start; }
.ob-foot > :last-child { justify-self: end; min-width: 92px; }
.ob-dots { display: flex; gap: 8px; }
.ob-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--ink-5); cursor: pointer; transition: width .3s var(--ease-spring), background .2s; }
.ob-dot:hover { background: var(--text-4); }
.ob-dot[aria-selected="true"] { width: 24px; background: var(--brass); }

/* illustration motion */
.ob-slide.on .ob-float { animation: ob-float 4.5s ease-in-out infinite; }
.ob-float.b { animation-delay: -1.5s !important; }
.ob-float.c { animation-delay: -3s !important; }
@keyframes ob-float { 50% { transform: translateY(-4px); } }
.ob-slide.on .ob-rise { animation: ob-rise .6s var(--ease-spring) both; }
@keyframes ob-rise { from { opacity: 0; transform: translateY(10px); } }
.ob-slide.on .ob-fall { animation: ob-fall 2.4s linear infinite; }
@keyframes ob-fall { from { transform: translateY(-14px); opacity: 0; } 20% { opacity: .85; } to { transform: translateY(8px); opacity: .85; } }
.ob-slide.on .ob-pulse { animation: ob-pulse 1.6s ease-in-out infinite; }
@keyframes ob-pulse { 50% { opacity: .78; } }
.ob-slide.on .ob-ring { transform-origin: 160px 80px; animation: ob-ring 2.6s var(--ease) infinite; }
@keyframes ob-ring { from { transform: scale(.72); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }

/* ---------- tour offer ---------- */
.ob-offer { position: fixed; z-index: 190; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: rgba(23,27,36,.96); backdrop-filter: blur(14px); border: 1px solid rgba(227,196,140,.28); box-shadow: var(--shadow-3), 0 0 40px -12px var(--brass-glow);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s var(--ease), transform .4s var(--ease-spring); }
.ob-offer.in { opacity: 1; transform: translate(-50%, 0); }
.ob-offer.out { opacity: 0; transform: translate(-50%, 8px); }
.ob-offer-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(227,196,140,.1); color: var(--brass); flex: none; }
.ob-offer-ico svg { width: 20px; height: 20px; }
.ob-offer-copy { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; white-space: nowrap; }
.ob-offer-copy span { color: var(--text-2); }
.ob-offer-btns { display: flex; gap: 6px; margin-left: 10px; }

/* ---------- tour ---------- */
.ob-tour { position: fixed; inset: 0; z-index: 200; }
.ob-tour-block { position: absolute; inset: 0; }
.ob-spot { position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(227,196,140,.75), 0 0 0 6px rgba(227,196,140,.12), 0 0 0 200vmax rgba(4,5,8,.7);
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .3s; opacity: 0; }
.ob-tour.in .ob-spot { opacity: 1; }
.ob-tip { position: fixed; width: 320px; padding: 16px 18px 14px; border-radius: 18px; background: linear-gradient(180deg, #1f2430, #171b24);
  border: 1px solid rgba(227,196,140,.3); box-shadow: var(--shadow-3), 0 0 50px -16px var(--brass-glow);
  transition: left .45s var(--ease), top .45s var(--ease), opacity .3s; opacity: 0; }
.ob-tour.in .ob-tip { opacity: 1; }
.ob-tour.out .ob-tip, .ob-tour.out .ob-spot { opacity: 0; transition-duration: .22s; }
.ob-tip.swap .ob-tip-title, .ob-tip.swap .ob-tip-text { animation: ob-swap .35s var(--ease) both; }
@keyframes ob-swap { from { opacity: 0; transform: translateY(4px); } }
.ob-tip-arrow { position: absolute; width: 12px; height: 12px; background: #1f2430; border: 1px solid rgba(227,196,140,.3); transform: rotate(45deg); display: none; }
.ob-tip[data-side="bottom"] .ob-tip-arrow { display: block; top: -7px; margin-left: -6px; border-right: 0; border-bottom: 0; }
.ob-tip[data-side="top"] .ob-tip-arrow { display: block; bottom: -7px; margin-left: -6px; border-left: 0; border-top: 0; background: #171b24; }
.ob-tip[data-side="right"] .ob-tip-arrow { display: block; left: -7px; margin-top: -6px; border-right: 0; border-top: 0; }
.ob-tip[data-side="left"] .ob-tip-arrow { display: block; right: -7px; margin-top: -6px; border-left: 0; border-bottom: 0; }
.ob-tip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ob-tip-count { font-size: 11px; color: var(--brass-2); letter-spacing: .04em; }
.ob-tip-skip { border: 0; background: none; color: var(--text-3); font: 600 12px/1 var(--f-ui); cursor: pointer; padding: 4px 2px; }
.ob-tip-skip:hover { color: var(--text); }
.ob-tip-title { font: 400 21px/1.15 var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 50; margin: 0 0 6px; }
.ob-tip-text { color: var(--text-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.ob-tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ob-tip-prog { display: flex; gap: 4px; }
.ob-tip-prog i { width: 12px; height: 3px; border-radius: 3px; background: var(--ink-5); transition: background .3s; }
.ob-tip-prog i.on { background: var(--brass); }
.ob-tip-btns { display: flex; gap: 4px; }

/* ---------- help ---------- */
.ob-help-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text-2);
  font: 600 15px/1 var(--f-display); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-1); transition: color .15s, border-color .15s, background .15s; }
.ob-help-btn:hover, .ob-help-btn[aria-expanded="true"] { color: var(--brass); border-color: rgba(227,196,140,.35); background: var(--ink-4); }
.ob-help-btn.sm { width: 30px; height: 30px; font-size: 14px; }
.ob-help-menu { width: 270px; }

/* ---------- shortcuts sheet ---------- */
.ob-sheet { width: min(760px, 100%); padding: 24px 26px 22px; overflow-y: auto; }
.ob-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.ob-sheet-head h2 { font-size: 28px; margin-top: 8px; font-variation-settings: "opsz" 144, "SOFT" 50; }
.ob-sheet-head .eyebrow { color: var(--brass-2); }
.ob-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-sc-group { padding: 14px 16px 10px; border-radius: var(--r); background: rgba(6,7,10,.45); border: 1px solid var(--line); }
.ob-sc-group h3 { font: 600 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.ob-sc-group ul { list-style: none; margin: 0; padding: 0; }
.ob-sc-group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.ob-sc-group li:first-child { border-top: 0; }
.ob-sc-group li > span:last-child { text-align: right; }
.ob-keys { display: inline-flex; gap: 4px; flex: none; }
.ob-keys kbd { min-width: 24px; text-align: center; font: 500 11.5px/1 var(--f-mono); color: var(--text); padding: 5px 7px; border-radius: 7px;
  background: linear-gradient(180deg, var(--ink-4), var(--ink-3)); border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--ink-0), inset 0 1px 0 rgba(255,255,255,.05); }
.ob-ell { color: var(--text-3); align-self: center; }
.ob-sheet-note { margin-top: 16px; color: var(--text-3); font-size: 12.5px; }

@media (max-width: 640px) {
  .ob-sheet-grid { grid-template-columns: 1fr; }
  .ob-title { font-size: 25px; }
  .ob-offer { left: 12px; right: 12px; transform: none; flex-wrap: wrap; }
  .ob-offer.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-track, .ob-spot, .ob-tip, .ob-card, .ob-scrim, .ob-offer { transition: none !important; }
  .ob-float, .ob-rise, .ob-fall, .ob-pulse, .ob-ring, .ob-tip.swap * { animation: none !important; }
}
