/* =================================================================
   Pricing Page Styles
   ================================================================= */

/* Typography & Layout */
.text-center { text-align: center; }

/* Hero Section */
.pricing-hero {
    background: var(--cream);
    padding: 8rem 5vw 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.pricing-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.pricing-hero-title .accent {
    color: var(--gold);
    font-style: italic;
}

.pricing-hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.pricing-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Grid */
.pricing-features {
    background: var(--ink);
    color: var(--cream);
    padding: 6rem 5vw;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 4px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card .section-title {
    color: var(--cream);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: var(--gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-item-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.3rem;
}

.feature-item-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Pricing Plans */
.pricing-plans {
    background: var(--cream);
    padding: 8rem 5vw;
}

.billing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(10, 10, 15, 0.05);
    border: 1px solid var(--border);
    border-radius: 40px;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: var(--muted);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--ink);
}

.billing-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.billing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--muted);
    transition: .4s;
    border-radius: 34px;
}

.billing-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.billing-toggle input:checked + .billing-slider {
    background-color: var(--ink);
}

.billing-toggle input:checked + .billing-slider:before {
    transform: translateX(22px);
}

.save-badge {
    background: var(--rust);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.plans-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    align-items: stretch;
    padding-bottom: 2rem; /* Space for scrollbar */
}

/* Custom Scrollbar for Slider */
.plans-grid::-webkit-scrollbar {
    height: 8px;
}
.plans-grid::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.05);
    border-radius: 4px;
}
.plans-grid::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 4px;
}
.plans-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.8);
}

.plan-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    flex: 0 0 min(320px, 85vw); /* Slider item sizing */
    scroll-snap-align: center;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 10, 15, 0.08);
}

.plan-popular {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.plan-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--ink);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.free-ribbon {
    background: var(--rust);
    color: white;
}

.plan-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.plan-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 40px;
}

.plan-price-wrap {
    margin-bottom: 2rem;
}

.plan-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ink);
}

.plan-duration {
    color: var(--muted);
    font-weight: 500;
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.plan-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 10, 15, 0.05);
    flex: 1;
}

.plan-features-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.plan-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.check-icon {
    color: var(--gold);
    font-weight: bold;
}

/* Compare Table */
.pricing-compare {
    background: #fff;
    padding: 6rem 5vw;
}

.compare-table-wrapper {
    max-width: 1200px;
    margin: 4rem auto 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
}

.compare-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(10, 10, 15, 0.05);
    color: var(--muted);
    font-size: 0.95rem;
}

.compare-table td:not(:first-child), .compare-table th:not(:first-child) {
    text-align: center;
    border-left: 1px solid rgba(10, 10, 15, 0.05);
}

.compare-table tr:hover {
    background: rgba(16, 185, 129, 0.02);
}

.compare-table .highlight-col {
    background: rgba(16, 185, 129, 0.05);
}

.compare-check {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.compare-minus {
    color: rgba(10, 10, 15, 0.2);
}
