/* Lab Assist: interactive equipment hotspots over the hero photo + the AI assistant panel. */

.la-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.la-layer.is-ready .la-spot { opacity: 1; }

/* ---------- hotspots over the photo ---------- */
.la-spot {
    position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(122, 0, 230, .28); border: 1px solid rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .5s ease, background .2s, transform .2s;
    cursor: pointer; color: #fff;
}
.la-spot::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5); animation: la-ping 2.8s ease-out infinite;
}
.la-spot:nth-of-type(2)::after { animation-delay: .5s; }
.la-spot:nth-of-type(3)::after { animation-delay: 1s; }
.la-spot:nth-of-type(4)::after { animation-delay: 1.5s; }
.la-spot:nth-of-type(5)::after { animation-delay: 2s; }
@keyframes la-ping { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.la-spot:hover, .la-spot:focus-visible { background: rgba(122, 0, 230, .85); transform: translate(-50%, -50%) scale(1.12); outline: none; }
.la-spot:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.la-spot b { font-size: 15px; font-weight: 700; line-height: 1; }
.la-spot.is-picked { background: #18c29c; border-color: #fff; }
.la-spot.is-picked::after { animation: none; opacity: 0; }

.la-tip {
    position: absolute; transform: translate(-50%, calc(-100% - 26px)); pointer-events: none;
    width: max-content; max-width: 250px; padding: 10px 13px; border-radius: 8px;
    background: rgba(13, 5, 33, .95); color: #fff; font-size: 13px; line-height: 1.45;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .18s ease; z-index: 3;
}
.la-tip.is-on { opacity: 1; }
.la-tip b { display: block; font-size: 14px; margin-bottom: 2px; }
.la-tip span { color: #c9b6ff; }

/* ---------- assistant panel ---------- */
.la-panel {
    position: relative; z-index: 3; margin-top: 30px; max-width: 680px;
    background: rgba(13, 5, 33, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 18px 20px; color: #fff;
}
.la-head { display: flex; align-items: center; gap: 12px; }
.la-bot { width: 40px; height: 40px; flex: none; }
.la-bot .eye { animation: la-blink 5s infinite; transform-origin: center; }
.la-bot.is-busy { animation: la-nod .9s ease-in-out infinite; }
@keyframes la-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes la-nod { 50% { transform: translateY(-3px); } }
.la-head p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9b6ff; }
.la-head h3 { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: #fff; }
.la-say { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .92); min-height: 46px; }
.la-say .cursor { display: inline-block; width: 7px; height: 16px; vertical-align: -2px; background: #b57bff; animation: la-caret 1s steps(2) infinite; }
@keyframes la-caret { 50% { opacity: 0; } }

.la-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.la-chips button {
    padding: 8px 14px; border-radius: 9999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: all .2s;
}
.la-chips button:hover { background: rgba(255, 255, 255, .22); }
.la-chips button.is-on { background: #7a00e6; border-color: #7a00e6; }
.la-chips button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.la-kit { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.la-kit[hidden] { display: none; }
.la-kit h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9b6ff; }
.la-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.la-list li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45;
    color: rgba(255, 255, 255, .93); opacity: 0; transform: translateY(6px); animation: la-in .45s ease forwards;
}
@keyframes la-in { to { opacity: 1; transform: none; } }
.la-list .tick { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(24, 194, 156, .22); color: #18c29c; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.la-list .tick.tool { background: rgba(181, 123, 255, .22); color: #b57bff; }
.la-list a { color: #d9c6ff; text-decoration: underline; text-underline-offset: 2px; }
.la-list a:hover { color: #fff; }
.la-list small { display: block; color: rgba(255, 255, 255, .6); font-size: 12.5px; }

.la-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.la-foot a, .la-foot button {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9999px;
    font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s;
}
.la-foot .go { background: #7a00e6; color: #fff; border: 1px solid #7a00e6; }
.la-foot .go:hover { background: #6a00c7; }
.la-foot .ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.la-foot .ghost:hover { background: rgba(255, 255, 255, .14); }
.la-note { margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, .55); }

@media (max-width: 900px) {
    .la-layer { display: none; } /* the photo is mostly cropped away on phones; the panel carries the feature */
    .la-panel { margin-top: 24px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .la-spot::after, .la-bot .eye, .la-bot.is-busy { animation: none; }
    .la-list li { opacity: 1; transform: none; animation: none; }
}
