/* 01. ROOT TOKENS & SAFETY RESETS */
.pg-compare {
    --ink: #0b1120;
    --ink2: #1a2340;
    --slate: #5b6b8a;
    --silver: #94a3b8;
    --mist: #e2e8f0;
    --snow: #f8fafc;
    --white: #ffffff;
    --blue: #2563eb;
    --blue-l: #eff6ff;
    --green: #059669;
    --green-l: #ecfdf5;
    --red: #dc2626;
    --red-l: #fef2f2;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --r-m: 12px;
    --r-l: 16px;
    --r-xl: 20px;
    font-family: var(--sans);
    color: var(--ink2);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.pg-compare *,
.pg-compare *::before,
.pg-compare *::after {
    box-sizing: border-box;
}

.pg-compare a {
    text-decoration: none;
    color: inherit;
}

.pg-compare img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* 02. LAYOUT */
.pg-compare .cp-mx {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.pg-compare .cp-mx--center {
    text-align: center;
}

/* 03. SHARED TYPOGRAPHY */
.cp-eyelet {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    text-align: center;
}

.cp-eyelet--light {
    color: rgba(255, 255, 255, .6);
}

.cp-sh {
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.6px;
    line-height: 1.2;
    margin-bottom: 14px;
    text-align: center;
    word-break: break-word;
}

.cp-sh em {
    font-style: normal;
    color: var(--blue);
}

.cp-sp {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    max-width: 620px;
    margin: 0 auto 52px;
    line-height: 1.75;
    text-align: center;
}

/* HERO */
.cp-hero {
    padding: 84px 0 72px;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    position: relative;
}

.cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 50% -5%, rgba(37, 99, 235, .07), transparent 65%);
    pointer-events: none;
}

.cp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(226, 232, 240, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, .45) 1px, transparent 1px);
    background-size: var(--mnx-rail, 44px) var(--mnx-rail, 44px);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, #000 10%, transparent 75%);
    -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 75%);
}

.cp-hero .cp-mx {
    position: relative;
    z-index: 2;
}

.cp-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 22px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
}

.cp-hero h1 em {
    font-style: normal;
    color: var(--blue);
}

.cp-hero-sub {
    font-size: 17px;
    font-weight: 500;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.cp-hero-sub strong {
    color: var(--ink);
    font-weight: 700;
}

.cp-hero-verdict {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 100px;
    padding: 20px 44px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.cp-vd {
    text-align: center;
}

.cp-vd-num {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -1px;
    line-height: 1;
}

.cp-vd-txt {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    white-space: normal;
}

.cp-vd-div {
    width: 1px;
    height: 40px;
    background: var(--mist);
    flex-shrink: 0;
}

.cp-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.cp-hero-actions .mni-btn {
    min-width: 200px;
}

/* COST CARDS (4 Columns Setup) */
.cp-cost {
    padding: 88px 0;
    background: var(--snow);
    border-bottom: 1px solid var(--mist);
}

.cp-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 32px;
    align-items: stretch;
    width: 100%;
}

.cp-cost-card {
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 36px 28px 28px;
    position: relative;
    transition: box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cp-cost-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
    border-color: #cbd5e1;
}

.cp-cost-card--win {
    border-color: var(--green);
    border-width: 2px;
}

.cp-cost-card--win:hover {
    border-color: var(--green);
    box-shadow: 0 18px 52px rgba(5, 150, 105, .14);
}

.cp-cost-winner-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 7px 22px;
    border-radius: 0 0 12px 12px;
    white-space: nowrap;
}

.cp-cost-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cp-cost-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}

.cp-cost-logo--odoo {
    background: var(--red-l);
    color: var(--red);
}

.cp-cost-logo--erpnext {
    background: #faf5ff;
    color: #7c3aed;
}

.cp-cost-logo--mani {
    background: var(--blue-l);
    color: var(--blue);
}

.cp-cost-brand span {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.cp-cost-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 12px;
    background: var(--red-l);
    color: var(--red);
    border: 1px solid #fecaca;
    width: fit-content;
}

.cp-cost-tag--win {
    background: var(--green-l);
    color: var(--green);
    border-color: #a7f3d0;
}

.cp-cost-num {
    font-size: 34px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.cp-cost-num span {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    letter-spacing: 0;
    margin-left: 5px;
}

.cp-cost-num--green {
    color: var(--green);
}

.cp-cost-discrimination {
    color: var(--green) !important;
    font-size: 34px !important;
    font-weight: 900 !important;
}

.cp-cost-scale {
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: var(--r-m);
    padding: 4px 16px;
    margin-bottom: 22px;
}

.cp-cost-scale--win {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cp-cs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--mist);
}

.cp-cost-scale--win .cp-cs-row {
    border-bottom-color: #bbf7d0;
}

.cp-cs-row:last-of-type {
    border-bottom: none;
}

.cp-cs-u {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    flex: 1;
    padding-right: 8px;
}

.cp-cs-p {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.cp-cs-row--accent .cp-cs-p {
    color: var(--red);
}

.cp-cs-row--green .cp-cs-p {
    color: var(--green);
}

.cp-cs-note {
    font-size: 12px;
    font-weight: 700;
    color: var(--silver);
    text-align: center;
    display: block;
    padding: 10px 0 6px;
}

.cp-cs-note--win {
    color: var(--green);
}

.cp-cost-breakdown {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.cp-cost-breakdown li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.55;
}

.cp-cost-breakdown li i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--red);
}

.cp-cost-breakdown--win li {
    color: var(--ink2);
}

.cp-cost-breakdown--win li i {
    color: var(--green);
}

.cp-cost-breakdown--win li strong {
    color: var(--ink);
    font-weight: 800;
}

.cp-cost-verdict {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 11px 16px;
    border-radius: var(--r-m);
    text-align: center;
    margin-top: auto;
}

.cp-cost-verdict--bad {
    background: var(--red-l);
    color: var(--red);
}

.cp-cost-verdict--win {
    background: var(--green-l);
    color: var(--green);
}

.cp-cost-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--blue-l);
    border: 1px solid #bfdbfe;
    border-radius: var(--r-xl);
    padding: 22px 32px;
    max-width: 1080px;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}

.cp-callout-icon {
    font-size: 24px;
    color: var(--blue);
    flex-shrink: 0;
}

.cp-callout-body {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink2);
    line-height: 1.65;
    min-width: 100px;
}

.cp-callout-body strong {
    color: var(--ink);
    font-weight: 800;
}

.cp-cost-note {
    font-size: 13px;
    font-weight: 500;
    color: var(--silver);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0;
}

.cp-cost-note i {
    margin-right: 6px;
}

.cp-cost-note a {
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.cp-cost-note a:hover {
    border-color: var(--blue);
}

/* COMPARISON BOARD */
.cp-board-sec {
    padding: 88px 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
}

.cp-board-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-xl);
    border: 1px solid var(--mist);
}

.cp-board {
    width: 100%;
    min-width: 880px;
}

.cp-row {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr 2.2fr;
    border-bottom: 1px solid var(--mist);
    transition: background .15s;
}

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

.cp-row:not(.cp-head):hover {
    background: var(--snow);
}

.cp-head {
    background: var(--ink);
}

.cp-col {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--mist);
    line-height: 1.45;
}

.cp-col:last-child {
    border-right: none;
}

.cp-head .cp-col {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-right-color: rgba(255, 255, 255, .08);
    padding: 16px 18px;
}

.cp-head .cp-col.is-master {
    color: #fff;
    background: var(--blue);
}

.cp-col--feat {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink2);
}

.cp-col.is-master {
    color: var(--green);
    font-weight: 700;
    background: rgba(5, 150, 105, .04);
    gap: 8px;
}

.cp-win-icon {
    color: var(--green);
    font-size: 13px;
    flex-shrink: 0;
}

/* PILLARS */
.cp-pillars {
    padding: 88px 0;
    background: var(--snow);
    border-bottom: 1px solid var(--mist);
}

.cp-pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.cp-pillar {
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.cp-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    opacity: 0;
    transition: opacity .25s;
}

.cp-pillar:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .07);
}

.cp-pillar:hover::before {
    opacity: 1;
}

.cp-pillar-num {
    font-size: 52px;
    font-weight: 900;
    color: var(--mist);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 16px;
}

.cp-pillar h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.cp-pillar p {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 22px;
    flex: 1;
}

.cp-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.cp-pillar-tags span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 5px 13px;
    background: var(--blue-l);
    color: var(--blue);
    border-radius: 7px;
}

/* MIGRATION */
.cp-migrate {
    padding: 88px 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
}

.cp-mig-steps {
    max-width: 720px;
    margin: 0 auto 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-mig-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--snow);
    border: 1.5px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 24px 28px;
    transition: border-color .25s, box-shadow .25s;
}

.cp-mig-step:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 24px rgba(37, 99, 235, .09);
}

.cp-mig-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cp-mig-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cp-mig-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-l);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cp-mig-body {
    flex: 1;
    min-width: 0;
}

.cp-mig-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.3;
}

.cp-mig-body p {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.72;
    margin: 0;
}

.cp-mig-cta {
    text-align: center;
}

/* FAQ */
.cp-faq {
    padding: 88px 0;
    background: var(--snow);
    border-bottom: 1px solid var(--mist);
}

.cp-faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-faq-item {
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: var(--r-l);
    overflow: hidden;
    transition: border-color .25s, box-shadow .2s;
}

.cp-faq-item--open {
    border-color: var(--blue);
    box-shadow: 0 6px 24px rgba(37, 99, 235, .08);
}

.cp-faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-family: var(--sans);
}

.cp-faq-q span {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
    flex: 1;
}

.cp-faq-icon {
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
}

.cp-faq-a {
    padding: 0 24px 22px;
}

.cp-faq-a p {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.78;
    margin: 0;
}

/* CTA */
.cp-cta {
    padding: 72px 0;
    background: var(--snow);
}

.cp-cta-box {
    max-width: 860px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: var(--r-xl);
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cp-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.cp-cta-box::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: rgba(37, 99, 235, .18);
    border-radius: 50%;
    filter: blur(80px);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.cp-cta-box .cp-eyelet {
    position: relative;
    z-index: 2;
}

.cp-cta-box h2 {
    font-size: 35px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.6px;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cp-cta-box h2 em {
    font-style: normal;
    color: #60a5fa;
}

.cp-cta-box p {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.78;
    position: relative;
    z-index: 2;
}

.cp-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
}

.cp-cta-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cp-cta-trust span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    gap: 7px;
}

.cp-cta-trust span i {
    color: var(--green);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .cp-cost-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .cp-cost-card--win {
        order: -1;
    }
}

@media (max-width: 990px) {
    .cp-pillar-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .cp-hero-h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .pg-compare .cp-mx {
        padding: 0 24px;
    }

    .cp-hero {
        padding: 50px 0;
    }

    .cp-hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .cp-sh {
        font-size: 26px;
        letter-spacing: -.4px;
    }

    .cp-sp {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .cp-hero-verdict {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        border-radius: var(--r-xl);
    }

    .cp-vd-div {
        display: none;
    }

    .cp-cost-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .cp-board-wrap {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cp-cost-callout {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .cp-cost-callout .mni-btn {
        width: 100%;
    }

    .cp-mig-step {
        padding: 20px;
        gap: 16px;
    }

    .cp-faq-q {
        padding: 16px 20px;
    }

    .cp-cta-box {
        padding: 48px 32px;
    }

    .cp-cta-box h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .cp-row {
        grid-template-columns: 1.8fr 1.2fr 1.2fr 1.2fr 1.8fr;
    }
}

@media (max-width: 480px) {
    .pg-compare .cp-mx {
        padding: 0 16px;
    }

    .cp-hero h1 {
        font-size: 28px;
    }

    .cp-sh {
        font-size: 24px;
    }

    .cp-board-wrap {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }

    .cp-cost-card {
        padding: 32px 20px 24px;
    }

    .cp-cost-num {
        font-size: 32px;
    }

    .cp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-pillar {
        padding: 28px 20px;
    }

    .cp-pillar-num {
        font-size: 40px;
    }

    .cp-cta-box {
        padding: 40px 20px;
    }

    .cp-cta-box h2 {
        font-size: 24px;
    }

    .cp-cta-trust {
        gap: 12px;
    }
}

/* SCROLL REVEAL */
.cp-cost-card,
.cp-pillar,
.cp-mig-step,
.cp-faq-item {
    opacity: 0;
    animation: none;
}

.cp-cost-card.cp-vis,
.cp-pillar.cp-vis,
.cp-mig-step.cp-vis,
.cp-faq-item.cp-vis {
    animation: mni-rise .5s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes mni-rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}