/* ==========================================================================
   CertBoost — Premium skin (v3 "Passing Line")
   Loaded LAST on every app layout. Scoped to body.cbx so legacy layouts are
   untouched. Sections:
     1. Base & typography        6. Page header
     2. Legacy (pbmit/bootstrap)  7. Home
        normalisation             8. Pricing
     3. Buttons & forms           9. Quiz player
     4. Site header              10. Utilities
     5. Site footer & search
   ========================================================================== */

/* 1. Base & typography ------------------------------------------------- */
body.cbx {
    background: var(--cb-paper);
    color: var(--cb-text);
    font-family: var(--cb-font-ui);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01" 1;
}
body.cbx h1, body.cbx h2, body.cbx h3, body.cbx h4,
body.cbx .cb-h1, body.cbx .cb-h2, body.cbx .cb-h3,
body.cbx .pbmit-title, body.cbx .cb-page-header__title {
    font-family: var(--cb-font-display);
    color: var(--cb-ink);
    letter-spacing: -.02em;
    line-height: 1.12;
    font-weight: 700;
    font-variation-settings: "opsz" 48;
}
body.cbx h5, body.cbx h6 { font-family: var(--cb-font-ui); color: var(--cb-ink); font-weight: 600; letter-spacing: 0; }
body.cbx p, body.cbx li { color: inherit; }
:where(body.cbx) a { color: var(--cb-pass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(body.cbx) a:hover { color: var(--cb-pass-deep); }
body.cbx ::selection { background: var(--cb-mark-tint); color: var(--cb-ink); }
body.cbx :focus-visible { outline: 2px solid var(--cb-mark); outline-offset: 2px; border-radius: 3px; }
body.cbx .cb-num, body.cbx .tabular { font-variant-numeric: tabular-nums; }
body.cbx .cb-container, body.cbx .cbx-wrap {
    max-width: var(--cb-container-max); margin-inline: auto; padding-inline: var(--cb-gutter);
}
@media (max-width: 575px) { body.cbx { --cb-gutter: 16px; } }

.cbx-skip {
    position: absolute; left: 12px; top: -48px; z-index: 2000;
    background: var(--cb-ink); color: #fff !important; padding: 10px 14px; border-radius: var(--cb-r-sm);
    transition: top var(--cb-dur) var(--cb-ease);
}
.cbx-skip:focus { top: 12px; }

/* 2. Legacy normalisation (pbmit theme + bootstrap) ------------------- */
body.cbx .page-wrapper { background: transparent; }
body.cbx .pbmit-title-bar-wrapper, body.cbx .pbmit-title-bar-content { display: none !important; }
body.cbx .section-lg, body.cbx .section-md { padding-top: 72px; padding-bottom: 72px; }
body.cbx .pbmit-heading-subheading .pbmit-subtitle {
    font-family: var(--cb-font-ui); text-transform: none; letter-spacing: 0;
    color: var(--cb-pass); font-weight: 600; font-size: var(--cb-t-sm);
}
body.cbx .pbmit-heading-subheading .pbmit-title { font-size: var(--cb-t-2xl); }
body.cbx .table { color: var(--cb-text); }
body.cbx .table thead th {
    font-family: var(--cb-font-ui); font-weight: 600; font-size: var(--cb-t-sm);
    color: var(--cb-ink-3); border-bottom: 1px solid var(--cb-rule); background: transparent;
}
body.cbx .table td, body.cbx .table th { border-color: var(--cb-rule-soft); }
body.cbx .alert { border-radius: var(--cb-r-md); border-width: 1px; }
body.cbx .alert-danger  { background: var(--cb-miss-tint); color: var(--cb-miss); border-color: transparent; }
body.cbx .alert-success { background: var(--cb-pass-tint); color: var(--cb-pass-deep); border-color: transparent; }
body.cbx .card { border: 1px solid var(--cb-rule); border-radius: var(--cb-r-lg); background: var(--cb-surface); box-shadow: none; }

/* 3. Buttons & forms -------------------------------------------------- */
body.cbx .cb-btn, body.cbx .pbmit-btn, body.cbx .btn-primary, :where(body.cbx) .cbx-btn {
    font-family: var(--cb-font-ui);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: var(--cb-r-sm);
    line-height: 1.2;
}
:where(body.cbx) .cbx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background-color var(--cb-dur) var(--cb-ease), border-color var(--cb-dur) var(--cb-ease), color var(--cb-dur) var(--cb-ease);
}
:where(body.cbx) .cbx-btn--lg { padding: 15px 24px; font-size: 1rem; }
:where(body.cbx) .cbx-btn--sm { padding: 8px 14px; font-size: .875rem; }
body.cbx .cb-btn--primary, body.cbx .pbmit-btn, body.cbx .btn-primary, :where(body.cbx) .cbx-btn--pass {
    background: var(--cb-pass); color: #fff; border: 1px solid var(--cb-pass); box-shadow: none;
}
body.cbx .cb-btn--primary:hover, body.cbx .pbmit-btn:hover, body.cbx .btn-primary:hover, :where(body.cbx) .cbx-btn--pass:hover {
    background: var(--cb-pass-deep); border-color: var(--cb-pass-deep); color: #fff; transform: none; box-shadow: none;
}
body.cbx .pbmit-btn::before, body.cbx .pbmit-btn::after { display: none !important; }
body.cbx .cb-btn--ghost, :where(body.cbx) .cbx-btn--line {
    background: transparent; color: var(--cb-ink); border: 1px solid var(--cb-rule);
}
body.cbx .cb-btn--ghost:hover, :where(body.cbx) .cbx-btn--line:hover { background: var(--cb-surface); border-color: var(--cb-ink-3); color: var(--cb-ink); }
body.cbx .cb-btn--invert, :where(body.cbx) .cbx-btn--ink { background: var(--cb-band); color: #fff; border: 1px solid var(--cb-band); }
body.cbx .cb-btn--invert:hover, :where(body.cbx) .cbx-btn--ink:hover { background: var(--cb-band-2); color: #fff; }
body.cbx .cb-btn--secondary { background: var(--cb-rule-soft); color: var(--cb-ink); border: 1px solid transparent; }

body.cbx input.form-control, body.cbx select.form-control, body.cbx textarea.form-control,
body.cbx .cb-field > input, body.cbx .cb-field > select, body.cbx .cb-field > textarea,
body.cbx .cb-auth-field input, :where(body.cbx) .cbx-input {
    font-family: var(--cb-font-ui);
    font-size: 1rem;
    color: var(--cb-ink);
    background: var(--cb-surface);
    border: 1px solid var(--cb-rule);
    border-radius: var(--cb-r-sm);
    padding: 11px 13px;
    box-shadow: none;
    transition: border-color var(--cb-dur) var(--cb-ease), box-shadow var(--cb-dur) var(--cb-ease);
}
body.cbx input.form-control:focus, body.cbx select.form-control:focus, body.cbx textarea.form-control:focus,
body.cbx .cb-field > input:focus, body.cbx .cb-field > select:focus, body.cbx .cb-field > textarea:focus,
body.cbx .cb-auth-field input:focus, :where(body.cbx) .cbx-input:focus {
    outline: none; border-color: var(--cb-ink); box-shadow: 0 0 0 3px var(--cb-mark-tint);
}
body.cbx .cb-field > label, body.cbx label {
    text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--cb-t-sm); color: var(--cb-ink-2);
}

/* Shared alert used by quiz flows */
.cb-alert {
    display: flex; gap: 10px; align-items: flex-start;
    max-width: var(--cb-container-max); margin: 16px auto; padding: 12px 16px;
    border-radius: var(--cb-r-md); font-size: .95rem;
}
.cb-alert svg { flex-shrink: 0; margin-top: 3px; }
.cb-alert--warning { background: var(--cb-mark-tint); color: #6B4E0A; border: 1px solid #EED48A; }
html.cb-dark .cb-alert--warning { color: var(--cb-mark); border-color: #5A4A1C; }

/* 4. Site header ----------------------------------------------------- */
.cbx-header {
    position: sticky; top: 0; z-index: 1000;
    background: color-mix(in srgb, var(--cb-paper) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--cb-dur) var(--cb-ease);
}
.cbx-header.is-scrolled { border-bottom-color: var(--cb-rule); }
.cbx-header__bar {
    height: var(--cb-header-h); display: flex; align-items: center; gap: 28px;
    max-width: var(--cb-container-max); margin-inline: auto; padding-inline: var(--cb-gutter);
}
.cbx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.cbx-brand img { height: 30px; width: auto; }
.cbx-brand__word {
    font-family: var(--cb-font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; color: var(--cb-ink);
}
.cbx-brand__word b { font-weight: 800; color: var(--cb-pass); }
.cbx-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cbx-nav a, .cbx-nav button {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
    color: var(--cb-ink-2); font-weight: 500; font-size: .95rem; text-decoration: none;
    border-radius: var(--cb-r-sm); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.cbx-nav a:hover, .cbx-nav button:hover { color: var(--cb-ink); background: var(--cb-rule-soft); }
.cbx-nav a[aria-current="page"] { color: var(--cb-ink); box-shadow: inset 0 -2px 0 var(--cb-mark); border-radius: 0; }
.cbx-header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cbx-iconbtn {
    width: 38px; height: 38px; display: inline-grid; place-items: center;
    border-radius: var(--cb-r-sm); border: 1px solid transparent; background: none; color: var(--cb-ink-2); cursor: pointer;
}
.cbx-iconbtn:hover { background: var(--cb-rule-soft); color: var(--cb-ink); }
.cbx-iconbtn svg { width: 19px; height: 19px; }

/* Dropdowns (more, language, account) */
.cbx-dd { position: relative; }
.cbx-dd__menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; z-index: 1001;
    background: var(--cb-surface); border: 1px solid var(--cb-rule); border-radius: var(--cb-r-md);
    box-shadow: var(--cb-e3); padding: 6px; display: none; list-style: none; margin: 0;
}
.cbx-dd__menu--left { left: 0; right: auto; }
.cbx-dd.is-open > .cbx-dd__menu { display: block; }
.cbx-dd__menu a, .cbx-dd__menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
    border-radius: var(--cb-r-sm); color: var(--cb-ink); text-decoration: none; font-size: .925rem;
    background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit;
}
.cbx-dd__menu a:hover, .cbx-dd__menu button:hover { background: var(--cb-paper); color: var(--cb-ink); }
.cbx-dd__menu a[aria-current="true"] { font-weight: 600; }
.cbx-dd__menu hr { border: 0; border-top: 1px solid var(--cb-rule-soft); margin: 6px 4px; }
.cbx-dd__meta { margin-left: auto; color: var(--cb-ink-3); font-size: .8rem; }
.cbx-avatar {
    width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--cb-pass-tint); color: var(--cb-pass-deep); font-weight: 700; font-size: .85rem; overflow: hidden;
}
.cbx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cbx-acct { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--cb-rule); border-radius: var(--cb-r-pill); padding: 3px 10px 3px 3px; cursor: pointer; color: var(--cb-ink); font: inherit; font-weight: 500; font-size: .9rem; }
.cbx-acct:hover { border-color: var(--cb-ink-3); }

.cbx-menu-toggle { display: none; }
.cbx-drawer { display: none; }

@media (max-width: 991px) {
    .cbx-header__bar { gap: 12px; }
    .cbx-nav, .cbx-header__end .cbx-hide-sm { display: none; }
    .cbx-menu-toggle { display: inline-grid; }
    .cbx-drawer {
        display: block; position: fixed; inset: var(--cb-header-h) 0 0 0; z-index: 999;
        background: var(--cb-paper); padding: 16px var(--cb-gutter) 32px; overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity var(--cb-dur) var(--cb-ease), transform var(--cb-dur) var(--cb-ease), visibility 0s linear var(--cb-dur);
    }
    .cbx-drawer.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    .cbx-drawer a, .cbx-drawer button.cbx-drawer__link {
        display: block; padding: 14px 4px; font-size: 1.1rem; font-weight: 500; color: var(--cb-ink);
        text-decoration: none; border-bottom: 1px solid var(--cb-rule-soft); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-family: inherit;
    }
    .cbx-drawer__group { margin-top: 20px; color: var(--cb-ink-3); font-size: .85rem; font-weight: 600; }
    .cbx-drawer .cbx-btn { margin-top: 20px; width: 100%; border-bottom: 0; color: #fff; }
    body.cbx-lock { overflow: hidden; }
}

/* 5. Footer & search -------------------------------------------------- */
.cbx-footer { background: var(--cb-band); color: var(--cb-band-mute); margin-top: 0; }
.cbx-footer a { color: var(--cb-band-text); text-decoration: none; }
.cbx-footer a:hover { color: var(--cb-mark); }
.cbx-footer__top {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
    padding-block: 64px 48px;
}
.cbx-footer__brand .cbx-brand__word { color: #fff; }
.cbx-footer__brand p { margin: 14px 0 22px; max-width: 34ch; font-size: .95rem; line-height: 1.6; }
.cbx-footer h2 { font-family: var(--cb-font-ui) !important; font-size: .9rem !important; font-weight: 600 !important; color: #fff !important; letter-spacing: 0 !important; margin: 0 0 14px; }
.cbx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.cbx-news { display: flex; gap: 8px; max-width: 380px; }
.cbx-news input {
    flex: 1; min-width: 0; background: var(--cb-band-2); border: 1px solid #33474E; color: #fff;
    border-radius: var(--cb-r-sm); padding: 11px 12px; font: inherit; font-size: .95rem;
}
.cbx-news input::placeholder { color: #8FA19D; }
.cbx-news input:focus { outline: none; border-color: var(--cb-mark); }
.cbx-news button { background: var(--cb-mark); color: #1D1A0E; border: 0; border-radius: var(--cb-r-sm); padding: 0 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cbx-news button:hover { background: #F7D36E; }
.cbx-footer__social { display: flex; gap: 6px; margin-top: 20px; }
.cbx-footer__social a { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--cb-r-sm); border: 1px solid #33474E; }
.cbx-footer__social a:hover { border-color: var(--cb-mark); }
.cbx-footer__social svg { width: 16px; height: 16px; }
.cbx-footer__bottom {
    border-top: 1px solid #2A3C43; padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px;
    justify-content: space-between; font-size: .875rem;
}
.cbx-footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 991px) { .cbx-footer__top { grid-template-columns: 1fr 1fr; } .cbx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 575px) { .cbx-footer__top { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; } }

.cbx-search {
    border: 0; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 32px);
    margin: 12vh auto auto;
}
.cbx-search::backdrop { background: rgba(14,23,26,.55); backdrop-filter: blur(3px); }
.cbx-search__panel { background: var(--cb-surface); border-radius: var(--cb-r-lg); box-shadow: var(--cb-e4); overflow: hidden; border: 1px solid var(--cb-rule); }
.cbx-search form { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--cb-rule-soft); }
.cbx-search input[type="search"] { flex: 1; border: 0; background: none; padding: 14px 4px; font: inherit; font-size: 1.1rem; color: var(--cb-ink); outline: none; }
.cbx-search kbd { font-size: .75rem; color: var(--cb-ink-3); border: 1px solid var(--cb-rule); border-radius: 4px; padding: 2px 6px; background: var(--cb-paper); }
.cbx-search__results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.cbx-search__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--cb-r-sm); color: var(--cb-ink); text-decoration: none; }
.cbx-search__item:hover, .cbx-search__item.is-active { background: var(--cb-paper); color: var(--cb-ink); }
.cbx-search__item small { display: block; color: var(--cb-ink-3); font-size: .82rem; }
.cbx-search__kind { margin-left: auto; font-size: .78rem; color: var(--cb-ink-3); }
.cbx-search__hint { padding: 16px 14px; color: var(--cb-ink-3); font-size: .9rem; }

/* 6. Page header (layout banner + _CbPageHeader) ----------------------- */
body.cbx .cb-page-header {
    background: transparent; color: var(--cb-ink); padding: 40px 0 28px; border-bottom: 1px solid var(--cb-rule);
}
body.cbx .cb-page-header::before { display: none; }
body.cbx .cb-page-header__crumbs, body.cbx .cb-page-header__crumbs a { color: var(--cb-ink-3); }
body.cbx .cb-page-header__crumbs a:hover { color: var(--cb-ink); }
body.cbx .cb-page-header__title { color: var(--cb-ink); font-size: var(--cb-t-3xl); }
body.cbx .cb-page-header__sub { color: var(--cb-ink-2); }
body.cbx .cb-page-header__actions .cb-btn--ghost { color: var(--cb-ink); border-color: var(--cb-rule); background: var(--cb-surface); }
body.cbx .cb-hero-dark { background: var(--cb-band); }
body.cbx .cb-hero-dark::before { display: none; }
@media (max-width: 1199px), (max-width: 767px) { body.cbx .cb-page-header { padding-top: 32px; padding-bottom: 24px; } }

/* Cards / KPI tiles inherit the calmer system */
body.cbx .cb-card, body.cbx .cb-panel, body.cbx .cb-kpi-tile, body.cbx .cb-kpi, body.cbx .cb-plan {
    background: var(--cb-surface); border: 1px solid var(--cb-rule); border-radius: var(--cb-r-lg); box-shadow: none;
}
body.cbx .cb-card--hover:hover { box-shadow: var(--cb-e2); transform: none; border-color: var(--cb-slate-300); }
body.cbx .cb-kpi-tile__value, body.cbx .cb-kpi__value { font-family: var(--cb-font-display); font-variant-numeric: tabular-nums; color: var(--cb-ink); }
body.cbx .cb-kpi-tile__label, body.cbx .cb-kpi__label, body.cbx .cb-eyebrow {
    text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--cb-ink-3); font-size: var(--cb-t-sm);
}
body.cbx .cb-gradient-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
body.cbx .cb-badge, body.cbx .cb-pill { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* 7. Home -------------------------------------------------------------- */
.cbx-hero { padding-block: 72px 88px; }
.cbx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.cbx-hero h1 {
    font-size: var(--cb-t-4xl); line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
    font-variation-settings: "opsz" 96; margin: 0 0 22px; max-width: 13ch;
}
.cbx-hero__lede { font-size: var(--cb-t-lg); color: var(--cb-ink-2); max-width: 46ch; margin: 0 0 32px; line-height: 1.55; }
.cbx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cbx-hero__note { margin-top: 18px; font-size: .9rem; color: var(--cb-ink-3); }
.cbx-proof { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--cb-rule); font-size: .95rem; color: var(--cb-ink-2); }
.cbx-proof strong { font-family: var(--cb-font-display); font-size: 1.15rem; color: var(--cb-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* The signature: a readiness sheet with the passing line */
.cbx-sheet {
    position: relative; background: var(--cb-surface); border: 1px solid var(--cb-rule);
    border-radius: var(--cb-r-lg); box-shadow: var(--cb-e3); padding: 26px 26px 22px;
}
.cbx-sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.cbx-sheet__cert { font-weight: 600; color: var(--cb-ink); font-size: 1rem; }
.cbx-sheet__sub { color: var(--cb-ink-3); font-size: .875rem; margin-bottom: 22px; }
.cbx-sheet__score { font-family: var(--cb-font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cb-pass); font-variant-numeric: tabular-nums; }
.cbx-sheet__score small { font-size: 1rem; color: var(--cb-ink-3); font-weight: 600; margin-left: 2px; }
.cbx-bars { position: relative; display: grid; gap: 14px; padding-block: 6px 10px; }
.cbx-bar { display: grid; grid-template-columns: 9.5em 1fr 3.2em; align-items: center; gap: 12px; font-size: .875rem; color: var(--cb-ink-2); }
.cbx-bar__track { position: relative; height: 10px; background: var(--cb-rule-soft); border-radius: 2px; overflow: visible; }
.cbx-bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--cb-pass); border-radius: 2px; transform-origin: left; }
.cbx-bar--below .cbx-bar__fill { background: var(--cb-miss); }
.cbx-bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cb-ink); }
.cbx-passline {
    position: absolute; top: -6px; bottom: -6px; left: calc(9.5em + 12px + (100% - 9.5em - 3.2em - 24px) * var(--pass));
    width: 0; border-left: 2px dashed var(--cb-mark); pointer-events: none;
}
.cbx-passline span {
    position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--cb-mark); color: #2B240C; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}
.cbx-sheet__foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--cb-rule-soft); display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--cb-ink-2); }
.cbx-sheet__foot svg { color: var(--cb-pass); flex-shrink: 0; margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .cbx-sheet .cbx-bar__fill { animation: cbxFill .9s var(--cb-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
    @keyframes cbxFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.cbx-section { padding-block: 88px; }
.cbx-section--rule { border-top: 1px solid var(--cb-rule); }
.cbx-section__head { max-width: 640px; margin-bottom: 44px; }
.cbx-section__head h2 { font-size: var(--cb-t-3xl); margin: 0 0 14px; }
.cbx-section__head p { font-size: var(--cb-t-lg); color: var(--cb-ink-2); margin: 0; }

/* How it works: a real sequence, so numbering is meaningful */
.cbx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.cbx-steps li { position: relative; padding: 26px 24px 4px 0; border-top: 2px solid var(--cb-ink); counter-increment: step; }
.cbx-steps li + li { padding-left: 24px; border-left: 1px solid var(--cb-rule); }
.cbx-steps li:last-child { border-top-color: var(--cb-pass); }
.cbx-steps li::before { content: counter(step); display: block; font-family: var(--cb-font-display); font-weight: 800; font-size: 2rem; color: var(--cb-ink-3); line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.cbx-steps li:last-child::before { color: var(--cb-pass); }
.cbx-steps h3 { font-size: 1.25rem; margin: 0 0 8px; }
.cbx-steps p { color: var(--cb-ink-2); font-size: .97rem; margin: 0 0 12px; }
.cbx-steps a { font-weight: 600; font-size: .925rem; }
@media (max-width: 991px) { .cbx-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } .cbx-steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 575px) { .cbx-steps { grid-template-columns: 1fr; } .cbx-steps li, .cbx-steps li + li { padding-left: 0; border-left: 0; } }

/* Certification catalogue: an index, not a card wall */
.cbx-certs { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 1px solid var(--cb-rule); }
.cbx-cert {
    display: grid; grid-template-columns: 5.5em 1fr auto; gap: 16px; align-items: center;
    padding: 18px 2px; border-bottom: 1px solid var(--cb-rule); color: var(--cb-ink) !important; text-decoration: none !important;
}
.cbx-cert__code { font-family: var(--cb-font-display); font-weight: 700; color: var(--cb-pass); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-cert__name { font-weight: 500; line-height: 1.35; }
.cbx-cert__go { color: var(--cb-ink-3); transition: transform var(--cb-dur) var(--cb-ease), color var(--cb-dur) var(--cb-ease); }
.cbx-cert:hover .cbx-cert__name { text-decoration: underline; text-decoration-color: var(--cb-mark); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.cbx-cert:hover .cbx-cert__go { color: var(--cb-ink); transform: translateX(3px); }
.cbx-certs__more { margin-top: 28px; }
@media (max-width: 767px) { .cbx-certs { grid-template-columns: 1fr; } }

/* Feature rows: one big, two supporting */
.cbx-features { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.cbx-feature { background: var(--cb-surface); border: 1px solid var(--cb-rule); border-radius: var(--cb-r-lg); padding: 30px; }
.cbx-feature--lead { grid-row: span 2; background: var(--cb-band); border-color: var(--cb-band); color: var(--cb-band-mute); display: flex; flex-direction: column; }
.cbx-feature--lead h3 { color: #fff !important; font-size: var(--cb-t-2xl); }
.cbx-feature h3 { font-size: 1.3rem; margin: 0 0 10px; }
.cbx-feature p { margin: 0; color: var(--cb-ink-2); }
.cbx-feature--lead p { color: var(--cb-band-mute); font-size: 1.05rem; max-width: 44ch; }
.cbx-chat { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.cbx-chat__q { justify-self: end; max-width: 80%; background: var(--cb-band-2); color: var(--cb-band-text); padding: 10px 14px; border-radius: 12px 12px 3px 12px; font-size: .95rem; }
.cbx-chat__a { max-width: 88%; background: #fff; color: var(--cb-ink); padding: 12px 14px; border-radius: 12px 12px 12px 3px; font-size: .95rem; line-height: 1.5; }
.cbx-chat__a b { background: var(--cb-mark-tint); padding: 0 3px; border-radius: 2px; font-weight: 600; }
html.cb-dark .cbx-chat__a { background: var(--cb-surface); }
@media (max-width: 991px) { .cbx-features { grid-template-columns: 1fr; } .cbx-feature--lead { grid-row: auto; } }

/* FAQ */
.cbx-faq { max-width: 820px; border-top: 1px solid var(--cb-rule); }
.cbx-faq details { border-bottom: 1px solid var(--cb-rule); }
.cbx-faq summary { list-style: none; cursor: pointer; padding: 20px 2px; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.05rem; color: var(--cb-ink); }
.cbx-faq summary::-webkit-details-marker { display: none; }
.cbx-faq summary::after { content: "+"; font-family: var(--cb-font-display); font-size: 1.4rem; line-height: 1; color: var(--cb-ink-3); transition: transform var(--cb-dur) var(--cb-ease); }
.cbx-faq details[open] summary::after { transform: rotate(45deg); color: var(--cb-ink); }
.cbx-faq details p { margin: 0 0 22px; color: var(--cb-ink-2); max-width: 68ch; }

/* Closing band */
.cbx-cta { background: var(--cb-band); color: var(--cb-band-mute); border-radius: var(--cb-r-xl); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cbx-cta h2 { color: #fff !important; font-size: var(--cb-t-2xl); margin: 0 0 8px; }
.cbx-cta p { margin: 0; font-size: 1.05rem; }
.cbx-cta .cbx-btn--line { color: #fff; border-color: #3A4F57; }
.cbx-cta .cbx-btn--line:hover { background: var(--cb-band-2); color: #fff; border-color: #577079; }
@media (max-width: 767px) { .cbx-cta { grid-template-columns: 1fr; padding: 36px 24px; } }

@media (max-width: 991px) {
    .cbx-hero { padding-block: 40px 64px; }
    .cbx-hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .cbx-section { padding-block: 64px; }
}
@media (max-width: 480px) { .cbx-bar { grid-template-columns: 7.5em 1fr 2.8em; } .cbx-passline { left: calc(7.5em + 12px + (100% - 7.5em - 2.8em - 24px) * var(--pass)); } }

/* 8. Pricing ---------------------------------------------------------- */
.cbx-pricing-head { padding-block: 56px 32px; max-width: 720px; }
.cbx-pricing-head h1 { font-size: var(--cb-t-3xl); margin: 0 0 16px; letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.cbx-pricing-head p { font-size: var(--cb-t-lg); color: var(--cb-ink-2); margin: 0; }
.cbx-plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--cb-rule); border-radius: var(--cb-r-lg); background: var(--cb-surface); overflow: hidden; }
.cbx-plan { padding: 28px 24px; display: flex; flex-direction: column; border-left: 1px solid var(--cb-rule); position: relative; }
.cbx-plan:first-child { border-left: 0; }
.cbx-plan--best { background: var(--cb-band); color: var(--cb-band-mute); border-left-color: var(--cb-band); }
.cbx-plan--best h2, .cbx-plan--best .cbx-plan__price { color: #fff !important; }
.cbx-plan__flag { position: absolute; top: 0; left: 24px; right: 24px; height: 3px; background: var(--cb-mark); }
.cbx-plan__tag { font-size: .8rem; font-weight: 600; color: var(--cb-pass); height: 1.4em; line-height: 1.4em; margin-bottom: 8px; }
.cbx-plan--best .cbx-plan__tag { color: var(--cb-mark); }
.cbx-plan h2 { font-family: var(--cb-font-ui) !important; font-size: 1.05rem !important; font-weight: 600 !important; letter-spacing: 0 !important; margin: 0 0 14px; }
.cbx-plan__price { font-family: var(--cb-font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cb-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cbx-plan__per { font-size: .9rem; color: var(--cb-ink-3); margin: 6px 0 16px; }
.cbx-plan--best .cbx-plan__per { color: var(--cb-band-mute); }
.cbx-plan__desc { font-size: .93rem; margin: 0 0 22px; min-height: 4.2em; }
.cbx-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: .93rem; }
.cbx-plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.cbx-plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--cb-pass); }
.cbx-plan--best li svg { color: var(--cb-mark); }
.cbx-plan form { margin-top: auto; }
.cbx-plan .cbx-btn { width: 100%; }
.cbx-plan--best .cbx-btn--pass { background: var(--cb-mark); border-color: var(--cb-mark); color: #2B240C; }
.cbx-plan--best .cbx-btn--pass:hover { background: #F7D36E; border-color: #F7D36E; color: #2B240C; }
.cbx-teams { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cbx-team { border: 1px solid var(--cb-rule); border-radius: var(--cb-r-lg); padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; background: var(--cb-surface); }
.cbx-team h2 { font-family: var(--cb-font-ui) !important; font-size: 1.05rem !important; font-weight: 600 !important; letter-spacing: 0 !important; margin: 0; }
.cbx-team p { grid-column: 1; margin: 0; font-size: .93rem; color: var(--cb-ink-2); }
.cbx-team__price { font-family: var(--cb-font-display); font-weight: 800; font-size: 1.6rem; color: var(--cb-ink); }
.cbx-team form, .cbx-team > a { grid-column: 2; grid-row: 1 / span 2; }
.cbx-compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cbx-compare th, .cbx-compare td { padding: 14px 12px; border-bottom: 1px solid var(--cb-rule); text-align: center; }
.cbx-compare th:first-child, .cbx-compare td:first-child { text-align: left; color: var(--cb-ink); font-weight: 500; }
.cbx-compare thead th { font-weight: 600; color: var(--cb-ink); position: sticky; top: var(--cb-header-h); background: var(--cb-paper); }
.cbx-compare td { color: var(--cb-ink-2); font-variant-numeric: tabular-nums; }
.cbx-compare .is-best { background: color-mix(in srgb, var(--cb-mark-tint) 45%, transparent); }
.cbx-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cbx-guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; font-size: .95rem; color: var(--cb-ink-2); }
.cbx-guarantee svg { color: var(--cb-pass); flex-shrink: 0; }
@media (max-width: 1099px) { .cbx-plans { grid-template-columns: 1fr 1fr; } .cbx-plan:nth-child(3) { border-left: 0; } .cbx-plan:nth-child(n+3) { border-top: 1px solid var(--cb-rule); } }
@media (max-width: 640px) {
    .cbx-plans { grid-template-columns: 1fr; } .cbx-plan { border-left: 0; } .cbx-plan + .cbx-plan { border-top: 1px solid var(--cb-rule); }
    .cbx-teams { grid-template-columns: 1fr; } .cbx-team { grid-template-columns: 1fr; } .cbx-team form, .cbx-team > a { grid-column: 1; grid-row: auto; }
    .cbx-plan__desc { min-height: 0; }
}

/* 10. Utilities -------------------------------------------------------- */
.cbx-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cbx-mark { background: linear-gradient(transparent 58%, var(--cb-mark-tint) 58%); }

/* 11. Auth pages ------------------------------------------------------ */
body.cbx .cb-auth-wrap { background: transparent; }
body.cbx .cb-auth-card { border: 1px solid var(--cb-rule); border-radius: var(--cb-r-xl); box-shadow: var(--cb-e2); overflow: hidden; background: var(--cb-surface); }
body.cbx .cb-auth-hero { background: var(--cb-band); color: var(--cb-band-mute); }
body.cbx .cb-auth-hero::before { display: none; }
body.cbx .cb-auth-hero__brand span { font-family: var(--cb-font-display); font-weight: 800; letter-spacing: -.03em; color: #fff; }
body.cbx .cb-auth-hero__title { color: #fff !important; font-size: var(--cb-t-2xl); line-height: 1.12; }
body.cbx .cb-auth-hero__copy { color: var(--cb-band-mute); }
body.cbx .cb-auth-hero__list li { color: var(--cb-band-text); }
body.cbx .cb-auth-check { background: transparent !important; color: var(--cb-mark) !important; border: 1px solid #3A4F57 !important; }
body.cbx .cb-auth-body__title { font-family: var(--cb-font-display); color: var(--cb-ink); letter-spacing: -.02em; }
body.cbx .cb-auth-submit { background: var(--cb-pass) !important; border-color: var(--cb-pass) !important; color: #fff !important; box-shadow: none !important; border-radius: var(--cb-r-sm) !important; }
body.cbx .cb-auth-submit:hover { background: var(--cb-pass-deep) !important; }
body.cbx .cb-auth-link { color: var(--cb-pass); }
.cbx-authsheet { position: relative; margin-top: 28px; padding: 18px 18px 14px; border: 1px solid #2E4249; border-radius: var(--cb-r-md); display: grid; gap: 12px; max-width: 360px; }
.cbx-authsheet__row { display: grid; grid-template-columns: 6.5em 1fr 2.8em; gap: 10px; align-items: center; font-size: .85rem; color: var(--cb-band-text); }
.cbx-authsheet__row i { height: 8px; background: linear-gradient(90deg, #3DB894 var(--v), #2A3C43 var(--v)); border-radius: 2px; }
.cbx-authsheet__row.is-low i { background: linear-gradient(90deg, #E2786E var(--v), #2A3C43 var(--v)); }
.cbx-authsheet__row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cbx-authsheet__line { position: absolute; top: 10px; bottom: 6px; left: calc(18px + 6.5em + 10px + (100% - 36px - 6.5em - 2.8em - 20px) * .72); border-left: 2px dashed var(--cb-mark); }
.cbx-cert[hidden] { display: none; }

/* Brand mark stays visible on dark bands */
.cbx-footer .cbx-brand svg rect, .cb-auth-hero__brand svg rect { fill: var(--cb-band-2); }
/* Keep legacy bootstrap a:hover underline off controls and nav */
.cbx-btn:hover, .cbx-btn:focus, .cbx-header a:hover, .cbx-drawer a:hover, .cbx-footer a:hover, .cbx-dd__menu a:hover, .cbx-cert:hover { text-decoration: none; }
/* Dark theme: the brighter pass green needs dark text for contrast */
html.cb-dark body.cbx .cbx-btn--pass, html.cb-dark body.cbx .cb-btn--primary, html.cb-dark body.cbx .pbmit-btn,
html.cb-dark body.cbx .btn-primary, html.cb-dark body.cbx .cb-auth-submit { color: #08201A !important; }

/* Check lists (certification page, plan cards) */
.cbx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .97rem; color: var(--cb-ink-2); }
.cbx-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.cbx-checks svg { width: 16px; height: 16px; margin-top: 4px; color: var(--cb-pass); }
.cbx-checks--cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 40px; max-width: 980px; font-size: 1rem; }

/* Alerts + SSO notes on public/auth pages (the app shell has its own copy in cb-app.css) */
body.cbx:not(.cbx-app) .cbx-alert { padding: 12px 16px; border-radius: 8px; font-size: .92rem; border: 1px solid; margin: 0 0 18px; line-height: 1.5; color: var(--cb-ink); }
body.cbx:not(.cbx-app) .cbx-alert--pass { background: var(--cb-pass-tint); border-color: color-mix(in srgb, var(--cb-pass) 35%, transparent); }
body.cbx:not(.cbx-app) .cbx-alert--miss { background: var(--cb-miss-tint); border-color: color-mix(in srgb, var(--cb-miss) 35%, transparent); }
body.cbx:not(.cbx-app) .cbx-alert--mark { background: var(--cb-mark-tint); border-color: color-mix(in srgb, var(--cb-mark) 60%, transparent); }
.cbx-sso-notes { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: .86rem; color: var(--cb-ink-3); line-height: 1.5; }
.cbx-sso-notes li { padding-left: 14px; border-left: 2px solid var(--cb-rule); }
