/* ==========================================================================
   DEMO MOCKUPS
   CSS-only app window mockups and data visualization demos for marketing pages.
   Used in homepage feature modals and product page screenshots.
   ========================================================================== */


/* ==========================================================================
   APP WINDOW FRAME
   ========================================================================== */

.mockup {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dde3eb;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(10, 37, 64, 0.08), 0 0 0 1px rgba(10, 37, 64, 0.03);
    font-family: "Geologica", system-ui, sans-serif;
    font-size: 11px;
    color: var(--m-navy, #0a2540);
    line-height: 1.4;
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid #e8ecf1;
}

.mockup-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d8de;
}

.mockup-bar-title {
    font-size: 10px;
    color: #8898aa;
    margin-left: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mockup-body {
    padding: 16px;
}

/* Layout with sidebar */
.mockup-layout {
    display: flex;
    min-height: 200px;
}

.mockup-sidebar {
    width: 140px;
    flex-shrink: 0;
    background: #f7f9fb;
    border-right: 1px solid #e8ecf1;
    padding: 12px 0;
}

.mockup-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 10px;
    color: #8898aa;
    cursor: default;
}

.mockup-nav-item.is-active {
    color: var(--m-navy, #0a2540);
    font-weight: 600;
    background: rgba(77, 190, 190, 0.08);
    border-right: 2px solid var(--m-teal, #4dbebe);
}

.mockup-nav-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.25;
}

.mockup-nav-item.is-active .mockup-nav-icon {
    opacity: 0.5;
}

.mockup-main {
    flex: 1;
    min-width: 0;
    padding: 16px;
}

/* Page header inside mockup */
.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mockup-page-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-navy, #0a2540);
}

.mockup-actions {
    display: flex;
    gap: 6px;
}

.mockup-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 5px;
    background: var(--m-teal, #4dbebe);
    color: #fff;
    white-space: nowrap;
}

.mockup-btn-outline {
    background: transparent;
    color: #8898aa;
    border: 1px solid #dde3eb;
}


/* ==========================================================================
   METRIC CARDS
   ========================================================================== */

.mockup-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mockup-metrics-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mockup-metric {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #edf0f4;
    background: #fafbfc;
}

.mockup-metric-label {
    font-size: 9px;
    color: #8898aa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.mockup-metric-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--m-navy, #0a2540);
    font-variant-numeric: tabular-nums;
}

.mockup-metric-change {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 600;
    margin-left: 4px;
}

.mockup-metric-change.is-up {
    color: #2ea44f;
}

.mockup-metric-change.is-down {
    color: #d73a49;
}


/* ==========================================================================
   TABLE
   ========================================================================== */

.mockup-table {
    width: 100%;
    border-collapse: collapse;
}

.mockup-thead {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8898aa;
    font-weight: 600;
}

.mockup-thead td {
    padding: 6px 8px;
    border-bottom: 1px solid #e8ecf1;
}

.mockup-tr {
    font-size: 10px;
}

.mockup-tr td {
    padding: 8px 8px;
    border-bottom: 1px solid #f0f2f5;
    white-space: nowrap;
}

.mockup-tr:last-child td {
    border-bottom: none;
}

.mockup-td-name {
    font-weight: 600;
    color: var(--m-navy, #0a2540);
}

.mockup-td-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #425466;
}

.mockup-td-dim {
    color: #8898aa;
}


/* ==========================================================================
   PROGRESS / OCCUPANCY BAR
   ========================================================================== */

.mockup-progress {
    height: 6px;
    background: #edf0f4;
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.mockup-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--m-teal, #4dbebe);
}

.mockup-progress-fill.is-high {
    background: #2ea44f;
}

.mockup-progress-fill.is-mid {
    background: #dbab0a;
}

.mockup-progress-fill.is-low {
    background: #d73a49;
}


/* ==========================================================================
   BADGE / STATUS
   ========================================================================== */

.mockup-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.mockup-badge-green {
    background: rgba(46, 164, 79, 0.1);
    color: #2ea44f;
}

.mockup-badge-amber {
    background: rgba(219, 171, 10, 0.1);
    color: #b08800;
}

.mockup-badge-red {
    background: rgba(215, 58, 73, 0.1);
    color: #d73a49;
}

.mockup-badge-blue {
    background: rgba(81, 138, 200, 0.1);
    color: #518ac8;
}


/* ==========================================================================
   SVG CHARTS
   ========================================================================== */

.mockup-chart {
    margin-top: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.mockup-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.mockup-chart-area {
    fill: rgba(77, 190, 190, 0.12);
}

.mockup-chart-line {
    fill: none;
    stroke: var(--m-teal, #4dbebe);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mockup-chart-area-secondary {
    fill: rgba(81, 138, 200, 0.10);
}

.mockup-chart-line-secondary {
    fill: none;
    stroke: var(--m-blue, #518ac8);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mockup-chart-bar {
    fill: var(--m-teal, #4dbebe);
    rx: 2;
}

.mockup-chart-bar-secondary {
    fill: var(--m-blue, #518ac8);
    opacity: 0.5;
    rx: 2;
}

.mockup-chart-grid {
    stroke: #edf0f4;
    stroke-width: 0.5;
}

.mockup-chart-axis {
    font-size: 7px;
    fill: #8898aa;
}

.mockup-chart-label {
    font-size: 8px;
    fill: #425466;
    font-weight: 500;
}

/* Donut / ring chart */
.mockup-donut {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-donut svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.mockup-donut-track {
    fill: none;
    stroke: #edf0f4;
    stroke-width: 5;
}

.mockup-donut-fill {
    fill: none;
    stroke: var(--m-teal, #4dbebe);
    stroke-width: 5;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
}

.mockup-donut-label {
    font-size: 10px;
    color: #425466;
}

.mockup-donut-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--m-navy, #0a2540);
}

/* Chart legend */
.mockup-legend {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 9px;
    color: #8898aa;
}

.mockup-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--m-teal, #4dbebe);
}

.mockup-legend-dot.is-secondary {
    background: var(--m-blue, #518ac8);
}

.mockup-legend-dot.is-tertiary {
    background: #7b61ff;
}


/* ==========================================================================
   WATERFALL / TIER VISUALIZATION
   ========================================================================== */

.mockup-waterfall {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.mockup-wf-tier {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.mockup-wf-tier-label {
    width: 80px;
    color: #425466;
    font-weight: 500;
    flex-shrink: 0;
}

.mockup-wf-tier-bar {
    flex: 1;
    height: 16px;
    background: #edf0f4;
    border-radius: 4px;
    overflow: hidden;
}

.mockup-wf-tier-fill {
    height: 100%;
    border-radius: 4px;
}

.mockup-wf-tier:nth-child(1) .mockup-wf-tier-fill { background: var(--m-teal, #4dbebe); }
.mockup-wf-tier:nth-child(2) .mockup-wf-tier-fill { background: var(--m-blue, #518ac8); }
.mockup-wf-tier:nth-child(3) .mockup-wf-tier-fill { background: #7b61ff; }

.mockup-wf-tier-val {
    width: 50px;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--m-navy, #0a2540);
}


/* ==========================================================================
   CHAT / AI INTERFACE
   ========================================================================== */

.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.5;
}

.mockup-chat-user {
    align-self: flex-end;
    background: var(--m-teal, #4dbebe);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.mockup-chat-ai {
    align-self: flex-start;
    background: #f0f3f6;
    color: #425466;
    border-bottom-left-radius: 3px;
}

.mockup-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 10px;
    color: #8898aa;
    margin-top: 4px;
}

.mockup-chat-input-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--m-teal, #4dbebe);
    opacity: 0.4;
    flex-shrink: 0;
}


/* ==========================================================================
   GANTT / TIMELINE
   ========================================================================== */

.mockup-gantt {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-gantt-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-gantt-label {
    width: 60px;
    font-size: 9px;
    color: #425466;
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
}

.mockup-gantt-track {
    flex: 1;
    height: 14px;
    background: #f0f3f6;
    border-radius: 3px;
    position: relative;
}

.mockup-gantt-bar {
    position: absolute;
    top: 2px;
    height: 10px;
    border-radius: 2px;
    background: var(--m-teal, #4dbebe);
}

.mockup-gantt-bar.is-secondary {
    background: var(--m-blue, #518ac8);
}

.mockup-gantt-bar.is-tertiary {
    background: #7b61ff;
}

.mockup-gantt-bar.is-complete {
    opacity: 0.6;
}


/* ==========================================================================
   COMPARISON COLUMNS (Ledgers)
   ========================================================================== */

.mockup-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mockup-compare-col {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #edf0f4;
}

.mockup-compare-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--m-navy, #0a2540);
    margin-bottom: 8px;
    text-align: center;
}

.mockup-compare-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 9px;
    border-bottom: 1px solid #f5f6f8;
}

.mockup-compare-row:last-child {
    border-bottom: none;
}

.mockup-compare-label {
    color: #425466;
}

.mockup-compare-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--m-navy, #0a2540);
}

.mockup-variance {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}

.mockup-variance.is-pos {
    color: #2ea44f;
    background: rgba(46, 164, 79, 0.08);
}

.mockup-variance.is-neg {
    color: #d73a49;
    background: rgba(215, 58, 73, 0.08);
}


/* ==========================================================================
   REPORT PAGE MOCKUP
   ========================================================================== */

.mockup-report-page {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.mockup-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f4;
}

.mockup-report-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--m-navy, #0a2540);
}

.mockup-report-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-navy, #0a2540);
}

.mockup-report-subtitle {
    font-size: 9px;
    color: #8898aa;
    margin-top: 2px;
}

.mockup-report-section {
    margin-top: 12px;
}

.mockup-report-section-title {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8898aa;
    margin-bottom: 6px;
}

/* Placeholder text lines */
.mockup-text-line {
    height: 5px;
    background: #edf0f4;
    border-radius: 3px;
    margin-bottom: 5px;
}

.mockup-text-line:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   DOCUMENT PARSING MOCKUP
   ========================================================================== */

.mockup-doc {
    display: flex;
    gap: 12px;
}

.mockup-doc-page {
    flex: 1;
    padding: 14px;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
}

.mockup-doc-line {
    height: 5px;
    background: #dde3eb;
    border-radius: 3px;
    margin-bottom: 6px;
}

.mockup-doc-line.is-highlight {
    background: rgba(77, 190, 190, 0.3);
    border: 1px solid rgba(77, 190, 190, 0.4);
}

.mockup-doc-extracted {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-doc-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 5px;
    font-size: 9px;
}

.mockup-doc-field-label {
    color: #8898aa;
    font-weight: 500;
}

.mockup-doc-field-value {
    color: var(--m-navy, #0a2540);
    font-weight: 600;
}


/* ==========================================================================
   SECTION DIVIDER
   ========================================================================== */

.mockup-divider {
    height: 1px;
    background: #edf0f4;
    margin: 12px 0;
}


/* ==========================================================================
   PRODUCT PAGE SCREENSHOT STYLING
   ========================================================================== */

.fm-screenshot {
    border-radius: 10px;
    border: 1px solid #dde3eb;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(10, 37, 64, 0.08);
    background: #ffffff;
}

.fm-screenshot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid #e8ecf1;
}

.fm-screenshot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d8de;
}

.fm-screenshot-title {
    font-size: 10px;
    color: #8898aa;
    margin-left: 6px;
    font-weight: 500;
}

.fm-screenshot-body {
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #fafbfd 0%, #f2f5f9 100%);
}

/* Skeleton content for product page screenshots */
.fm-screenshot-row {
    display: flex;
    gap: 12px;
}

.fm-screenshot-card {
    flex: 1;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #e8ecf1;
    background: #ffffff;
}

.fm-screenshot-chart {
    height: 80px;
    border-radius: 6px;
    border: 1px solid #e8ecf1;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.fm-screenshot-chart svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.fm-screenshot-table {
    border-radius: 6px;
    border: 1px solid #e8ecf1;
    background: #ffffff;
    overflow: hidden;
}

.fm-screenshot-table-row {
    display: flex;
    border-bottom: 1px solid #f0f2f5;
    padding: 8px 12px;
    gap: 16px;
}

.fm-screenshot-table-row:first-child {
    background: #f7f9fb;
}

.fm-screenshot-table-row:last-child {
    border-bottom: none;
}

.fm-screenshot-table-cell {
    height: 5px;
    background: #dde3eb;
    border-radius: 3px;
    flex: 1;
}

.fm-screenshot-table-row:first-child .fm-screenshot-table-cell {
    background: #c1c8d1;
    height: 4px;
}

.fm-screenshot-label {
    font-size: 11px;
    color: #8898aa;
    text-align: center;
    padding: 10px 14px;
    font-weight: 500;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .mockup-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .mockup-layout {
        flex-direction: column;
    }

    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
        padding: 8px 0;
        display: flex;
        overflow-x: auto;
        gap: 0;
    }

    .mockup-nav-item {
        white-space: nowrap;
    }

    .mockup-compare {
        grid-template-columns: 1fr;
    }

    .mockup-doc {
        flex-direction: column;
    }

    .fm-screenshot-row {
        flex-wrap: wrap;
    }
}
