/* ==========================================================================
   SAAS COMPARISON PAGE — mani-saas-comparison-ltr.css
   Components: pipeline layout, nodes (manual/engine), connectors,
               efficiency-metric, time-metric, comparison table enhancements
   ========================================================================== */

/* --- EFFICIENCY METRIC (big hero number) -------------------------------- */
.efficiency-metric {
    text-align: center;
    margin: 60px 0 48px;
    position: relative;
    z-index: 1;
}

.efficiency-metric .metric-value {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    color: var(--pg-green, #059669);
    letter-spacing: -0.04em;
    line-height: 1;
}

.efficiency-metric .metric-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--pg-muted, #475569);
    margin-top: 8px;
}

/* --- PIPELINE LAYOUT ---------------------------------------------------- */
.logic-container {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.logic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pipeline-title {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- NODES -------------------------------------------------------------- */
.node {
    padding: 20px;
    border-radius: var(--pg-radius, 8px);
    border: 1px solid var(--pg-border, #e2e8f0);
    background: #fff;
    transition: 0.25s;
}

.node:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.node h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pg-navy, #0f172a);
    margin-bottom: 6px;
}

.node p {
    margin: 0 0 8px;
    color: var(--pg-muted, #475569);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Manual node (red accent) */
.manual-node {
    border-left: 3px solid #ef4444;
    background: #fef2f2;
}

.manual-node:hover {
    background: #fee2e2;
}

/* Engine node (green accent) */
.engine-node {
    border-left: 3px solid var(--pg-green, #059669);
    background: #f0fdf4;
}

.engine-node:hover {
    background: #dcfce7;
}

/* Engine core (centered, prominent) */
.engine-core-node {
    text-align: center;
    padding: 28px 20px;
}

/* --- CONNECTOR (arrow between nodes) ------------------------------------ */
.connector {
    width: 2px;
    height: 16px;
    background: var(--pg-border, #e2e8f0);
    margin: 0 auto;
}

.connector.active {
    background: var(--pg-green, #059669);
}

/* --- TIME METRIC -------------------------------------------------------- */
.time-metric {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* --- EFFICIENCY RESULT BOX ---------------------------------------------- */
.efficiency-result {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--pg-green, #059669);
    border-radius: var(--pg-radius, 8px);
    text-align: center;
    margin-top: 16px;
}

.efficiency-result .eff-label {
    font-weight: 700;
    color: var(--pg-green, #059669);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.efficiency-result p {
    font-size: 0.78rem;
    color: var(--pg-muted, #475569);
    margin: 4px 0 0;
}

/* --- EFFICIENCY BADGE (table cell) -------------------------------------- */
.eff-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
}

/* --- COMPARISON TABLE --------------------------------------------------- */
.comparison-table-wrap {
    border-radius: var(--pg-radius, 8px);
    overflow: hidden;
    border: 1px solid var(--pg-border, #e2e8f0);
    position: relative;
    z-index: 1;
}

.comparison-table-wrap .table {
    margin-bottom: 0;
}

.comparison-table-wrap .table th {
    padding: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    background: #f8fafc;
    border-bottom: 2px solid var(--pg-border, #e2e8f0);
}

.comparison-table-wrap .table td {
    padding: 16px 18px;
    font-size: 0.92rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--pg-border, #e2e8f0);
}

.comparison-table-wrap .table tbody tr:hover {
    background: #f8fafc;
}

/* --- DARK BAR ----------------------------------------------------------- */
.comparison-dark-bar {
    background: var(--pg-navy, #0f172a);
    color: #fff;
    padding: clamp(36px, 5vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--pg-radius, 8px);
    margin-top: var(--pg-section-gap, 80px);
    gap: 30px;
}

.comparison-dark-bar h3 { color: #fff; }
.comparison-dark-bar p { color: rgba(255, 255, 255, 0.75); }

/* --- RESPONSIVE --------------------------------------------------------- */
@media (max-width: 768px) {
    .logic-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-dark-bar {
        flex-direction: column;
        text-align: center;
    }
}
