/* Ari usage walkthrough overlay (Light + Dark). Face avatar + greeting chip. */
.cc-ari-walkthrough {
    position: fixed;
    inset: 0;
    z-index: 10840;
    pointer-events: none;
}
.cc-ari-walkthrough[hidden] {
    display: none !important;
}
.cc-ari-walkthrough-spotlight {
    position: fixed;
    border-radius: 12px;
    box-shadow:
        0 0 0 3px var(--cc-ai-accent, #2f9be8),
        0 0 0 9999px color-mix(in srgb, #0b1724 38%, transparent);
    pointer-events: none;
    transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
}
html[data-theme="dark"] .cc-ari-walkthrough-spotlight {
    box-shadow:
        0 0 0 3px var(--cc-ai-accent, #5eb6f0),
        0 0 0 9999px color-mix(in srgb, #02060c 55%, transparent);
}
.cc-ari-walkthrough-guide {
    position: fixed;
    width: max-content;
    max-width: min(28rem, calc(100vw - 1.5rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    overflow: visible;
    transition: top 0.32s ease, left 0.32s ease;
    pointer-events: none;
}
.cc-ari-walkthrough-ari {
    position: relative;
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 auto;
    overflow: visible;
}
.cc-ari-walkthrough-avatar {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
/* Right hand on her right (viewer’s left), sized like a finger on the 3.4rem face. */
.cc-ari-walkthrough-hand {
    position: absolute;
    left: -0.15rem;
    top: -0.05rem;
    width: 1.15rem;
    height: 0.62rem;
    transform-origin: 12% 68%;
    pointer-events: none;
    background: none;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, #0b1724 28%, transparent));
    z-index: 4;
}
.cc-ari-walkthrough-hand-glyph {
    display: block;
    animation: cc-ari-walkthrough-point 1.05s ease-in-out infinite;
}
.cc-ari-walkthrough-hand .cc-ari-hand {
    display: block;
    width: 1.15rem;
    height: 0.62rem;
    overflow: visible;
    background: none;
}
.cc-ari-walkthrough-chip {
    --home-ari-intro-bg: color-mix(in srgb, #eef5fb 82%, #fff 18%);
    --home-ari-intro-border: rgba(26, 47, 69, 0.14);
    position: relative;
    margin: 0;
    max-width: min(22rem, calc(100vw - 6rem));
    width: max-content;
    padding: 0.35rem 0.65rem;
    /* Tail toward Ari (above the chip), not a left-side notch. */
    border-radius: 0.85rem;
    overflow: visible;
    background: var(--home-ari-intro-bg);
    border: 1px solid var(--home-ari-intro-border);
    color: #5a6f86;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: 0 6px 18px rgba(16, 36, 58, 0.12);
    white-space: normal;
}
.cc-ari-walkthrough-chip::before {
    content: "";
    position: absolute;
    top: -0.28rem;
    left: 50%;
    width: 0.52rem;
    height: 0.52rem;
    margin-left: -0.26rem;
    background: var(--home-ari-intro-bg);
    border-left: 1px solid var(--home-ari-intro-border);
    border-top: 1px solid var(--home-ari-intro-border);
    transform: rotate(45deg);
    pointer-events: none;
}
html[data-theme="dark"] .cc-ari-walkthrough-chip {
    --home-ari-intro-bg: rgba(36, 52, 74, 0.92);
    --home-ari-intro-border: rgba(101, 173, 243, 0.24);
    color: #9aadc4;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.cc-ari-walkthrough-chip.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.45ch;
    height: 1em;
    margin-left: 1px;
    vertical-align: -0.1em;
    background: currentColor;
    animation: cc-ari-walkthrough-caret 0.9s steps(1) infinite;
}
@keyframes cc-ari-walkthrough-caret {
    50% { opacity: 0; }
}
@keyframes cc-ari-walkthrough-point {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .cc-ari-walkthrough-spotlight,
    .cc-ari-walkthrough-guide {
        transition: none;
    }
    .cc-ari-walkthrough-chip.is-typing::after,
    .cc-ari-walkthrough-hand-glyph,
    .cc-ari-walkthrough-avatar {
        animation: none;
    }
}
