/* OrgSurvey - the guided tour (js/tour.js) and the practice tutorial (js/tutorial.js): the
 * blocking spotlight card the tour uses, the light non-blocking ring and bottom sheet the
 * tutorial uses (js/spotlight.js positions both), and the first-visit "Tour guidato?" offer.
 * Reuses the application's own button classes (.btn, .btn.primary, .btn.ghost, .btn.danger from
 * css/app.css) so neither feature needs its own button look. */

/* ------------------------------------------------------------------ guided tour */
.tour-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.tour-blocker { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
.tour-spot {
    position: absolute; border-radius: var(--radius); box-shadow: 0 0 0 9999px rgba(13, 31, 48, .55);
    outline: 3px solid var(--blue); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
    pointer-events: none;
}
.tour-pop {
    position: absolute; width: 360px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto;
    background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow), 0 10px 30px rgba(13, 31, 48, .18);
    padding: 16px 18px 14px; pointer-events: auto; transition: left .25s ease, top .25s ease;
}
.tour-pop.tour-center { width: 400px; }
.tour-pop.tour-waiting { visibility: hidden; }
.tour-count { font-size: .76rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.tour-pop h3, .tut-sheet h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.tour-pop h3 i, .tut-sheet h3 i { color: var(--blue); }
.tour-pop p, .tut-sheet p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; font-size: .92rem; }
.tour-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tour-actions .btn { min-height: 44px; }
.tour-actions .tour-exit, .tour-actions .tut-exit { margin-right: auto; }

/* The one-time proposal offered at the first visit of each account (js/tour.js#propose). */
.tour-offer {
    position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 70;
    width: 320px; max-width: calc(100vw - 24px); background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow), 0 10px 30px rgba(13, 31, 48, .18); padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
}
.tour-offer > i { color: var(--blue); font-size: 1.2rem; margin-top: 2px; }
.tour-offer-text { flex: 1; min-width: 0; }
.tour-offer-text b { display: block; font-size: .92rem; }
.tour-offer-text span { display: block; margin-top: 2px; color: var(--ink-3); font-size: .82rem; line-height: 1.35; }
.tour-offer-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

@media (min-width: 900px) { .tour-offer { bottom: 16px; } }
@media (max-width: 639px) {
    .tour-pop, .tour-pop.tour-center { width: calc(100vw - 24px); }
    .tour-offer { left: 12px; right: 12px; width: auto; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); flex-direction: column; }
    .tour-offer-actions { flex-direction: row; }
    .tour-offer-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------------ practice tutorial */
.tut-ring {
    position: fixed; z-index: 70; pointer-events: none; border-radius: var(--radius);
    outline: 3px solid var(--teal); box-shadow: 0 0 0 4px rgba(14, 124, 102, .18);
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
.tut-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--card);
    border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(13, 31, 48, .2);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); max-height: 70vh; overflow-y: auto;
}
.tut-progress { display: flex; gap: 6px; margin: 2px 0 10px; }
.tut-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.tut-progress span.done { background: var(--teal); }
.tut-progress span.on { background: var(--blue); }
.tut-waiting-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .86rem; font-weight: 600; }

@media (min-width: 640px) {
    .tut-sheet { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: var(--radius); max-height: calc(100vh - 32px); }
}
