/* ============================================================
   Interactive Product Demo — section #product
   Self-contained widget styles. All classes prefixed .pd-
   ============================================================ */

/* ---------- App window ---------- */
.pd-app {
    max-width: 1080px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(14, 21, 36, 0.16), 0 4px 14px rgba(14, 21, 36, 0.06);
    overflow: hidden;
    font-size: 13.5px;
    color: #0A0A0A;
}

.pd-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: #F7FAFC;
    border-bottom: 1px solid #E6EBF1;
}
.pd-dots { display: flex; gap: 6px; }
.pd-dots span { width: 11px; height: 11px; border-radius: 50%; }
.pd-dots span:nth-child(1) { background: #FF5F57; }
.pd-dots span:nth-child(2) { background: #FEBC2E; }
.pd-dots span:nth-child(3) { background: #28C840; }
.pd-url {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    color: #6B7C93;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.pd-live-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0E7D45;
    background: rgba(18, 183, 106, 0.12);
    border: 1px solid rgba(18, 183, 106, 0.3);
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}

.pd-layout { display: flex; min-height: 560px; }

/* ---------- Sidebar ---------- */
.pd-sidebar {
    width: 208px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0E1524 0%, #141B2E 100%);
    color: #B9C3D6;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pd-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    padding: 4px 10px 16px;
    letter-spacing: -0.01em;
}
.pd-sidebar-logo .pd-logo-mark {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, #E84038 0%, #F25C54 50%, #FF8C42 100%);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 800;
}
.pd-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8fa0bd;
}
.pd-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.pd-nav-item.active {
    background: rgba(242, 92, 84, 0.16);
    color: #FFFFFF;
}
.pd-nav-badge {
    margin-left: auto;
    background: #F25C54;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.pd-sidebar-spacer { flex: 1; }
.pd-erp-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 11.5px;
    line-height: 1.3;
}
.pd-erp-chip .pd-erp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #12B76A;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.25);
    flex-shrink: 0;
}
.pd-erp-chip strong { color: #fff; display: block; font-size: 12px; }

/* ---------- Main pane ---------- */
.pd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #FAFBFD; }

/* Step tabs */
.pd-steps {
    display: flex;
    gap: 6px;
    padding: 14px 18px 0;
    border-bottom: 1px solid #E6EBF1;
    background: #FFFFFF;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-steps::-webkit-scrollbar { display: none; }
.pd-step {
    appearance: none;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px 11px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #8898AA;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}
.pd-step:hover { color: #425466; }
.pd-step-num {
    width: 19px; height: 19px;
    border-radius: 50%;
    border: 1.5px solid #CBD5E1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    transition: all 0.25s;
}
.pd-step.active { color: #0A0A0A; border-bottom-color: #F25C54; }
.pd-step.active .pd-step-num {
    border-color: transparent;
    background: linear-gradient(135deg, #E84038, #FF8C42);
    color: #fff;
}
.pd-step.done .pd-step-num {
    border-color: transparent;
    background: #12B76A;
    color: #fff;
}
.pd-step.done .pd-step-num::before { content: "✓"; }
.pd-step.done .pd-step-num span { display: none; }

/* Stages */
.pd-stagewrap { flex: 1; position: relative; }
.pd-stage { display: none; padding: 18px; animation: pd-fadein 0.35s ease; }
.pd-stage.active { display: block; }
@keyframes pd-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Stage 1: Inbox ---------- */
.pd-inbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}
.pd-inbox-title { font-size: 15px; font-weight: 800; }
.pd-inbox-sub { font-size: 12px; color: #6B7C93; }
.pd-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.pd-doc-row.featured { position: relative; border-color: rgba(242, 92, 84, 0.5); box-shadow: 0 4px 18px rgba(242, 92, 84, 0.10); cursor: pointer; }
.pd-doc-row.featured:hover { box-shadow: 0 6px 24px rgba(242, 92, 84, 0.18); }
.pd-doc-ico {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: #F1F5F9;
}
.pd-doc-row.featured .pd-doc-ico { background: rgba(242, 92, 84, 0.1); }
.pd-doc-meta { flex: 1; min-width: 0; }
.pd-doc-vendor { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-doc-sub { font-size: 11.5px; color: #6B7C93; margin-top: 2px; }
.pd-doc-amount { font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.pd-src-chip {
    font-size: 10px; font-weight: 700;
    color: #475569; background: #F1F5F9;
    padding: 2px 7px; border-radius: 99px;
    letter-spacing: 0.02em;
}
.pd-status-chip {
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 99px;
    white-space: nowrap;
}
.pd-status-chip.new { color: #C2410C; background: #FFF1E5; }
.pd-status-chip.ok { color: #0E7D45; background: rgba(18, 183, 106, 0.12); }
.pd-status-chip.dup { color: #9333EA; background: rgba(147, 51, 234, 0.1); }
.pd-process-btn {
    appearance: none;
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, #E84038 0%, #F25C54 50%, #FF8C42 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(232, 64, 56, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.pd-process-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232, 64, 56, 0.45); }
.pd-process-btn.pulse { animation: pd-pulse 1.8s ease-in-out infinite; }
@keyframes pd-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(232, 64, 56, 0.35); }
    50% { box-shadow: 0 4px 14px rgba(232, 64, 56, 0.35), 0 0 0 9px rgba(242, 92, 84, 0.12); }
}
.pd-try-hint {
    position: absolute;
    top: -11px;
    right: 14px;
    background: #0E1524;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* ---------- Stage 2: Extraction ---------- */
.pd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pd-pane {
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 12px;
    overflow: hidden;
}
.pd-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #F0F4F8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.pd-pane-head .pd-muted { font-weight: 600; color: #6B7C93; font-size: 11.5px; }

/* Fake invoice document */
.pd-doc { padding: 14px 16px; font-size: 11px; color: #24303f; line-height: 1.45; }
.pd-doc [data-f] { border-radius: 4px; transition: background 0.4s, box-shadow 0.4s; }
.pd-doc [data-f].flash {
    background: rgba(255, 187, 54, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 187, 54, 0.35);
}
.pd-doc-top { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1.5px solid #24303f; padding-bottom: 8px; }
.pd-doc-lettermark {
    width: 34px; height: 34px;
    border: 1.5px solid #24303f;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800;
    flex-shrink: 0;
    margin: 0 8px;
}
.pd-doc-lettermark small { font-size: 6.5px; font-weight: 600; }
.pd-doc-col { flex: 1; min-width: 0; }
.pd-doc-col h4 { font-size: 12.5px; font-weight: 800; margin: 0 0 2px; }
.pd-doc-mid { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #D8DFE8; flex-wrap: wrap; }
.pd-doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 10.5px; }
.pd-doc-table th {
    text-align: left; font-weight: 700;
    border-bottom: 1px solid #24303f;
    padding: 3px 4px;
    font-size: 9.5px; letter-spacing: 0.03em; text-transform: uppercase; color: #52616f;
}
.pd-doc-table td { padding: 4px; border-bottom: 1px solid #EDF1F5; }
.pd-doc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-doc-totals { margin-top: 8px; margin-left: auto; width: 210px; max-width: 100%; font-size: 11px; }
.pd-doc-totals div { display: flex; justify-content: space-between; padding: 2px 4px; font-variant-numeric: tabular-nums; }
.pd-doc-totals .pd-doc-total { font-weight: 800; font-size: 12.5px; border-top: 1.5px solid #24303f; margin-top: 3px; padding-top: 4px; }
.pd-doc-cae { margin-top: 10px; padding-top: 6px; border-top: 1px dashed #C6CFDA; font-size: 9.5px; color: #52616f; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* Extraction fields */
.pd-fields { padding: 8px 6px; }
.pd-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0.45;
    transition: opacity 0.3s;
}
.pd-field.filled { opacity: 1; }
.pd-field-label { width: 118px; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #6B7C93; letter-spacing: 0.01em; }
.pd-field-value { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-shimmer {
    height: 11px;
    flex: 1;
    max-width: 150px;
    border-radius: 6px;
    background: linear-gradient(90deg, #EEF2F6 25%, #E2E8F0 50%, #EEF2F6 75%);
    background-size: 200% 100%;
    animation: pd-shimmer 1.1s linear infinite;
}
@keyframes pd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pd-field .pd-val {
    display: none;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: pd-fadein 0.3s ease;
}
.pd-field .pd-conf {
    display: none;
    font-size: 10px;
    font-weight: 800;
    color: #0E7D45;
    background: rgba(18, 183, 106, 0.1);
    padding: 1.5px 6px;
    border-radius: 99px;
    flex-shrink: 0;
}
.pd-field.filled .pd-shimmer { display: none; }
.pd-field.filled .pd-val, .pd-field.filled .pd-conf { display: inline-block; }
.pd-extract-lines { border-top: 1px solid #F0F4F8; margin-top: 6px; padding: 8px 10px 10px; }
.pd-extract-lines-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #8898AA; margin-bottom: 5px; }
.pd-extract-line {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 11.5px; padding: 3.5px 2px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
    font-variant-numeric: tabular-nums;
}
.pd-extract-line.filled { opacity: 1; transform: none; }
.pd-extract-line strong { font-weight: 700; }

/* Progress bar / status line */
.pd-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #425466;
    min-height: 22px;
}
.pd-progress .pd-spinner {
    width: 14px; height: 14px;
    border: 2px solid #F1D0CC;
    border-top-color: #F25C54;
    border-radius: 50%;
    animation: pd-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-progress.done { color: #0E7D45; }
.pd-progress.done .pd-spinner { display: none; }

/* ---------- Stage 3: Matching ---------- */
.pd-match-docs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.pd-match-doc {
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 11.5px;
    line-height: 1.3;
}
.pd-match-doc strong { display: block; font-size: 12px; }
.pd-match-doc span { color: #6B7C93; font-size: 10.5px; }
.pd-match-link { color: #CBD5E1; font-weight: 700; }
.pd-match-table-wrap { background: #fff; border: 1px solid #E6EBF1; border-radius: 12px; overflow-x: auto; }
.pd-match-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.pd-match-table th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8898AA;
    padding: 9px 12px;
    border-bottom: 1px solid #E6EBF1;
    background: #F7FAFC;
    white-space: nowrap;
}
.pd-match-table td { padding: 9px 12px; border-bottom: 1px solid #F0F4F8; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-match-table tr:last-child td { border-bottom: none; }
.pd-match-table .pd-item-name { font-weight: 700; white-space: normal; min-width: 130px; }
.pd-mrow { opacity: 0.55; transition: opacity 0.3s, background 0.3s; }
.pd-mrow .pd-mstate { width: 26px; text-align: center; }
.pd-mrow .pd-mstate .pd-dotspin {
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid #E2E8F0;
    border-top-color: #94A3B8;
    border-radius: 50%;
    animation: pd-spin 0.7s linear infinite;
}
.pd-mrow .pd-ok-ico, .pd-mrow .pd-warn-ico { display: none; font-weight: 800; }
.pd-mrow.checking { opacity: 1; background: #FBFDFF; }
.pd-mrow.ok, .pd-mrow.warn { opacity: 1; }
.pd-mrow.ok .pd-dotspin, .pd-mrow.warn .pd-dotspin { display: none; }
.pd-mrow.ok .pd-ok-ico { display: inline; color: #12B76A; }
.pd-mrow.warn .pd-warn-ico { display: inline; color: #D97706; }
.pd-mrow.warn { background: #FFFBEB; }
.pd-mrow.warn .pd-price-bad { color: #B45309; font-weight: 800; }
.pd-delta-chip {
    display: none;
    font-size: 10px;
    font-weight: 800;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 1.5px 7px;
    border-radius: 99px;
    margin-left: 6px;
}
.pd-mrow.warn .pd-delta-chip { display: inline-block; }
.pd-match-result {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #92400E;
    animation: pd-fadein 0.35s ease;
}
.pd-match-result.show { display: flex; }

/* ---------- Stage 4: ERP + Anomaly ---------- */
.pd-erp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pd-journal { padding: 6px 8px 10px; }
.pd-jline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    font-size: 11.5px;
    border-radius: 7px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s, transform 0.3s;
    font-variant-numeric: tabular-nums;
}
.pd-jline.filled { opacity: 1; transform: none; }
.pd-jline .pd-jacct { color: #425466; }
.pd-jline .pd-jacct code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    background: #F1F5F9;
    padding: 1px 5px;
    border-radius: 5px;
    margin-right: 6px;
    color: #475569;
}
.pd-jline .pd-jamt { font-weight: 700; white-space: nowrap; }
.pd-erp-status {
    margin: 4px 14px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 99px;
    padding: 5px 12px;
    opacity: 0;
    transition: opacity 0.3s;
}
.pd-erp-status.show { opacity: 1; }
.pd-erp-status.parked { color: #92400E; background: #FEF3C7; border: 1px solid #FDE68A; }
.pd-erp-status.posted { color: #0E7D45; background: rgba(18, 183, 106, 0.12); border: 1px solid rgba(18, 183, 106, 0.3); }

.pd-anomaly {
    border: 1px solid #FDE68A;
    background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 70%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}
.pd-anomaly.show { opacity: 1; transform: none; }
.pd-anomaly .pd-pane-head { border-bottom-color: #FDE68A; color: #92400E; }
.pd-anomaly-body { padding: 12px 14px; font-size: 12.5px; line-height: 1.55; color: #425466; }
.pd-anomaly-body strong { color: #0A0A0A; }
.pd-anomaly-compare {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.pd-anomaly-tile {
    flex: 1;
    min-width: 105px;
    background: #FFFFFF;
    border: 1px solid #E6EBF1;
    border-radius: 9px;
    padding: 8px 10px;
    text-align: center;
}
.pd-anomaly-tile small { display: block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #8898AA; margin-bottom: 2px; }
.pd-anomaly-tile b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-anomaly-tile.bad { border-color: #FDE68A; background: #FFFBEB; }
.pd-anomaly-tile.bad b { color: #B45309; }
.pd-anomaly-hist { font-size: 11.5px; color: #6B7C93; margin-top: 4px; }
.pd-anomaly-actions { display: flex; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap; }
.pd-btn {
    appearance: none;
    font-family: inherit;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pd-btn-primary {
    border: none;
    background: linear-gradient(135deg, #E84038 0%, #F25C54 50%, #FF8C42 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 64, 56, 0.3);
}
.pd-btn-primary:hover { transform: translateY(-1px); }
.pd-btn-ghost {
    border: 1px solid #CBD5E1;
    background: #fff;
    color: #425466;
}
.pd-btn-ghost:hover { border-color: #94A3B8; }
.pd-resolution {
    display: none;
    margin: 0 14px 14px;
    background: rgba(18, 183, 106, 0.08);
    border: 1px solid rgba(18, 183, 106, 0.3);
    color: #0E7D45;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    animation: pd-fadein 0.35s ease;
}
.pd-resolution.show { display: block; }

/* Final banner */
.pd-final {
    display: none;
    margin-top: 16px;
    background: linear-gradient(135deg, #0E1524 0%, #1A0F1F 100%);
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: pd-fadein 0.4s ease;
}
.pd-final.show { display: flex; }
.pd-final-text { flex: 1; min-width: 220px; }
.pd-final-title { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.pd-final-sub { font-size: 12.5px; color: #B9C3D6; }
.pd-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-final .pd-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.pd-final .pd-btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.pd-final a.pd-btn-primary { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Demo as the hero visual ---------- */
.hero-visual--demo { perspective: none; }
.hero-visual--demo .pd-root { width: 100%; }
.hero-visual--demo .pd-app {
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.14);
}
@media (max-width: 1024px) {
    .hero.hero--centered .hero-visual.hero-visual--demo { display: flex; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .pd-sidebar { display: none; }
    .pd-split, .pd-erp-grid { grid-template-columns: 1fr; }
    .pd-layout { min-height: 0; }
}
@media (max-width: 560px) {
    .pd-app { font-size: 13px; border-radius: 14px; }
    .pd-stage { padding: 12px; }
    .pd-doc-row { flex-wrap: wrap; row-gap: 8px; }
    .pd-doc-meta { flex: 1 1 calc(100% - 50px); }
    .pd-doc-amount { order: 3; }
    .pd-status-chip { order: 4; margin-left: auto; }
    .pd-process-btn { width: 100%; order: 5; }
    .pd-field-label { width: 96px; }
    .pd-url { display: none; }
    .pd-final { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-stage, .pd-process-btn.pulse, .pd-spinner, .pd-dotspin, .pd-shimmer { animation: none !important; }
    .pd-mrow, .pd-jline, .pd-field, .pd-anomaly, .pd-extract-line { transition: none !important; }
}
