/* Grapphen Pricing Sync — Shortcode Styles */
:root {
    --gpp-primary:  #4f46e5;
    --gpp-purple:   #7c3aed;
    --gpp-green:    #16a34a;
    --gpp-border:   #e5e7eb;
    --gpp-bg:       #f9fafb;
    --gpp-text:     #111827;
    --gpp-muted:    #6b7280;
    --gpp-radius:   0.875rem;
}

/* ── Price span ── */
.grapphen-price { font-variant-numeric: tabular-nums; }

/* ── Credit tier cards ── */
.grapphen-credit-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.grapphen-tier-card {
    background: white;
    border: 2px solid var(--gpp-border);
    border-radius: var(--gpp-radius);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: all .2s;
}
.grapphen-tier-card:hover { border-color: var(--gpp-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.12); }
.grapphen-tier-card.popular { border-color: var(--gpp-primary); background: #eff6ff; }
.grapphen-tier-badge {
    display: inline-block;
    background: var(--gpp-primary); color: white;
    font-size: .65rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 9999px;
    margin-bottom: .5rem; letter-spacing: .04em;
}
.grapphen-tier-label { font-size: .75rem; color: var(--gpp-muted); font-weight: 600; margin-bottom: .25rem; }
.grapphen-tier-qty   { font-size: 1.25rem; font-weight: 800; color: var(--gpp-text); }
.grapphen-tier-qty span { font-size: .75rem; font-weight: 500; color: var(--gpp-muted); }
.grapphen-tier-price { font-size: 1.5rem; font-weight: 900; color: var(--gpp-primary); margin: .375rem 0 .2rem; }
.grapphen-tier-per-unit { font-size: .7rem; color: var(--gpp-muted); }

/* ── Pricing cards ── */
.grapphen-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.grapphen-pricing-card {
    background: white;
    border: 2px solid var(--gpp-border);
    border-radius: var(--gpp-radius);
    padding: 2rem;
    position: relative;
    transition: all .2s;
}
.grapphen-pricing-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.grapphen-pricing-card.popular {
    border-color: var(--gpp-primary);
    background: linear-gradient(180deg, #eff6ff 0%, white 40%);
    box-shadow: 0 8px 24px rgba(79,70,229,.15);
}
.grapphen-popular-badge {
    display: inline-block;
    background: var(--gpp-primary); color: white;
    font-size: .72rem; font-weight: 700;
    padding: .25rem .75rem; border-radius: 9999px;
    margin-bottom: .875rem;
}
.grapphen-plan-name  { font-size: 1.125rem; font-weight: 800; color: var(--gpp-text); margin-bottom: .25rem; }
.grapphen-plan-desc  { font-size: .82rem; color: var(--gpp-muted); margin-bottom: 1.25rem; }
.grapphen-plan-price { display: flex; align-items: baseline; gap: .2rem; margin-bottom: .75rem; }
.grapphen-currency   { font-size: 1.125rem; font-weight: 700; color: var(--gpp-primary); margin-top: .25rem; }
.grapphen-amount     { font-size: 2.5rem; font-weight: 900; color: var(--gpp-text); line-height: 1; letter-spacing: -.03em; }
.grapphen-per        { font-size: .78rem; color: var(--gpp-muted); }
.grapphen-savings    { font-size: .75rem; color: var(--gpp-green); font-weight: 600; margin-bottom: .75rem; }
.grapphen-cta-btn {
    display: block; width: 100%;
    padding: .75rem; border-radius: .5rem;
    text-align: center; font-size: .875rem; font-weight: 700;
    text-decoration: none; transition: all .15s; margin-bottom: .625rem;
}
.grapphen-cta-btn.primary  { background: var(--gpp-primary); color: white; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.grapphen-cta-btn.primary:hover  { background: #4338ca; transform: translateY(-1px); }
.grapphen-cta-btn.secondary { background: white; color: var(--gpp-primary); border: 2px solid var(--gpp-primary); }
.grapphen-cta-btn.secondary:hover { background: #eff6ff; }
.grapphen-trial-note { font-size: .72rem; color: var(--gpp-muted); text-align: center; margin-bottom: 1.25rem; }
.grapphen-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; border-top: 1px solid var(--gpp-border); padding-top: 1rem; }
.grapphen-feature-list li { font-size: .82rem; color: #374151; }

/* ── Comparison table ── */
.grapphen-comparison-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--gpp-radius); border: 1px solid var(--gpp-border); }
.grapphen-comparison-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.grapphen-comparison-table thead th {
    padding: 1rem 1.25rem; background: var(--gpp-bg);
    text-align: center; font-weight: 700; color: var(--gpp-text);
    border-bottom: 2px solid var(--gpp-border);
}
.grapphen-comparison-table thead th:first-child { text-align: left; }
.grapphen-comparison-table thead th.popular { background: var(--gpp-primary); color: white; }
.grapphen-comparison-table thead th .plan-price {
    display: block; font-size: .72rem; font-weight: 500;
    margin-top: .2rem; opacity: .8;
}
.grapphen-comparison-table tbody td {
    padding: .625rem 1.25rem; border-bottom: 1px solid #f3f4f6;
    color: var(--gpp-text); text-align: center;
}
.grapphen-comparison-table tbody td:first-child { text-align: left; }
.grapphen-comparison-table tbody td.popular { background: #eff6ff; }
.grapphen-comparison-table tr.section-header td {
    padding: .5rem 1.25rem; background: var(--gpp-bg);
    font-size: .68rem; font-weight: 700; color: var(--gpp-muted);
    text-transform: uppercase; letter-spacing: .08em; text-align: left;
    border-top: 2px solid var(--gpp-border);
}
.grapphen-comparison-table .check { color: var(--gpp-green); font-weight: 700; font-size: 1rem; }
.grapphen-comparison-table .cross { color: #d1d5db; }
.grapphen-comparison-table .value { font-size: .82rem; color: var(--gpp-primary); font-weight: 600; }

/* ── Billing toggle (JS powered) ── */
.grapphen-billing-toggle {
    display: inline-flex; align-items: center;
    background: var(--gpp-bg); border: 1px solid var(--gpp-border);
    border-radius: 9999px; padding: .25rem; gap: .25rem;
    margin-bottom: 2rem;
}
.grapphen-billing-toggle button {
    padding: .4rem 1.25rem; border-radius: 9999px; border: none;
    font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.grapphen-billing-toggle button.active { background: var(--gpp-primary); color: white; }
.grapphen-billing-toggle button:not(.active) { background: transparent; color: var(--gpp-muted); }
.grapphen-save-badge {
    background: #dcfce7; color: var(--gpp-green); border-radius: 9999px;
    font-size: .65rem; font-weight: 700; padding: .15rem .5rem; margin-left: .375rem;
}

@media (max-width: 640px) {
    .grapphen-pricing-cards { grid-template-columns: 1fr; }
    .grapphen-credit-tiers  { grid-template-columns: repeat(2, 1fr); }
}
