/* ============================================
   WOLOWO v2 - Pricing
   Cards, Toggle, Comparison Table, Sticky CTA
   ============================================ */

/* ---- Billing Toggle ---- */

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pricing-toggle__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--w-text-light);
    transition: var(--w-transition-fast);
}

.pricing-toggle__label.is-active {
    color: var(--w-dark);
    font-weight: 600;
}

.pricing-toggle__switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--w-border);
    border-radius: var(--w-radius-full);
    cursor: pointer;
    transition: var(--w-transition);
}

.pricing-toggle__switch.is-yearly {
    background: var(--w-primary);
}

.pricing-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--w-shadow-sm);
    transition: transform 0.2s ease;
}

.pricing-toggle__switch.is-yearly::after {
    transform: translateX(24px);
}

.pricing-toggle__badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.2rem 0.75rem;
    border-radius: var(--w-radius-full);
}

/* ---- Pricing Cards ---- */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--w-transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--w-shadow-lg);
}

/* Highlighted Card (HOSTING) */
.pricing-card--highlighted {
    border-color: var(--w-plan-hosting);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card--highlighted:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 16px 50px rgba(249, 115, 22, 0.2);
}

/* Badge */
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--w-plan-hosting);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 1rem;
    border-radius: var(--w-radius-full);
    white-space: nowrap;
}

/* Card Header */
.pricing-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--w-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-card--free .pricing-card__icon { background: var(--w-plan-free); }
.pricing-card--creator .pricing-card__icon { background: var(--w-plan-creator); }
.pricing-card--hosting .pricing-card__icon { background: var(--w-plan-hosting); }
.pricing-card--pro .pricing-card__icon { background: var(--w-plan-pro); }

.pricing-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pricing-card--free .pricing-card__name { color: var(--w-plan-free); }
.pricing-card--creator .pricing-card__name { color: var(--w-plan-creator); }
.pricing-card--hosting .pricing-card__name { color: var(--w-plan-hosting); }
.pricing-card--pro .pricing-card__name { color: var(--w-plan-pro); }

/* Price */
.pricing-card__price {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-card__amount {
    font-family: var(--w-font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--w-dark);
}

.pricing-card__currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--w-dark);
    vertical-align: super;
}

.pricing-card__period {
    font-size: 0.9375rem;
    color: var(--w-text-light);
    font-weight: 400;
}

.pricing-card__subtitle {
    font-size: 0.8125rem;
    color: var(--w-text-muted);
    margin-bottom: 1.5rem;
    min-height: 1.25rem;
}

/* Features */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--w-text);
}

.pricing-card__features li i {
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.pricing-card__features li .fa-check {
    color: #16a34a;
}

.pricing-card__features li .fa-xmark {
    color: var(--w-text-muted);
}

/* CTA Button */
.pricing-card__cta {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--w-radius);
    border: 2px solid transparent;
    transition: var(--w-transition);
    text-decoration: none;
}

.pricing-card--free .pricing-card__cta {
    background: transparent;
    border-color: var(--w-plan-free);
    color: var(--w-plan-free);
}

.pricing-card--creator .pricing-card__cta {
    background: transparent;
    border-color: var(--w-plan-creator);
    color: var(--w-plan-creator);
}

.pricing-card--hosting .pricing-card__cta {
    background: var(--w-plan-hosting);
    color: #fff;
}

.pricing-card--pro .pricing-card__cta {
    background: var(--w-plan-pro);
    color: #fff;
}

.pricing-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--w-shadow);
    opacity: 0.9;
    color: inherit;
}

.pricing-card--hosting .pricing-card__cta:hover,
.pricing-card--pro .pricing-card__cta:hover {
    color: #fff;
}

/* ---- Agency Section ---- */

.agency-section {
    background: var(--w-bg-light);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius-lg);
    padding: 2.5rem 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.agency-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.agency-section__text {
    color: var(--w-text-light);
    margin: 0;
}

/* ---- Comparison Table ---- */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.comparison-table thead th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
    border-bottom: 2px solid var(--w-border);
    position: sticky;
    top: 70px;
    background: #fff;
    z-index: 5;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table thead th.is-highlighted {
    color: var(--w-plan-hosting);
    background: var(--w-plan-hosting-light);
}

.comparison-table tbody td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--w-border);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--w-dark);
}

.comparison-table tbody td.is-highlighted {
    background: var(--w-plan-hosting-light);
}

.comparison-table tbody tr:hover td {
    background: var(--w-bg-light);
}

.comparison-table tbody tr:hover td.is-highlighted {
    background: #fff1e6;
}

.comparison-table .fa-check {
    color: #16a34a;
}

.comparison-table .fa-xmark {
    color: #d1d5db;
}

.comparison-table__category {
    background: var(--w-bg-light);
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--w-text-muted) !important;
}

/* Table Scroll Wrapper (mobile) */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 3rem 0;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
}

/* ---- Sticky CTA ---- */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--w-border);
    padding: 0.75rem 0;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

.sticky-cta__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-cta__text {
    font-weight: 600;
    color: var(--w-dark);
}

/* ---- Responsive ---- */

@media (max-width: 1199.98px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card--highlighted {
        transform: none;
    }

    .pricing-card--highlighted:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 767.98px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .agency-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .sticky-cta__text {
        display: none;
    }

    .sticky-cta__inner {
        justify-content: center;
    }
}
