/* School-year introductory pricing, shared by the pass pages and upgrade cards. */
[data-pass-intro][hidden] { display: none !important; }
[data-pass-experiment][hidden] { display: none !important; }
.cme-quiz-explanation, .cme-feedback-invite { margin-top: 1rem; padding: 1rem; border: 1px solid #b9cfcb; border-radius: 12px; background: #f2f8f6; color: #183c36; line-height: 1.7; }
.cme-quiz-explanation p, .cme-feedback-invite p { margin: .35rem 0; }
.cme-feedback-invite a { color: inherit; text-decoration: underline; font-weight: 700; }
.cme-feedback-invite button { margin-left: 1rem; padding: .45rem .75rem; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
[data-theme="dark"] .cme-quiz-explanation, [data-theme="dark"] .cme-feedback-invite { background: #18352e; color: #e1f4eb; border-color: #517467; }
.cme-pass-promotion { border: 1px solid #d8c6f0; border-radius: 14px; background: #f6f0ff; color: #35204f; padding: 16px 18px; margin: 18px 0; line-height: 1.65; }
.cme-pass-promotion__label { display: block; font-size: 12px; font-weight: 750; color: #6d28a7; }
.cme-pass-promotion__detail { display: block; font-size: 12px; color: #5e4b72; margin-top: 5px; }
.cme-pass-promotion__access { display: block; font-size: 12px; color: #5e4b72; margin-top: 8px; }
.cme-pass-promotion__future { display: block; font-size: 14px; font-weight: 650; color: #493556; margin-top: 5px; }
.cme-pass-promotion--hero { max-width: 630px; margin: 20px auto; }
.cme-pass-promotion--compact { margin: 14px 0; padding: 12px 14px; }
.cme-pass-promotion--dark { border-color: #57765a; background: #294c40; color: #e6f5d8; }
.cme-pass-promotion--dark .cme-pass-promotion__label, .cme-pass-promotion--dark .cme-pass-promotion__future { color: #ddf1bd; }
.cme-pass-promotion--dark .cme-pass-promotion__detail, .cme-pass-promotion--dark .cme-pass-promotion__access { color: #d0e5d5; }
[data-theme="dark"] .cme-pass-promotion { background: #2a213a; border-color: #59446f; color: #f1e5ff; }
[data-theme="dark"] .cme-pass-promotion__label, [data-theme="dark"] .cme-pass-promotion__future { color: #dfc1ff; }
[data-theme="dark"] .cme-pass-promotion__detail, [data-theme="dark"] .cme-pass-promotion__access { color: #d3c2e5; }
.cme-pass-offer-note { font-size: 12px; line-height: 1.7; color: inherit; margin: 10px 0 16px; }
@media (max-width: 600px) { .cme-pass-promotion { padding: 14px; } .cme-pass-promotion__label { font-size: 12px; } }

.pass-offer .cme-pass-offer-note { margin-left: auto; margin-right: auto; }

/* Keep the offer part of the price, with quieter supporting terms. */
.cme-pass-promotion--hero,
.cme-pass-promotion--pricing {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    line-height: 1.6;
}
.cme-pass-promotion--hero {
    max-width: 620px;
    margin: 24px auto 12px;
    padding-top: 20px;
    border-top: 1px solid #dce2ea;
}
.cme-pass-promotion--hero .cme-pass-promotion__label,
.cme-pass-promotion--pricing .cme-pass-promotion__label {
    color: #65509a;
    font-size: 12px;
    font-weight: 650;
}
.cme-pass-promotion--hero .cme-pass-promotion__detail,
.cme-pass-promotion--hero .cme-pass-promotion__future {
    display: inline;
    color: #586579;
    font-size: 12px;
    font-weight: 400;
}
.cme-pass-promotion--hero .cme-pass-promotion__future::before { content: " · "; }
.ep-hero .ep-hero__note { margin-top: 12px; font-size: 12px; color: #586579; }
.pricing-card.pricing-card--featured {
    border: 1px solid #b8a7db;
    box-shadow: 0 8px 28px rgba(35, 28, 60, 0.07);
}
.pricing-card > .pricing-card__title { margin-bottom: 0; }
.pricing-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pricing-card__heading .pricing-card__title { margin-bottom: 0; }
.pricing-card__heading .pricing-card__badge {
    position: static;
    background: #f0edf6;
    color: #65509a;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.pricing-card .cme-pass-promotion--pricing { margin: 8px 0 20px; padding-bottom: 18px; border-bottom: 1px solid #e3e5ec; }
.cme-pass-promotion--pricing .cme-pass-promotion__detail,
.cme-pass-promotion--pricing .cme-pass-promotion__future { color: #586579; font-size: 12px; font-weight: 400; margin-top: 3px; }
[data-theme="dark"] .cme-pass-promotion--hero,
[data-theme="dark"] .cme-pass-promotion--pricing { background: transparent; border-color: #414757; }
[data-theme="dark"] .ep-hero .ep-hero__note,
[data-theme="dark"] .cme-pass-promotion--hero .cme-pass-promotion__detail,
[data-theme="dark"] .cme-pass-promotion--hero .cme-pass-promotion__future,
[data-theme="dark"] .cme-pass-promotion--pricing .cme-pass-promotion__detail,
[data-theme="dark"] .cme-pass-promotion--pricing .cme-pass-promotion__future { color: #bdc7d8; }
[data-theme="dark"] .cme-pass-promotion--hero .cme-pass-promotion__label,
[data-theme="dark"] .cme-pass-promotion--pricing .cme-pass-promotion__label { color: #cbb6f1; }
[data-theme="dark"] .pricing-card__heading .pricing-card__badge { background: #30283f; color: #d5c6ed; }
@media (max-width: 600px) {
    .cme-pass-promotion--hero { margin-top: 20px; padding: 16px 0 0; }
    .cme-pass-promotion--hero .cme-pass-promotion__detail,
    .cme-pass-promotion--hero .cme-pass-promotion__future { display: block; }
    .cme-pass-promotion--hero .cme-pass-promotion__future::before { content: none; }
}

/* A clear visual signal next to the purchase decision. */
.cme-offer-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    margin-top: 22px;
    border-radius: 6px;
    background: #6d28d9;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.pricing-card .cme-offer-badge:not([hidden]) + .pricing-card__price { margin-top: 8px; }
.cme-offer-badge--hero { margin: 0 auto 12px; }
.cme-pass-promotion--pricing .cme-pass-promotion__detail,
.cme-pass-promotion--hero .cme-pass-promotion__detail {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
}
.cme-pass-promotion--hero .cme-pass-promotion__future { display: block; }
.cme-pass-promotion--hero .cme-pass-promotion__future::before { content: none; }
[data-theme="dark"] .cme-offer-badge { background: #c4b5fd; color: #241044; }

/* One-minute welcome about exam practice and the introductory price (exam-pass-promotion.js). */
.cme-offer-nudge, .cme-practice-show, .pricing-warm {
    --cmn-ink: var(--color-navy, #0f172a);
    --cmn-text: var(--color-text, #334155);
    --cmn-muted: var(--color-text-muted, #64748b);
    --cmn-surface: var(--color-surface, #fff);
    --cmn-raised: var(--color-surface-raised, #f8fafc);
    --cmn-edge: var(--color-border, rgba(15, 23, 42, .1));
    --cmn-serif: "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
    --cmn-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
.cme-offer-nudge {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: var(--font-family, Inter, system-ui, sans-serif);
    animation: cmn-fade .3s ease both;
}
html.cme-offer-nudge-open { overflow: hidden; }
.cme-offer-nudge__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cme-offer-nudge__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 24px;
    background: var(--cmn-surface);
    color: var(--cmn-text);
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .5), 0 2px 8px rgba(15, 23, 42, .08);
    outline: none;
    animation: cmn-rise .45s cubic-bezier(.16, 1, .3, 1) both;
}
.cme-offer-nudge--leaving { animation: cmn-fade-out .25s ease both; }
@keyframes cmn-fade { from { opacity: 0; } }
@keyframes cmn-fade-out { to { opacity: 0; } }
@keyframes cmn-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cme-offer-nudge, .cme-offer-nudge__panel, .cme-offer-nudge--leaving { animation: none; } }
.cme-offer-nudge__close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: grid; place-items: center; width: 36px; height: 36px;
    border: 0; border-radius: 10px; background: transparent; color: var(--cmn-muted); cursor: pointer;
}
.cme-offer-nudge__close:hover { background: var(--color-surface-sunken, #f1f5f9); }

/* Left: the click-through, on a warm panel */
.cme-offer-nudge__show {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    margin: 12px 12px 12px 0;
    padding: 28px 26px 20px;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(20, 184, 166, .22), transparent 60%),
        radial-gradient(90% 80% at 100% 100%, rgba(139, 92, 246, .18), transparent 60%),
        linear-gradient(160deg, #fdf8f1, #eefaf6);
}
[data-theme="dark"] .cme-offer-nudge__show {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(20, 184, 166, .22), transparent 60%),
        radial-gradient(90% 80% at 100% 100%, rgba(139, 92, 246, .22), transparent 60%),
        linear-gradient(160deg, #172033, #0f1a26);
}
.cme-offer-nudge__stage { display: grid; min-height: 360px; }
.cme-offer-nudge__slide {
    grid-area: 1 / 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
.cme-offer-nudge__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cme-offer-nudge__slide { transition: none; transform: none; } }
.cme-offer-nudge__slide figcaption { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--cmn-ink); }
.cme-offer-nudge__slide figcaption span {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--color-teal-dark, #0d9488); color: #fff; font-size: .75rem;
}
.cme-offer-nudge__controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cme-offer-nudge__arrow {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--cmn-edge); background: var(--cmn-surface); color: var(--cmn-ink); cursor: pointer;
}
.cme-offer-nudge__arrow:hover { border-color: var(--color-teal, #14b8a6); }
.cme-offer-nudge__dots { display: flex; gap: 6px; }
.cme-offer-nudge__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(100, 116, 139, .35); cursor: pointer; transition: width .25s ease, background .25s ease; }
.cme-offer-nudge__dots button[aria-selected="true"] { width: 24px; background: var(--color-teal-dark, #0d9488); }

/* Mini exam-paper previews */
.cmn-card { border-radius: 14px; background: var(--cmn-surface); border: 1px solid var(--cmn-edge); box-shadow: 0 18px 36px -24px rgba(15, 23, 42, .45); overflow: hidden; font-size: 13px; }
.cmn-card--pad { padding: 16px; }
.cmn-strip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-teal-text, #0f766e); background: linear-gradient(90deg, rgba(20, 184, 166, .1), transparent 70%); border-bottom: 1px solid var(--cmn-edge); }
.cmn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-teal, #14b8a6); }
.cmn-marks { margin-left: auto; letter-spacing: 0; text-transform: none; color: var(--cmn-muted); }
.cmn-body { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px 14px 14px 10px; }
.cmn-num { font: 700 18px/1 var(--cmn-mono); color: var(--color-teal-dark, #0d9488); text-align: right; padding: 2px 8px 0 0; border-right: 2px solid #fecdd3; }
.cmn-q { margin: 0 0 10px; font: 600 14px/1.45 var(--cmn-serif); color: var(--cmn-ink); }
.cmn-answer { border-radius: 12px; padding: 1.5px; background: linear-gradient(120deg, #14b8a6, #3b82f6, #8b5cf6, #ec4899, #f59e0b); box-shadow: 0 0 18px -6px rgba(139, 92, 246, .45); }
.cmn-answer > div { background-color: var(--cmn-surface); }
.cmn-answer > .cmn-tools { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; border-radius: 10.5px 10.5px 0 0; background-color: var(--cmn-raised); border-bottom: 1px solid var(--cmn-edge); }
.cmn-tools i { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--cmn-edge); background: var(--cmn-surface); color: var(--cmn-ink); }
.cmn-answer > .cmn-lines { min-height: 58px; padding: 2px 10px 6px; font-size: 12.5px; line-height: 24px; color: var(--cmn-ink); background-image: linear-gradient(transparent 0 23px, rgba(148, 163, 184, .28) 23px 24px); background-size: 100% 24px; background-repeat: repeat; }
.cmn-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--color-teal-dark, #0d9488); animation: cmn-blink 1s steps(1) infinite; }
@keyframes cmn-blink { 50% { opacity: 0; } }
.cmn-answer > .cmn-btnrow { display: flex; justify-content: flex-end; padding: 6px; border-radius: 0 0 10.5px 10.5px; background-color: var(--cmn-raised); border-top: 1px solid var(--cmn-edge); }
.cmn-btn { padding: 5px 10px; border-radius: 7px; background: var(--cmn-ink); color: var(--cmn-surface); font-size: 11px; font-weight: 700; }
.cmn-score { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--cmn-edge); }
.cmn-score b { font: 700 28px/1 var(--cmn-mono); color: var(--cmn-ink); }
.cmn-score small { font: 600 14px var(--cmn-mono); color: var(--cmn-muted); }
.cmn-bars { display: flex; gap: 3px; margin-top: 5px; }
.cmn-bars i { width: 20px; height: 5px; border-radius: 3px; background: rgba(217, 119, 6, .25); }
.cmn-bars i.on { background: #d97706; }
.cmn-score p { margin: 0; font-weight: 650; font-size: 13.5px; color: var(--cmn-ink); }
.cmn-label { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cmn-muted); }
.cmn-mark { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 12.5px; font-weight: 550; color: var(--cmn-ink); }
.cmn-tick, .cmn-cross { flex: 0 0 auto; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; font-weight: 800; }
.cmn-tick { background: #059669; color: #fff; }
.cmn-cross { background: rgba(225, 29, 72, .14); color: #e11d48; }
.cmn-tip { margin-top: 8px; padding: 9px 11px; border-radius: 10px; border-left: 3px solid var(--color-teal, #14b8a6); background: var(--cmn-raised); font-size: 12px; line-height: 1.45; }
.cmn-tip b { display: block; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-teal-text, #0f766e); margin-bottom: 2px; }
.cmn-model { margin: 0 0 12px; font: 500 13.5px/1.55 var(--cmn-serif); color: var(--cmn-ink); }
.cmn-model em { font-style: normal; font-family: var(--cmn-mono); font-size: 11px; font-weight: 700; color: var(--color-teal-dark, #0d9488); }
.cmn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmn-chip { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--cmn-raised); border: 1px solid var(--cmn-edge); color: var(--cmn-ink); }

/* Right: the welcome */
.cme-offer-nudge__intro { order: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 36px 36px 44px; }
.cme-offer-nudge__eyebrow { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-teal-text, #0f766e); }
.cme-offer-nudge .cme-offer-nudge__title {
    margin: 0 0 .7rem; padding: 0; border: 0;
    font: 600 clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem)/1.15 var(--cmn-serif);
    letter-spacing: -.01em;
    color: var(--cmn-ink);
}
.cme-offer-nudge__title::before, .cme-offer-nudge__title::after { content: none !important; }
.cme-offer-nudge__lead { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; }
.cme-offer-nudge__list { margin: 0 0 1.1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.cme-offer-nudge__list li { position: relative; padding-left: 1.6rem; font-size: .9rem; line-height: 1.45; color: var(--cmn-ink); }
.cme-offer-nudge__list li::before {
    content: ""; position: absolute; left: 0; top: .12rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: var(--color-teal-dark, #0d9488) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.cme-offer-nudge__price { margin: 0 0 1.1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--cmn-raised); border: 1px solid var(--cmn-edge); font-size: .84rem; line-height: 1.5; }
.cme-offer-nudge__price b { color: var(--cmn-ink); }
.cme-offer-nudge__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; }
.cme-offer-nudge__go {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.2rem;
    border-radius: 12px; background: var(--cmn-ink); color: var(--cmn-surface) !important;
    font-size: .95rem; font-weight: 700; text-decoration: none !important; transition: transform .15s ease, filter .15s ease;
}
.cme-offer-nudge__go:hover { transform: translateY(-1px); filter: brightness(1.15); }
.cme-offer-nudge__free { font-size: .9rem; font-weight: 650; color: var(--color-teal-text, #0f766e) !important; }
.cme-offer-nudge__later { align-self: flex-start; margin-top: .9rem; padding: .35rem 0; border: 0; background: none; color: var(--cmn-muted); font: inherit; font-size: .84rem; cursor: pointer; }
.cme-offer-nudge__later:hover { color: var(--cmn-ink); text-decoration: underline; }
.cme-offer-nudge :is(button, a):focus-visible { outline: 2px solid var(--color-teal, #14b8a6); outline-offset: 2px; }
[data-theme="dark"] .cme-offer-nudge__panel { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
[data-theme="dark"] .cme-offer-nudge__backdrop { background: rgba(2, 6, 23, .6); }
[data-theme="dark"] .cmn-num { border-right-color: rgba(251, 113, 133, .35); }

@media (max-width: 800px) {
    .cme-offer-nudge { place-items: end center; padding: 8px; }
    .cme-offer-nudge__panel { grid-template-columns: 1fr; max-height: calc(100dvh - 16px); border-radius: 22px; }
    .cme-offer-nudge__intro { order: 1; padding: 22px 20px 6px; }
    .cme-offer-nudge__show { order: 2; margin: 8px 10px 0; padding: 14px 14px 12px; gap: 10px; }
    .cme-offer-nudge__stage { min-height: 250px; }
    .cme-offer-nudge .cme-offer-nudge__title { font-size: 1.55rem; margin-right: 2rem; }
    .cme-offer-nudge__lead, .cme-offer-nudge__list { display: none; }
    .cme-offer-nudge__price { margin-bottom: .8rem; }
    .cme-offer-nudge__go { flex: 1 1 100%; }
    .cme-offer-nudge__free { margin: 0 auto; }
    .cme-offer-nudge__later { align-self: center; margin: .4rem 0 .6rem; order: 3; }
    .cme-offer-nudge__panel > .cme-offer-nudge__later { display: none; }
    .cmn-card { font-size: 12px; }
    .cmn-q { font-size: 13px; }
}

