/* Glass3D reference: a bright inner rim and clear depth over the page. */
.jp-home .hero-section :is(.search-bar, .hero-cta .btn-secondary) {
    --jp-glass-surface: rgba(24, 24, 24, .63);
    --jp-glass-rim: rgba(255, 255, 255, .16);
    --jp-glass-light: rgba(255, 255, 255, .18);
    color: inherit;
    background: var(--jp-glass-surface) !important;
    border: 1px solid var(--jp-glass-rim) !important;
    box-shadow: inset 0 1px 0 var(--jp-glass-light),
        inset 0 -1px 0 rgba(255, 255, 255, .04),
        0 12px 32px rgba(0, 0, 0, .27);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
}

[data-theme="light"] .jp-home .hero-section :is(.search-bar, .hero-cta .btn-secondary) {
    --jp-glass-surface: rgba(255, 255, 255, .68);
    --jp-glass-rim: rgba(30, 13, 13, .18);
    --jp-glass-light: rgba(255, 255, 255, .94);
    color: #181818;
    box-shadow: inset 0 1px 0 var(--jp-glass-light), 0 12px 32px rgba(35, 13, 13, .1);
}

.jp-home .hero-section .search-bar:focus-within {
    border-color: #ff655c !important;
    outline: 3px solid rgba(255, 59, 48, .23);
    outline-offset: 2px;
    transform: none;
}

.jp-home .hero-cta a:focus-visible {
    outline: 2px solid #ff655c;
    outline-offset: 4px;
}

@media (hover: hover) {
    .jp-home .hero-section .hero-cta .btn-secondary:hover {
        border-color: rgba(255, 101, 92, .65) !important;
    }
}

/* Movement is limited to the indicator and icons, leaving hit areas fixed. */
@media (prefers-reduced-motion: no-preference) {
    .jp-home .hero-cta a i {
        display: inline-block;
        transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
    }

    .jp-home .hero-cta a:is(:hover, :focus-visible) i {
        transform: translateY(-2px);
    }

    .jp-home .hero-cta a:active i {
        transform: scale(.88);
    }

    .jp-onboarding .jp-agent-card.selected .jp-check {
        animation: jpAgentCheckIn 500ms cubic-bezier(.22, 1, .36, 1) both;
    }
}

@keyframes jpAgentCheckIn {
    from { opacity: .35; transform: scale(.68); }
    55% { transform: scale(1.13); }
    to { opacity: 1; transform: scale(1); }
}
