/* ==========================================================================
   Pricing Page — Standalone Styles
   Inherits global variables from ../styles.css
   ========================================================================== */

/* Hero — compact, restrained */
.pricing-hero {
    padding: 120px 0 60px;
    border-top: none;
}

.pricing-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 400;
    margin-bottom: 16px;
}

.pricing-hero .hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.pricing-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.pricing-section .section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.pricing-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.pricing-section .section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   License Cards — 3-up grid
   ========================================================================== */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 28px;
    background: #fff;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
    border-color: #000;
    border-width: 2px;
}

.pricing-card .card-badge-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pricing-card .tier-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.pricing-card .price {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-color);
}

.pricing-card .price-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-card .includes {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    flex-grow: 1;
}

.pricing-card .includes li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-card .includes li .val {
    font-weight: 600;
    color: var(--text-color);
}

.pricing-card .card-action {
    margin-top: 24px;
}

.pricing-card .card-action .btn {
    width: 100%;
    text-align: center;
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   Extended Resource Pricing — clean table
   ========================================================================== */
.resource-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 480px;
}

.resource-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

.resource-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: middle;
}

.resource-table tbody td:first-child {
    font-weight: 500;
}

.resource-table tbody td .price-highlight {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
}

/* ==========================================================================
   Industry Comparison Chart
   ========================================================================== */
.industry-chart {
    margin-top: 48px;
    margin-bottom: 48px;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.chart-row .vendor-name {
    width: 100px;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    color: var(--text-color);
}

.chart-row .bar-track {
    flex: 1;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 3px;
}

.chart-row .bar-fill {
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: fit-content;
}

.chart-row .bar-fill.self {
    background: #000;
    color: #fff;
}

.chart-row .bar-fill.other {
    background: #777;
    color: #fff;
}

/* OpenAI truncated bar */
.chart-row .bar-fill.truncated {
    background: #c0392b;
    color: #fff;
    position: relative;
}

.chart-row .bar-fill.truncated::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, #e0e0e0);
    border-radius: 0 3px 3px 0;
}

.chart-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

/* ==========================================================================
   Industry Detail Table
   ========================================================================== */
.industry-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 40px;
    min-width: 600px;
}

.industry-detail-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border-color);
}

.industry-detail-table thead th:not(:first-child) {
    text-align: right;
}

.industry-detail-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.industry-detail-table tbody td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.industry-detail-table tbody td:first-child {
    font-weight: 500;
}

.industry-detail-table tbody tr.row-self {
    background: #fafafa;
}

.industry-detail-table tbody tr.row-self td {
    font-weight: 600;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.pricing-cta {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.pricing-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.pricing-cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cta .cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================================================
   Active nav indicator
   ========================================================================== */
.main-nav a.active,
.mobile-nav-links a.active {
    color: var(--text-color);
    font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 100px 0 40px;
    }

    .pricing-hero h1 {
        font-size: 2.4rem;
    }

    .pricing-cards {
        gap: 24px;
    }

    .pricing-card .price {
        font-size: 2.2rem;
    }

    .chart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 20px;
    }

    .chart-row .vendor-name {
        text-align: left;
        width: auto;
    }

    .chart-row .bar-track {
        width: 100%;
    }

    .resource-table-wrap,
    .detail-table-wrap {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .pricing-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }
}

/* Mobile header overrides for pricing page */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #000;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .mobile-menu-overlay.active {
        display: flex;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .mobile-nav-links a {
        font-size: 1.3rem;
        font-weight: 500;
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }
}
