﻿/* ===== PACKAGE PAGE COMPONENTS ===== */
/* ===== DEPLOYMENT TOGGLE ===== */
.deploy-toggle {
    display: inline-flex;
    background: var(--paper-warm);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid var(--line);
}

    .deploy-toggle button {
        border: none;
        background: transparent;
        color: var(--text);
        padding: 0.7rem 1.4rem;
        border-radius: 999px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
        font-size: 0.92rem;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

        .deploy-toggle button.on {
            background: var(--brand-orange);
            color: #fff;
            box-shadow: 0 4px 12px rgba(235, 80, 23, 0.25);
        }

        .deploy-toggle button .badge-pop {
            background: var(--brand-lime);
            color: #3a4112;
            font-size: 0.62rem;
            padding: 2px 7px;
            border-radius: 999px;
            font-weight: 800;
            letter-spacing: 0.04em;
        }

        .deploy-toggle button.on .badge-pop {
            background: #fff;
            color: var(--brand-orange);
        }

/* ===== CALCULATOR PANEL ===== */
.calc-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px 34px;
    box-shadow: var(--shadow-md);
    position: relative;
}

    .calc-panel .calc-label {
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--text-2);
        margin-top: 10px;
        margin-bottom: 12px;
    }

.calc-control {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

    .stepper button {
        width: 38px;
        height: 44px;
        border: none;
        background: transparent;
        font-size: 1.1rem;
        color: var(--brand-orange);
        cursor: pointer;
        transition: 0.15s;
        font-weight: 700;
    }

        .stepper button:hover {
            background: var(--paper-warm);
        }

        .stepper button:disabled {
            color: #ccc;
            cursor: not-allowed;
        }

    .stepper input {
        width: 80px;
        height: 44px;
        border: none;
        background: transparent;
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        color: var(--ink);
        font-family: "Poppins", sans-serif;
    }

        .stepper input:focus {
            outline: none;
        }

.calc-hint {
    font-size: 0.78rem;
    color: var(--text-2);
    margin-top: 6px;
}

.calc-slider {
    display: block;
    width: 100%;
    max-width: 520px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--paper-warm);
    border-radius: 999px;
    outline: none;
    margin: 14px auto 0;
}

    .calc-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--brand-orange);
        cursor: pointer;
        border: 3px solid #fff;
        box-shadow: 0 2px 8px rgba(235, 80, 23, 0.4);
    }

    .calc-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--brand-orange);
        cursor: pointer;
        border: 3px solid #fff;
        box-shadow: 0 2px 8px rgba(235, 80, 23, 0.4);
    }

/* ===== PRICE CARDS ===== */
.price-card {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 32px 28px;
    height: 100%;
    position: relative;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .price-card:hover {
        border-color: var(--brand-orange);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .price-card.popular {
        border: 2px solid var(--brand-orange);
        box-shadow: var(--shadow-md);
    }

        .price-card.popular::before {
            content: "Most Popular";
            position: absolute;
            top: -13px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--brand-orange);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            padding: 5px 14px;
            border-radius: 999px;
            text-transform: uppercase;
        }

    .price-card.enterprise {
        background: var(--ink);
        color: #f5f0eb;
        border-color: var(--ink);
    }

        .price-card.enterprise h3,
        .price-card.enterprise .price-amount {
            color: #fff;
        }

        .price-card.enterprise .price-feat li {
            color: #d8d2cc;
        }

        .price-card.enterprise .price-meta-row {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

            .price-card.enterprise .price-meta-row .pm-lbl {
                color: #a99f96;
            }

            .price-card.enterprise .price-meta-row .pm-val {
                color: #fff;
            }

        .price-card.enterprise .price-per {
            color: #a99f96;
        }

        .price-card.enterprise .price-from {
            color: #a99f96;
        }

.empty-line {
    border-top: 1px dashed var(--line);
    height: 10px;
    margin-top: 10px;
}

.price-tier {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.price-card.enterprise .price-tier {
    color: var(--brand-lime);
}

.price-card h3 {
    font-weight: 700;
    margin: 6px 0 4px;
    font-size: 1.4rem;
}

.price-tagline {
    font-size: 0.92rem;
    color: var(--text-2);
    min-height: 42px;
}

.price-card.enterprise .price-tagline {
    color: #bdb6b0;
}

.price-from {
    font-size: 0.78rem;
    color: var(--text-2);
    font-weight: 600;
    margin-top: 18px;
}

.price-amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 0 2px;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-2);
}

.price-amount {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.price-per {
    font-size: 0.85rem;
    color: var(--text-2);
    font-weight: 500;
}

.price-contact {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 6px 0;
}

.price-card.enterprise .price-contact {
    color: #fff;
}

.price-meta-row {
    background: var(--paper-cream);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0 16px;
}

    .price-meta-row .pm-line {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        font-size: 0.85rem;
        padding: 3px 0;
    }

    .price-meta-row .pm-lbl {
        color: var(--text-2);
    }

    .price-meta-row .pm-val {
        color: var(--ink);
        font-weight: 600;
        text-align: right;
    }

    .price-meta-row .pm-total {
        border-top: 1px dashed var(--line);
        margin-top: 8px;
        padding-top: 10px;
        font-weight: 600;
        font-size: 0.95rem;
    }

        .price-meta-row .pm-total .pm-val {
            color: var(--brand-orange);
            font-size: 1rem;
        }

.price-card.enterprise .price-meta-row .pm-total {
    border-top-color: rgba(255, 255, 255, 0.15);
}

    .price-card.enterprise .price-meta-row .pm-total .pm-val {
        color: var(--brand-lime);
    }

.price-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    flex: 1;
}

    .price-feat li {
        display: flex;
        gap: 0.65rem;
        padding: 7px 0;
        font-size: 0.9rem;
        color: var(--text);
        align-items: flex-start;
    }

        .price-feat li i {
            color: var(--brand-orange);
            margin-top: 3px;
            flex: 0 0 auto;
        }

.price-card.enterprise .price-feat li i {
    color: var(--brand-lime);
}

.price-feat li.muted {
    color: #aaa;
}

    .price-feat li.muted i {
        color: #ccc;
    }

.price-cta {
    width: 100%;
}

.price-card.enterprise .btn-login {
    background: var(--brand-lime);
    color: var(--ink);
    border-color: var(--brand-lime);
}

    .price-card.enterprise .btn-login:hover {
        background: #dae955;
        border-color: #dae955;
        color: var(--ink);
    }

/* ===== ADD-ONS / NOTES ===== */
.pkg-note-card {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .pkg-note-card .note-ic {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #fff;
        color: var(--brand-orange);
        display: grid;
        place-items: center;
        font-size: 1.3rem;
        flex: 0 0 auto;
    }

    .pkg-note-card h6 {
        margin: 0 0 4px;
        font-weight: 600;
    }

    .pkg-note-card p {
        margin: 0;
        color: var(--text-2);
        font-size: 0.88rem;
    }

/* ===== COMPARE TABLE ===== */
.pkg-cmp-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pkg-cmp {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

    .pkg-cmp th,
    .pkg-cmp td {
        padding: 16px 20px;
        text-align: center;
        border-bottom: 1px solid var(--line-2);
        font-size: 0.82rem;
    }

        .pkg-cmp th:first-child,
        .pkg-cmp td:first-child {
            text-align: left;
            font-weight: 600;
            color: var(--ink);
        }

    .pkg-cmp thead th {
        background: var(--paper-warm);
        font-weight: 600;
        color: var(--ink);
        letter-spacing: 0.02em;
        font-size: 0.95rem;
    }

        .pkg-cmp thead th.popular-col {
            background: linear-gradient(180deg, var(--brand-orange), #c63e0c);
            color: #fff;
        }

        .pkg-cmp thead th .cmp-tier {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-2);
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-top: 2px;
        }

        .pkg-cmp thead th.popular-col .cmp-tier {
            color: rgba(255, 255, 255, 0.85);
        }

    .pkg-cmp tbody tr:hover {
        background: var(--paper-cream);
    }

    .pkg-cmp tbody td.popular-col {
        background: rgba(235, 80, 23, 0.05);
        font-weight: 700;
    }

    .pkg-cmp .cmp-yes {
        color: #3a7d18;
        font-size: 1.15rem;
    }

    .pkg-cmp .cmp-no {
        color: #cbb9b1;
        font-size: 1.05rem;
    }

    .pkg-cmp .cmp-section {
        background: linear-gradient(90deg, rgba(235, 80, 23, 0.16), rgba(205, 219, 55, 0.22));
        font-weight: 800;
        color: var(--brand-orange);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.75rem;
    }

    .pkg-cmp tr:has(.cmp-section):hover {
        background: transparent;
    }

/* tiny pulse on price changes */
@keyframes pricePulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.04);
        color: var(--brand-orange);
    }

    100% {
        transform: scale(1);
    }
}

.price-amount.pulse {
    animation: pricePulse 0.35s ease;
}

.price-meta-row .pm-val.pulse {
    animation: pricePulse 0.35s ease;
}
