.book-test-page,
.book-test-page *,
.book-test-page *::before,
.book-test-page *::after {
    box-sizing: border-box;
}

.book-test-body {
    background:
        radial-gradient(circle at 8% 0%, rgb(139 92 246 / .1), transparent 24rem),
        #eef2f8;
    color: #14233f;
}

.book-test-page {
    --bt-ink: #14233f;
    --bt-blue: #173f91;
    --bt-purple: #8b5cf6;
    --bt-muted: #52627d;
    --bt-line: rgb(20 35 63 / .12);
    --bt-card: #fff;
    width: min(100% - 1.5rem, 70rem);
    margin: 0 auto;
    padding: 1rem 0 4.5rem;
}

.book-test-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #102e6f, #173f91 55%, #12203a);
    color: #fff;
}

.book-test-eyebrow {
    margin: 0 0 .45rem;
    color: var(--bt-purple);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.book-test-hero .book-test-eyebrow,
.book-test-zipper .book-test-eyebrow,
.book-test-warning .book-test-eyebrow {
    color: #c4b5fd;
}

.book-test-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    letter-spacing: -0.045em;
    line-height: .96;
}

.book-test-hero__lead,
.book-test-hero__meta {
    max-width: 36rem;
}

.book-test-hero__lead {
    margin: .9rem 0 0;
    color: rgb(255 255 255 / .86);
    font-size: 1.02rem;
    line-height: 1.55;
}

.book-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.book-test-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: .55rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
}

.book-test-button small {
    display: none;
}

.book-test-button:hover {
    transform: translateY(-1px);
}

.book-test-button:focus-visible,
.book-test-jump select:focus-visible,
.book-test-shot:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 3px;
}

.book-test-button--primary {
    color: #fff !important;
    background: var(--bt-purple);
}

.book-test-button--quiet {
    color: #fff !important;
    background: rgb(255 255 255 / .12);
    border-color: rgb(255 255 255 / .22);
}

.book-test-hero__meta {
    margin: .85rem 0 0;
    color: rgb(255 255 255 / .68);
    font-size: .86rem;
}

.book-test-hero__shot {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #061226;
    box-shadow: 0 .8rem 1.8rem rgb(8 16 40 / .28);
}

.book-test-hero__shot .book-test-shot__frame {
    aspect-ratio: 16 / 10;
    max-height: 18rem;
}

.book-test-hero__shot figcaption,
.book-test-shot figcaption {
    padding: .65rem .85rem .75rem;
    color: var(--bt-muted);
    background: #f4f7fb;
    font-size: .82rem;
    line-height: 1.4;
}

.book-test-jump {
    position: sticky;
    top: .65rem;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .7rem 1rem;
    margin: .85rem 0 0;
    padding: .65rem .9rem;
    border: 1px solid var(--bt-line);
    border-radius: .95rem;
    background: rgb(255 255 255 / .96);
}

.book-test-jump label {
    color: var(--bt-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.book-test-jump select {
    width: 100%;
    min-height: 2.55rem;
    padding: .45rem .75rem;
    border: 1px solid var(--bt-line);
    border-radius: .65rem;
    background: #fff;
    color: var(--bt-ink);
    font-weight: 650;
}

.book-test-content {
    display: grid;
    gap: .85rem;
    margin-top: .85rem;
}

.book-test-section,
.book-test-zipper,
.book-test-warning {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border-radius: 1.25rem;
}

.book-test-section {
    border: 1px solid var(--bt-line);
    background: var(--bt-card);
}

.book-test-section__heading h2,
.book-test-zipper h2,
.book-test-warning h2 {
    margin: 0;
    color: var(--bt-ink);
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.book-test-section__body,
.book-test-section__heading {
    min-width: 0;
}

.book-test-section__body > p {
    margin: 0 0 1rem;
    color: var(--bt-muted);
    line-height: 1.6;
}

.book-test-steps {
    display: grid;
    gap: 1rem;
}

.book-test-step {
    display: grid;
    gap: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--bt-line);
}

.book-test-step:first-child {
    padding-top: 0;
    border-top: 0;
}

.book-test-step:has(.book-test-shot),
.book-test-step:has(.book-test-shots) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.book-test-step__copy {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
}

.book-test-step__copy > span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .7rem;
    color: #fff;
    background: var(--bt-blue);
    font-size: .85rem;
    font-weight: 850;
}

.book-test-step h3,
.book-test-docs h3,
.book-test-checklist h3 {
    margin: 0;
    color: var(--bt-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.book-test-step p,
.book-test-docs p,
.book-test-checklist p {
    margin: .4rem 0 0;
    color: var(--bt-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.book-test-step ul {
    margin: .5rem 0 0;
    padding-left: 1.1rem;
    color: var(--bt-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.book-test-shots {
    display: grid;
    gap: .75rem;
}

.book-test-shot {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bt-line);
    border-radius: .9rem;
    background: #f4f7fb;
    text-decoration: none;
    color: inherit;
}

.book-test-shot__frame {
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0b1b3a;
}

.book-test-shot__frame--wide {
    aspect-ratio: 16 / 5;
}

.book-test-hero__shot img,
.book-test-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    background: #fff;
}

.book-test-note {
    margin: 1rem 0 0;
    padding: .9rem 1rem;
    border-left: 4px solid var(--bt-purple);
    border-radius: .8rem;
    background: #f6f3ff;
    color: var(--bt-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.book-test-note strong {
    color: var(--bt-ink);
}

.book-test-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    align-items: start;
}

.book-test-docs article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--bt-line);
    border-radius: 1rem;
    background: #f8faff;
}

.book-test-docs ul,
.book-test-checklist ul {
    display: grid;
    gap: .45rem;
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.book-test-docs li,
.book-test-checklist li {
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr);
    gap: .5rem;
    align-items: start;
    color: var(--bt-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.book-test-docs li::before,
.book-test-checklist li::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .12rem;
    border: 2px solid var(--bt-blue);
    border-radius: .28rem;
    background: #fff;
}

.book-test-zipper {
    color: #e8f4ff;
    background: linear-gradient(160deg, #071427, #0b1b3a 46%, #163a7a);
    box-shadow: 0 .8rem 2rem rgb(8 20 48 / .18);
}

.book-test-zipper h2,
.book-test-zipper h3,
.book-test-zipper p,
.book-test-zipper li {
    color: inherit;
}

.book-test-zipper__head {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
}

.book-test-zipper__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    color: #7dd3fc;
    background: #071427;
    box-shadow: inset 0 0 0 1px rgb(125 211 252 / .28);
}

.book-test-zipper__icon svg {
    width: 1.7rem;
    height: 1.7rem;
}

.book-test-checklist {
    margin: 0;
    padding: 1rem;
    border: 1px solid rgb(125 211 252 / .22);
    border-radius: 1rem;
    background: rgb(255 255 255 / .06);
}

.book-test-checklist li::before {
    border-color: #7dd3fc;
    background: transparent;
}

.book-test-warning {
    background: #14233f;
    color: #fff;
}

.book-test-warning p {
    margin: .55rem 0 0;
    color: rgb(255 255 255 / .82);
    line-height: 1.6;
}

.book-test-warning a,
.book-test-zipper a,
.book-test-note a,
.book-test-step a {
    color: inherit;
    font-weight: 800;
}

.book-test-warning a,
.book-test-zipper a {
    color: #fff;
    text-underline-offset: .16em;
}

@media (max-width: 900px) {
    .book-test-hero,
    .book-test-step:has(.book-test-shot),
    .book-test-step:has(.book-test-shots),
    .book-test-docs {
        grid-template-columns: 1fr;
    }

    .book-test-hero__shot .book-test-shot__frame {
        max-height: 14rem;
    }
}

@media (max-width: 640px) {
    .book-test-page {
        width: min(100% - 1rem, 70rem);
        padding-bottom: 3.5rem;
    }

    .book-test-hero,
    .book-test-section,
    .book-test-zipper,
    .book-test-warning {
        padding: 1rem;
        border-radius: 1.05rem;
    }

    .book-test-jump {
        position: static;
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .book-test-actions,
    .book-test-button {
        width: 100%;
    }

    .book-test-hero__shot .book-test-shot__frame,
    .book-test-shot__frame {
        aspect-ratio: 16 / 11;
        max-height: 12.5rem;
    }

    .book-test-shot__frame--wide {
        aspect-ratio: 16 / 7;
        max-height: 8.5rem;
    }
}

.book-test-zipper-chat {
    display: grid;
    gap: .85rem;
    min-width: 0;
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid var(--bt-line);
    border-radius: 1.25rem;
    color: var(--bt-ink);
    background: #fff;
    box-shadow: 0 .8rem 2rem rgb(20 35 63 / .06);
}

.book-test-zipper-chat__head {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: start;
}

.book-test-zipper-chat__mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    color: #7dd3fc;
    background: linear-gradient(160deg, #071427, #0b1b3a 42%, #163a7a);
    box-shadow: inset 0 0 0 1px rgb(125 211 252 / .28);
}

.book-test-zipper-chat__mark svg {
    width: 1.7rem;
    height: 1.7rem;
}

.book-test-zipper-chat__head h2 {
    margin: 0;
    color: var(--bt-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.book-test-zipper-chat__head p:last-child {
    margin: .35rem 0 0;
    color: var(--bt-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.book-test-zipper-chat__reset {
    min-height: 2.3rem;
    padding: .35rem .75rem;
    border: 1px solid var(--bt-line);
    border-radius: 999px;
    background: #f8faff;
    color: var(--bt-blue);
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.book-test-zipper-chat__messages {
    display: grid;
    gap: .65rem;
    min-height: 14rem;
    max-height: 22rem;
    overflow: auto;
    padding: .85rem;
    border: 1px solid var(--bt-line);
    border-radius: 1rem;
    background: #f6f8fc;
}

.book-test-zipper-chat__bubble p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.book-test-zipper-chat__bubble--assistant {
    justify-self: start;
    max-width: min(42rem, 100%);
    padding: .75rem .9rem;
    border-radius: .9rem .9rem .9rem .3rem;
    color: var(--bt-ink);
    background: #fff;
    border: 1px solid var(--bt-line);
}

.book-test-zipper-chat__bubble--user {
    justify-self: end;
    max-width: min(36rem, 100%);
    padding: .75rem .9rem;
    border-radius: .9rem .9rem .3rem .9rem;
    color: #fff;
    background: var(--bt-blue);
}

.book-test-zipper-chat__thinking,
.book-test-zipper-chat__error {
    margin: 0;
    color: var(--bt-purple);
    font-size: .86rem;
}

.book-test-zipper-list {
    display: grid;
    gap: .7rem;
    padding: .95rem 1rem;
    border: 1px solid var(--bt-line);
    border-radius: 1rem;
    background: #f8faff;
}

.book-test-zipper-list__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1rem;
}

.book-test-zipper-list__top h3 {
    margin: 0;
    color: var(--bt-ink);
    font-size: 1.05rem;
}

.book-test-zipper-list__top p,
.book-test-zipper-list__note {
    margin: 0;
    color: var(--bt-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.book-test-zipper-list ul {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.book-test-zipper-list__item {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    width: 100%;
    padding: .55rem .6rem;
    border: 1px solid var(--bt-line);
    border-radius: .75rem;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.book-test-zipper-list__item.is-done {
    background: #eefbf3;
    border-color: rgb(16 185 129 / .28);
}

.book-test-zipper-list__box {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .1rem;
    border: 2px solid var(--bt-blue);
    border-radius: .28rem;
    background: #fff;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}

.book-test-zipper-list__item.is-done .book-test-zipper-list__box {
    border-color: #059669;
    background: #059669;
}

.book-test-zipper-list__item.is-done .book-test-zipper-list__box::after {
    content: "✓";
}

.book-test-zipper-list strong {
    display: block;
    color: var(--bt-ink);
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.35;
}

.book-test-zipper-list__item.is-done strong {
    text-decoration: line-through;
    color: var(--bt-muted);
}

.book-test-zipper-list small {
    display: block;
    margin-top: .2rem;
    color: var(--bt-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.book-test-zipper-chat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.book-test-zipper-chat__chips button {
    min-height: 2.3rem;
    padding: .4rem .8rem;
    border: 1px solid var(--bt-line);
    border-radius: 999px;
    background: #f8faff;
    color: var(--bt-blue);
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}

.book-test-zipper-chat__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
}

.book-test-zipper-chat__form input {
    min-width: 0;
    min-height: 2.85rem;
    padding: .55rem .9rem;
    border: 1px solid var(--bt-line);
    border-radius: .85rem;
    background: #fff;
    color: var(--bt-ink);
}

.book-test-zipper-chat__form button[type="submit"] {
    min-height: 2.85rem;
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: .85rem;
    background: var(--bt-purple);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 640px) {
    .book-test-zipper-chat {
        padding: 1rem;
        border-radius: 1.05rem;
    }

    .book-test-zipper-chat__head {
        grid-template-columns: 2.6rem minmax(0, 1fr);
    }

    .book-test-zipper-chat__reset {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .book-test-zipper-chat__form {
        grid-template-columns: 1fr;
    }
}
