/**
 * Pricing Page Styles — mobile-first
 * Extends main.css design tokens
 */

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.pricing-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 20px 60px; /* top accounts for fixed header */
}


/* ==========================================================================
   HERO
   ========================================================================== */

.pricing-hero {
    text-align: center;
    margin-bottom: 56px;
}

.pricing-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.pricing-hero__sub {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}


/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.pricing-section-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}


/* ==========================================================================
   STAIRCASE — escalation visualization
   ========================================================================== */

.pricing-staircase {
    margin-bottom: 56px;
}

.staircase {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stair {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stair--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger the animation via transition-delay set by nth-child */
.stair:nth-child(1) { transition-delay: 0s; }
.stair:nth-child(2) { transition-delay: 0.08s; }
.stair:nth-child(3) { transition-delay: 0.16s; }
.stair:nth-child(4) { transition-delay: 0.24s; }
.stair:nth-child(5) { transition-delay: 0.32s; }
.stair:nth-child(6) { transition-delay: 0.40s; }

.stair--free {
    border-color: var(--red-accent);
    background: rgba(196, 57, 44, 0.04);
}

.stair--etc {
    background: transparent;
    border: 1px dashed var(--gray-200);
    justify-content: center;
}

.stair__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stair--free .stair__number {
    background: var(--red-accent);
    color: var(--white);
}

.stair__label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
}

.stair__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}

.stair__price--free {
    color: var(--red-accent);
    font-size: 1.25rem;
}


/* ==========================================================================
   WHY THIS MODEL
   ========================================================================== */

.pricing-why {
    margin-bottom: 56px;
}

.pricing-explanation {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-900);
}

.pricing-explanation p + p {
    margin-top: 16px;
}


/* ==========================================================================
   CALLOUT (expiry info)
   ========================================================================== */

.pricing-expiry {
    margin-bottom: 56px;
}

.pricing-callout {
    padding: 24px;
    background: var(--warm-white);
    border-radius: 12px;
    border-left: 4px solid var(--red-accent);
}

.pricing-callout__title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.pricing-callout p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}


/* ==========================================================================
   PAYMENT METHODS
   ========================================================================== */

.pricing-payments {
    margin-bottom: 56px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.payment-method__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.payment-method__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
}

.payment-method__via {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-left: auto;
}


/* ==========================================================================
   VOLUME DISCOUNTS TABLE
   ========================================================================== */

.pricing-volume {
    margin-bottom: 56px;
}

.pricing-volume__intro {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.volume-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}

.volume-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.volume-table th {
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-bottom: 2px solid var(--gray-200);
}

.volume-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}

.volume-table__highlight td {
    background: rgba(196, 57, 44, 0.03);
}

.volume-table__best td {
    background: rgba(196, 57, 44, 0.08);
    font-weight: 600;
}

.volume-table__best td:last-child {
    color: var(--red-accent);
}


/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */

.pricing-cta-row {
    text-align: center;
}

.pricing-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--red-accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pricing-cta-btn:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

.pricing-cta-btn--big {
    padding: 16px 36px;
    font-size: 1.0625rem;
    width: 100%;
    text-align: center;
}


/* ==========================================================================
   COMPETITOR COMPARISON TABLE
   ========================================================================== */

.pricing-comparison {
    margin-bottom: 56px;
}

.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.comparison-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 10px;
    background: var(--paper);
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.comparison-table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    vertical-align: middle;
}

.comparison-table__feature {
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
}

.comparison-table__us {
    background: rgba(196, 57, 44, 0.04);
    color: var(--black);
}

.comparison-table th.comparison-table__us {
    background: rgba(196, 57, 44, 0.10);
    color: var(--red-accent);
}

.comparison-note {
    font-size: 0.6875rem;
    color: var(--gray-400);
}

.check { font-size: 0.875rem; }
.cross { font-size: 0.875rem; opacity: 0.5; }


/* ==========================================================================
   TRANSPARENCY CALLOUT
   ========================================================================== */

.pricing-transparency {
    padding: 20px 24px;
    background: var(--warm-white);
    border-radius: 10px;
    margin-bottom: 12px;
}

.pricing-transparency p {
    font-size: 0.9375rem;
    color: var(--gray-900);
    line-height: 1.6;
    font-style: italic;
}


/* ==========================================================================
   DATA SOURCES
   ========================================================================== */

.pricing-sources {
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.5;
}


/* ==========================================================================
   FAQ — CSS-only collapsible
   ========================================================================== */

.pricing-faq {
    margin-bottom: 56px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
    border-top: 1px solid var(--gray-200);
}

.faq-question {
    padding: 16px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '\2212'; /* minus sign */
}

.faq-answer {
    padding: 0 0 16px;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}


/* ==========================================================================
   BOTTOM CTA
   ========================================================================== */

.pricing-bottom-cta {
    text-align: center;
    padding: 48px 0 32px;
    border-top: 1px solid var(--gray-200);
}

.pricing-bottom-cta h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.pricing-bottom-cta p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.pricing-bottom-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-bottom-links a {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pricing-bottom-links a:hover {
    color: var(--red-accent);
}

.pricing-bottom-links__sep {
    color: var(--gray-400);
}


/* ==========================================================================
   BORIKEN MODE OVERRIDES
   ========================================================================== */

body.boriken-mode .pricing-callout {
    border-left-color: var(--red-accent);
    background: var(--paper);
}

body.boriken-mode .stair--free {
    border-color: var(--red-accent);
    background: rgba(237, 0, 0, 0.04);
}

body.boriken-mode .stair__price--free {
    color: var(--red-accent);
}

body.boriken-mode .stair--free .stair__number {
    background: var(--red-accent);
}

body.boriken-mode .comparison-table__us {
    background: rgba(237, 0, 0, 0.04);
}

body.boriken-mode .comparison-table th.comparison-table__us {
    background: rgba(237, 0, 0, 0.10);
    color: var(--red-accent);
}

body.boriken-mode .volume-table__best td:last-child {
    color: var(--red-accent);
}


/* ==========================================================================
   RESPONSIVE — tablet+ (>= 640px)
   ========================================================================== */

@media (min-width: 640px) {
    .pricing-page {
        padding-top: 120px;
    }

    .pricing-cta-btn--big {
        width: auto;
    }

    .payment-methods {
        flex-direction: row;
    }

    .payment-method {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .payment-method__via {
        margin-left: 0;
    }
}
