.eb-home-hero {
    --demo-ink: #172447;
    --demo-muted: #4b5c78;
    --demo-blue: #3046e8;
    padding: clamp(44px, 6.6vw, 94px) 0;
    background:
        radial-gradient(ellipse at 98% 14%, #e4e9ff, transparent 55%),
        linear-gradient(145deg, #faf8f4, #f4f6ff);
    border-bottom: 1px solid #e1e5f1;
}

.eb-home-hero-inner {
    width: min(100% - 56px, 1200px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
    gap: clamp(38px, 5vw, 76px);
    align-items: center;
}

.eb-home-hero .eb-home-hero-exam {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 19px;
    color: #38499a;
    font-size: 15px;
    font-weight: 700;
}

.eb-home-hero-exam i {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #e4e9ff;
    font-size: 17px;
}

.eb-home-hero h1 {
    margin: 0 0 18px;
    color: var(--demo-ink);
    font-size: clamp(49px, 5.7vw, 81px);
    line-height: .99;
    letter-spacing: -.065em;
}

.eb-home-hero h1 span { display: block; color: #2c41ce; }

.eb-home-hero .eb-home-hero-lead {
    margin: 0;
    max-width: 39ch;
    color: var(--demo-muted);
    font-size: clamp(17px, 1.52vw, 20px);
    line-height: 1.6;
}

.eb-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.eb-home-hero-actions a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.eb-home-hero-actions .eb-home-hero-primary {
    background: var(--demo-blue);
    color: #fff;
    box-shadow: 0 7px 16px #223be032;
}

.eb-home-hero-actions .eb-home-hero-primary:hover { background: #2537bd; color: #fff; }
.eb-home-hero-actions .eb-home-hero-secondary { background: #fff; border-color: #cfd6ee; color: var(--demo-ink); }
.eb-home-hero-actions .eb-home-hero-secondary:hover { background: #e9edff; border-color: #a7b1e3; color: var(--demo-ink); }

.eb-home-hero .eb-home-hero-note {
    margin: 15px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 13px;
    color: var(--demo-muted);
    font-size: 14px;
}

.eb-home-hero-note i { color: #1e6955; }
.eb-home-hero-live { display: inline-flex; align-items: center; gap: 7px; }
.eb-home-hero-note a { color: #2c41ce; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.eb-home-hero-jump { display: none; }
.eb-home-hero :is(button, a):focus-visible { outline: 3px solid #6074f0; outline-offset: 4px; }
#revision-passes { scroll-margin-top: 82px; }

.fc-demo {
    --demo-radius: 22px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
    scroll-margin-top: 85px;
}

.fc-demo [hidden] { display: none !important; }

.fc-demo-layout {
    border: 1px solid #cdd5ef;
    border-radius: var(--demo-radius);
    overflow: hidden;
    box-shadow: 0 23px 52px #17244725;
}

.fc-demo-stage {
    min-width: 0;
    padding: clamp(20px, 3vw, 34px);
    background:
        repeating-radial-gradient(ellipse at 106% 12%, transparent 0 28px, #c3caff16 29px 30px),
        radial-gradient(ellipse at 90% 9%, #3849a1 0, transparent 63%),
        #18264b;
}

.fc-demo-stage-header {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fc-demo-stage-header h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; margin: 0 0 4px; }
.fc-demo-stage-header p { color: #e0e6ff; font-size: 14px; margin: 0; }

.fc-demo-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.fc-demo-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #c4cfee;
    font-size: 14px;
    font-weight: 650;
}

.fc-demo-steps li span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border: 1px solid #6879ae;
    border-radius: 50%;
    font-size: 12px;
}

.fc-demo-steps li[aria-current="step"] { color: #fff; }
.fc-demo-steps li[aria-current="step"] span { background: #bbf0de; color: #16483c; border-color: #bbf0de; }

.fc-demo-stack {
    perspective: 1100px;
    position: relative;
    margin-block: 0 25px;
}

.fc-demo-stack::before, .fc-demo-stack::after {
    position: absolute;
    content: '';
    border-radius: 18px;
    pointer-events: none;
}

.fc-demo-stack::before {
    inset: 8px 5% -12px;
    background: #7485ca;
    box-shadow: 0 12px 22px #0b133690;
}

.fc-demo-stack::after { inset: 4px 2.5% -6px; background: #afbaf0; }

.fc-demo-card {
    position: relative;
    z-index: 1;
    display: grid;
    transform: rotateY(0);
    transform-style: preserve-3d;
    transition: transform 580ms cubic-bezier(.32, .1, .23, 1);
}

.fc-demo-card.is-flipped { transform: rotateY(-180deg); }

.fc-demo-face {
    grid-area: 1 / 1;
    display: grid;
    align-items: center;
    grid-template-rows: auto 1fr auto;
    gap: 15px;
    position: relative;
    min-width: 0;
    min-height: 200px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid #dce2fd;
    border-radius: 18px;
    background: radial-gradient(ellipse at 100% 0, #e9ebff 0, transparent 39%), #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(.5px);
}

.fc-demo-answer-face {
    background: radial-gradient(ellipse at 100% 0, #cde0fc 0, transparent 53%), #e9ebff;
    transform: rotateY(180deg) translateZ(.5px);
}

.fc-demo-face[aria-hidden="true"] { pointer-events: none; }
.fc-demo-face :is(.fc-demo-question, .fc-demo-answer):focus { outline: none; }

.fc-demo-face-label, .fc-demo-face-label span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: #495b99;
    font-size: 14px;
    font-weight: 750;
}

.fc-demo-face-label i { font-size: 17px; }

.fc-demo-face :is(.fc-demo-question, .fc-demo-answer) {
    align-self: center;
    max-width: 26ch;
    margin: 0 auto;
    color: var(--demo-ink);
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.027em;
    text-align: center;
}

.fc-demo-face .fc-demo-answer { font-weight: 500; }
.fc-demo-answer strong { font-weight: 750; }

.fc-demo-flip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--demo-blue);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
}

.fc-demo-flip { justify-self: center; }
.fc-demo-flip:hover { color: #fff; background: #2537bd; }
.fc-demo-flip::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.fc-demo-flip:focus-visible::after { outline: 3px solid #6074f0; outline-offset: -4px; }
.fc-demo-flip-back { background: #fff; color: #2739ba; border-color: #c0caf3; }
.fc-demo-flip-back:hover { background: #dfe5ff; color: #2739ba; }

.fc-demo-controls p {
    margin: 0 0 10px;
    color: #f0f3ff;
    font-size: 15px;
    font-weight: 650;
}

.fc-demo-ratings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fc-demo-rate {
    --rating-color: #243cae;
    --rating-tint: #edf0ff;
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--demo-ink);
    font: inherit;
    text-align: start;
}

.fc-demo-rate[data-demo-rating="again"] { --rating-color: #8f2f51; --rating-tint: #fdeaf1; }
.fc-demo-rate[data-demo-rating="hard"] { --rating-color: #7e470c; --rating-tint: #fff1dc; }
.fc-demo-rate[data-demo-rating="easy"] { --rating-color: #135345; --rating-tint: #dbf5eb; }
.fc-demo-rate:disabled { cursor: default; background: #e1e6f5; }
.fc-demo-rate:hover:not(:disabled), .fc-demo-rate[aria-pressed="true"] { border-color: var(--rating-color); background: var(--rating-tint); }

.fc-demo-rate span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rating-color);
    font-size: 15px;
    font-weight: 750;
}

.fc-demo-rate small { color: var(--demo-muted); font-size: 14px; line-height: 1.15; }
.fc-demo-noscript { color: #fff; margin: 10px 0 0; }

.fc-demo-plan {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 96px;
    padding: 16px clamp(20px, 3vw, 34px);
    background: #f0f3ff;
    color: var(--demo-ink);
    scroll-margin-block: 78px 20px;
}

.fc-demo-plan.is-rated { background: #ecf8f2; }
.fc-demo-plan.is-rated .fc-demo-clock { background: #d4f0e2; color: #205f49; }

.fc-demo-result-title, .fc-demo-timing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 12px;
}

.fc-demo-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 5px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #e9eeff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fc-demo-clock {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #dce3fd;
    color: #29428d;
    font-size: 19px;
}

.fc-demo-plan .fc-demo-now { margin: 0; color: #405693; font-size: 14px; }
.fc-demo-plan h3 { margin: 0 0 4px; color: var(--demo-ink); font-size: 17px; letter-spacing: -.02em; }
.fc-demo-plan .fc-demo-placeholder { margin: 0; color: var(--demo-muted); font-size: 15px; }
.fc-demo-plan .fc-demo-delay {
    margin: 0;
    color: var(--demo-ink);
    font-size: clamp(18px, 2.15vw, 27px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    line-height: 1.16;
}

.fc-demo-time { color: #35447e; font-size: 15px; font-weight: 650; }

@media (max-width: 910px) {
    .eb-home-hero-inner { width: min(100% - 40px, 660px); grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .eb-home-hero h1 { font-size: clamp(46px, 8.1vw, 66px); }
    .eb-home-hero-jump {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        gap: 8px;
        margin-top: 5px;
        color: #2a3abb;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (max-width: 500px) {
    .eb-home-hero-inner { width: calc(100% - 30px); gap: 17px; }
    .eb-home-hero { padding: 31px 0 40px; }
    .eb-home-hero .eb-home-hero-exam { margin-bottom: 13px; }
    .eb-home-hero h1 { margin-bottom: 13px; }
    .eb-home-hero .eb-home-hero-lead { line-height: 1.5; }
    .eb-home-hero-actions { margin-top: 20px; }
    .fc-demo { --demo-radius: 17px; scroll-margin-top: 70px; }
    .fc-demo-stage { padding: 17px; }
    .fc-demo-stage-header { margin-bottom: 12px; }
    .fc-demo-steps { gap: 8px 12px; }
    .fc-demo-face { min-height: 188px; gap: 12px; }
    .fc-demo-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .fc-demo-card, .fc-demo-card.is-flipped { transform: none; transition: none; }
    .fc-demo-face, .fc-demo-answer-face { transform: none; }
    .fc-demo-face[aria-hidden="true"] { visibility: hidden; }
}
