/* ── Pricing page ── */

/* Plans Section */
.plans-section {
    width: 100%;
    padding: 4rem 0 6rem;
}

.billing-toggle {
    width: fit-content;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.billing-toggle-btn {
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.billing-toggle-btn:hover {
    color: var(--color-text-main);
}

.billing-toggle-btn.is-active {
    background: rgba(29, 161, 242, 0.18);
    color: var(--color-text-main);
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1240px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Plan Card */
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-surface-card);
    padding: 2rem 1.9rem 1.85rem;
}

.plan-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Featured card */
.plan-card-featured {
    border-color: var(--color-primary);
    background: linear-gradient(
        180deg,
        rgba(29, 161, 242, 0.06) 0%,
        var(--color-surface-card) 40%
    );
}

.plan-card-featured:hover {
    border-color: rgba(29, 161, 242, 0.7);
}

.plan-badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.85rem;
    border-radius: 9999px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Plan Header */
.plan-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
}

.plan-card-featured .plan-name {
    color: var(--color-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-top: 0.5rem;
}

.plan-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--color-text-main);
}

.plan-period {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
}

.plan-desc {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Divider */
.plan-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1rem 0 0.55rem;
}

/* Feature List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.plan-check {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* Plan Button */
.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.plan-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
    background: transparent;
}

.plan-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.plan-btn-primary {
    border: none;
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.25);
}

.plan-btn-primary:hover {
    background-color: var(--color-primary-hover);
}


/* ── Comparison Table ── */

.compare-table-section {
    width: 100%;
    padding: 2rem 0 8rem;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--color-surface-card);
    max-width: 720px;
    margin: 0 auto;
}

.compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Column widths */
.compare-table-feature-col {
    width: 32%;
}

.compare-table-plan-col {
    width: calc(68% / 3);
    text-align: center;
}

/* Header */
.compare-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th {
    padding: 1.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    text-align: center;
}

.compare-table-feature-col {
    text-align: left;
}

.compare-table-plan-featured {
    color: var(--color-text-secondary);
}

/* Rows */
.compare-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-table tbody tr:last-child {
    border-bottom: none;
}

.compare-table td {
    padding: 1rem;
}

.compare-table-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: left;
}

.compare-table-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
}

.compare-table-value-featured {
    color: var(--color-text-main);
}

/* Icons inside table */
.table-icon-check {
    color: var(--color-primary);
}

.table-icon-x {
    color: #fff;
    opacity: 0.5;
}

/* Infinity symbol */
.infinity-symbol {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}
