/* Home page portfolio card covers (group a) */

/* ================= Sales & KPI Dashboard: ERP data fills a live dashboard ================= */

.sfp-pc-kpi-floor { left: 150px; right: 40px; bottom: 14px; }

.sfp-pc-kpi-erp {
    position: absolute;
    left: 30px;
    top: 140px;
    width: 128px;
    padding: 12px 11px 13px;
    border-radius: 16px;
    background: linear-gradient(160deg, #475569, #1e293b);
    --t: perspective(800px) rotateY(18deg) rotateX(4deg);
    transform: var(--t);
}

.sfp-pc-kpi-erp-head { color: #fff; line-height: 1.15; margin-bottom: 4px; }
.sfp-pc-kpi-erp-head b { display: block; font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.sfp-pc-kpi-erp-head span { display: block; font-size: 16px; color: #cbd5e1; }

.sfp-pc-kpi-slot {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 9px;
    margin-top: 8px;
    border-radius: 8px;
    background: #334155;
    border: 1px solid #475569;
}

.sfp-pc-kpi-slot i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex: none; }
.sfp-pc-kpi-slot i + i { background: #60a5fa; }
.sfp-pc-kpi-slot span { flex: 1; height: 5px; border-radius: 3px; background: #475569; }

.sfp-pc-kpi-pipe {
    position: absolute;
    left: 164px;
    top: 236px;
    width: 52px;
    height: 5px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, #93c5fd 0 8px, transparent 8px 14px);
}

.sfp-pc-kpi-pipe i {
    position: absolute;
    left: 0;
    top: -6px;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px -2px rgba(37, 99, 235, 0.5);
    opacity: 0;
}

.sfp-pc-kpi-tilt { transform: rotateX(9deg) rotateY(-11deg); }

.sfp-pc-kpi-win { left: 208px; top: 100px; width: 540px; }

.sfp-pc-kpi-win .sfx-bar,
.sfp-pc-pdf-win .sfx-bar,
.sfp-pc-xls-win .sfx-bar {
    height: 38px;
    gap: 8px;
    padding: 0 14px;
    font-size: 16px;
}

.sfp-pc-kpi-win .sfx-bar i,
.sfp-pc-pdf-win .sfx-bar i,
.sfp-pc-xls-win .sfx-bar i { width: 11px; height: 11px; }

.sfp-pc-kpi-body { padding: 12px 14px 14px; }

.sfp-pc-kpi-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.sfp-pc-kpi-tile {
    padding: 8px 13px 9px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.sfp-pc-kpi-tile span { display: block; font-size: 16px; color: #64748b; }
.sfp-pc-kpi-tile b { display: block; font-size: 34px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin: 2px 0 1px; }
.sfp-pc-kpi-tile em { display: block; font-style: normal; font-size: 16px; font-weight: 600; color: #16a34a; }

.sfp-pc-kpi-tile-ring { display: flex; align-items: center; gap: 10px; }

.sfp-pc-kpi-ring { width: 52px; height: 52px; flex: none; transform: rotate(-90deg); }
.sfp-pc-kpi-ring circle { fill: none; stroke-width: 7; }
.sfp-pc-kpi-ring .bg { stroke: #e2e8f0; }
.sfp-pc-kpi-ring .fg { stroke: #2563eb; stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 12.1; }

.sfp-pc-kpi-chart {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 11px;
    height: 88px;
    margin-top: 12px;
    padding: 0 6px;
    border-bottom: 2px solid #e2e8f0;
}

.sfp-pc-kpi-chart i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 0 0;
    background: #bfdbfe;
    transform-origin: bottom;
}

.sfp-pc-kpi-chart i.today { background: #2563eb; }

.sfp-pc-kpi-target {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 78%;
    border-top: 2px dashed #f59e0b;
}

.sfp-pc-kpi-target span {
    position: absolute;
    left: 0;
    top: -14px;
    padding: 1px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.sfp-pc-kpi-live { left: 30px; top: 32px; display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 8px; font-size: 18px; color: #0f172a; }

.sfp-pc-kpi-live i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
}

/* Motion */
.is-active .sfp-pc-kpi-erp { animation: sfp-pc-rise 0.7s cubic-bezier(.2, 1, .4, 1) both 0.1s; }
.is-active .sfp-pc-kpi-slot i { animation: sfp-pc-blink 0.7s ease-in-out 4 both; animation-delay: calc(var(--d) + 0.5s); }
.is-active .sfp-pc-kpi-pipe i { animation: sfp-pc-kpi-pkt 0.9s ease-in both; animation-delay: var(--d); }
.is-active .sfp-pc-kpi-win { animation: sfp-pc-win 0.8s cubic-bezier(.2, 1, .4, 1) both 0.2s; }
.is-active .sfp-pc-kpi-tile b,
.is-active .sfp-pc-kpi-tile em { animation: sfp-pc-up 0.5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: var(--d); }
.is-active .sfp-pc-kpi-tile em { animation-delay: calc(var(--d) + 0.15s); }
.is-active .sfp-pc-kpi-ring .fg { animation: sfp-pc-kpi-ring 1.4s cubic-bezier(.3, 0, .2, 1) both 2.4s; }
.is-active .sfp-pc-kpi-chart i { animation: sfp-pc-grow 0.6s cubic-bezier(.2, 1.1, .4, 1) both; animation-delay: var(--d); }
.is-active .sfp-pc-kpi-target { animation: sfp-pc-wipe 0.8s ease both 3.1s; }
.is-active .sfp-pc-kpi-live { animation: sfp-pc-pop 0.5s cubic-bezier(.2, 1.5, .4, 1) both 5.6s; }

@keyframes sfp-pc-kpi-pkt {
    0% { opacity: 0; transform: translateX(-6px) scale(0.7); }
    20% { opacity: 1; transform: translateX(4px) scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(52px) scale(0.8); }
}

@keyframes sfp-pc-kpi-ring {
    from { stroke-dashoffset: 150.8; }
    to { stroke-dashoffset: 12.1; }
}

/* ================= Accounting docs: 10 bank files reconciled by one Macro run ================= */

.sfp-pc-pdf-floor { left: 40px; right: 30px; bottom: 14px; }

.sfp-pc-pdf-stack {
    position: absolute;
    left: 44px;
    top: 130px;
    width: 156px;
    height: 206px;
}

.sfp-pc-pdf-paper {
    position: absolute;
    inset: 0;
    padding: 0 12px 12px;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transform: translate(var(--x), var(--y)) rotate(var(--r));
}

.sfp-pc-pdf-paper > b {
    display: block;
    margin: 0 -12px 10px;
    padding: 6px 12px;
    background: var(--c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sfp-pc-pdf-amt {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    border-top: 1px dashed #e2e8f0;
}

.sfp-pc-pdf-amt i { flex: 1; height: 6px; border-radius: 3px; background: #e9eef4; }
.sfp-pc-pdf-amt em { font-style: normal; font-size: 16px; font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }

.sfp-pc-pdf-fly { position: absolute; left: 166px; top: 176px; }

.sfp-pc-pdf-fly i {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 40px;
    border-radius: 5px;
    background: #fff linear-gradient(var(--c), var(--c)) top / 100% 9px no-repeat;
    box-shadow: 0 8px 16px -6px rgba(15, 23, 42, 0.4);
    opacity: 0;
}

.sfp-pc-pdf-tilt { transform: rotateX(8deg) rotateY(-9deg); }

.sfp-pc-pdf-win { left: 222px; top: 96px; width: 378px; }

.sfp-pc-pdf-tool {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f6;
}

.sfp-pc-pdf-run {
    flex: none;
    padding: 5px 14px 6px;
    border-radius: 9px;
    background: linear-gradient(#3b82f6, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 0 #1e40af, 0 8px 14px -6px rgba(37, 99, 235, 0.6);
}

.sfp-pc-pdf-prog { flex: 1; height: 9px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.sfp-pc-pdf-prog span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); }

.sfp-pc-pdf-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.15fr;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 18px;
    color: #334155;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sfp-pc-pdf-row:last-of-type { border-bottom: 0; }
.sfp-pc-pdf-row span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; color: #475569; }
.sfp-pc-pdf-row.is-bad { background: #fffbeb; }
.sfp-pc-pdf-row.head { height: 32px; background: #f8fafc; font-size: 16px; color: #94a3b8; font-weight: 500; }
.sfp-pc-pdf-row.head span:first-child { font-family: inherit; color: #94a3b8; }

.sfp-pc-pdf-st { position: relative; height: 28px; }

.sfp-pc-pdf-st em,
.sfp-pc-pdf-st b {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1px 11px 2px;
    border-radius: 999px;
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
}

.sfp-pc-pdf-st em { color: #94a3b8; background: #f1f5f9; opacity: 0; }
.sfp-pc-pdf-st b.ok { background: #dcfce7; color: #15803d; }
.sfp-pc-pdf-st b.bad { background: #fef3c7; color: #b45309; }

.sfp-pc-pdf-scan {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 127px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid rgba(37, 99, 235, 0.45);
    background: rgba(59, 130, 246, 0.07);
    opacity: 0;
}

.sfp-pc-pdf-exc {
    position: absolute;
    left: 580px;
    top: 214px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    border-left: 5px solid #f59e0b;
    background: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.sfp-pc-pdf-exc-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    font-size: 20px;
    font-weight: 800;
}

.sfp-pc-pdf-exc span:not(.sfp-pc-pdf-exc-ico) { display: block; font-size: 16px; color: #64748b; }
.sfp-pc-pdf-exc b { font-size: 38px; font-weight: 700; color: #0f172a; }
.sfp-pc-pdf-exc em { margin-left: 8px; font-style: normal; font-size: 16px; font-weight: 600; color: #b45309; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.sfp-pc-pdf-cur { left: 300px; top: 168px; opacity: 0; }

/* Motion */
.is-active .sfp-pc-pdf-paper { animation: sfp-pc-pdf-deal 0.6s cubic-bezier(.2, 1.1, .4, 1) both; }
.is-active .sfp-pc-pdf-paper:nth-child(2) { animation-delay: 0.12s; }
.is-active .sfp-pc-pdf-paper:nth-child(3) { animation-delay: 0.24s; }
.is-active .sfp-pc-pdf-win { animation: sfp-pc-win 0.8s cubic-bezier(.2, 1, .4, 1) both 0.15s; }
.is-active .sfp-pc-pdf-cur { animation: sfp-pc-pdf-cur 2s ease-in-out both 0.4s; }
.is-active .sfp-pc-pdf-run { animation: sfp-pc-pdf-press 0.4s ease both 1.3s; }
.is-active .sfp-pc-pdf-prog span { animation: sfp-pc-pdf-prog 3.4s linear both 1.5s; }
.is-active .sfp-pc-pdf-fly i { animation: sfp-pc-pdf-fly 0.9s cubic-bezier(.5, 0, .3, 1) both; animation-delay: var(--d); }
.is-active .sfp-pc-pdf-scan { animation: sfp-pc-pdf-scan 2.6s ease-in-out both 2.2s; }
.is-active .sfp-pc-pdf-st em { animation: sfp-pc-fade-out 0.2s ease both; animation-delay: var(--d); }
.is-active .sfp-pc-pdf-st b { animation: sfp-pc-pop 0.4s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--d) + 0.1s); }
.is-active .sfp-pc-pdf-row.is-bad { animation: sfp-pc-pdf-tint 0.5s ease both; animation-delay: calc(var(--d) + 0.1s); }
.is-active .sfp-pc-pdf-exc { animation: sfp-pc-pdf-exc 0.7s cubic-bezier(.2, 1.3, .4, 1) both 5.1s; }

@keyframes sfp-pc-pdf-deal {
    from { opacity: 0; transform: translate(-30px, 30px) rotate(-20deg); }
    to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

@keyframes sfp-pc-pdf-cur {
    0% { opacity: 0; transform: translate(70px, 120px); }
    15% { opacity: 1; }
    45% { transform: translate(0, 0); }
    50% { transform: translate(0, 2px) scale(0.88); }
    56% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(50px, 70px); }
}

@keyframes sfp-pc-pdf-press {
    0%, 100% { transform: none; box-shadow: 0 3px 0 #1e40af, 0 8px 14px -6px rgba(37, 99, 235, 0.6); }
    40% { transform: translateY(3px); box-shadow: 0 0 0 #1e40af, 0 3px 6px -3px rgba(37, 99, 235, 0.6); }
}

@keyframes sfp-pc-pdf-prog {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes sfp-pc-pdf-fly {
    0% { opacity: 0; transform: translate(-20px, 10px) scale(0.9); }
    20% { opacity: 1; transform: translate(0, 0) scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(96px, 30px) scale(0.6) rotate(8deg); }
}

@keyframes sfp-pc-pdf-scan {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(108px); }
    100% { opacity: 0; transform: translateY(108px); }
}

@keyframes sfp-pc-pdf-tint {
    from { background-color: rgba(255, 251, 235, 0); }
    to { background-color: #fffbeb; }
}

@keyframes sfp-pc-pdf-exc {
    from { opacity: 0; transform: translateX(30px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

/* ================= Excel report recovery: broken lookups turn back into green numbers ================= */

.sfp-pc-xls-floor { left: 40px; right: 30px; bottom: 14px; }

.sfp-pc-xls-tilt { transform: rotateX(8deg) rotateY(-9deg); }

.sfp-pc-xls-fx {
    position: absolute;
    left: 34px;
    top: 26px;
    width: 368px;
    height: 50px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #fff;
    overflow: hidden;
    white-space: nowrap;
    transform: translateZ(30px);
}

.sfp-pc-xls-ref {
    display: grid;
    place-items: center;
    width: 52px;
    height: 100%;
    flex: none;
    border-right: 1px solid #e8edf3;
    background: #f8fafc;
    color: #475569;
    font-size: 17px;
    font-weight: 600;
}

.sfp-pc-xls-fxi { flex: none; padding: 0 10px; color: #94a3b8; font-size: 18px; font-style: italic; font-weight: 600; }

.sfp-pc-xls-code { position: relative; flex: 1; height: 100%; font-size: 19px; color: #334155; }

.sfp-pc-xls-code .old,
.sfp-pc-xls-code .new { position: absolute; left: 0; top: 0; line-height: 48px; }

.sfp-pc-xls-code .old { opacity: 0; }
.sfp-pc-xls-code .fn { font-weight: 700; color: #0f172a; }
.sfp-pc-xls-code .rg { color: #15803d; font-weight: 600; }

.sfp-pc-xls-code .bad {
    display: inline-block;
    padding: 0 5px;
    margin: 0 1px;
    border-radius: 5px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
    line-height: 30px;
}

.sfp-pc-xls-win { left: 34px; top: 98px; width: 468px; }

.sfp-pc-xls-sheet {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sfp-pc-xls-sheet th {
    height: 26px;
    padding: 0 8px;
    border: 1px solid #edf1f5;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.sfp-pc-xls-sheet tr > th:first-child { width: 36px; }

.sfp-pc-xls-sheet td {
    position: relative;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #edf1f5;
    color: #334155;
    font-size: 18px;
    text-align: right;
}

.sfp-pc-xls-sheet td:first-of-type { text-align: left; }
.sfp-pc-xls-sheet td.h { background: #f8fafc; color: #0f172a; font-weight: 600; text-align: left; }
.sfp-pc-xls-sheet tr.sum td { border-top: 2px solid #cbd5e1; }

.sfp-pc-xls-sheet td.fix { padding: 0; width: 34%; }
.sfp-pc-xls-sheet td.fix:last-child { width: 26%; }

.sfp-pc-xls-sheet td.fix em,
.sfp-pc-xls-sheet td.fix b {
    position: absolute;
    inset: 0;
    padding: 0 12px;
    font-style: normal;
    line-height: 33px;
}

.sfp-pc-xls-sheet td.fix em { background: #fee2e2; color: #dc2626; font-weight: 700; opacity: 0; }
.sfp-pc-xls-sheet td.fix b { position: static; display: block; background: #f0fdf4; color: #15803d; font-weight: 600; }
.sfp-pc-xls-sheet tr.sum td.fix b { font-weight: 700; background: #dcfce7; }

.sfp-pc-xls-card {
    position: absolute;
    left: 522px;
    top: 120px;
    width: 228px;
    padding: 12px 16px 28px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #fff;
    transform: translateZ(40px);
}

.sfp-pc-xls-card-t { display: block; font-size: 17px; font-weight: 600; color: #334155; }

.sfp-pc-xls-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 124px;
    margin-top: 10px;
    padding: 0 6px;
    border-bottom: 2px solid #e2e8f0;
}

.sfp-pc-xls-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 0 0;
    background: linear-gradient(#4ade80, #16a34a);
    transform-origin: bottom;
}

.sfp-pc-xls-bars em {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    text-align: center;
    font-style: normal;
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
    opacity: 0;
}

.sfp-pc-xls-axis { display: flex; gap: 6px; margin-top: 6px; }
.sfp-pc-xls-axis span { flex: 1; text-align: center; font-size: 16px; color: #64748b; white-space: nowrap; }

.sfp-pc-xls-ok {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    width: max-content;
    margin: 0 auto;
    padding: 6px 20px 7px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 20px -8px rgba(22, 163, 74, 0.6);
}

/* Motion */
.is-active .sfp-pc-xls-win { animation: sfp-pc-win 0.8s cubic-bezier(.2, 1, .4, 1) both 0.1s; }
.is-active .sfp-pc-xls-fx { --z: 30px; animation: sfp-pc-win 0.7s cubic-bezier(.2, 1, .4, 1) both 0.4s; }
.is-active .sfp-pc-xls-card { --z: 40px; animation: sfp-pc-win 0.8s cubic-bezier(.2, 1, .4, 1) both 0.6s; }
.is-active .sfp-pc-xls-code .old { animation: sfp-pc-xls-old 2.6s linear both; }
.is-active .sfp-pc-xls-code .bad { animation: sfp-pc-xls-ring 0.6s ease-in-out 1.1s 2 both; }
.is-active .sfp-pc-xls-code .new { animation: sfp-pc-xls-type 0.9s steps(22, end) both 2.6s; }
.is-active .sfp-pc-xls-sheet td.fix em { animation: sfp-pc-xls-blink 0.6s ease-in-out 0.8s 2, sfp-pc-fade-out 0.25s ease both; animation-delay: 0.8s, var(--d); }
.is-active .sfp-pc-xls-sheet td.fix b { animation: sfp-pc-xls-cell 0.5s ease both; animation-delay: calc(var(--d) + 0.05s); }
.is-active .sfp-pc-xls-bars em { animation: sfp-pc-xls-old 4.9s linear both; }
.is-active .sfp-pc-xls-bars i { animation: sfp-pc-grow 0.6s cubic-bezier(.2, 1.1, .4, 1) both; animation-delay: var(--d); }
.is-active .sfp-pc-xls-ok { animation: sfp-pc-pop 0.5s cubic-bezier(.2, 1.5, .4, 1) both 6s; }

/* visible from the start, gone at the very end of its run */
@keyframes sfp-pc-xls-old {
    0%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes sfp-pc-xls-type {
    from { clip-path: inset(-10px 100% -10px 0); }
    to { clip-path: inset(-10px 0 -10px 0); }
}

@keyframes sfp-pc-xls-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.35); }
}

@keyframes sfp-pc-xls-blink {
    0%, 100% { background-color: #fee2e2; }
    50% { background-color: #fecaca; }
}

@keyframes sfp-pc-xls-cell {
    from { opacity: 0; background-color: #bbf7d0; }
    40% { opacity: 1; background-color: #bbf7d0; }
}

/* ================= Shared cover keyframes (group a) ================= */

@keyframes sfp-pc-rise {
    from { opacity: 0; transform: translateY(18px) var(--t, translateZ(0)); }
    to { opacity: 1; transform: var(--t, translateZ(0)); }
}

@keyframes sfp-pc-win {
    from { opacity: 0; transform: translateY(24px) translateZ(-40px); }
    to { opacity: 1; transform: translateZ(var(--z, 0)); }
}

@keyframes sfp-pc-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes sfp-pc-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.7); }
    to { opacity: 1; transform: none; }
}

@keyframes sfp-pc-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes sfp-pc-wipe {
    from { clip-path: inset(-40px 100% -40px 0); }
    to { clip-path: inset(-40px 0 -40px 0); }
}

@keyframes sfp-pc-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes sfp-pc-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes sfp-pc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reduced motion: hide purely decorative movers */
@media (prefers-reduced-motion: reduce) {
    .sfp-pc-kpi-pipe i,
    .sfp-pc-pdf-fly i,
    .sfp-pc-pdf-scan,
    .sfp-pc-pdf-cur { display: none; }
}
