/* Pricing and team pages. */

.fee-shell {
    width: 100%;
    min-height: 100%;
    padding: 32px clamp(16px, 3vw, 48px) 40px;
    background:
        radial-gradient(circle at 92% 4%, rgba(22, 127, 229, 0.12), transparent 24%),
        radial-gradient(circle at 8% 18%, rgba(137, 177, 87, 0.14), transparent 26%),
        var(--page-bg-agent);
    color: var(--text-color-primary);
}

.fee-hero {
    max-width: 1040px;
    margin: 0 auto 36px;
    text-align: center;
}

.fee-eyebrow {
    margin-bottom: 12px;
    color: var(--edm-accent-blue-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.fee-title {
    margin: 0 0 14px;
    color: var(--text-color-primary);
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.fee-subtitle {
    max-width: none;
    margin: 0 auto;
    color: var(--text-color-secondary);
    font-size: 17px;
    line-height: 1.65;
    white-space: nowrap;
}

.fee-plan-grid {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.fee-plan-card {
    --fee-plan-accent-start: var(--edm-accent);
    --fee-plan-accent-end: var(--edm-accent);
    position: relative;
    min-width: 0;
    min-height: 590px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(var(--card-bg-agent), var(--card-bg-agent)) padding-box,
        linear-gradient(90deg, var(--fee-plan-accent-start), var(--fee-plan-accent-end)) border-box;
    border: 0;
    border-top: 5px solid transparent;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fee-plan-card-featured {
    --fee-plan-accent-start: var(--edm-accent);
    --fee-plan-accent-end: var(--edm-accent-blue);
    box-shadow: 0 16px 42px rgba(59, 125, 35, 0.14);
}

.fee-plan-card-poc,
.fee-plan-card-pro,
.fee-plan-card-enterprise {
    background: var(--card-bg-agent);
    border-top: 0;
}

.fee-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(35, 60, 90, 0.12);
}

.fee-plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    color: var(--edm-accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--edm-background-accent);
    border-radius: var(--card-radius-pill);
}

.fee-plan-header {
    min-height: 164px;
}

.fee-plan-audience {
    margin-bottom: 12px;
    color: var(--text-color-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fee-plan-name {
    margin: 0 0 12px;
    color: var(--text-color-primary);
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.fee-plan-description {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.fee-plan-price-row {
    min-height: 76px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 16px;
}

.fee-plan-price {
    color: var(--text-color-primary);
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.fee-plan-price-custom {
    font-size: clamp(28px, 2.25vw, 36px);
    letter-spacing: -0.035em;
}

.fee-plan-period {
    color: var(--text-color-muted);
    font-size: 13px;
    font-weight: 500;
}

.fee-plan-button {
    width: 100%;
    min-height: 44px;
    margin-bottom: 26px;
    border-radius: var(--input-radius);
}

.fee-plan-card:not(.fee-plan-card-featured) .fee-plan-button {
    color: var(--edm-text-button);
    background: var(--edm-background-header);
    border: 1px solid var(--edm-outline);
}

.fee-plan-card:not(.fee-plan-card-featured) .fee-plan-button:hover,
.fee-plan-card:not(.fee-plan-card-featured) .fee-plan-button:focus,
.fee-plan-card:not(.fee-plan-card-featured) .fee-plan-button:active,
.fee-plan-card:not(.fee-plan-card-featured) .fee-plan-button:focus:active {
    color: var(--edm-text-button);
    background: var(--edm-background-header);
    border-color: var(--edm-outline);
    box-shadow: none;
    filter: none !important;
    opacity: 1 !important;
}

.fee-plan-card-featured .fee-plan-button {
    background: var(--edm-accent);
}

.fee-plan-card-featured .fee-plan-button:hover,
.fee-plan-card-featured .fee-plan-button:focus,
.fee-plan-card-featured .fee-plan-button:active,
.fee-plan-card-featured .fee-plan-button:focus:active {
    color: var(--edm-text-button);
    background: var(--edm-accent-dark);
    box-shadow: none;
    filter: none !important;
    opacity: 1 !important;
}

.fee-plan-features {
    padding-top: 22px;
    border-top: 1px solid var(--edm-outline);
}

.fee-plan-includes {
    min-height: 38px;
    margin-bottom: 16px;
    color: var(--text-color-primary);
    font-size: 14px;
    font-weight: 650;
}

.fee-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fee-feature-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--text-color-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.fee-feature-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--edm-accent-dark);
    font-size: 12px;
    font-weight: 800;
    background: var(--edm-background-accent);
    border-radius: 50%;
}

.fee-footnote {
    margin: 22px auto 0;
    color: var(--text-color-muted);
    font-size: 12px;
    text-align: center;
}

.pricing-contact-modal .modal-content {
    overflow: hidden;
    color: var(--text-color-primary);
    background: var(--card-bg-agent);
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.pricing-contact-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
}

.pricing-contact-modal-header {
    padding: 20px 26px 16px;
    background: transparent;
    border-bottom: 1px solid var(--edm-outline);
}

.pricing-contact-modal-title {
    color: var(--text-color-primary);
    font-size: 18px;
    font-weight: 600;
}

.pricing-contact-modal-body {
    padding: 26px;
}

.pricing-contact-description {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--text-color-secondary);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: normal;
}

.pricing-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
    padding: 4px 18px;
    background: var(--edm-background-main-sub);
    border-radius: 14px;
}

.pricing-contact-item {
    min-width: 0;
    padding: 16px 0;
    background: transparent;
    border-bottom: 1px solid var(--edm-outline);
    border-radius: 0;
}

.pricing-contact-item:last-child {
    border-bottom: 0;
}

.pricing-contact-label {
    color: var(--edm-text-subtitle);
    font-size: 12px;
    font-weight: 600;
}

.pricing-contact-value {
    margin-top: 7px;
    overflow: hidden;
    color: var(--text-color-primary);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pricing-contact-modal-footer {
    padding: 16px 26px 20px;
    background: transparent;
    border-top: 1px solid var(--edm-outline);
}

.pricing-contact-close {
    min-width: 112px;
}

@media (max-width: 1280px) {
    .fee-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fee-plan-card {
        min-height: 540px;
    }
}

@media (max-width: 680px) {
    .fee-shell {
        padding: 24px 16px 32px;
    }

    .fee-hero {
        margin-bottom: 26px;
        text-align: left;
    }

    .fee-subtitle {
        font-size: 15px;
        white-space: normal;
    }

    .fee-plan-grid {
        grid-template-columns: 1fr;
    }

    .fee-plan-card {
        min-height: 0;
        padding: 24px;
    }

    .fee-plan-header {
        min-height: 0;
    }

    .pricing-contact-modal-header,
    .pricing-contact-modal-body,
    .pricing-contact-modal-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .pricing-contact-grid {
        grid-template-columns: 1fr;
    }

}
