/* ============================================================
   BILLXO — Pricing page enhancements.
   Builds on landing.css tokens (colours, radii, shadows, fonts).
   Scoped with the `pr-` prefix; no external dependencies.
   ============================================================ */

/* ---------- Section rhythm (intentional, never vacant) ---------- */
.pr-section { position: relative; padding-block: clamp(56px, 8vw, 92px); }
.pr-section--tight { padding-top: clamp(22px, 3vw, 36px); }
.pr-section--paper { background: var(--paper); }
.pr-section--white { background: var(--white); }

.pr-head { text-align: center; max-width: 680px; margin: 0 auto clamp(34px, 4vw, 52px); }
.pr-head .bx-eyebrow { justify-content: center; margin-bottom: 16px; }
.pr-head h2 { margin-bottom: 14px; }
.pr-head p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin-inline: auto; }

/* ---------- Hero: trim the empty space, add trust ---------- */
.pr-hero { padding-bottom: clamp(26px, 4vw, 40px); }
.pr-pills {
    margin-top: 26px;
    display: inline-flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 12px;
}
.pr-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    box-shadow: var(--shadow-xs);
}
.pr-pill svg { width: 15px; height: 15px; color: #15803D; }
.pr-billnote {
    margin-top: 18px; font-size: 13px; color: var(--muted-2);
    display: inline-flex; align-items: center; gap: 8px;
}
.pr-billnote i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Pull the pricing cards up under the hero (kills the big gap) */
.pr-plans-sec { padding-top: clamp(20px, 3vw, 34px); padding-bottom: clamp(48px, 7vw, 80px); }

/* ---------- Plan recommendation ---------- */
.pr-reco { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-inline: auto; }
.pr-reco__card {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px 26px 24px; background: var(--white);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.pr-reco__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pr-reco__card--pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.pr-reco__tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 12px;
}
.pr-reco__card--pro .pr-reco__tag { color: var(--cyan); }
.pr-reco__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.pr-reco__card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; margin-bottom: 8px; }
.pr-reco__card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pr-reco__card--pro p { color: rgba(255,255,255,.72); }
.pr-reco__who { margin-top: 16px; display: grid; gap: 8px; }
.pr-reco__who li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pr-reco__card--pro .pr-reco__who li { color: rgba(255,255,255,.85); }
.pr-reco__who svg { width: 15px; height: 15px; flex: none; color: var(--cyan-700); }
.pr-reco__card--pro .pr-reco__who svg { color: var(--cyan); }

/* ---------- Feature comparison ---------- */
.pr-compare { max-width: 900px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.pr-compare__row { display: grid; grid-template-columns: 1.5fr .9fr .9fr; align-items: center; }
.pr-compare__row + .pr-compare__row { border-top: 1px solid var(--line-2); }
.pr-compare__row--head { position: sticky; top: 78px; z-index: 2; background: var(--paper-2); }
.pr-compare__feat { padding: 16px 22px; }
.pr-compare__feat b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pr-compare__feat small { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.pr-compare__cell { padding: 16px 18px; text-align: center; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.pr-compare__cell--pro { background: rgba(23, 196, 220, .05); }
.pr-compare__row--head .pr-compare__cell { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.pr-compare__plan { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.pr-compare__badge { display: inline-block; margin-top: 4px; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-700); }
.pr-compare__yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(34,197,94,.16); color: #15803D; }
.pr-compare__yes svg { width: 13px; height: 13px; }
.pr-compare__no { color: var(--muted-2); font-weight: 500; }
.pr-compare__label { display: none; }

/* ---------- Benefits ---------- */
.pr-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin-inline: auto; }
.pr-benefit {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
    padding: 24px; display: flex; gap: 16px; align-items: flex-start;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pr-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pr-benefit__ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-tint); color: var(--cyan-ink); }
.pr-benefit__ico svg { width: 21px; height: 21px; }
.pr-benefit:nth-child(2) .pr-benefit__ico { background: var(--mint-tint); color: var(--mint-ink); }
.pr-benefit:nth-child(3) .pr-benefit__ico { background: var(--yellow-tint); color: var(--yellow-ink); }
.pr-benefit:nth-child(4) .pr-benefit__ico { background: var(--paper-2); color: var(--ink); }
.pr-benefit h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.pr-benefit p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Product showcase ---------- */
.pr-show { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; max-width: 1040px; margin-inline: auto; }
.pr-show__copy h2 { margin-bottom: 14px; }
.pr-show__copy > p { color: var(--muted); font-size: 1.06rem; max-width: 42ch; margin-bottom: 22px; }
.pr-show__list { display: grid; gap: 14px; }
.pr-show__list li { display: flex; gap: 12px; align-items: flex-start; }
.pr-show__list .ico { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--cyan-tint); color: var(--cyan-ink); }
.pr-show__list .ico svg { width: 15px; height: 15px; }
.pr-show__list b { font-weight: 600; font-size: 15px; }
.pr-show__list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Invoice preview card (self-contained, illustrative) */
.pr-invoice {
    position: relative;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 22px; max-width: 380px; margin-inline: auto;
}
.pr-invoice__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pr-invoice__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.pr-invoice__mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--cyan), var(--mint)); color: #042027; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.pr-invoice__no { font-size: 12px; color: var(--muted-2); text-align: right; }
.pr-invoice__no b { display: block; color: var(--ink); font-size: 13px; }
.pr-invoice__client { padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pr-invoice__client b { display: block; font-size: 14.5px; }
.pr-invoice__client span { font-size: 12.5px; color: var(--muted); }
.pr-invoice__lines { display: grid; gap: 9px; padding: 14px 0; }
.pr-invoice__li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.pr-invoice__li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.pr-invoice__sum { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 7px; }
.pr-invoice__sum .row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pr-invoice__sum .row.total { color: var(--ink); font-weight: 700; font-size: 15px; margin-top: 3px; }
.pr-invoice__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.pr-invoice__due { font-size: 12px; color: var(--muted-2); }
.pr-invoice__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--mint-tint); color: var(--mint-ink); }
.pr-invoice__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.pr-invoice__chip {
    position: absolute; right: -14px; bottom: 26px;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
    padding: 9px 13px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.pr-invoice__chip svg { width: 14px; height: 14px; color: var(--cyan); }

/* ---------- Trust strip ---------- */
.pr-trust {
    max-width: 900px; margin-inline: auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.pr-trust__item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white);
}
.pr-trust__ico { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--cyan-tint); color: var(--cyan-ink); display: grid; place-items: center; }
.pr-trust__ico svg { width: 18px; height: 18px; }
.pr-trust__item b { display: block; font-size: 14.5px; }
.pr-trust__item span { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .pr-reco { grid-template-columns: 1fr; }
    .pr-benefits { grid-template-columns: 1fr; }
    .pr-show { grid-template-columns: 1fr; }
    .pr-show__media { order: -1; }
    .pr-trust { grid-template-columns: 1fr; }
    .pr-compare__row--head { top: 66px; }
}

@media (max-width: 640px) {
    /* Comparison → stacked, readable cards (no tiny table) */
    .pr-compare { border-radius: var(--radius); }
    .pr-compare__row, .pr-compare__row--head { display: block; }
    .pr-compare__row--head { display: none; }
    .pr-compare__row { padding: 14px 16px; }
    .pr-compare__feat { padding: 0 0 10px; }
    .pr-compare__cell { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 8px 0; border-top: 1px solid var(--line-2); }
    .pr-compare__cell--pro { background: transparent; }
    .pr-compare__label { display: inline; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
    .pr-invoice__chip { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .pr-reco__card, .pr-benefit { transition: none; }
}

