/* ============================================================================
   Pricing page -- enterprise rewrite.
   Scoped via .rj-pr-* classes; loaded only on /pricing.
   ============================================================================ */

/* ---- Hero -------------------------------------------------------------- */
.rj-pr-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(8, 145, 178, .15), transparent 70%),
        linear-gradient(180deg, #F8FAFC 0%, #ffffff 100%);
    border-bottom: 1px solid var(--rj-border);
}
.rj-pr-eyebrow {
    display: inline-block;
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .8rem; font-weight: 700;
    color: var(--rj-primary);
    margin-bottom: .75rem;
}
.rj-pr-h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--rj-ink);
    margin: 0 0 1rem;
}
.rj-pr-h1 .accent {
    background: linear-gradient(135deg, #0891B2, #0E7490);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rj-pr-sub {
    color: var(--rj-muted);
    font-size: 1.1rem; line-height: 1.55;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}
.rj-pr-hero-pills {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .65rem 1.25rem;
    color: var(--rj-muted);
    font-size: .85rem;
}
.rj-pr-hero-pills span {
    display: inline-flex; align-items: center; gap: .45rem;
}
.rj-pr-hero-pills .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #CBD5E1;
}
.rj-pr-hero-pills .dot.ok {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, .55);
}

/* ---- Section frame ----------------------------------------------------- */
.rj-pr-section { padding: 4rem 0; }
.rj-pr-section.alt {
    background: #F8FAFC;
    border-top: 1px solid var(--rj-border);
    border-bottom: 1px solid var(--rj-border);
}
.rj-pr-section-head { text-align: center; margin-bottom: 2.5rem; }
.rj-pr-section-head p {
    color: var(--rj-muted);
    margin: .5rem auto 0;
    max-width: 540px;
}
.rj-pr-h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--rj-ink);
    margin: 0;
}

/* ---- Rate card grid ---------------------------------------------------- */
.rj-pr-rate-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .rj-pr-rate-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .rj-pr-rate-grid { grid-template-columns: repeat(4, 1fr); } }

.rj-pr-rate {
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: .6rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rj-pr-rate:hover {
    border-color: rgba(8, 145, 178, .4);
    box-shadow: 0 18px 36px -16px rgba(8, 145, 178, .22);
    transform: translateY(-2px);
}
.rj-pr-rate .ic {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(8, 145, 178, .10);
    color: var(--rj-primary);
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, .2);
}
.rj-pr-rate .ic svg { width: 20px; height: 20px; }
/* Category tinting using the same tokens as the home Features grid */
.rj-pr-rate .ic.cat-collect  { background: rgba(8, 145, 178, .10);  color: #0E7490; box-shadow: inset 0 0 0 1px rgba(8, 145, 178, .25); }
.rj-pr-rate .ic.cat-request  { background: rgba(139, 92, 246, .12); color: #6D28D9; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .30); }
.rj-pr-rate .ic.cat-engage   { background: rgba(251, 191, 36, .14); color: #B45309; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); }
.rj-pr-rate .ic.cat-showcase { background: rgba(14, 116, 144, .10); color: #0E7490; box-shadow: inset 0 0 0 1px rgba(14, 116, 144, .28); }
.rj-pr-rate h3 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--rj-ink); }
.rj-pr-rate p  { font-size: .82rem; color: var(--rj-muted); line-height: 1.45; margin: 0; }
.rj-pr-rate .rate {
    margin-top: .25rem;
    padding-top: .75rem;
    border-top: 1px solid var(--rj-border);
    font-size: .85rem;
    color: var(--rj-muted);
}
.rj-pr-rate .rate strong {
    color: var(--rj-ink);
    font-size: 1.4rem;
    font-weight: 800;
    margin-right: .35rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.rj-pr-card-foot {
    text-align: center; margin: 1.5rem 0 0;
    font-size: .82rem; color: var(--rj-muted);
}
.rj-pr-card-foot code {
    background: #F1F5F9;
    padding: 1px 5px; border-radius: 4px;
    font-size: .85em;
}

/* ---- Usage estimator --------------------------------------------------- */
.rj-pr-estimator {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .15);
}
@media (min-width: 992px) {
    .rj-pr-estimator { grid-template-columns: minmax(0, 1fr) 320px; padding: 2rem; }
}

.rj-pr-estimator .sliders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .rj-pr-estimator .sliders { grid-template-columns: 1fr 1fr; } }

.rj-pr-estimator .slider { display: flex; flex-direction: column; gap: .35rem; }
.rj-pr-estimator .slider label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: .82rem; font-weight: 600; color: var(--rj-ink);
}
.rj-pr-estimator .slider label .val {
    color: var(--rj-primary);
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.rj-pr-estimator input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--rj-primary) var(--rj-progress, 0%), #E5E7EB var(--rj-progress, 0%));
    border-radius: 999px;
    outline: none;
}
.rj-pr-estimator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--rj-primary);
    cursor: grab;
    box-shadow: 0 4px 10px rgba(8, 145, 178, .35);
    transition: transform .12s ease;
}
.rj-pr-estimator input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.rj-pr-estimator input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--rj-primary);
    cursor: grab;
    box-shadow: 0 4px 10px rgba(8, 145, 178, .35);
}
.rj-pr-estimator .ticks {
    display: flex; justify-content: space-between;
    font-size: .68rem; color: var(--rj-muted);
    margin-top: 2px;
}

.rj-pr-estimator .total {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex; flex-direction: column;
    gap: .5rem;
}
.rj-pr-estimator .totalLabel {
    font-size: .72rem;
    text-transform: uppercase; letter-spacing: .14em;
    color: rgba(255, 255, 255, .65);
}
.rj-pr-estimator .totalVal {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    margin: .25rem 0 .15rem;
}
.rj-pr-estimator .totalCur {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    margin-left: 4px;
}
.rj-pr-estimator .totalSub {
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
}
.rj-pr-estimator .breakdown {
    list-style: none; padding: 1rem 0 0; margin: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.rj-pr-estimator .breakdown li {
    display: flex; justify-content: space-between;
    font-size: .82rem;
    color: rgba(255, 255, 255, .78);
    padding: .25rem 0;
}
.rj-pr-estimator .breakdown li span:last-child { color: #fff; font-weight: 600; }
.rj-pr-estimator .btn-primary {
    display: block; text-align: center;
    margin-top: 1.25rem;
    background: #FBBF24; color: #0F172A;
    border: none;
    padding: .85rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(251, 191, 36, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rj-pr-estimator .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(251, 191, 36, .5);
    color: #0F172A;
}
.rj-pr-estimator .fine {
    font-size: .72rem; color: rgba(255, 255, 255, .55);
    margin: .75rem 0 0; text-align: center;
}

/* ---- How billing works + sidebar -------------------------------------- */
.rj-pr-howto {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) { .rj-pr-howto { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }

.rj-pr-steps {
    list-style: none; padding: 0; margin: 1.25rem 0 0;
    counter-reset: rjstep;
    display: grid; gap: 1rem;
}
.rj-pr-steps li {
    counter-increment: rjstep;
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1.1rem 3.5rem;
    position: relative;
    color: var(--rj-muted);
    line-height: 1.55;
}
.rj-pr-steps li::before {
    content: counter(rjstep);
    position: absolute;
    left: 1rem; top: 1.1rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(8, 145, 178, .12);
    color: var(--rj-primary);
    display: grid; place-items: center;
    font-weight: 800; font-size: .85rem;
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, .25);
}
.rj-pr-steps li strong { color: var(--rj-ink); display: block; margin-bottom: 4px; }

.rj-pr-side { display: flex; flex-direction: column; gap: 1rem; }
.rj-pr-side-card {
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.rj-pr-side-card .t {
    font-size: .9rem; font-weight: 700; color: var(--rj-ink);
    margin-bottom: .35rem;
}
.rj-pr-side-card p {
    font-size: .85rem; color: var(--rj-muted); line-height: 1.5; margin: 0;
}
.rj-pr-side-card a { color: var(--rj-primary); text-decoration: underline; }
.rj-pr-side-card.cta {
    background: linear-gradient(135deg, #0891B2, #0E7490);
    color: #fff;
    border: none;
}
.rj-pr-side-card.cta .t { color: #fff; }
.rj-pr-side-card.cta p  { color: rgba(255, 255, 255, .85); }
.rj-pr-side-card.cta .btn-ghost {
    display: inline-block; margin-top: .75rem;
    padding: .5rem .95rem;
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600; font-size: .85rem;
    transition: background .15s ease;
}
.rj-pr-side-card.cta .btn-ghost:hover { background: rgba(255, 255, 255, .25); }

/* ---- FAQ --------------------------------------------------------------- */
.rj-pr-faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid; gap: .65rem;
}
.rj-pr-faq details {
    background: #fff;
    border: 1px solid var(--rj-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s ease;
}
.rj-pr-faq details:hover { border-color: rgba(8, 145, 178, .35); }
.rj-pr-faq details[open] { border-color: rgba(8, 145, 178, .45); box-shadow: 0 8px 18px -8px rgba(8, 145, 178, .15); }
.rj-pr-faq summary {
    list-style: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 700; color: var(--rj-ink);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.rj-pr-faq summary::-webkit-details-marker { display: none; }
.rj-pr-faq summary::after {
    content: "+";
    font-size: 1.4rem; font-weight: 300;
    color: var(--rj-primary);
    transition: transform .2s ease;
    line-height: 1;
}
.rj-pr-faq details[open] summary::after { content: "−"; }
.rj-pr-faq details p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: var(--rj-muted);
    font-size: .92rem; line-height: 1.6;
}
.rj-pr-faq details a { color: var(--rj-primary); }
.rj-pr-faq details code {
    background: #F1F5F9;
    padding: 1px 5px; border-radius: 4px;
    font-size: .88em;
}

/* ---- Final CTA --------------------------------------------------------- */
.rj-pr-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2.25rem 2.5rem;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45);
}
.rj-pr-cta h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .35rem; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.rj-pr-cta p  { margin: 0; color: rgba(255, 255, 255, .8); max-width: 50ch; }
.rj-pr-cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.rj-pr-cta .btn-primary {
    background: #FBBF24; color: #0F172A !important;
    padding: .85rem 1.5rem; border-radius: 10px;
    font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 24px rgba(251, 191, 36, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rj-pr-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(251, 191, 36, .5);
}
.rj-pr-cta .btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    padding: .85rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .15s ease;
}
.rj-pr-cta .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
