@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* enterprise.html: display + mono fonts from Google Fonts; Tailwind: font-display, font-mono */

body {
    background-color: #F8FAFC;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-bg {
    background-color: #F8FAFC;
    position: relative;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.faq-content {
    transition: max-height 0.25s ease;
    max-height: 0;
    overflow: hidden;
}
.faq-item.active .faq-content { max-height: 500px; }
.faq-icon { transition: transform 0.2s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-mockup {
    opacity: 0;
    transform: scale(0.98) translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-mockup.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .hero-mockup { opacity: 1; transform: none; transition: none; }
}

.hero-glow {
    position: absolute;
    width: 120%;
    height: 140%;
    top: -20%;
    left: -10%;
    background: rgba(30, 58, 138, 0.05);
    pointer-events: none;
    animation: hero-glow-pulse 8s ease-in-out infinite;
}
@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-glow { animation: none; }
}

.btn-primary {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    transition: transform 0.15s ease;
}
.btn-secondary:hover {
    transform: translateY(-2px);
}
.btn-secondary:active {
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover, .btn-primary:active,
    .btn-secondary:hover, .btn-secondary:active { transform: none; }
}

.card-interactive {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-interactive:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
@media (prefers-reduced-motion: reduce) {
    .card-interactive:hover { box-shadow: none; }
}

.header-inner {
    height: 80px;
    transition: height 0.3s ease;
}
.header-shrink .header-inner {
    height: 64px;
}

.section-divider {
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(226, 232, 240, 0.85);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.section-divider.in-view::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 50%; }
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}
.img-placeholder span {
    max-width: 100%;
}
.bg-brand-dark .img-placeholder,
.img-placeholder-dark {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

.ticker-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
}
.ticker-track {
    animation: ticker-scroll 40s linear infinite;
}
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}
.ticker-item {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.ticker-wrapper:hover .ticker-item {
    color: #1E3A8A;
    text-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .ticker-wrapper:hover .ticker-track { animation: none; }
}

.pricing-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pricing-compare tbody th.pricing-sticky-col {
    font-weight: 600;
}
.pricing-compare .pricing-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #fff;
    box-shadow: 1px 0 0 #e2e8f0;
}
.pricing-compare tbody tr:nth-child(even) .pricing-sticky-col {
    background-color: #fff;
}
.pricing-compare thead .pricing-sticky-col {
    z-index: 3;
    background-color: #f8fafc;
}
.pricing-compare tbody tr.bg-slate-100 .pricing-sticky-col,
.pricing-compare tbody tr.bg-slate-100 th {
    position: static;
    box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    .pricing-table-scroll { scroll-behavior: auto; }
}

.perspective-1000 {
    perspective: 1000px;
}

/* Soft Bouncing Animation */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.work-order-card {
    animation: floating 4s ease-in-out infinite;
    /* Glassmorphic border effect */
    background: #f8fafc;
}

.work-order-card:hover {
    animation-play-state: paused;
    border-color: #1E3A8A; /* brand-primary */
}

/* Smooth Backdrop Blur for the popup */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.wo-lifecycle-pop-inner {
    --wo-pop-surface: #f8fafc;
    background: var(--wo-pop-surface);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 40px -12px rgba(15, 23, 42, 0.18);
    padding: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}

.group:hover .wo-lifecycle-pop-inner {
    border-color: rgba(30, 58, 138, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(30, 58, 138, 0.1),
        0 8px 16px -4px rgba(30, 58, 138, 0.12),
        0 28px 55px -15px rgba(15, 23, 42, 0.28);
    transform: translateY(-3px);
}

.wo-lifecycle-pop-inner .wo-pop-section-head {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border-radius: 1rem 1rem 0 0;
}

.wo-lifecycle-pop-inner .wo-pop-financials {
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.35s ease;
}

.group:hover .wo-lifecycle-pop-inner .wo-pop-financials {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.32);
}

.wo-lifecycle-pop-inner .wo-pop-lifecycle li {
    border-radius: 0.5rem;
    padding: 0.4rem 0.5rem;
    margin: 0 -0.15rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wo-lifecycle-pop-inner .wo-pop-lifecycle li:hover {
    background: rgba(241, 245, 249, 0.95);
    transform: translateX(2px);
}

.wo-lifecycle-pop-inner .wo-pop-lifecycle-wrap {
    background: #f8fafc;
    border-radius: 0 0 1rem 1rem;
}

/* Inventory line cards (WO-08291 parts) */
.wo-inventory-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.wo-inventory-card:hover {
    border-color: rgba(30, 58, 138, 0.25);
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
.wo-inventory-tx {
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .wo-inventory-card:hover {
        transform: none;
    }
}

/* Minimal full-viewport dim + blur when a work order row (card + pop) is hovered; stays below card/pop */
.wo-order-row::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(2px) saturate(1.02);
    -webkit-backdrop-filter: blur(2px) saturate(1.02);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.wo-order-row:hover::before {
    opacity: 1;
}
.wo-order-row > .work-order-card {
    position: relative;
    z-index: 40;
}
.wo-order-row > .wo-lifecycle-pop {
    z-index: 100;
    max-width: min(100%, 30.5rem);
}

/* Panel to the left of the card (sm+); may overlap adjacent column */
.wo-lifecycle-pop--left-of-card {
    position: absolute;
    transform-origin: right center;
}
@media (min-width: 640px) {
    .wo-lifecycle-pop--left-of-card::before {
        content: "";
        position: absolute;
        right: 0;
        top: 1.25rem;
        width: 7px;
        height: 7px;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
        border-right: 1px solid #e2e8f0;
        transform: translateX(4px) rotate(45deg);
        z-index: 1;
    }
}

/* Platform hub: Fleetfixs at center, spokes to modules */
.hub-graph {
    position: relative;
    min-height: 22rem;
    width: 100%;
    --hub-line: rgba(148, 163, 184, 0.35);
    --hub-line-active: #60A5FA;
    --hub-line-glow: rgba(96, 165, 250, 0.45);
    --hub-orbit-duration: 88s;
}
@keyframes hub-solar-revolution {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.hub-solar-rotate {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform-origin: 50% 50%;
    will-change: transform;
    pointer-events: auto;
    animation: hub-solar-revolution var(--hub-orbit-duration) linear infinite;
}
/* Cabin stays upright: counter-rotate the module shell only */
@keyframes hub-solar-contra-rot {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
#fleetfixs-hub:hover .hub-solar-rotate,
#fleetfixs-hub:hover .hub-node-leveller,
#fleetfixs-hub:focus-within .hub-solar-rotate,
#fleetfixs-hub:focus-within .hub-node-leveller {
    animation-play-state: paused;
}
.hub-node-slot {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
.hub-node-leveller {
    transform-origin: 50% 50%;
    will-change: transform;
    display: block;
    animation: hub-solar-contra-rot var(--hub-orbit-duration) linear infinite;
}
.hub-node-leveller .hub-node {
    position: relative;
    left: auto;
    top: auto;
}
@media (min-width: 1024px) {
    .hub-graph {
        min-height: 26rem;
    }
}
.hub-lines {
    color: var(--hub-line);
    pointer-events: none;
    z-index: 0;
}
.hub-line-tracks path {
    stroke: rgba(100, 116, 139, 0.3);
    stroke-width: 1;
    fill: none;
    vector-effect: non-scaling-stroke;
}
/* Non-uniform “signal” speed along spokes (one pattern period = 2.1) */
@keyframes hub-signal-crawl {
    0% {
        stroke-dashoffset: 0;
    }
    18% {
        stroke-dashoffset: -0.28;
    }
    38% {
        stroke-dashoffset: -0.72;
    }
    58% {
        stroke-dashoffset: -1.28;
    }
    82% {
        stroke-dashoffset: -1.88;
    }
    100% {
        stroke-dashoffset: -2.1;
    }
}
/* Reveal the full thread when a spoke is active */
@keyframes hub-line-draw {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}
/* Center ripple when a spoke is highlighted (hover, focus, or pinned) */
@keyframes hub-ripple-burst {
    0% {
        transform: scale(0.88);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.32);
        opacity: 0;
    }
}
.hub-line-thread {
    fill: none;
    stroke: rgba(96, 165, 250, 0.52);
    stroke-width: 0.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 0.6 1.5;
    stroke-dashoffset: 0;
    animation: hub-signal-crawl 2.35s linear infinite;
    animation-timing-function: linear;
    filter: none;
    transition:
        stroke 0.45s ease,
        stroke-width 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease;
}
/* Stagger phase + slightly different cadence per spoke (non-linear ensemble) */
.hub-line-thread[data-line="0"]  { animation-delay: 0s; animation-duration: 2.2s; }
.hub-line-thread[data-line="1"]  { animation-delay: -0.28s; animation-duration: 2.55s; }
.hub-line-thread[data-line="2"]  { animation-delay: -0.52s; animation-duration: 2.32s; }
.hub-line-thread[data-line="3"]  { animation-delay: -0.74s; animation-duration: 2.48s; }
.hub-line-thread[data-line="4"]  { animation-delay: -0.95s; animation-duration: 2.18s; }
.hub-line-thread[data-line="5"]  { animation-delay: -1.12s; animation-duration: 2.62s; }
.hub-line-thread[data-line="6"]  { animation-delay: -1.35s; animation-duration: 2.28s; }
.hub-line-thread[data-line="7"]  { animation-delay: -1.55s; animation-duration: 2.5s; }
.hub-line-thread[data-line="8"]  { animation-delay: -1.78s; animation-duration: 2.22s; }
.hub-line-thread[data-line="9"]  { animation-delay: -2s; animation-duration: 2.4s; }
.hub-line-thread[data-line="10"] { animation-delay: -2.18s; animation-duration: 2.58s; }
.hub-line-thread.active {
    stroke: #1E3A8A;
    stroke-width: 1.6;
    animation: hub-line-draw 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    filter: drop-shadow(0 0 6px rgba(30, 58, 138, 0.55)) drop-shadow(0 0 10px rgba(59, 130, 246, 0.28));
    opacity: 1;
    transition: stroke 0.45s ease, stroke-width 0.45s ease, filter 0.45s ease;
}
.hub-line-thread.dim {
    opacity: 0.16;
    animation-play-state: paused;
    filter: none;
    transition: opacity 0.5s ease;
}
.hub-line-thread.dim[data-line="0"]  { transition-delay: 0ms; }
.hub-line-thread.dim[data-line="1"]  { transition-delay: 20ms; }
.hub-line-thread.dim[data-line="2"]  { transition-delay: 40ms; }
.hub-line-thread.dim[data-line="3"]  { transition-delay: 60ms; }
.hub-line-thread.dim[data-line="4"]  { transition-delay: 80ms; }
.hub-line-thread.dim[data-line="5"]  { transition-delay: 100ms; }
.hub-line-thread.dim[data-line="6"]  { transition-delay: 120ms; }
.hub-line-thread.dim[data-line="7"]  { transition-delay: 140ms; }
.hub-line-thread.dim[data-line="8"]  { transition-delay: 160ms; }
.hub-line-thread.dim[data-line="9"]  { transition-delay: 180ms; }
.hub-line-thread.dim[data-line="10"] { transition-delay: 200ms; }
.hub-center-node {
    position: absolute;
    z-index: 5;
    width: clamp(4.5rem, 12vw, 5.5rem);
    height: clamp(4.5rem, 12vw, 5.5rem);
    left: 50%;
    top: 50%;
    margin-left: calc(clamp(4.5rem, 12vw, 5.5rem) / -2);
    margin-top: calc(clamp(4.5rem, 12vw, 5.5rem) / -2);
    border-radius: 9999px;
    background: #1E3A8A;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(30, 58, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    padding: 0.5rem;
    pointer-events: none;
    user-select: none;
}
.hub-center-node::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
#fleetfixs-hub[data-active-line] .hub-center-node::before {
    animation: hub-ripple-burst 0.9s ease-out infinite;
    opacity: 1;
}
.hub-center-node::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    pointer-events: none;
    animation: hub-ring-pulse 2.4s ease-in-out infinite;
}
@keyframes hub-ring-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.04); }
}
.hub-center-node__brand {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.hub-center-node__name {
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
    font-weight: 800;
    color: #fff;
}
.hub-node {
    position: relative;
    z-index: 3;
    display: block;
    transform: none;
    max-width: min(7.5rem, 30vw);
    padding: 0.4rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.5rem;
    cursor: pointer;
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 400px) {
    .hub-node {
        font-size: 0.65rem;
        max-width: min(8.5rem, 32vw);
        padding: 0.45rem 0.5rem;
    }
}
.hub-node:hover,
.hub-node:focus-visible,
.hub-node.is-active {
    outline: none;
    color: #fff;
    background: rgba(30, 58, 138, 0.95);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 8px 24px rgba(15, 23, 42, 0.45);
    z-index: 4;
}
.hub-node:hover,
.hub-node:focus-visible {
    transform: scale(1.08) translateY(-2px);
}
.hub-node.is-active:not(:hover):not(:focus-visible) {
    transform: scale(1.05) translateY(-1px);
}
.hub-legend {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.95);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.5rem 0.75rem 0 0.75rem;
    pointer-events: none;
    margin-top: 0.25rem;
}
@media (prefers-reduced-motion: reduce) {
    .hub-solar-rotate,
    .hub-node-leveller {
        animation: none;
    }
    .hub-solar-rotate {
        transform: none;
    }
    .hub-node-leveller {
        transform: none;
    }
    .hub-node-slot {
        transform: translate(-50%, -50%);
    }
    .hub-node,
    .hub-line-thread {
        transition: none;
    }
    .hub-line-thread {
        animation: none;
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
        stroke-width: 0.65;
    }
    .hub-line-thread.active {
        animation: none;
        filter: drop-shadow(0 0 4px rgba(30, 58, 138, 0.35));
    }
    .hub-line-thread.dim {
        transition: none;
    }
    .hub-center-node::after {
        animation: none;
        opacity: 0.55;
        transform: none;
    }
    #fleetfixs-hub[data-active-line] .hub-center-node::before,
    .hub-center-node::before {
        animation: none;
        opacity: 0.35;
        transform: none;
    }
    .work-order-card { animation: none; }
    .wo-lifecycle-pop { transition: none !important; }
    .wo-order-row::before {
        transition: none;
    }
    .group:hover .wo-lifecycle-pop-inner {
        transform: none;
    }
    .wo-lifecycle-pop-inner .wo-pop-lifecycle li:hover {
        transform: none;
    }
}

/* Enterprise hero: full dashboard replica + hover polish */
.ent-dash {
    --ent-blue: #007bff;
    --ent-navy: #1a2744;
    --ent-radius: 8px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ent-dash-kpi {
    position: relative;
    min-width: 0;
    container-type: inline-size;
    border-radius: var(--ent-radius);
    padding: 0.85rem 1rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.2s ease;
}
.ent-dash-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}
.ent-dash-kpi--pastel.ent-dash-kpi--fuel {
    background: #fffbeb;
    border-color: #fcd34d;
}
.ent-dash-kpi--pastel.ent-dash-kpi--fuel:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.2);
}
.ent-dash-kpi--pastel.ent-dash-kpi--service {
    background: #eff6ff;
    border-color: #93c5fd;
}
.ent-dash-kpi--pastel.ent-dash-kpi--service:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 28px -8px rgba(59, 130, 246, 0.18);
}
.ent-dash-kpi--pastel.ent-dash-kpi--remind {
    background: #ecfdf5;
    border-color: #6ee7b7;
}
.ent-dash-kpi--pastel.ent-dash-kpi--remind:hover {
    border-color: #10b981;
    box-shadow: 0 12px 28px -8px rgba(16, 185, 129, 0.18);
}
.ent-dash-kpi--pastel.ent-dash-kpi--inspect {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.ent-dash-kpi--pastel.ent-dash-kpi--inspect:hover {
    border-color: #8b5cf6;
    box-shadow: 0 12px 28px -8px rgba(139, 92, 246, 0.2);
}

.ent-dash-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.ent-dash-kpi-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.25;
    min-width: 0;
    padding-right: 0.25rem;
}
.ent-dash-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ent-dash-kpi:hover .ent-dash-kpi-icon {
    transform: scale(1.12) rotate(-4deg);
}
.ent-dash-kpi-icon--blue {
    background: rgba(0, 123, 255, 0.12);
    color: #007bff;
}
.ent-dash-kpi-icon--orange {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
}
.ent-dash-kpi-icon--red {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.ent-dash-kpi-icon--green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.ent-dash-kpi-icon--amber {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}
.ent-dash-kpi-icon--sky {
    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;
}
.ent-dash-kpi-icon--emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.ent-dash-kpi-icon--violet {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.ent-dash-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ent-navy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ent-dash-kpi-value--sm {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.ent-dash-kpi-value--currency {
    max-width: 100%;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: clamp(0.6875rem, 4.2cqi + 0.45rem, 1rem);
    letter-spacing: -0.03em;
}
@media (min-width: 640px) {
    .ent-dash-kpi-value {
        font-size: 1.35rem;
    }
    .ent-dash-kpi-value--sm {
        font-size: 1.05rem;
    }
    .ent-dash-kpi-value--currency {
        font-size: clamp(0.75rem, 3.8cqi + 0.42rem, 1.05rem);
    }
}
.ent-dash-kpi-foot {
    font-size: 9px;
    color: #64748b;
    margin-top: 0.35rem;
}

.ent-dash-kpi--badge-wrap {
    padding-top: 1.5rem;
    padding-right: 0.85rem;
}
.ent-dash-kpi-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.ent-dash-kpi--badge-wrap:hover .ent-dash-kpi-badge {
    transform: scale(1.05);
}

.ent-dash-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--ent-radius);
    border: 1px solid #fbbf24;
    background: #fffbeb;
    text-decoration: none;
    color: #78350f;
    font-size: 11px;
    line-height: 1.35;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.ent-dash-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.35);
    border-color: #f59e0b;
}
.ent-dash-alert-icon {
    display: flex;
    color: #d97706;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.ent-dash-alert:hover .ent-dash-alert-icon {
    transform: scale(1.1);
}
.ent-dash-alert-text {
    flex: 1 1 140px;
    min-width: 0;
}
.ent-dash-alert-link {
    margin-left: auto;
    font-weight: 600;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.ent-dash-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ent-dash-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 0.65rem;
    border-radius: var(--ent-radius);
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: default;
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.ent-dash-quick:hover {
    transform: translateY(-3px);
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 8px 16px -6px rgba(15, 23, 42, 0.1);
}
.ent-dash-quick-icon {
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.ent-dash-quick:hover .ent-dash-quick-icon {
    transform: scale(1.12);
    color: var(--ent-blue);
}
.ent-dash-quick-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.2;
}

.ent-dash-panel {
    border-radius: var(--ent-radius);
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.2s ease;
}
.ent-dash-panel:hover {
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.ent-dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ent-dash-panel-title {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}
.ent-dash-panel-link {
    font-size: 10px;
    font-weight: 600;
    color: var(--ent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.ent-dash-panel-link:hover {
    text-decoration: underline;
}

.ent-dash-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}
a:hover .ent-dash-arrow,
.ent-dash-panel-link:hover .ent-dash-arrow {
    transform: translateX(4px);
}

.ent-dash-chart {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    gap: 8px;
    height: 6.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
@media (min-width: 640px) {
    .ent-dash-chart {
        gap: 10px;
        height: 7rem;
    }
}
.ent-dash-bar-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    height: 100%;
}
.ent-dash-bar {
    width: 100%;
    max-width: 28px;
    height: var(--h, 50%);
    border-radius: 4px 4px 2px 2px;
    position: relative;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.2s ease;
    cursor: default;
}
.ent-dash-bar--blue {
    background: var(--ent-blue);
    opacity: 0.88;
}
.ent-dash-bar--blue:hover,
.ent-dash-bar--grad:hover {
    transform: scaleY(1.06) translateY(-2px);
    filter: brightness(1.08);
    opacity: 1;
}
.ent-dash-bar--grad {
    background: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 100%);
    opacity: 0.9;
}
.ent-dash-bar--peak {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.ent-dash-bar-tip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    font-size: 8px;
    font-weight: 600;
    color: #94a3b8;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.ent-dash-bar:hover .ent-dash-bar-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.ent-dash-panel--attention {
    border-color: #fecaca;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.06);
}
.ent-dash-panel--attention:hover {
    border-color: #f87171;
}
.ent-dash-attn-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid #fee2e2;
}
.ent-dash-attn-title {
    font-size: 11px;
    font-weight: 700;
    color: #991b1b;
}
.ent-dash-attn-count {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.ent-dash-panel--attention:hover .ent-dash-attn-count {
    transform: scale(1.08);
}
.ent-dash-attn-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ent-dash-attn-item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ent-dash-attn-item:hover {
    background: #fee2e2;
    border-color: #fecaca;
}
.ent-dash-attn-item-text {
    font-size: 10px;
    color: #7f1d1d;
    line-height: 1.35;
    margin: 0;
}
.ent-dash-mini-btn {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    border: 1px solid #fca5a5;
    background: #fff;
    color: #b91c1c;
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ent-dash-mini-btn:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.ent-dash-status-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 10px;
    margin-bottom: 0.65rem;
}
.ent-dash-status-row:last-child {
    margin-bottom: 0;
}
.ent-dash-status-label {
    color: #64748b;
    font-weight: 500;
}
.ent-dash-status-pct {
    text-align: right;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.ent-dash-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}
.ent-dash-progress-fill {
    height: 100%;
    width: var(--w, 0%);
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}
.ent-dash-panel:hover .ent-dash-progress-fill {
    filter: brightness(1.05);
}
.ent-dash-progress-fill--green {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.ent-dash-progress-fill--amber {
    background: linear-gradient(90deg, #eab308, #facc15);
}
.ent-dash-progress-fill--slate {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.ent-dash-coming {
    position: relative;
    overflow: hidden;
    border-radius: var(--ent-radius);
    padding: 1.35rem 1.15rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}
.ent-dash-coming:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.45);
    border-color: #475569;
}
.ent-dash-coming-bg {
    position: absolute;
    right: -0.5rem;
    bottom: -0.5rem;
    width: 5rem;
    height: 5rem;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transition: transform 0.5s ease, color 0.3s ease;
}
.ent-dash-coming:hover .ent-dash-coming-bg {
    transform: scale(1.08) rotate(-8deg);
    color: rgba(255, 255, 255, 0.1);
}
.ent-dash-coming-kicker {
    position: relative;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.35rem;
}
.ent-dash-coming-value {
    position: relative;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
}
.ent-dash-coming-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background: var(--ent-blue);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ent-dash-coming-cta:hover {
    background: #0066d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 123, 255, 0.5);
}
.ent-dash-coming-cta:hover .ent-dash-arrow {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .ent-dash-kpi,
    .ent-dash-kpi-icon,
    .ent-dash-alert,
    .ent-dash-alert-icon,
    .ent-dash-kpi-badge,
    .ent-dash-quick,
    .ent-dash-quick-icon,
    .ent-dash-panel,
    .ent-dash-bar,
    .ent-dash-bar-tip,
    .ent-dash-attn-count,
    .ent-dash-mini-btn,
    .ent-dash-progress-fill,
    .ent-dash-coming,
    .ent-dash-coming-bg,
    .ent-dash-coming-cta,
    .ent-dash-arrow {
        transition: none;
    }
    .ent-dash-kpi:hover,
    .ent-dash-alert:hover,
    .ent-dash-quick:hover,
    .ent-dash-bar:hover,
    .ent-dash-coming:hover,
    .ent-dash-coming-cta:hover,
    .ent-dash-mini-btn:hover {
        transform: none;
    }
    .ent-dash-kpi:hover .ent-dash-kpi-icon {
        transform: none;
    }
    .ent-dash-bar-tip {
        opacity: 0;
    }
}

/* Platform: governance mini-cards (driver / unit / issue); hover for detail overlay */
.ffx-hover-card__face {
    transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}
.ffx-hover-card--open .ffx-hover-card__face {
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    border-color: rgba(30, 58, 138, 0.18);
}
.ffx-hover-card__overlay {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.99);
    transform-origin: 50% 50%;
    pointer-events: none;
    visibility: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        visibility 0s linear 0.45s;
}
.ffx-hover-card--open .ffx-hover-card__overlay {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    visibility: visible;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(30, 58, 138, 0.06);
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s ease,
        visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .ffx-hover-card__face {
        transition: none;
    }
    .ffx-hover-card__overlay {
        transform: none;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
    .ffx-hover-card--open .ffx-hover-card__overlay {
        transform: none;
        transition: opacity 0.2s ease, visibility 0s;
    }
}

/* Footer: explicit grid so columns stay correct regardless of Tailwind / sheet order */
.site-footer-main {
    display: grid;
    gap: 2.5rem 3rem;
    margin-bottom: 5rem;
    align-items: start;
    grid-template-columns: 1fr;
}
.site-footer-brand,
.site-footer-col {
    min-width: 0;
}
@media (min-width: 640px) and (max-width: 1023px) {
    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-footer-brand {
        grid-column: 1 / -1;
    }
    .site-footer-status {
        grid-column: 1 / -1;
    }
}
@media (min-width: 1024px) {
    .site-footer-main {
        grid-template-columns: minmax(0, 2fr) minmax(0, auto) minmax(0, auto) minmax(12rem, 1.2fr);
        column-gap: 3rem;
        row-gap: 2.5rem;
    }
}
.site-footer-bottom {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
