/* ========================================
   Question bank landing page (MRCEM Primary)
   Prefix: .qbl-  ·  Shares tokens with home.css (blue #245cb5, ink #172d40)
   ======================================== */
.qbl {
    --qbl-blue: #245cb5;
    --qbl-blue-dk: #1b488f;
    --qbl-blue-lt: #edf3fc;
    --qbl-ink: #172d40;
    --qbl-muted: #52647a;
    --qbl-line: #dce6f2;
    --qbl-bg: #f7faff;
    --qbl-green: #1f9d6b;
    --qbl-green-lt: #e8f6ef;
    --qbl-red: #d0443e;
    --qbl-red-lt: #fdeeed;
    color: var(--qbl-ink);
    font-family: 'Inter', system-ui, sans-serif;
}
.qbl *, .qbl *::before, .qbl *::after { box-sizing: border-box; }
.qbl-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 3vw, 40px); }
.qbl h1, .qbl h2, .qbl h3 { margin: 0; color: var(--qbl-ink); }
.qbl h2 { font: 700 clamp(27px, 3vw, 38px)/1.25 'Sora', system-ui, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.qbl h3 { font: 650 17px/1.4 'DM Sans', system-ui, sans-serif; }
.qbl p { margin: 0; }
.qbl a:focus-visible, .qbl button:focus-visible { outline: 3px solid var(--qbl-blue); outline-offset: 3px; border-radius: 6px; }

.qbl-section { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: 90px; }
.qbl-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 52px); text-align: center; }
.qbl-head > p:last-child:not(.qbl-label) { margin-top: 16px; color: var(--qbl-muted); font-size: 17px; line-height: 1.75; }
.qbl-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px !important; color: var(--qbl-blue); font: 600 12.5px/1.4 'Inter', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.qbl-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Buttons */
.qbl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qbl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; font: 600 16px/1.4 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.qbl-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .18s; }
.qbl-btn:hover svg { transform: translateX(3px); }
.qbl-btn--primary { background: var(--qbl-blue); color: #fff; }
.qbl-btn--primary:hover { background: var(--qbl-blue-dk); color: #fff; }
.qbl-btn--ghost { border-color: #bdcfe7; background: #f8fafd; color: var(--qbl-ink); }
.qbl-btn--ghost:hover { border-color: var(--qbl-blue); background: var(--qbl-blue-lt); color: var(--qbl-ink); }
.qbl-btn--light { background: #fff; color: var(--qbl-blue); }
.qbl-btn--light:hover { background: var(--qbl-blue-lt); color: var(--qbl-blue-dk); }
.qbl-btn--outline { border-color: rgba(255,255,255,.45); color: #fff; }
.qbl-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ───── Hero (centred, text only) ───── */
.qbl-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 6vw, 80px) 0 clamp(52px, 6vw, 80px); background: #f0f5fc; border-bottom: 1px solid #e2eaf4; text-align: center; }
.qbl-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(240,245,252,.86), rgba(240,245,252,.96) 34%, rgba(240,245,252,.96) 66%, rgba(240,245,252,.86)), url('../images/mrcem-revision-desk-hero.webp') center / cover no-repeat; }
.qbl-hero__inner { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.qbl-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; color: #6b7c90; font-size: 13.5px; }
.qbl-crumbs a { color: #6b7c90; text-decoration: none; }
.qbl-crumbs a:hover { color: var(--qbl-blue); text-decoration: underline; }
.qbl-crumbs [aria-current] { color: var(--qbl-ink); font-weight: 500; }
.qbl-hero h1 { font: 700 clamp(28px, calc(2.8vw + 2px), 40px)/1.2 'Sora', system-ui, sans-serif; letter-spacing: -.025em; color: #172d40; text-wrap: balance; }
.qbl-hero__intro { max-width: 700px; margin-top: 22px !important; color: #52647a; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.qbl-hero .qbl-actions { justify-content: center; gap: 14px; margin-top: 32px; }

/* ───── Syllabus coverage (explorer) ───── */
.qbl-syllabus { background: var(--qbl-bg); border-block: 1px solid #e2eaf4; }
/* Let the syllabus heading sit on one line on wider screens; keep the intro text at a readable width. */
.qbl-syllabus .qbl-head { max-width: 980px; }
.qbl-syllabus .qbl-head > p:last-child { max-width: 720px; margin-inline: auto; }
.qbl-sx { overflow: hidden; border: 1px solid var(--qbl-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(11, 30, 61, .08), 0 2px 8px rgba(11, 30, 61, .04); }

/* Distribution bar */
.qbl-sx__dist { padding: 22px clamp(20px, 3vw, 32px) 24px; border-bottom: 1px solid #e8eef6; background: linear-gradient(180deg, #fbfdff, #fff); }
.qbl-sx__dist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.qbl-sx__dist-head span { color: #6b7c90; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.qbl-sx__dist-head strong { color: var(--qbl-ink); font: 700 15px/1.3 'DM Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.qbl-sx__bar { display: flex; gap: 3px; height: 14px; }
.qbl-sx__bar span { min-width: 6px; border-radius: 4px; background: var(--c); transition: opacity .25s, transform .25s; }
.qbl-sx.is-enhanced .qbl-sx__bar span { cursor: pointer; }
.qbl-sx__bar span.is-dim { opacity: .22; }
.qbl-sx__bar span:not(.is-dim) { transform: scaleY(1.25); }

.qbl-sx__body { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }

/* Subject list */
.qbl-sx__tabs { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-right: 1px solid #e8eef6; background: #fafcfe; }
.qbl-sx__tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--qbl-ink); font: inherit; text-align: left; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s; }
.qbl-sx__tab:hover { background: #fff; border-color: #e3eaf4; }
.qbl-sx__tab.is-active { background: #fff; border-color: color-mix(in srgb, var(--c) 35%, #fff); box-shadow: 0 6px 18px rgba(11, 30, 61, .07); }
.qbl-sx__tab.is-active::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.qbl-sx__tab-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--t); color: var(--c); }
.qbl-sx__tab-icon svg { width: 20px; height: 20px; }
.qbl-sx__tab-text { display: grid; flex: 1; min-width: 0; }
.qbl-sx__tab-name { font: 650 15px/1.35 'DM Sans', system-ui, sans-serif; }
.qbl-sx__tab-count { color: #6b7c90; font-size: 13px; font-variant-numeric: tabular-nums; }
.qbl-sx__tab-share { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; background: #f0f4f9; color: #4d6075; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qbl-sx__tab.is-active .qbl-sx__tab-share { background: var(--t); color: var(--c); }
/* Subject panel */
.qbl-sx__panel { padding: clamp(22px, 3vw, 36px); }
.qbl-sx__panel + .qbl-sx__panel { border-top: 1px solid #e8eef6; } /* no-JS: panels stack */
.qbl-sx.is-enhanced .qbl-sx__panel + .qbl-sx__panel { border-top: 0; }
.qbl-sx__panel:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
.qbl-sx.is-enhanced .qbl-sx__panel:not([hidden]) { animation: qbl-sx-in .3s ease; }
@keyframes qbl-sx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qbl-sx__panel-head { display: flex; gap: 16px; align-items: flex-start; }
.qbl-sx__panel-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--t); color: var(--c); }
.qbl-sx__panel-icon svg { width: 26px; height: 26px; }
.qbl-sx__panel h3 { font: 700 clamp(21px, 2vw, 25px)/1.25 'Sora', system-ui, sans-serif; letter-spacing: -.02em; }
.qbl-sx__panel-head p { max-width: 560px; margin-top: 6px; color: var(--qbl-muted); font-size: 15.5px; line-height: 1.6; }
.qbl-sx__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 28px; }
.qbl-sx__facts > div { padding: 14px 16px; border: 1px solid #e8eef6; border-radius: 12px; background: #fbfcfe; }
.qbl-sx__facts dt { color: #6b7c90; font-size: 12.5px; font-weight: 500; }
.qbl-sx__facts dd { margin: 2px 0 0; color: var(--c); font: 700 24px/1.2 'Sora', system-ui, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qbl-sx__list-label { margin-bottom: 10px !important; color: var(--qbl-ink); font: 650 14px/1.4 'DM Sans', system-ui, sans-serif; }
.qbl-sx__list-label span { color: #8a99ab; font-weight: 500; }
.qbl-sx__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.qbl-sx__topics li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 38px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #e3eaf4; }
.qbl-sx__topic-name { overflow: hidden; color: #26394d; font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.qbl-sx__topic-bar { height: 6px; border-radius: 6px; background: #eef2f8; overflow: hidden; }
.qbl-sx__topic-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.qbl-sx__topic-count { color: var(--qbl-ink); font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ───── Question bank preview ───── */
.qbl-preview { background: #fff; }
.qbl-preview.qbl-section { padding-top: clamp(40px, 5vw, 64px); }
.qbl-preview__nav { margin-bottom: clamp(18px, 2.4vw, 28px); }
.qbl-preview__tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--qbl-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(11, 30, 61, .05);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.qbl-preview__tabs::-webkit-scrollbar { display: none; }
.qbl-preview__tabs button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--qbl-muted);
    font: 650 14.5px/1.3 'DM Sans', system-ui, sans-serif;
    white-space: nowrap;
    scroll-snap-align: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.qbl-preview__tabs svg { flex: none; width: 18px; height: 18px; }
.qbl-preview__tabs button:hover { background: var(--qbl-bg); color: var(--qbl-blue-dk); }
.qbl-preview__tabs button[aria-selected="true"] { background: var(--qbl-blue); color: #fff; box-shadow: 0 4px 12px rgba(36, 92, 181, .28); }
.qbl-preview__tabs button:focus-visible { outline-offset: -3px; }

.qbl-preview__slide { margin: 0; }
.qbl-preview__slide + .qbl-preview__slide { margin-top: 48px; }
.qbl-preview.is-enhanced .qbl-preview__slide { margin-top: 0; }
.qbl-preview.is-enhanced .qbl-preview__slide:not([hidden]) { animation: qbl-preview-in .32s ease both; }
@keyframes qbl-preview-in { from { opacity: 0; transform: translateY(6px); } }

/* Coloured stage the window floats on */
.qbl-preview__stage {
    position: relative;
    isolation: isolate;
    max-width: 1160px;
    margin-inline: auto;
    padding: clamp(14px, 3.4vw, 48px);
    overflow: hidden;
    border-radius: clamp(18px, 2.4vw, 30px);
    border: 1px solid #dfe8f6;
    /* One brand hue: a soft blue glow at the top fading to pale blue-white. */
    background:
        radial-gradient(75% 65% at 50% 0%, rgba(96, 148, 236, .26), transparent 72%),
        linear-gradient(180deg, #ecf2fd 0%, #f5f8fe 60%, #f8fafe 100%);
}
.qbl-preview__stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(36, 92, 181, .13) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
            mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
}

/* macOS-style window */
.qbl-preview__frame {
    overflow: hidden;
    border-radius: clamp(10px, 1.2vw, 14px);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(23, 45, 64, .08), 0 2px 4px rgba(23, 45, 64, .06), 0 12px 24px -6px rgba(36, 92, 181, .14), 0 40px 80px -24px rgba(36, 92, 181, .32);
}
.qbl-preview__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 40px;
    padding-inline: 14px;
    border-bottom: 1px solid #e2e7ef;
    background: linear-gradient(180deg, #fbfcfe 0%, #f0f3f8 100%);
}
.qbl-preview__lights { display: flex; gap: 8px; }
.qbl-preview__lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.qbl-preview__lights i:nth-child(1) { background: #ff5f57; }
.qbl-preview__lights i:nth-child(2) { background: #febc2e; }
.qbl-preview__lights i:nth-child(3) { background: #28c840; }
.qbl-preview__url {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: min(380px, 46vw);
    height: 26px;
    padding-inline: 14px;
    border-radius: 7px;
    background: #e6ebf2;
    color: #7a8aa0;
    font: 500 12.5px/1 'Inter', system-ui, sans-serif;
    white-space: nowrap;
}
.qbl-preview__url svg { width: 12px; height: 12px; color: #8fa0b5; }
.qbl-preview__url b { color: #3a4d63; font-weight: 600; }

/* Every tab uses the same 3:2 screen so switching never changes the page height. */
.qbl-preview__screen { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef3f9; }
.qbl-preview__screen img, .qbl-preview__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qbl-preview__screen video { cursor: pointer; }
.qbl-preview__shot { cursor: zoom-in; }
.qbl-preview__shot:focus-visible { outline: 3px solid var(--qbl-blue); outline-offset: -3px; }
.qbl-preview__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(14, 30, 58, .72);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(10px) saturate(1.4);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}
.qbl-preview__zoom svg { width: 15px; height: 15px; }
.qbl-preview__shot:hover .qbl-preview__zoom, .qbl-preview__shot:focus-visible .qbl-preview__zoom { opacity: 1; transform: none; }

/* Video: glass control bar */
.qbl-preview__controls {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 1.6vw, 18px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 6px 5px 5px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: #13294b;
    box-shadow: 0 8px 22px -8px rgba(8, 22, 50, .45), 0 0 0 1px rgba(255, 255, 255, .08);
    color: #fff;
    backdrop-filter: blur(12px) saturate(1.5);
    transform: translateX(-50%);
    transition: opacity .25s ease, transform .25s ease;
}
.qbl-preview__controls[hidden] { display: none; }
/* While playing, controls rest quietly and come back on hover/focus. */
.qbl-preview__screen.is-playing .qbl-preview__controls { transform: translateX(-50%) scale(.9); transform-origin: bottom center; }
.qbl-preview__screen.is-playing:hover .qbl-preview__controls,
.qbl-preview__screen.is-playing .qbl-preview__controls:focus-within { transform: translateX(-50%); }
.qbl-preview__screen.is-playing:hover .qbl-preview__controls,
.qbl-preview__screen .qbl-preview__controls:focus-within { opacity: 1; }
.qbl-preview__ctrl {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.qbl-preview__ctrl:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.qbl-preview__ctrl svg { width: 17px; height: 17px; }
.qbl-preview__ctrl--main { width: 34px; height: 34px; background: #fff; color: var(--qbl-blue); }
.qbl-preview__ctrl--main:hover { background: #fff; color: var(--qbl-blue-dk); transform: scale(1.06); }
.qbl-preview__ctrl--main svg { width: 15px; height: 15px; }
.qbl-preview__ctrl:focus-visible, .qbl-preview__start:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.qbl-preview__icon-pause, .is-playing .qbl-preview__icon-play { display: none; }
.is-playing .qbl-preview__icon-pause { display: block; }
.qbl-preview__icon-play { margin-left: 2px; }
.qbl-preview__track { position: relative; width: clamp(70px, 14vw, 150px); height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.qbl-preview__track span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #8fb8ff, #fff); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.qbl-preview__time { min-width: 70px; color: rgba(255, 255, 255, .85); font: 600 12px/1 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: center; }

/* Before the first play (or with reduced motion): one clear call to action */
.qbl-preview__start {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 40px -10px rgba(8, 22, 50, .5), 0 0 0 6px rgba(255, 255, 255, .28);
    color: var(--qbl-ink);
    font: 650 15px/1 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, box-shadow .2s ease;
}
.qbl-preview__start:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 20px 44px -10px rgba(8, 22, 50, .55), 0 0 0 8px rgba(255, 255, 255, .32); }
.qbl-preview__start-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--qbl-blue); color: #fff; }
.qbl-preview__start-icon svg { width: 16px; height: 16px; margin-left: 2px; }
.qbl-preview__screen.is-idle:not(.is-playing) .qbl-preview__start:not([hidden]) { display: inline-flex; }
.qbl-preview__screen.is-idle:not(.is-playing)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 58, 0) 30%, rgba(14, 30, 58, .28)); pointer-events: none; }
.qbl-preview__screen.is-idle:not(.is-playing) .qbl-preview__controls { opacity: 0; pointer-events: none; }
.qbl-preview__start { z-index: 2; }

.qbl-preview__copy { min-height: calc(2 * 1.65em + clamp(20px, 2.6vw, 30px)); max-width: 680px; margin: 0 auto; padding-top: clamp(20px, 2.6vw, 30px); color: var(--qbl-muted); font-size: clamp(15.5px, 1.5vw, 17px); line-height: 1.65; text-align: center; text-wrap: balance; }



@media (max-width: 680px) {
    .qbl-preview__tabs { width: auto; margin-inline: calc(-1 * clamp(18px, 3vw, 40px)); padding-inline: clamp(18px, 3vw, 40px); border-inline: 0; border-radius: 0; box-shadow: none; background: transparent; border-color: transparent; }
    .qbl-preview__tabs button { padding: 8px 13px; border: 1px solid var(--qbl-line); background: #fff; font-size: 14px; }
    .qbl-preview__tabs button[aria-selected="true"] { border-color: var(--qbl-blue); }
    .qbl-preview__stage { margin-inline: calc(-1 * clamp(18px, 3vw, 40px) + 8px); }
    .qbl-preview__bar { height: 28px; padding-inline: 10px; }
    .qbl-preview__lights { gap: 5px; }
    .qbl-preview__lights i { width: 8px; height: 8px; }
    .qbl-preview__url { min-width: 0; height: 18px; padding-inline: 8px; border-radius: 5px; font-size: 9.5px; }
    .qbl-preview__url svg { width: 9px; height: 9px; }
    .qbl-preview__zoom { opacity: 1; transform: none; right: 8px; bottom: 8px; padding: 6px 10px; font-size: 11.5px; }
    .qbl-preview__controls { left: auto; right: 8px; bottom: 8px; gap: 2px; padding: 3px; transform: none; }
    .qbl-preview__track { display: none; }
    .qbl-preview__screen.is-playing .qbl-preview__controls,
    .qbl-preview__screen.is-playing:hover .qbl-preview__controls,
    .qbl-preview__screen.is-playing .qbl-preview__controls:focus-within { transform: none; }
    .qbl-preview__ctrl { width: 28px; height: 28px; }
    .qbl-preview__ctrl--main { width: 28px; height: 28px; }
    .qbl-preview__ctrl svg { width: 15px; height: 15px; }
    .qbl-preview__ctrl--main svg { width: 12px; height: 12px; }
    .qbl-preview__time { display: none; }
    .qbl-preview__start { gap: 9px; padding: 6px 16px 6px 6px; font-size: 13.5px; }
    .qbl-preview__start-icon { width: 32px; height: 32px; }
    .qbl-preview__copy { min-height: calc(4 * 1.65em + 20px); }
}
@media (prefers-reduced-motion: reduce) {
    .qbl-preview.is-enhanced .qbl-preview__slide:not([hidden]) { animation: none; }
    .qbl-preview__tabs button, .qbl-preview__zoom, .qbl-preview__controls, .qbl-preview__ctrl, .qbl-preview__start, .qbl-preview__track span { transition: none; }
}

/* ───── Steps ───── */
.qbl-steps { background: #fff; }
.qbl-steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.qbl-steps__list::before { content: ''; position: absolute; top: 24px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #b9cde8 0 8px, transparent 8px 14px); }
.qbl-steps__list li { position: relative; text-align: center; }
.qbl-steps__num { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border: 4px solid #fff; border-radius: 50%; background: var(--qbl-blue); color: #fff; font: 700 18px/1 'Sora', system-ui, sans-serif; box-shadow: 0 6px 16px rgba(36, 92, 181, .3); }
.qbl-steps__list p { max-width: 300px; margin: 8px auto 0; color: var(--qbl-muted); font-size: 15px; line-height: 1.65; }

/* ───── Reviews (reuses reviews.css cards) ───── */
.qbl-reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }

/* ───── Final CTA ───── */
.qbl-final { padding: 0 0 clamp(56px, 7vw, 96px); background: var(--qbl-bg); }
.qbl-final__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; width: calc(100% - 2 * clamp(18px, 3vw, 40px)); max-width: 690px; padding: 38px 26px; border: 1px solid #dce6f2; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(23, 45, 64, .04); text-align: center; }
.qbl-final h2 { color: #172d40; font: 650 22px/1.4 'DM Sans', system-ui, sans-serif; letter-spacing: -.01em; }
.qbl-final p { margin-top: 10px; color: #5b6c80; font-size: 15px; line-height: 1.75; }
.qbl-final .qbl-actions { justify-content: center; gap: 12px; }
/* The card closes the FAQ block, as the support card does on the homepage. */
.qbl .home-faq { padding-bottom: 30px; }

/* ───── Mobile sticky CTA ───── */
.qbl-sticky { display: none; }

/* ───── Responsive ───── */
@media (max-width: 1080px) {
    .qbl-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qbl-sx__topics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .qbl-sx__body { grid-template-columns: minmax(0, 1fr); }
    .qbl-sx__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; border-right: 0; border-bottom: 1px solid #e8eef6; }
    .qbl-sx__tab.is-active::before { left: 12px; right: 12px; top: auto; bottom: -1px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
}
@media (max-width: 680px) {
    .qbl-sx { border-radius: 16px; }
    .qbl-sx__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
    .qbl-sx__tab { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-color: #e3eaf4; background: #fff; }
    .qbl-sx__tab-icon { flex-basis: auto; width: 32px; height: 32px; }
    .qbl-sx__tab-icon svg { width: 18px; height: 18px; }
    .qbl-sx__tab-name { font-size: 14px; }
    .qbl-sx__tab-count { font-size: 12.5px; }
    .qbl-sx__tab-share { position: absolute; top: 12px; right: 10px; }
    .qbl-sx__panel-head { flex-direction: column; gap: 12px; }
    .qbl-sx__panel-icon { flex-basis: auto; width: 46px; height: 46px; }
    .qbl-sx__facts { gap: 8px; margin: 20px 0 22px; }
    .qbl-sx__facts > div { padding: 12px; }
    .qbl-sx__facts dd { font-size: 20px; }
    .qbl-sx__topics li { grid-template-columns: minmax(0, 1fr) 64px 34px; gap: 10px; }
    .qbl-sx__dist-head { flex-direction: column; gap: 2px; }
}
@media (max-width: 680px) {
    .qbl-reviews__grid { grid-template-columns: minmax(0, 1fr); }
    .qbl-steps__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .qbl-steps__list::before { display: none; }
    .qbl-hero h1 { font-size: clamp(25px, calc(6vw + 2px), 30px); }
    .qbl-hero__intro { font-size: 16.5px; }
    .qbl-hero .qbl-actions, .qbl-final .qbl-actions { flex-direction: column; width: 100%; max-width: 380px; }
        .qbl-hero .qbl-btn, .qbl-final .qbl-btn { width: 100%; }

    .qbl-sticky { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--qbl-line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 -8px 24px rgba(11, 30, 61, .08); transform: translateY(110%); transition: transform .25s ease; }
    .qbl-sticky.is-on { transform: none; }
    .qbl-sticky[hidden] { display: none; }
    .qbl-sticky .qbl-btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .qbl *, .qbl-sticky { transition: none !important; }
}

/* Section rhythm on this page: alternate white / tint after Pricing moved above Reviews.
   How it works (white) → Pricing (tint) → Reviews (white) → FAQ (tint) → Final CTA (white). */
.qbl .pr-section { background: var(--qbl-bg); }
.qbl .qbl-reviews { background: #fff; }
