/* Public pricing page (views/external/pricing.html). Follows the external pages' look: tokens in
   page-template-external.css, base rules as in page-contact.css. Page classes use the pr- prefix. */

/* ─── Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #0a0e1a;
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.3px;
}

a {
    color: #3b9eff;
    text-decoration: none;
}

a:hover {
    color: #6db8ff;
    text-decoration: none;
}

.bb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
}

.bb-nav-mobile {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.bb-nav-mobile.open {
    display: block;
}

.bb-nav-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.bb-nav-mobile a:last-child {
    border-bottom: none;
}

.bb-nav-mobile .btn-bb-primary {
    margin-top: 14px;
    width: 100%;
    text-align: center;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn-bb-primary {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
}

.btn-bb-primary:hover {
    background: #2e8eef;
}

.pr-btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* ─── Page ──────────────────────────────────────────── */
.bb-page-body {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 72px;
}

/* Header */
/* Wide enough for the heading on one line on desktop; it wraps on smaller screens */
.pr-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 44px;
}

.pr-header h1 {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

/* Same size and colour as the homepage's "All from one dashboard." line (.bb-hero-sub strong), normal weight */
.pr-sub {
    font-size: 16px;
    color: #e8eaf2;
    font-weight: 400;
    line-height: 1.68;
    margin-bottom: 28px;
}

/* Monthly / Yearly switch */
.pr-period {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.pr-period-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 20px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pr-period-btn:hover {
    color: #fff;
}

.pr-period-btn.is-active {
    background: var(--blue-dim);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue-bdr);
}

/* ─── Tier cards ────────────────────────────────────── */
/* Bronze / Gold / Platinum - Enterprise is the band under them */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}

.pr-tier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow:
        0 0 40px 2px var(--blue-glow),
        0 16px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* The free plan stands out - it's the only one you can start on */
.pr-tier.is-free {
    border-color: var(--blue);
    box-shadow:
        0 0 0 1px var(--blue-bdr),
        0 0 60px 8px var(--blue-glow),
        0 16px 32px rgba(0, 0, 0, 0.4);
}

.pr-tier-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pr-tier-name {
    font-size: 20px;
    margin: 0;
}

.pr-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--blue);
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* Room for a two-line note (Enterprise), so the cards line up */
.pr-price {
    min-height: 84px;
    margin-bottom: 20px;
}

.pr-price-main {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.pr-per {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.pr-price-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* Prices: monthly shown unless the page is switched to yearly (pricing.js) */
.pr-price-yearly,
#pr-page.is-yearly .pr-price-monthly {
    display: none;
}

#pr-page.is-yearly .pr-price-yearly {
    display: block;
}

.pr-save {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Same height on every card (Sign up button + "No card needed"), so every limit list starts at the same line */
.pr-action {
    min-height: 76px;
    margin-bottom: 24px;
}

.pr-action-text {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

.pr-action-note {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
}

.pr-action-text i {
    font-size: 17px;
    color: var(--blue);
}

/* Limits */
.pr-group + .pr-group {
    margin-top: 18px;
}

.pr-group-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--blue-bdr);
    margin-bottom: 8px;
}

.pr-limits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-limits li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    padding: 4px 0;
    color: var(--gray);
}

.pr-limits li.is-no .pr-limit-label {
    color: var(--faint);
}

/* Info icon after a row's label (tooltip: the scan allowance row) */
.pr-limit-tip {
    font-size: 0.95rem;
    vertical-align: -2px;
    color: var(--faint);
    cursor: help;
}

.pr-limit-value {
    color: #fff;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.pr-yes,
.pr-no {
    font-size: 16px;
    flex-shrink: 0;
}

.pr-yes {
    color: var(--blue);
}

.pr-no {
    color: var(--faint);
}

/* Fair use mark (top plan) and its footnote under the cards. On a card the mark sits just past the value, so the
   numbers stay lined up with the rows without one. */
.pr-fair {
    color: var(--blue);
    margin-left: 2px;
}

.pr-limit-value {
    position: relative;
}

.pr-limit-value .pr-fair {
    position: absolute;
    left: 100%;
    top: 0;
}

.pr-fair-note a {
    color: var(--blue);
}

/* Lines under the cards */
.pr-every {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 28px;
}

.pr-every > div + div {
    margin-top: 4px;
}

.pr-every-upgrade {
    font-size: 15px;
    color: #e8eaf2;
    margin-bottom: 8px;
}

/* ─── Closing call to action ────────────────────────── */
.pr-cta {
    text-align: center;
    margin-top: 72px;
}

.pr-cta h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.pr-cta h2 span {
    color: var(--blue);
}

/* ─── Footer (as on the other external pages) ───────── */
.bb-footer-bottom {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    flex-shrink: 0;
}

.bb-footer-bottom p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

/* ─── Responsive ────────────────────────────────────── */
/* Three cards at their narrowest (just before they stack): a little less padding and gap so every limit row stays on
   one line (checked 992-1140px) */
@media (min-width: 992px) and (max-width: 1099.98px) {
    .pr-grid {
        gap: 16px;
    }

    .pr-tier {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991px) {
    .pr-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
    }

    .pr-price {
        min-height: 0;
    }

}

@media (max-width: 767px) {
    .bb-navbar {
        padding: 0 20px;
    }

    .bb-nav-links {
        display: none;
    }

    .bb-nav-toggle {
        display: block;
    }

    .bb-page-body {
        padding: 40px 16px 56px;
    }

    .pr-header h1 {
        font-size: 28px;
    }

    .pr-cta h2 {
        font-size: 24px;
    }
}
