/* ── Pricing page ────────────────────────────────────────── */

.pricing-page {
    background: #fafafa;
    font-family: 'Jost', sans-serif;
}


/* ── Subgrid layout ────────────────────────────────────────
   10 shared row tracks per card:
   1  pc-header    (tier + title + sub)
   2  pc-price     (monthly amount)
   3  pc-cta-row   (CTA button)
   4  pc-divider   (first rule)
   5  pc-feat-label
   6  pc-features  (feature list)
   7  pc-divider   (second rule)
   8  pc-usage-label
   9  pc-usage     (usage table)
   10 pc-overage
─────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(10, auto);
    column-gap: 20px;
    row-gap: 0;
    max-width: 1100px;
    margin: -16px auto 64px;
    padding: 0 24px;
    align-items: start;
}

.pricing-col {
    display: grid;
    grid-row: 1 / span 10;
    grid-template-rows: subgrid;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 22px 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.pricing-col:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

.pricing-col-featured {
    border-color: #cfe3f5;
    background: #eff7ff;
    box-shadow: 0 4px 20px rgba(30, 92, 151, 0.08);
}

/* ── Row 1: Header (tier + title + sub) ──────────────────── */
.pc-header {
    padding-bottom: 18px;
}

.pc-tier {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e5c97;
    margin-bottom: 4px;
}

.pc-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
}

.pc-sub {
    font-size: 0.58rem;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 2px;
}

/* ── Row 2: Price ────────────────────────────────────────── */
.pc-price {
    padding-bottom: 8px;
}

.pc-monthly {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.pc-monthly span {
    font-size: 0.58rem;
    color: #9ca3af;
    font-weight: 600;
    margin-left: 4px;
}

.pc-monthly-text {
    font-size: 0.9rem;
}

/* ── Row 3: CTA ──────────────────────────────────────────── */
.pc-cta-row {
    display: flex;
    align-items: stretch;
    padding-bottom: 16px;
}

.pc-cta-row .pricing-cta {
    width: 100%;
    margin-bottom: 0;
}

/* ── Row 4 & 7: Dividers ─────────────────────────────────── */
.pc-divider {
    height: 1px;
    background: #f3f4f6;
    margin-bottom: 14px;
}

/* ── Row 5 & 8: Section labels ───────────────────────────── */
.pc-feat-label,
.pc-usage-label {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* ── Row 6: Feature list ─────────────────────────────────── */
.pc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pc-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.58rem;
    color: #374151;
    line-height: 1.45;
}

.pc-features li svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #16a34a;
}

/* ── Row 9: Usage table ──────────────────────────────────── */
.pc-usage {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.pc-usage-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.56rem;
    color: #4b5563;
    padding: 3px 0;
}

.pc-usage-row span:last-child {
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.pc-usage-empty {
    background: #f9fafb;
}

/* ── Row 10: Overage ─────────────────────────────────────── */
.pc-overage {
    font-size: 0.54rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ── CTA button styles ───────────────────────────────────── */
.pricing-cta {
    display: block;
    text-align: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pricing-cta-outline {
    border: 1px solid #d1d5db;
    color: #374151;
    background: #fff;
}

.pricing-cta-outline:hover {
    border-color: #1e5c97;
    color: #1e5c97;
    text-decoration: none;
}

.pricing-cta-solid {
    background: #1e5c97;
    color: #fff;
    border: 1px solid #1e5c97;
}

.pricing-cta-solid:hover {
    background: #154675;
    color: #fff;
    text-decoration: none;
}

/* ── FAQ accordion ────────────────────────────────────────── */
.pricing-faq {
    max-width: 720px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.pricing-faq-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 28px;
}

.pricing-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.pricing-faq-item:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.pricing-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 16px;
}

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

.pricing-faq-question::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.pricing-faq-item[open] .pricing-faq-question::after {
    transform: rotate(180deg);
}

.pricing-faq-item[open] .pricing-faq-question {
    color: #1e5c97;
}

.pricing-faq-answer {
    padding: 0 4px 18px;
    font-size: 0.66rem;
    color: #4b5563;
    line-height: 1.7;
}

.pricing-faq-answer a {
    color: #1e5c97;
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(10, auto) repeat(10, auto);
    }

    .pricing-col:nth-child(1),
    .pricing-col:nth-child(2) {
        grid-row: 1 / span 10;
    }

    .pricing-col:nth-child(3),
    .pricing-col:nth-child(4) {
        grid-row: 11 / span 10;
    }
}

@media (max-width: 560px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, auto) repeat(10, auto) repeat(10, auto) repeat(10, auto);
    }

    .pricing-col:nth-child(1) {
        grid-row: 1 / span 10;
    }

    .pricing-col:nth-child(2) {
        grid-row: 11 / span 10;
    }

    .pricing-col:nth-child(3) {
        grid-row: 21 / span 10;
    }

    .pricing-col:nth-child(4) {
        grid-row: 31 / span 10;
    }

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