/* =========================================
   Universal Custom Styles — Always Loaded
   (Single source of truth for these utilities.
    Do NOT duplicate in main.css or input.css)
   ========================================= */

/* 1. Global Font Utility */
.font-outfit {
    font-family: 'DM Sans', sans-serif;
}
.font-epilogue {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
}
.font-dm-sans {
    font-family: 'DM Sans', sans-serif;
}

/* 1c. Universal Media & Container Constraints */
picture {
    display: block;
    width: 100%;
    max-width: 100%;
}
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* 2. Hero Background Glow
      Performance optimized: hidden on mobile */
.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background-color: rgba(217, 119, 6, 0.18);
    border-radius: 9999px;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    display: none;
}
@media (min-width: 768px) {
    .hero-glow { display: block; }
}

/* 2b. Hero Interactive Cursor Spotlight Glow */
.hero-interactive-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(550px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.04) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#hero-section:hover .hero-interactive-glow {
    opacity: 1;
}

/* 2c. Hero Spotlight Constellation & Badges */
.hero-spotlight-constellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    -webkit-mask-image: radial-gradient(300px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 25%, transparent 95%);
    mask-image: radial-gradient(300px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 25%, transparent 95%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
#hero-section:hover .hero-spotlight-constellation {
    opacity: 1;
}

@keyframes spotlight-float {
    0%   { transform: translate(-50%, -50%) translateY(0px); }
    100% { transform: translate(-50%, -50%) translateY(-10px); }
}

.spotlight-node {
    position: absolute;
    transform: translate(-50%, -50%);
    animation: spotlight-float 6s ease-in-out infinite alternate;
}
.spotlight-node:nth-child(2n) {
    animation-duration: 7.5s;
    animation-delay: -2s;
}
.spotlight-node:nth-child(3n) {
    animation-duration: 9s;
    animation-delay: -4s;
}
.spotlight-node:nth-child(4n) {
    animation-duration: 6.5s;
    animation-delay: -1.5s;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.18);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}
.spotlight-badge-emerald {
    border-color: rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(16, 185, 129, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .spotlight-node { animation: none; }
}

/* 3. Pulse Animation (slow variant) */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 4. Voice / Sound Wave Animation */
@keyframes sound {
    0%   { height: 3px;  opacity: 0.35; }
    100% { height: 24px; opacity: 0.95; }
}
.animate-sound {
    animation: sound 800ms ease-in-out infinite alternate;
}

/* 5. Off-screen Section Rendering Deferral
      content-visibility skips layout/paint for hidden sections.
      Single definition here — do not add to main.css. */
.section-lazy {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

/* 6. Blog Index Grid */
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.blog-index-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}
.blog-index-badge {
    margin-bottom: 1rem;
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
}
.blog-index-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}
.blog-index-cta-arrow {
    transition: transform 0.2s;
}
.blog-index-card:hover .blog-index-cta-arrow {
    transform: translateX(3px);
}

/* 7. Exit Intent Popup */
#exit-intent-popup.hidden {
    display: none !important;
}
#exit-intent-popup .bg-black {
    background-color: rgba(0, 0, 0, 0.5);
}
#exit-intent-popup .bg-white {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 8. Desktop Glassmorphic Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-dropdown-btn,
.nav-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.85rem !important;
    min-height: 0 !important;
    border-radius: 0.75rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1.25;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn:hover,
.nav-top-link:hover {
    color: var(--text-main);
    background-color: rgba(15, 23, 42, 0.05);
}
.theme-dark .nav-dropdown:hover .nav-dropdown-btn,
.theme-dark .nav-dropdown-btn:hover,
.theme-dark .nav-top-link:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(6px);
    width: 360px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-dropdown-btn svg,
.nav-dropdown:focus-within .nav-dropdown-btn svg,
.nav-dropdown.is-open .nav-dropdown-btn svg {
    transform: rotate(180deg);
    opacity: 1;
}

/* Solid Glassmorphic Card Container with Guaranteed Background */
.nav-dropdown-card {
    background-color: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
    border-radius: 1.25rem;
    padding: 0.625rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.theme-dark .nav-dropdown-card {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Submenu Item — Regular State */
.nav-sub-link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.875rem;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.nav-sub-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background-color: rgba(15, 23, 42, 0.04);
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark .nav-sub-icon {
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}
.nav-sub-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}
.nav-sub-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.15rem;
    font-weight: 400;
}
.nav-sub-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 0.375rem;
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}
.theme-dark .nav-sub-badge {
    background-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}
.nav-sub-arrow {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* Submenu Item — Interactive Hovered State */
.nav-sub-link:hover,
.nav-sub-link:focus {
    background-color: rgba(217, 119, 6, 0.07);
}
.theme-dark .nav-sub-link:hover,
.theme-dark .nav-sub-link:focus {
    background-color: rgba(255, 255, 255, 0.06);
}
.nav-sub-link:hover .nav-sub-icon {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.nav-sub-link:hover .nav-sub-title {
    color: var(--primary);
}
.nav-sub-link:hover .nav-sub-badge {
    background-color: rgba(217, 119, 6, 0.14);
    color: var(--primary);
    border-color: rgba(217, 119, 6, 0.25);
}
.nav-sub-link:hover .nav-sub-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 9. Mobile Hamburger Toggle Button */
#nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0 !important;
    min-height: 0 !important;
    border-radius: 0.5rem;
    color: var(--text-main);
    background-color: transparent;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    cursor: pointer;
    transition: all 0.15s ease;
}
.theme-dark #nav-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}
#nav-toggle:hover,
#nav-toggle:focus {
    background-color: rgba(15, 23, 42, 0.06);
    color: var(--primary);
}
.theme-dark #nav-toggle:hover,
.theme-dark #nav-toggle:focus {
    background-color: rgba(255, 255, 255, 0.08);
}
#nav-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
}
#nav-toggle svg.hidden {
    display: none !important;
}
@media (min-width: 768px) {
    #nav-toggle {
        display: none !important;
    }
}

/* 10. Platform Showcase Tab Buttons */
.showcase-tab-btn.is-active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.showcase-tab-btn.is-active svg {
    color: #ffffff !important;
}

/* 11. macOS Window Traffic Light Controls */
.mac-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.mac-dot-red {
    background-color: #ff5f56 !important;
    border: 1px solid #e0443e !important;
    box-shadow: 0 0 4px rgba(255, 95, 86, 0.5);
}
.mac-dot-yellow {
    background-color: #ffbd2e !important;
    border: 1px solid #dea123 !important;
    box-shadow: 0 0 4px rgba(255, 189, 46, 0.5);
}
.mac-dot-green {
    background-color: #27c93f !important;
    border: 1px solid #1aab29 !important;
    box-shadow: 0 0 4px rgba(39, 201, 63, 0.5);
}
.mac-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 41, 59, 0.4);
    color: #94a3b8;
    transition: all 0.15s ease;
    cursor: default;
}
.mac-nav-icon:hover {
    background-color: rgba(51, 65, 85, 0.8);
    color: #ffffff;
}

/* 12. Cost Architecture Progress Bars */
.cost-bar-track {
    width: 100%;
    height: 0.875rem;
    background-color: rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.8);
    position: relative;
}
.theme-dark .cost-bar-track {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.cost-bar-danger {
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%) !important;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cost-bar-primary {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%) !important;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cost-bar-success {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cost-bar-muted {
    background: #64748b !important;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 13. AI Sales Chatbot Widget Premium Utilities */
#nr_chat_modal {
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 119, 6, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: nrModalOpen 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes nrModalOpen {
    0% { opacity: 0; transform: translateY(20px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 639px) {
    #nr_chat_modal {
        border-radius: 1.5rem 1.5rem 0 0 !important;
        height: 100dvh !important;
        animation: nrSheetOpen 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes nrSheetOpen {
        0% { opacity: 0; transform: translateY(100%); }
        100% { opacity: 1; transform: translateY(0); }
    }
}

/* Launcher Button — Minimalist Circular Action Button */
#nr_chat_launcher {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
#nr_chat_launcher:hover {
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px) scale(1.05);
}

/* Launcher icon rotates when modal is open */
#nr_chat_launcher_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
#nr_chat_widget_root.nr-open #nr_chat_launcher_icon {
    transform: rotate(135deg);
}

/* Unread message badge on launcher */
#nr_unread_badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #000;
    display: none;
    z-index: 10;
}
#nr_unread_badge.nr-badge-visible {
    display: block;
    animation: nrBadgePop 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
@keyframes nrBadgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Custom scrollbar */
#nr_chat_messages::-webkit-scrollbar { width: 5px; }
#nr_chat_messages::-webkit-scrollbar-track { background: transparent; }
#nr_chat_messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}
#nr_chat_messages::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 119, 6, 0.5);
}

/* Message bubbles */
.nr-chat-bubble {
    animation: nrBubbleIn 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
@keyframes nrBubbleIn {
    0% { opacity: 0; transform: translateY(12px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bubble timestamp */
.nr-bubble-ts {
    font-size: 10px;
    color: rgba(156, 163, 175, 0.45);
    line-height: 1;
    transition: color 0.2s ease;
    margin-top: 4px;
    padding-left: 2px;
}
.nr-chat-bubble:hover .nr-bubble-ts { color: rgba(156, 163, 175, 0.8); }

/* Feedback row (thumbs up/down) — visible on bubble hover */
.nr-feedback-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nr-chat-bubble:hover .nr-feedback-row { opacity: 1; }
.nr-feedback-btn {
    padding: 3px 8px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(156,163,175,0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}
.nr-feedback-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.nr-feedback-btn.nr-voted-up {
    background: rgba(52,211,153,0.15);
    border-color: rgba(52,211,153,0.4);
    color: #34d399;
}
.nr-feedback-btn.nr-voted-down {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.35);
    color: #f87171;
}

/* Prompt starter chips — Telegram style inline keyboard grid */
#nr_chat_starters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 420px) {
    #nr_chat_starters {
        grid-template-columns: 1fr;
    }
}
.nr-prompt-chip {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nr-prompt-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(14, 165, 233, 0.2);
}
/* CTA chip (demo/schedule) spans full width with amber ring */
.nr-prompt-chip.nr-chip-cta {
    grid-column: 1 / -1;
    box-shadow: 0 0 0 1px rgba(217,119,6,0.3), 0 0 16px rgba(217,119,6,0.1);
}
.nr-prompt-chip.nr-chip-cta:hover {
    box-shadow: 0 6px 16px -4px rgba(0,0,0,0.5), 0 0 20px rgba(217,119,6,0.35);
}

/* Agent online status pill */
.nr-agent-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: rgba(156, 163, 175, 0.8);
    font-weight: 500;
}
.nr-agent-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,0.7);
    animation: nrStatusPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nrStatusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52,211,153,0.7); }
    50% { opacity: 0.6; box-shadow: 0 0 10px rgba(52,211,153,0.3); }
}

/* Scroll-to-bottom pill */
#nr_scroll_pill {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 9999px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 20;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
#nr_scroll_pill.nr-pill-visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#nr_scroll_pill:hover {
    background: rgba(30,30,30,0.95);
    border-color: rgba(255,255,255,0.22);
}

/* Character counter */
#nr_char_counter {
    font-size: 10px;
    color: rgba(107,114,128,0.6);
    transition: color 0.2s ease;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
}
#nr_char_counter.nr-counter-warn { color: rgba(251,191,36,0.9); }
#nr_char_counter.nr-counter-danger { color: rgba(239,68,68,0.95); }

/* Typing indicator — fluid wave (replaces flat opacity bounce) */
@keyframes nrDotWave {
    0%, 60%, 100% { transform: scaleY(1); opacity: 0.45; }
    30% { transform: scaleY(1.75); opacity: 1; }
}
.nr-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.75);
    animation: nrDotWave 1.2s ease-in-out infinite;
    transform-origin: center bottom;
}
.nr-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.nr-typing-dot:nth-child(3) { animation-delay: 0.30s; }

/* Teaser balloon shimmer border */
@keyframes nrShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
#nr_chat_teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, transparent 25%, rgba(217,119,6,0.5) 50%, transparent 75%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: nrShimmer 3s linear infinite;
    pointer-events: none;
}

/* Email gate staggered fade-up animations */
@keyframes nrFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nr-fade-up-1 { animation: nrFadeUp 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.nr-fade-up-2 { animation: nrFadeUp 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.15s both; }
.nr-fade-up-3 { animation: nrFadeUp 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.25s both; }
.nr-fade-up-4 { animation: nrFadeUp 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.35s both; }

.nr-fade-in { animation: nrFadeUp 0.3s cubic-bezier(0.19, 1, 0.22, 1) both; }

/* Button shimmer loading state */
.nr-btn-loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.75;
}
.nr-btn-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: nrShimmer 1s linear infinite;
}

/* Teaser chip */
.nr-teaser-chip { transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1); }
.nr-teaser-chip:hover { transform: scale(1.04); }
.nr-teaser-chip:active { transform: scale(0.96); }

/* Chatbot Markdown List and Content Enhancements */
.nr-chat-bubble ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}
.nr-chat-bubble ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    list-style-type: decimal;
}
.nr-chat-bubble li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}
.nr-chat-bubble strong { color: #fbbf24; }

/* 14. NovaReps chat — focused, product-grade support surface */
.nr-chat-widget { position:fixed; right:24px; bottom:24px; z-index:9999; font-family:'DM Sans',sans-serif; }
.nr-chat-launcher { position:relative; display:grid; place-items:center; width:56px; height:56px; color:#f5f5f3; background:#28282c; border:1px solid #444449; border-radius:50%; box-shadow:0 10px 25px rgba(0,0,0,.28); cursor:pointer; transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease; }
.nr-chat-launcher:hover { background:#323237; border-color:#5a5a60; transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.34); }
.nr-chat-launcher-icon { display:grid; place-items:center; width:22px; height:22px; transition:transform .25s ease; }
.nr-chat-launcher-icon svg { width:100%; height:100%; }
.nr-open .nr-chat-launcher-icon { transform:rotate(90deg); }
.nr-chat-online-dot { position:absolute; right:1px; bottom:1px; width:11px; height:11px; background:#45bd82; border:2px solid #28282c; border-radius:50%; box-shadow:0 0 0 0 rgba(69,189,130,.45); animation:nrLauncherStatusPulse 2.4s ease-out infinite; }
@keyframes nrLauncherStatusPulse { 0%,100% { box-shadow:0 0 0 0 rgba(69,189,130,.35); } 55% { box-shadow:0 0 0 5px rgba(69,189,130,0); } }
.nr-chat-teaser { position:absolute; right:0; bottom:72px; width:294px; display:grid; grid-template-columns:34px 1fr; gap:11px; padding:15px; color:#f8f8f6; background:#1c1c1f; border:1px solid rgba(255,255,255,.12); border-radius:16px; box-shadow:0 20px 45px rgba(0,0,0,.34); }
.nr-chat-teaser-mark,.nr-chat-avatar,.nr-chat-message-avatar,.nr-chat-gate-mark { display:grid; place-items:center; color:#f5f5f3; background:#2c2c30; border:1px solid #45454a; font-family:'Epilogue',sans-serif; font-weight:800; }
.nr-chat-teaser-mark { width:34px; height:34px; border-radius:10px; font-size:13px; }
.nr-chat-teaser-title { margin:0; font-size:13px; font-weight:700; }.nr-chat-teaser-copy { margin:3px 22px 10px 0; color:#a8a8ad; font-size:12px; line-height:1.45; }
.nr-chat-teaser-close { position:absolute; top:9px; right:10px; border:0; background:transparent; color:#909096; cursor:pointer; font-size:19px; line-height:1; }.nr-chat-teaser-close:hover{color:#fff}
.nr-teaser-chip { padding:0; color:var(--primary); border:0; background:none; font:600 12px/1 'DM Sans',sans-serif; cursor:pointer; }.nr-teaser-chip span { margin-left:4px; }
.nr-chat-modal { position:fixed; right:24px; bottom:24px; z-index:10000; display:flex; flex-direction:column; width:min(412px,calc(100vw - 32px)); height:min(660px,calc(100dvh - 48px)); overflow:hidden; color:#f6f6f3; background:#171719; border:1px solid rgba(255,255,255,.12); border-radius:22px; box-shadow:0 28px 70px rgba(0,0,0,.45); font-family:'DM Sans',sans-serif; animation:nrModalOpen .24s cubic-bezier(.16,1,.3,1) forwards; }.nr-chat-modal.hidden { display:none !important; }
.nr-chat-mobile-handle { display:none; }.nr-chat-header { display:flex; align-items:center; justify-content:space-between; padding:17px 16px; border-bottom:1px solid rgba(255,255,255,.09); }.nr-chat-identity { display:flex; align-items:center; gap:10px; }.nr-chat-avatar { width:34px; height:34px; border-radius:10px; font-size:13px; }.nr-chat-name-row { display:flex; gap:7px; align-items:center; }.nr-chat-name-row h2 { margin:0; font:700 13px/1 'Epilogue',sans-serif; }.nr-chat-name-row span { padding:3px 5px; color:#afafb4; background:#262629; border-radius:4px; font-size:9px; line-height:1; }.nr-chat-identity p { display:flex; align-items:center; gap:5px; margin:5px 0 0; color:#99999f; font-size:10px; }.nr-chat-identity i { width:6px; height:6px; border-radius:50%; background:#42bd81; }.nr-chat-controls { display:flex; gap:1px; }.nr-chat-controls button { display:grid; place-items:center; width:31px; height:31px; padding:0; color:#929298; background:transparent; border:0; border-radius:8px; cursor:pointer; }.nr-chat-controls button:hover { color:#fff; background:#29292c; }.nr-chat-controls svg { width:16px; height:16px; }
.nr-chat-body { position:relative; flex:1; min-height:0; }.nr-chat-messages { height:100%; overflow-y:auto; padding:22px 18px; scrollbar-width:thin; scrollbar-color:#44444a transparent; }.nr-chat-messages::-webkit-scrollbar{width:5px}.nr-chat-messages::-webkit-scrollbar-thumb{background:#44444a;border-radius:9px}
.nr-chat-welcome { padding:17px 2px 4px; }.nr-chat-welcome-label { margin-bottom:12px; color:var(--primary); font-size:10px; font-weight:700; letter-spacing:.1em; }.nr-chat-welcome h3 { margin:0; color:#fafaf8; font:700 25px/1.1 'Epilogue',sans-serif; letter-spacing:-.045em; }.nr-chat-welcome>p { max-width:300px; margin:10px 0 20px; color:#a9a9ae; font-size:13px; line-height:1.55; }
#nr_chat_starters { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.nr-prompt-chip { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:45px; padding:10px 11px; color:#e9e9e6; background:#202023; border:1px solid #303035; border-radius:10px; text-align:left; font:600 11px/1.25 'DM Sans',sans-serif; cursor:pointer; transition:background .16s ease,border-color .16s ease,transform .16s ease; }.nr-prompt-chip>span { display:grid; gap:3px; }.nr-prompt-chip strong { font:600 11px/1.25 'DM Sans',sans-serif; }.nr-prompt-chip small { color:#99999f; font:400 10px/1.35 'DM Sans',sans-serif; }.nr-prompt-chip:hover { background:#27272a; border-color:#515157; transform:translateY(-1px); box-shadow:none; }.nr-prompt-chip b { color:var(--primary); font-size:14px; font-weight:500; }.nr-prompt-chip.nr-chip-cta { color:#fff; background:var(--primary); border-color:var(--primary); box-shadow:none; }.nr-prompt-chip.nr-chip-cta small,.nr-prompt-chip.nr-chip-cta b { color:rgba(255,255,255,.8); }
.nr-chat-bubble { display:flex; margin:0 0 16px; animation:nrBubbleIn .25s ease both; }.nr-chat-bubble.hidden { display:none !important; }.nr-chat-bubble-user { justify-content:flex-end; }.nr-chat-bubble-assistant { align-items:flex-start; gap:8px; }.nr-chat-bubble-content { max-width:82%; }.nr-chat-message { padding:11px 12px; font-size:12px; line-height:1.55; }.nr-chat-message-user { color:#f5f5f3; background:#343438; border:1px solid #45454a; border-radius:13px 13px 3px 13px; }.nr-chat-message-assistant { color:#dedee0; background:#222225; border:1px solid #303034; border-radius:3px 13px 13px; }.nr-chat-message-avatar { flex:0 0 auto; width:25px; height:25px; border-radius:8px; font-size:10px; }.nr-bubble-ts { display:block; margin-top:5px; color:#737379; font-size:9px; }.nr-chat-bubble-user .nr-bubble-ts { padding-right:2px; text-align:right; }.nr-chat-bubble strong { color:var(--primary); }.nr-feedback-row { opacity:1; margin-top:5px; }.nr-feedback-btn { padding:2px 5px; border:0; color:#77777d; background:transparent; font-size:11px; }.nr-feedback-btn:hover { transform:none; color:#fff; background:transparent; }
.nr-chat-capture-box { display:grid; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); color:#f5f5f1; font-size:11px; font-weight:600; }.nr-chat-capture-box input,.nr-chat-gate input { width:100%; box-sizing:border-box; padding:10px; color:#f8f8f6; background:#19191b; border:1px solid #38383d; border-radius:8px; font:12px 'DM Sans',sans-serif; outline:none; }.nr-chat-capture-box input:focus,.nr-chat-gate input:focus { border-color:var(--primary); }.nr-chat-capture-box button,.nr-chat-gate button { padding:10px; color:#fff; background:var(--primary); border:0; border-radius:8px; font:700 11px 'DM Sans',sans-serif; cursor:pointer; }.nr-chat-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }.nr-chat-actions a,.nr-chat-actions button { padding:7px 9px; color:#fff; background:var(--primary); border:0; border-radius:7px; font:700 11px 'DM Sans',sans-serif; text-decoration:none; cursor:pointer; }.nr-chat-lead-confirmation { display:flex; gap:8px; margin-top:12px; padding-top:12px; color:#7bdaac; border-top:1px solid rgba(255,255,255,.1); font-size:11px; }.nr-chat-lead-confirmation span{font-weight:700}
.nr-chat-typing { display:flex; align-items:center; gap:4px; padding:8px 18px; color:#8d8d93; font-size:10px; }.nr-chat-typing.hidden { display:none !important; }.nr-chat-typing em { margin-left:4px; font-style:normal; }.nr-typing-dot { width:4px; height:4px; background:var(--primary); animation:nrDotWave 1.2s ease-in-out infinite; }.nr-chat-composer-wrap { padding:12px 13px 13px; border-top:1px solid rgba(255,255,255,.09); }.nr-chat-composer { display:flex; align-items:flex-end; gap:8px; padding:5px 5px 5px 12px; background:#222225; border:1px solid #38383d; border-radius:12px; transition:border-color .15s ease; }.nr-chat-composer:focus-within { border-color:var(--primary); }.nr-chat-composer textarea { flex:1; max-height:88px; min-height:20px; padding:7px 0; color:#f5f5f3; background:transparent; border:0; outline:0; resize:none; font:12px/1.45 'DM Sans',sans-serif; }.nr-chat-composer textarea::placeholder { color:#85858b; }.nr-chat-composer button { display:grid; place-items:center; width:32px; height:32px; color:#fff; background:var(--primary); border:0; border-radius:8px; cursor:pointer; }.nr-chat-composer button:disabled{opacity:.4}.nr-chat-composer button svg{width:16px;height:16px}.nr-chat-composer-meta { display:flex; justify-content:space-between; padding:7px 2px 0; color:#707076; font-size:9px; }.nr-chat-composer-meta span:last-child{font-variant-numeric:tabular-nums}
.nr-chat-gate { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; padding:30px; text-align:center; }.nr-chat-gate.hidden,.nr-chat-teaser.hidden { display:none !important; }.nr-chat-gate-mark { width:46px; height:46px; margin-bottom:18px; border-radius:14px; font-size:17px; }.nr-chat-gate h3 { margin:0; font:700 22px 'Epilogue',sans-serif; letter-spacing:-.04em; }.nr-chat-gate>p { max-width:275px; margin:10px 0 21px; color:#a3a3a9; font-size:12px; line-height:1.5; }.nr-chat-gate form { display:grid; width:100%; max-width:290px; gap:8px; }.nr-chat-gate small { margin-top:13px; color:#74747a; font-size:9px; }.nr-chat-gate small a { color:#b6b6b8; }.nr-btn-loading{opacity:.7}.nr-btn-loading::after{display:none}
#nr_scroll_pill { bottom:12px; padding:6px 10px; background:#28282b; border-color:#444449; font-size:10px; box-shadow:0 5px 16px rgba(0,0,0,.25); }.nr-counter-warn,#nr_char_counter.nr-counter-warn{color:var(--primary)}.nr-counter-danger,#nr_char_counter.nr-counter-danger{color:#ff7f7f}
@media (max-width:639px) { .nr-chat-widget{right:16px;bottom:16px}.nr-chat-modal{right:0;bottom:0;width:100%;height:100dvh;max-height:none;border-radius:20px 20px 0 0}.nr-chat-mobile-handle{display:flex;justify-content:center;padding:9px 0 0}.nr-chat-mobile-handle span{width:34px;height:4px;background:#55555b;border-radius:9px}.nr-chat-header{padding:12px 16px}.nr-chat-teaser{right:0;bottom:69px}.nr-chat-welcome{padding-top:7px} }
@media (prefers-reduced-motion:reduce) { .nr-chat-modal,.nr-chat-bubble,.nr-typing-dot{animation:none!important}.nr-chat-launcher,.nr-prompt-chip{transition:none} }

/* Trust strip: on phones stack the badges at one equal width instead of ragged centered pills */
@media (max-width: 639px) {
    .trust-badge {
        width: 100%;
        max-width: 22rem;
    }
}
