:root {
    --jso-violet: #7457ff;
    --jso-violet-dark: #4d32d3;
    --jso-violet-soft: #f0ecff;
    --jso-violet-line: #d9d1ff;
    --jso-ink: #171522;
    --jso-ink-soft: #544f61;
    --jso-muted: #7b7588;
    --jso-page: #fbfaf8;
    --jso-white: #ffffff;
    --jso-line: #e4e0e9;
    --jso-success: #14865b;
    --jso-success-soft: #e5f7ef;
    --jso-warning: #a96712;
    --jso-warning-soft: #fff3dc;
    --jso-code: #181622;
    --jso-code-top: #272331;
    --jso-font: "Plus Jakarta Sans", Arial, sans-serif;
    --jso-mono: "JetBrains Mono", Consolas, monospace;
}

.jso-hero,
.jso-learn {
    width: 100%;
    font-family: var(--jso-font);
}

.jso-hero *,
.jso-learn * {
    box-sizing: border-box;
}

.jso-hero svg,
.jso-learn svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jso-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* =========================================================
   HERO / ERROR FINDER
   ========================================================= */

.jso-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 0 58px;
    color: var(--jso-ink);
    background:
        radial-gradient(
            circle at 10% 55%,
            rgba(32, 188, 200, .07),
            transparent 20rem
        ),
        radial-gradient(
            circle at 90% 12%,
            rgba(116, 87, 255, .09),
            transparent 25rem
        ),
        var(--jso-page);
}

.jso-shell {
    position: relative;
    z-index: 2;
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
}

.jso-hero-copy {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.jso-eyebrow {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 auto 18px;
    padding: 4px 7px 4px 5px;
    color: var(--jso-violet-dark);
    background: var(--jso-white);
    border: 1px solid var(--jso-violet-line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(53, 39, 112, .08);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.jso-eyebrow-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--jso-violet);
    border-radius: 50%;
}

.jso-eyebrow-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.jso-eyebrow small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: var(--jso-success);
    background: var(--jso-success-soft);
    border-radius: 999px;
    font-size: .58rem;
    letter-spacing: .06em;
}

.jso-eyebrow small i {
    width: 6px;
    height: 6px;
    background: var(--jso-success);
    border-radius: 50%;
}

.jso-hero-copy h1 {
    max-width: 940px;
    margin: 0 auto;
    color: var(--jso-ink);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.07em;
    text-wrap: balance;
}

.jso-hero-copy h1 span {
    display: block;
    margin-top: 7px;
    color: var(--jso-violet);
}

.jso-description {
    max-width: 720px;
    margin: 19px auto 0;
    color: var(--jso-ink-soft);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.65;
}

.jso-description code {
    color: var(--jso-violet-dark);
    font-family: var(--jso-mono);
    font-size: .92em;
    font-weight: 700;
}

.jso-background-icons {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.jso-background-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--jso-violet);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(116, 87, 255, .16);
    border-radius: 18px;
    opacity: .35;
}

.jso-background-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.4;
}

.jso-background-icon-code {
    top: 17%;
    left: 5%;
    transform: rotate(-9deg);
}

.jso-background-icon-bug {
    top: 12%;
    right: 7%;
    color: #20bcc8;
    transform: rotate(8deg);
}

.jso-background-icon-flask {
    bottom: 15%;
    left: 8%;
    color: #20bcc8;
    transform: rotate(7deg);
}

.jso-background-icon-check {
    right: 6%;
    bottom: 13%;
    transform: rotate(-8deg);
}

/* Finder */

.jso-finder {
    width: min(900px, 100%);
    margin: 34px auto 0;
    padding: 14px;
    background: linear-gradient(
        125deg,
        #eee9ff 0%,
        #f5f2ff 58%,
        #eaf9fa 100%
    );
    border: 1px solid var(--jso-violet-line);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(48, 35, 105, .09);
}

.jso-finder-box {
    min-height: 64px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 11px;
    background: var(--jso-white);
    border: 1.5px solid #302942;
    border-radius: 999px;
    box-shadow: 0 6px 0 rgba(91, 66, 208, .16);
}

.jso-terminal-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--jso-ink);
    border-radius: 50%;
}

.jso-terminal-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

.jso-finder textarea {
    width: 100%;
    min-height: 40px;
    max-height: 140px;
    resize: none;
    padding: 9px 0;
    color: var(--jso-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: 500 .84rem/1.5 var(--jso-mono);
}

.jso-finder textarea::placeholder {
    color: #8d849b;
}

.jso-submit-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 22px;
    color: #fff;
    background: var(--jso-violet);
    border: 0;
    border-radius: 15px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
}

.jso-submit-button:hover,
.jso-submit-button:focus-visible {
    background: var(--jso-violet-dark);
    transform: translateY(-2px);
    outline: 0;
}

.jso-submit-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.jso-finder-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.jso-finder-meta > span {
    color: var(--jso-muted);
    font-size: .7rem;
    font-weight: 700;
}

.jso-example-button {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    color: var(--jso-ink-soft);
    background: rgba(255, 255, 255, .8);
    border: 1px solid #d8d2e5;
    border-radius: 999px;
    font: 500 .6rem var(--jso-mono);
    transition: .2s ease;
}

.jso-example-button svg {
    width: 13px;
    height: 13px;
    color: var(--jso-violet);
    stroke-width: 1.8;
}

.jso-example-button:hover,
.jso-example-button.is-active {
    color: var(--jso-violet-dark);
    background: #fff;
    border-color: var(--jso-violet);
    transform: translateY(-1px);
}

.jso-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 30px;
    margin-top: 21px;
}

.jso-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--jso-muted);
    font-size: .72rem;
    font-weight: 600;
}

.jso-trust svg {
    width: 17px;
    height: 17px;
    color: var(--jso-violet);
    stroke-width: 1.8;
}

/* Hero result */

.jso-result {
    position: relative;
    width: min(980px, 100%);
    margin: 25px auto 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #d9d4e2;
    border-top: 3px solid var(--jso-violet);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(31, 25, 53, .12);
}

.jso-result[hidden] {
    display: none;
}

.jso-result-close {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--jso-ink);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s ease;
}

.jso-result-close:hover,
.jso-result-close:focus-visible {
    background: var(--jso-violet-dark);
    transform: rotate(5deg);
    outline: 0;
}

.jso-result-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.jso-result-head {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 42px 12px 0;
    border-bottom: 1px solid var(--jso-line);
}

.jso-result-status,
#jso-match-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.jso-result-status {
    gap: 8px;
    padding: 6px 9px;
    color: var(--jso-success);
    background: var(--jso-success-soft);
    font-size: .68rem;
}

.jso-result-status i {
    width: 7px;
    height: 7px;
    background: var(--jso-success);
    border-radius: 50%;
}

#jso-match-badge {
    padding: 6px 9px;
    color: var(--jso-violet-dark);
    background: var(--jso-violet-soft);
    font: 600 .58rem var(--jso-mono);
}

.jso-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    gap: 20px;
    padding-top: 18px;
}

.jso-result-explanation {
    padding: 8px 4px;
}

.jso-result-explanation > span {
    color: var(--jso-violet);
    font: 700 .62rem var(--jso-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jso-result-explanation h2 {
    margin: 9px 0 10px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.jso-result-explanation > p {
    margin: 0;
    color: var(--jso-ink-soft);
    font-size: .8rem;
    line-height: 1.65;
}

.jso-proof {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 21px;
    padding-top: 15px;
    border-top: 1px solid var(--jso-line);
}

.jso-proof svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--jso-success);
    stroke-width: 1.8;
}

.jso-proof p {
    margin: 0;
    color: var(--jso-muted);
    font-size: .68rem;
    line-height: 1.5;
}

.jso-code-fix {
    overflow: hidden;
    color: #fff;
    background: var(--jso-code);
    border-radius: 15px;
}

.jso-code-head {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px 0 15px;
    color: #bdb6c9;
    background: var(--jso-code-top);
    border-bottom: 1px solid #40394b;
    font: 600 .58rem var(--jso-mono);
    text-transform: uppercase;
}

.jso-code-head button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #fff;
    background: transparent;
    border: 1px solid #5a5365;
    border-radius: 999px;
    font: 600 .55rem var(--jso-mono);
}

.jso-code-head button:hover {
    background: var(--jso-violet);
    border-color: var(--jso-violet);
}

.jso-code-head svg {
    width: 13px;
    height: 13px;
}

.jso-code-fix pre {
    min-height: 170px;
    margin: 0;
    overflow: auto;
    padding: 18px;
    color: #f7f5fa;
    font: .67rem/1.7 var(--jso-mono);
    white-space: pre-wrap;
}

/* =========================================================
   SECOND SECTION / HOW SPYON WORKS
   ========================================================= */

.jso-learn {
    padding: 72px 0 82px;
    background: #fff;
    border-top: 1px solid var(--jso-line);
}

.jso-learn-shell {
    width: min(1240px, calc(100% - 56px));
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(560px, 1.05fr);
    align-items: center;
    gap: clamp(42px, 5vw, 68px);
    margin: 0 auto;
}

.jso-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--jso-violet-dark);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jso-section-label > span {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--jso-violet);
    border-radius: 50%;
}

.jso-section-label svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.jso-learn-copy h2 {
    margin: 0;
    color: var(--jso-ink);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.065em;
}

.jso-learn-copy h2 code {
    color: var(--jso-violet);
    font: inherit;
}

.jso-learn-intro {
    max-width: 600px;
    margin: 18px 0 0;
    color: var(--jso-ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.jso-learn-intro code,
.jso-learn-note code {
    color: var(--jso-violet-dark);
    font-family: var(--jso-mono);
    font-weight: 700;
}

.jso-learn-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    padding: 15px 17px;
    color: var(--jso-ink-soft);
    background: #faf8ff;
    border: 1px solid var(--jso-violet-line);
    border-radius: 15px;
    font-size: .76rem;
    line-height: 1.55;
}

.jso-learn-note > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--jso-violet);
    stroke-width: 1.8;
}

.jso-learn-note p {
    margin: 0;
}

.jso-learn-note strong {
    color: var(--jso-ink);
}

.jso-learn-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.jso-learn-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    color: var(--jso-ink);
    background: #fff;
    border: 1px solid var(--jso-line);
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.jso-learn-action:hover,
.jso-learn-action:focus-visible {
    border-color: var(--jso-violet);
    transform: translateY(-2px);
    outline: 0;
}

.jso-learn-action.is-active {
    border-color: var(--jso-violet);
    box-shadow: inset 4px 0 var(--jso-violet);
}

.jso-learn-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--jso-violet);
    background: var(--jso-violet-soft);
    border-radius: 50%;
}

.jso-learn-action.is-active .jso-learn-action-icon {
    color: #fff;
    background: var(--jso-violet);
}

.jso-learn-action-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.jso-learn-action-copy {
    display: grid;
    gap: 3px;
}

.jso-learn-action-copy strong {
    font-size: .8rem;
}

.jso-learn-action-copy small {
    color: var(--jso-muted);
    font-size: .65rem;
    line-height: 1.4;
}

.jso-learn-action-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--jso-muted);
    background: #f4f2f7;
    border-radius: 50%;
}

.jso-learn-action.is-active .jso-learn-action-arrow {
    color: #fff;
    background: var(--jso-violet);
}

/* Working example */

.jso-demo {
    overflow: hidden;
    background: var(--jso-white);
    border: 1px solid #dcd6e7;
    border-radius: 22px;
    box-shadow: 9px 10px 0 #e9e5f8, 0 20px 48px rgba(35, 29, 53, .1);
}

.jso-demo-topbar {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    background: #faf9fd;
    border-bottom: 1px solid var(--jso-line);
}

.jso-demo-file,
.jso-demo-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 .61rem var(--jso-mono);
}

.jso-demo-file {
    color: var(--jso-ink);
}

.jso-demo-file i,
.jso-demo-state i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.jso-demo-file i {
    background: var(--jso-violet);
    box-shadow: 14px 0 #20bcc8, 28px 0 #f2ac34;
}

.jso-demo-state {
    color: var(--jso-success);
}

.jso-demo-state i {
    background: var(--jso-success);
}

.jso-demo-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 9px;
    background: #f3f0f7;
}

.jso-demo-tabs button {
    min-height: 38px;
    color: var(--jso-ink-soft);
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}

.jso-demo-tabs button[aria-selected="true"] {
    color: var(--jso-violet-dark);
    background: #fff;
    box-shadow: 0 5px 15px rgba(45, 32, 95, .08);
}

.jso-demo-tabs button:focus-visible {
    outline: 3px solid rgba(116, 87, 255, .25);
    outline-offset: 2px;
}

.jso-demo-panel {
    background: var(--jso-code);
}

.jso-demo-code-head {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #aaa3b7;
    border-bottom: 1px solid #302b3d;
    font: 600 .6rem var(--jso-mono);
    text-transform: uppercase;
}

#jso-demo-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #fff;
    background: transparent;
    border: 1px solid #5a5365;
    border-radius: 999px;
    font: 600 .55rem var(--jso-mono);
}

#jso-demo-copy:hover {
    background: var(--jso-violet);
    border-color: var(--jso-violet);
}

#jso-demo-copy svg {
    width: 13px;
    height: 13px;
}

.jso-demo-panel pre {
    min-height: 220px;
    margin: 0;
    overflow: auto;
    padding: 20px;
    color: #f7f5fa;
    font: .68rem/1.72 var(--jso-mono);
    white-space: pre-wrap;
}

.jso-demo-result {
    min-height: 60px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    color: var(--jso-ink);
    background: #fff;
    border-top: 1px solid var(--jso-line);
}

.jso-demo-result > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--jso-success);
    background: var(--jso-success-soft);
    border-radius: 10px;
}

.jso-demo-result > span svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.jso-demo-result p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.jso-demo-result strong {
    font-size: .75rem;
}

.jso-demo-result small {
    color: var(--jso-muted);
    font-size: .64rem;
}

.jso-demo-result > code {
    color: var(--jso-success);
    font: 600 .59rem var(--jso-mono);
}

/* Desktop layout */

@media (min-width: 981px) {
    .jso-learn-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .jso-learn-action {
        position: relative;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: start;
        min-height: 122px;
        padding: 14px;
    }

    .jso-learn-action-copy {
        grid-column: 1 / -1;
    }

    .jso-learn-action-arrow {
        position: absolute;
        top: 18px;
        right: 13px;
    }
}

/* Tablet */

@media (max-width: 980px) {
    .jso-learn-shell {
        grid-template-columns: 1fr;
        gap: 38px;
        width: min(760px, calc(100% - 38px));
    }
}

/* Mobile */

@media (max-width: 700px) {
    .jso-hero {
        padding: 32px 0 46px;
    }

    .jso-shell {
        width: calc(100% - 28px);
    }

    .jso-finder-box {
        grid-template-columns: 42px minmax(0, 1fr);
        border-radius: 24px;
    }

    .jso-terminal-icon {
        width: 42px;
        height: 42px;
    }

    .jso-submit-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .jso-result-grid {
        grid-template-columns: 1fr;
    }

    .jso-demo-tabs {
        grid-template-columns: 1fr;
    }

    .jso-demo-tabs button {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .jso-hero-copy h1 {
        font-size: 3rem;
    }

    .jso-description {
        font-size: .92rem;
    }

    .jso-finder {
        padding: 9px;
        border-radius: 22px;
    }

    .jso-finder-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .jso-example-button {
        justify-content: center;
    }

    .jso-trust {
        display: grid;
        gap: 10px;
    }

    .jso-learn {
        padding: 58px 0 65px;
    }

    .jso-learn-shell {
        width: calc(100% - 26px);
    }

    .jso-learn-copy h2 {
        font-size: 2.55rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .jso-hero *,
    .jso-learn * {
        animation: none !important;
        transition: none !important;
    }
}



/* =========================================================
   THIRD SECTION — INTERACTIVE JEST PATTERN PLAYGROUND
   COMPLETE CSS
========================================================= */

.jso-pattern-story,
.jso-pattern-story *,
.jso-pattern-story *::before,
.jso-pattern-story *::after {
    box-sizing: border-box;
}

.jso-pattern-story {
    --jso-purple: var(--violet, #7457ff);
    --jso-purple-dark: var(--violet-deep, #4d32d3);
    --jso-purple-soft: var(--violet-soft, #f1edff);
    --jso-ink: var(--ink, #171522);
    --jso-copy: var(--ink-soft, #585264);
    --jso-border: var(--line, #e2deea);
    --jso-green: var(--success, #159866);
    --jso-font: var(
        --font-main,
        "Plus Jakarta Sans",
        Arial,
        sans-serif
    );
    --jso-code: var(
        --font-code,
        "JetBrains Mono",
        Consolas,
        monospace
    );

    position: relative;
    width: 100%;
    padding: 22px 0 28px;
    overflow: hidden;
    color: var(--jso-ink);
    background:
        radial-gradient(
            circle at 8% 62%,
            rgba(31, 190, 196, 0.07),
            transparent 24rem
        ),
        radial-gradient(
            circle at 91% 12%,
            rgba(116, 87, 255, 0.08),
            transparent 25rem
        ),
        var(--page, #fbfaf8);
    border-top: 1px solid var(--jso-border);
    font-family: var(--jso-font);
}

.jso-pattern-story::before,
.jso-pattern-story::after {
    position: absolute;
    width: 70px;
    height: 70px;
    content: "";
    pointer-events: none;
    opacity: 0.25;
    background-image: radial-gradient(
        circle,
        var(--jso-purple) 1px,
        transparent 1.2px
    );
    background-size: 13px 13px;
}

.jso-pattern-story::before {
    top: 53%;
    left: 18px;
}

.jso-pattern-story::after {
    right: 18px;
    bottom: 5%;
}

.jso-pattern-story__shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* Section heading */

.jso-pattern-story__header {
    max-width: 800px;
    margin: 0 auto 16px;
    text-align: center;
}

.jso-pattern-story__label {
    display: inline-flex;
    gap: 9px;
    margin: 0 0 7px;
    align-items: center;
    color: var(--jso-purple-dark);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jso-pattern-story__label > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(
        145deg,
        #8c74ff,
        var(--jso-purple)
    );
    border-radius: 50%;
    box-shadow: 0 7px 17px rgba(116, 87, 255, 0.25);
    font-size: 0.69rem;
}

.jso-pattern-story__header h2 {
    margin: 0;
    color: var(--jso-ink);
    font-family: var(--jso-font);
    font-size: clamp(2rem, 3.1vw, 2.55rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.jso-pattern-story__intro {
    max-width: 700px;
    margin: 8px auto 0;
    color: var(--jso-copy);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
}

/* Desktop two-column layout */

.jso-pattern-story__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(330px, 0.65fr);
    gap: 16px;
    min-width: 0;
    align-items: stretch;
}

/* Laptop image card */

.jso-pattern-story__visual {
    position: relative;
    display: grid;
    min-width: 0;
    height: 292px;
    margin: 0;
    padding: 34px 12px;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ded9eb;
    border-radius: 18px;
    box-shadow:
        0 16px 38px rgba(41, 31, 82, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.jso-pattern-story__visual-glow {
    position: absolute;
    z-index: -1;
    top: 20%;
    left: 50%;
    width: 72%;
    height: 62%;
    background: rgba(116, 87, 255, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    transform: translateX(-50%);
    pointer-events: none;
}

.jso-pattern-story__active-tool {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: inline-flex;
    gap: 6px;
    min-height: 26px;
    padding: 0 9px;
    align-items: center;
    color: var(--jso-copy);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e1dcef;
    border-radius: 999px;
    box-shadow: 0 6px 15px rgba(42, 31, 89, 0.06);
    font-size: 0.58rem;
    font-weight: 700;
}

.jso-pattern-story__active-tool i {
    color: var(--jso-purple);
    font-size: 0.66rem;
}

.jso-pattern-story__active-tool code {
    color: var(--jso-purple-dark);
    font-family: var(--jso-code);
    font-size: 0.57rem;
    font-weight: 800;
}

.jso-pattern-story__device-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(91%, 650px);
    height: auto;
    max-height: 235px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(
        0 17px 17px rgba(22, 18, 40, 0.14)
    );
    transform: translateY(5px) scale(1.02);
    transition:
        opacity 180ms ease,
        transform 260ms ease;
}

.jso-pattern-story__device-image.is-changing {
    opacity: 0.5;
    transform: translateY(7px) scale(1);
}

.jso-pattern-story__caption {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: flex;
    gap: 7px;
    min-height: 26px;
    padding: 5px 9px;
    align-items: center;
    justify-content: center;
    color: #4c4659;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2deeb;
    border-radius: 9px;
    font-size: 0.58rem;
    line-height: 1.35;
    text-align: center;
    backdrop-filter: blur(8px);
}

.jso-pattern-story__caption i {
    flex: 0 0 auto;
    color: var(--jso-green);
    font-size: 0.68rem;
}

/* Right-side pattern cards */

.jso-pattern-story__choices {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    height: 292px;
}

.jso-pattern-card {
    position: relative;
    display: grid;
    grid-template-columns:
        36px
        minmax(0, 1fr)
        24px;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px 9px;
    align-items: center;
    color: var(--jso-ink);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #e2deeb;
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(31, 25, 51, 0.035);
    font-family: var(--jso-font);
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.jso-pattern-card:hover {
    background: #ffffff;
    border-color: #cfc6ff;
    box-shadow: 0 10px 25px rgba(53, 40, 103, 0.08);
    transform: translateX(2px);
}

.jso-pattern-card:focus-visible {
    outline: 3px solid rgba(116, 87, 255, 0.25);
    outline-offset: 2px;
}

.jso-pattern-card.is-active {
    background: linear-gradient(
        90deg,
        #f5f2ff 0%,
        #ffffff 88%
    );
    border-color: var(--jso-purple);
    box-shadow: 0 10px 26px rgba(75, 52, 182, 0.1);
}

.jso-pattern-card__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--jso-purple);
    background: var(--jso-purple-soft);
    border-radius: 50%;
    font-size: 0.7rem;
    transition:
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.jso-pattern-card.is-active .jso-pattern-card__icon {
    color: #ffffff;
    background: linear-gradient(
        145deg,
        #8c74ff,
        var(--jso-purple)
    );
    box-shadow: 0 7px 16px rgba(116, 87, 255, 0.24);
    transform: scale(1.03);
}

.jso-pattern-card__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.jso-pattern-card__topline {
    display: flex;
    gap: 6px;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
}

.jso-pattern-card__topline strong {
    color: var(--jso-ink);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.jso-pattern-card__topline code {
    padding: 2px 5px;
    color: var(--jso-purple-dark);
    background: var(--jso-purple-soft);
    border-radius: 999px;
    font-family: var(--jso-code);
    font-size: 0.52rem;
    font-weight: 700;
}

.jso-pattern-card__description {
    color: var(--jso-copy);
    font-size: 0.62rem;
    line-height: 1.35;
}

.jso-pattern-card__note {
    display: flex;
    gap: 5px;
    max-height: 0;
    padding: 0 6px;
    align-items: center;
    overflow: hidden;
    color: #4b4659;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.51rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(2px);
    transition:
        max-height 180ms ease,
        padding 180ms ease,
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.jso-pattern-card__note i {
    flex: 0 0 auto;
    color: var(--jso-green);
    font-size: 0.54rem;
}

.jso-pattern-card.is-active .jso-pattern-card__note {
    max-height: 26px;
    padding: 3px 6px;
    border-color: #e2dcff;
    opacity: 1;
    transform: translateY(0);
}

.jso-pattern-card__arrow {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #9992a8;
    background: #f4f2f7;
    border-radius: 50%;
    font-size: 0.5rem;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.jso-pattern-card:hover .jso-pattern-card__arrow,
.jso-pattern-card.is-active .jso-pattern-card__arrow {
    color: #ffffff;
    background: var(--jso-purple);
    transform: translateX(2px);
}

/* Screen-reader status */

.jso-pattern-story__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Smaller desktop and laptop */

@media (min-width: 901px) and (max-width: 1180px) {
    .jso-pattern-story__shell {
        width: min(1060px, calc(100% - 36px));
    }

    .jso-pattern-story__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 14px;
    }

    .jso-pattern-story__visual,
    .jso-pattern-story__choices {
        height: 284px;
    }

    .jso-pattern-story__device-image {
        max-height: 226px;
    }
}

/* Tablet */

@media (max-width: 900px) {
    .jso-pattern-story {
        padding: 44px 0 50px;
    }

    .jso-pattern-story__shell {
        width: min(760px, calc(100% - 34px));
    }

    .jso-pattern-story__layout {
        grid-template-columns: 1fr;
    }

    .jso-pattern-story__visual {
        height: 350px;
    }

    .jso-pattern-story__device-image {
        max-height: 295px;
    }

    .jso-pattern-story__choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }

    .jso-pattern-card {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 132px;
        align-content: center;
    }

    .jso-pattern-card__arrow {
        display: none;
    }

    .jso-pattern-card__topline {
        display: grid;
        gap: 4px;
    }
}

/* Mobile */

@media (max-width: 700px) {
    .jso-pattern-story::before,
    .jso-pattern-story::after {
        display: none;
    }

    .jso-pattern-story__shell {
        width: min(100% - 26px, 560px);
    }

    .jso-pattern-story__header h2 {
        font-size: clamp(1.9rem, 9vw, 2.45rem);
    }

    .jso-pattern-story__intro {
        font-size: 0.8rem;
    }

    .jso-pattern-story__visual {
        height: 310px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .jso-pattern-story__device-image {
        width: 100%;
        max-height: 255px;
    }

    .jso-pattern-story__choices {
        grid-template-columns: 1fr;
    }

    .jso-pattern-card {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            26px;
        min-height: 88px;
        padding: 10px;
    }

    .jso-pattern-card__arrow {
        display: grid;
    }

    .jso-pattern-card__topline {
        display: flex;
    }
}

/* Small mobile */

@media (max-width: 480px) {
    .jso-pattern-story {
        padding: 38px 0 44px;
    }

    .jso-pattern-story__label {
        font-size: 0.59rem;
        letter-spacing: 0.09em;
    }

    .jso-pattern-story__header h2 {
        font-size: clamp(1.75rem, 9.6vw, 2.2rem);
    }

    .jso-pattern-story__visual {
        height: 270px;
        padding-top: 40px;
    }

    .jso-pattern-story__device-image {
        max-height: 215px;
    }

    .jso-pattern-story__active-tool {
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    .jso-pattern-story__caption {
        font-size: 0.54rem;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .jso-pattern-story *,
    .jso-pattern-story *::before,
    .jso-pattern-story *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   THIRD SECTION — HEADING AND HEIGHT ADJUSTMENT
========================================================= */

@media (min-width: 901px) {

    .jso-pattern-story {
        padding-top: 32px;
        padding-bottom: 42px;
    }

    .jso-pattern-story__header {
        margin-bottom: 22px;
    }

    .jso-pattern-story__header h2 {
        font-size: clamp(2.5rem, 4vw, 3.1rem);
        line-height: 1.04;
        letter-spacing: -0.055em;
    }

    .jso-pattern-story__intro {
        margin-top: 10px;
        font-size: 0.86rem;
    }

    .jso-pattern-story__visual,
    .jso-pattern-story__choices {
        height: 326px;
    }

    .jso-pattern-story__device-image {
        width: min(92%, 680px);
        max-height: 270px;
    }

    .jso-pattern-story__visual {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .jso-pattern-card {
        padding: 10px 11px;
    }
}

/* Smaller desktop and laptop */

@media (min-width: 901px) and (max-width: 1180px) {

    .jso-pattern-story__header h2 {
        font-size: clamp(2.35rem, 4.2vw, 2.85rem);
    }

    .jso-pattern-story__visual,
    .jso-pattern-story__choices {
        height: 316px;
    }

    .jso-pattern-story__device-image {
        max-height: 258px;
    }
}




/* =========================================================
   SECTION 4: COPY-READY JEST SPYON RECIPES
   Paste at the end of /assets/css/style.css.
========================================================= */

.jso-recipes,
.jso-recipes *,
.jso-recipes *::before,
.jso-recipes *::after {
    box-sizing: border-box;
}

.jso-recipes {
    --jr-purple: var(--violet, #7457ff);
    --jr-purple-dark: var(--violet-deep, #4d32d3);
    --jr-purple-soft: var(--violet-soft, #f1edff);
    --jr-ink: var(--ink, #171522);
    --jr-copy: var(--ink-soft, #5b5568);
    --jr-muted: var(--muted, #81798e);
    --jr-border: var(--line, #e2deea);
    --jr-green: var(--success, #159866);
    --jr-font: var(--font-main, "Plus Jakarta Sans", Arial, sans-serif);
    --jr-code: var(--font-code, "JetBrains Mono", Consolas, monospace);

    position: relative;
    width: 100%;
    padding: 56px 0 64px;
    overflow: hidden;
    color: var(--jr-ink);
    background:
        radial-gradient(circle at 9% 62%, rgba(31, 190, 196, 0.06), transparent 24rem),
        radial-gradient(circle at 91% 15%, rgba(116, 87, 255, 0.08), transparent 26rem),
        var(--page, #fbfaf8);
    border-top: 1px solid var(--jr-border);
    font-family: var(--jr-font);
}

.jso-recipes__shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.jso-recipes__header {
    max-width: 860px;
    margin: 0 auto 26px;
    text-align: center;
}

.jso-recipes__eyebrow {
    display: inline-flex;
    gap: 10px;
    margin: 0 0 10px;
    align-items: center;
    color: var(--jr-purple-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jso-recipes__eyebrow > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #8d75ff, var(--jr-purple));
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(116, 87, 255, 0.24);
}

.jso-recipes__header h2 {
    margin: 0;
    color: var(--jr-ink);
    font-family: var(--jr-font);
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.jso-recipes__header > p:last-child {
    max-width: 720px;
    margin: 12px auto 0;
    color: var(--jr-copy);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
}

.jso-recipes__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.7fr);
    gap: 18px;
    min-width: 0;
    align-items: stretch;
}

.jso-recipes__picker,
.jso-recipes__workspace {
    min-width: 0;
    height: 478px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #ded9eb;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(41, 31, 82, 0.065);
}

.jso-recipes__picker {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 18px 12px 13px 18px;
    overflow: hidden;
}

.jso-recipes__picker-head {
    display: flex;
    gap: 12px;
    padding: 0 5px 15px 1px;
    align-items: center;
    justify-content: space-between;
}

.jso-recipes__picker-head h3 {
    margin: 0;
    color: var(--jr-ink);
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.35;
}

.jso-recipes__picker-head > span {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: var(--jr-purple-dark);
    background: var(--jr-purple-soft);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
}

.jso-recipes__list {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 1px 7px 8px 1px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--jr-purple) #eeeafd;
    scrollbar-width: thin;
}

.jso-recipes__list::-webkit-scrollbar {
    width: 7px;
}

.jso-recipes__list::-webkit-scrollbar-track {
    background: #eeeafd;
    border-radius: 99px;
}

.jso-recipes__list::-webkit-scrollbar-thumb {
    background: linear-gradient(#8a71ff, var(--jr-purple));
    border: 1px solid #eeeafd;
    border-radius: 99px;
}

.jso-recipe {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 8px 9px;
    align-items: center;
    color: var(--jr-ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e1ec;
    border-radius: 13px;
    box-shadow: 0 5px 15px rgba(36, 29, 59, 0.035);
    font-family: var(--jr-font);
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: border-color 180ms ease, background 180ms ease,
        box-shadow 180ms ease, transform 180ms ease;
}

.jso-recipe:hover {
    background: #fff;
    border-color: #cfc5ff;
    box-shadow: 0 9px 22px rgba(64, 47, 134, 0.08);
    transform: translateX(2px);
}

.jso-recipe:focus-visible {
    outline: 3px solid rgba(116, 87, 255, 0.25);
    outline-offset: 2px;
}

.jso-recipe.is-active {
    background: linear-gradient(90deg, #f5f2ff, #fff 88%);
    border-color: var(--jr-purple);
    box-shadow: 0 8px 22px rgba(75, 52, 182, 0.11);
}

.jso-recipe__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--jr-purple);
    background: var(--jr-purple-soft);
    border-radius: 50%;
    font-size: 0.75rem;
    transition: color 180ms ease, background 180ms ease,
        box-shadow 180ms ease, transform 180ms ease;
}

.jso-recipe.is-active .jso-recipe__icon {
    color: #fff;
    background: linear-gradient(145deg, #8d75ff, var(--jr-purple));
    box-shadow: 0 7px 16px rgba(116, 87, 255, 0.24);
    transform: scale(1.03);
}

.jso-recipe__text {
    min-width: 0;
    font-size: 0.71rem;
    font-weight: 700;
    line-height: 1.35;
}

.jso-recipe__star {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--jr-purple-dark);
    background: #f5f2ff;
    border-radius: 50%;
    font-size: 0.78rem;
}

.jso-recipe__star i {
    position: absolute;
    transition: opacity 160ms ease, color 160ms ease,
        transform 200ms ease, filter 200ms ease;
}

.jso-recipe__star-outline {
    opacity: 1;
    transform: scale(1);
}

.jso-recipe__star-fill {
    color: var(--jr-purple);
    opacity: 0;
    transform: scale(0.65) rotate(-18deg);
}

.jso-recipe:hover .jso-recipe__star-outline,
.jso-recipe.is-active .jso-recipe__star-outline {
    opacity: 0;
    transform: scale(0.65);
}

.jso-recipe:hover .jso-recipe__star-fill,
.jso-recipe.is-active .jso-recipe__star-fill {
    opacity: 1;
    filter: drop-shadow(0 3px 5px rgba(116, 87, 255, 0.34));
    transform: scale(1) rotate(0);
}

.jso-recipes__scroll-hint {
    display: flex;
    gap: 7px;
    margin: 9px 0 0;
    align-items: center;
    justify-content: center;
    color: var(--jr-muted);
    font-size: 0.6rem;
    font-weight: 600;
}

.jso-recipes__scroll-hint i {
    color: var(--jr-purple);
}

.jso-recipes__workspace {
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr) auto auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
}

.jso-recipes__toolbar {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto auto;
    gap: 13px;
    padding: 0 16px;
    align-items: center;
    border-bottom: 1px solid var(--jr-border);
}

.jso-recipes__window-dots {
    display: flex;
    gap: 6px;
}

.jso-recipes__window-dots i {
    display: block;
    width: 9px;
    height: 9px;
    background: #ff4f55;
    border-radius: 50%;
}

.jso-recipes__window-dots i:nth-child(2) {
    background: #f9b30b;
}

.jso-recipes__window-dots i:nth-child(3) {
    background: #25a65b;
}

.jso-recipes__toolbar strong {
    overflow: hidden;
    color: var(--jr-copy);
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jso-recipes__badge {
    padding: 6px 9px;
    color: var(--jr-purple-dark);
    background: var(--jr-purple-soft);
    border-radius: 7px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jso-recipes__copy {
    display: inline-flex;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    color: var(--jr-ink);
    background: #fff;
    border: 1px solid #cfc5ff;
    border-radius: 10px;
    font-family: var(--jr-font);
    font-size: 0.64rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease,
        border-color 180ms ease, transform 180ms ease;
}

.jso-recipes__copy:hover {
    color: #fff;
    background: var(--jr-purple);
    border-color: var(--jr-purple);
    transform: translateY(-1px);
}

.jso-recipes__copy:focus-visible {
    outline: 3px solid rgba(116, 87, 255, 0.25);
    outline-offset: 2px;
}

.jso-recipes__copy.is-copied {
    color: #fff;
    background: var(--jr-green);
    border-color: var(--jr-green);
}


/* =========================================================
   ISOLATED RECIPE CODE EDITOR
   Uses DIV rows only — no PRE/CODE layout conflicts.
========================================================= */

.jso-recipe-editor {
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 14px !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-self: stretch !important;
    background: #11192b !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.jso-recipe-editor__scroll {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    border-radius: inherit !important;
    scrollbar-width: thin;
    scrollbar-color: #6655de #11192b;
}

.jso-recipe-editor__lines {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    gap: 0 !important;

    width: max-content !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 16px 0 !important;

    color: #edf2ff !important;
    font-family: var(--jr-code) !important;
    font-size: 0.69rem !important;
    line-height: 1.55 !important;
}

.jso-recipe-editor__line {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 0 !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 18px 0 0 !important;

    position: static !important;
    line-height: 1.55 !important;
}

.jso-recipe-editor__line:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

.jso-recipe-editor__number {
    display: block !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 13px 0 0 !important;

    color: #6f7892 !important;
    line-height: 1.55 !important;
    text-align: right !important;
    user-select: none;
}

.jso-recipe-editor__text {
    display: block !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #edf2ff !important;
    line-height: 1.55 !important;
    white-space: pre !important;
}

.jso-recipe-editor__text span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.jso-recipe-editor .jso-token--comment { color: #7c879f !important; }
.jso-recipe-editor .jso-token--string { color: #c8ee73 !important; }
.jso-recipe-editor .jso-token--keyword { color: #ff79bf !important; }
.jso-recipe-editor .jso-token--jest { color: #62d7ff !important; }
.jso-recipe-editor .jso-token--method { color: #8ac8ff !important; }
.jso-recipe-editor .jso-token--number { color: #ffce70 !important; }

.jso-recipe-editor__scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.jso-recipe-editor__scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.jso-recipe-editor__scroll::-webkit-scrollbar-thumb {
    background: #6655de;
    border: 2px solid #11192b;
    border-radius: 999px;
}

.jso-recipe-editor__scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.jso-recipes__result,
.jso-recipes__explanation {
    display: flex;
    gap: 9px;
    min-width: 0;
    margin: 0 14px;
    padding: 9px 12px;
    align-items: center;
    border-radius: 10px;
    font-size: 0.63rem;
    line-height: 1.45;
}

.jso-recipes__result {
    margin-top: 10px;
    color: #205c46;
    background: #effbf6;
    border: 1px solid #ccebdd;
}

.jso-recipes__explanation {
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--jr-copy);
    background: #fbfaff;
    border: 1px solid #e5e0f3;
}

.jso-recipes__result i {
    color: var(--jr-green);
}

.jso-recipes__explanation i {
    color: var(--jr-purple);
}

.jso-recipes__result i,
.jso-recipes__explanation i {
    flex: 0 0 auto;
    font-size: 0.78rem;
}

.jso-recipes__result p,
.jso-recipes__explanation p {
    min-width: 0;
    margin: 0;
}

.jso-recipes__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1050px) {
    .jso-recipes__shell {
        width: min(980px, calc(100% - 36px));
    }

    .jso-recipes__grid {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 14px;
    }

    .jso-recipes__picker,
    .jso-recipes__workspace {
        height: 466px;
    }
}

@media (max-width: 820px) {
    .jso-recipes {
        padding: 48px 0 54px;
    }

    .jso-recipes__shell {
        width: min(720px, calc(100% - 32px));
    }

    .jso-recipes__grid {
        grid-template-columns: 1fr;
    }

    .jso-recipes__picker {
        height: 365px;
    }

    .jso-recipes__workspace {
        height: 490px;
    }
}

@media (max-width: 580px) {
    .jso-recipes {
        padding: 42px 0 46px;
    }

    .jso-recipes__shell {
        width: min(100% - 24px, 520px);
    }

    .jso-recipes__header {
        margin-bottom: 20px;
    }

    .jso-recipes__header h2 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .jso-recipes__header > p:last-child {
        font-size: 0.82rem;
    }

    .jso-recipes__picker {
        height: 345px;
        padding-left: 13px;
    }

    .jso-recipes__workspace {
        height: 520px;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
    }

    .jso-recipes__toolbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 9px;
        min-height: 64px;
        padding: 8px 11px;
    }

    .jso-recipes__badge {
        display: none;
    }

    .jso-recipes__copy span {
        display: none;
    }

    .jso-recipes__copy {
        width: 36px;
        padding: 0;
    }

    .jso-recipe-editor,
    .jso-recipes__result,
    .jso-recipes__explanation {
        margin-right: 9px;
        margin-left: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jso-recipes *,
    .jso-recipes *::before,
    .jso-recipes *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* =========================================================
   SECTION 5: COMMON JEST.SPYON ERRORS AND FIXES
   Compact final layout
========================================================= */

.jso-errors,
.jso-errors *,
.jso-errors *::before,
.jso-errors *::after {
    box-sizing: border-box;
}

.jso-errors {
    position: relative;
    width: 100%;
    padding: 54px 20px 58px;
    overflow: hidden;
    color: #171522;
    background:
        radial-gradient(circle at 8% 10%, rgba(108, 77, 255, 0.055), transparent 22rem),
        #ffffff;
}

.jso-errors__shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.jso-errors__header {
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

.jso-errors__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #5337d7;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jso-errors__eyebrow span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(145deg, #8c74ff, #7457ff);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(116, 87, 255, 0.21);
    font-size: 0.64rem;
}

.jso-errors__header h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.22em;
    margin: 0;
    color: #171522;
    font-family: var(--font-main, "Plus Jakarta Sans", "Sora", Arial, sans-serif);
    font-size: clamp(2.1rem, 3.4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.jso-errors__header h2 > span {
    display: inline-block;
}

.jso-errors__heading-accent {
    color: var(--violet, #7457ff);
}

.jso-errors__intro {
    max-width: 640px;
    margin: 9px auto 0;
    color: #625c70;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================================
   MAIN WORKSPACE
========================================================= */

.jso-errors__workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

/* =========================================================
   LEFT ERROR SELECTOR
========================================================= */

.jso-errors__selector {
    position: relative;
    top: auto;
    z-index: auto;
    min-width: 0;
    height: fit-content;
    align-self: start;
    padding: 10px 9px 9px;
    overflow: hidden;
    background: #fbfaff;
    border: 1px solid #ded8f8;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(27, 21, 65, 0.04);
}

.jso-errors__selector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 0 3px 8px;
}

.jso-errors__selector-kicker {
    display: block;
    margin-bottom: 3px;
    color: #7d7590;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.59rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jso-errors__selector-head h3 {
    margin: 0;
    color: #171522;
    font-family: var(--font-main, "Plus Jakarta Sans", "Sora", Arial, sans-serif);
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.jso-errors__count {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: #6547ec;
    background: #ffffff;
    border: 1px solid #d9d0ff;
    border-radius: 999px;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.58rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Exactly four compact options stay visible; the remaining options scroll. */
.jso-errors__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 210px;
    min-height: 0;
    padding: 0 4px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #8e78ff #eeeafd;
}

.jso-errors__list::-webkit-scrollbar {
    width: 6px;
}

.jso-errors__list::-webkit-scrollbar-track {
    background: #eeeafd;
    border-radius: 999px;
}

.jso-errors__list::-webkit-scrollbar-thumb {
    background: linear-gradient(#9d89ff, #7457ff);
    border: 1px solid #eeeafd;
    border-radius: 999px;
}

.jso-errors__item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    color: #403a52;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    text-align: left;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.jso-errors__item:hover {
    color: #12101d;
    background: #ffffff;
    border-color: #ded8f8;
    transform: translateX(2px);
}

.jso-errors__item:focus-visible {
    border-color: #6c4dff;
    box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.13);
}

.jso-errors__item.is-active {
    color: #171522;
    background: linear-gradient(90deg, #f5f2ff 0%, #ffffff 84%);
    border-color: #bfaeff;
    box-shadow: 0 6px 15px rgba(83, 58, 185, 0.075);
}

.jso-errors__item-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #7960ed;
    background: #f7f4ff;
    border: 1px solid #e4dffa;
    border-radius: 9px;
    font-size: 11px;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.jso-errors__item.is-active .jso-errors__item-icon {
    color: #ffffff;
    background: linear-gradient(145deg, #8c74ff, #6849f4);
    border-color: #6849f4;
    box-shadow: 0 4px 10px rgba(108, 77, 255, 0.2);
}

.jso-errors__item-text {
    min-width: 0;
    color: #292437;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.3;
}

.jso-errors__item.is-active .jso-errors__item-text {
    color: #171522;
    font-weight: 800;
}

.jso-errors__item-arrow {
    display: grid;
    place-items: center;
    color: #aaa2bd;
    font-size: 8px;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.jso-errors__item:hover .jso-errors__item-arrow,
.jso-errors__item.is-active .jso-errors__item-arrow {
    color: #6c4dff;
    transform: translateX(2px);
}

/* =========================================================
   STICKY LEFT RAIL
========================================================= */

.jso-errors__left-rail {
    position: sticky;
    top: 88px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    height: fit-content;
    align-self: start;
}


/* =========================================================
   WHAT YOU'LL GET CARD
========================================================= */

.jso-errors__benefits {
    width: 100%;
    padding: 10px 9px 9px;
    background:
        linear-gradient(
            145deg,
            #fbfaff 0%,
            #ffffff 100%
        );
    border: 1.5px solid #ded7ff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(58, 41, 125, 0.045);
}

.jso-errors__benefits-label {
    margin: 0 0 7px 2px;
    color: #6749e8;
    font-family:
        var(
            --font-main,
            "Plus Jakarta Sans",
            "DM Sans",
            Arial,
            sans-serif
        );
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
}

.jso-errors__benefit {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 5px 4px;
    border-radius: 10px;
    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.jso-errors__benefit + .jso-errors__benefit {
    margin-top: 1px;
}

.jso-errors__benefit:hover {
    background: #f8f6ff;
    transform: translateX(2px);
}

.jso-errors__benefit-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #6849f4;
    background: #f0ecff;
    border: 1px solid #ded5ff;
    border-radius: 9px;
    font-size: 0.64rem;
}

.jso-errors__benefit strong {
    display: block;
    margin: 0 0 1px;
    color: #1b1725;
    font-family:
        var(
            --font-main,
            "Plus Jakarta Sans",
            "DM Sans",
            Arial,
            sans-serif
        );
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.22;
}

.jso-errors__benefit p {
    margin: 0;
    color: #696275;
    font-family:
        var(
            --font-main,
            "Plus Jakarta Sans",
            "DM Sans",
            Arial,
            sans-serif
        );
    font-size: 0.57rem;
    font-weight: 500;
    line-height: 1.32;
}


/* =========================================================
   RIGHT SOLUTION WORKSPACE
========================================================= */

.jso-errors__solution {
    min-width: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #ded8f8;
    border-radius: 17px;
    box-shadow: 0 9px 26px rgba(27, 21, 65, 0.05);
    outline: none;
}

.jso-errors__solution:focus-visible {
    box-shadow:
        0 0 0 3px rgba(108, 77, 255, 0.12),
        0 10px 30px rgba(27, 21, 65, 0.055);
}

.jso-errors__solution-head {
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeaf9;
}

.jso-errors__solution-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.jso-errors__badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    color: #6c4dff;
    background: #f7f4ff;
    border: 1px solid #ded8f8;
    border-radius: 999px;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.07em;
}

.jso-errors__solution-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #817a94;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.59rem;
    font-weight: 700;
}

.jso-errors__solution-label i {
    color: #6c4dff;
}

.jso-errors__solution-head h3 {
    margin: 0;
    color: #171522;
    font-family: var(--font-main, "Plus Jakarta Sans", "Sora", Arial, sans-serif);
    font-size: clamp(1.12rem, 1.7vw, 1.38rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

/* =========================================================
   CAUSE
========================================================= */

.jso-errors__cause {
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #faf9fd;
    border: 1px solid #e8e3f4;
    border-radius: 12px;
}

.jso-errors__cause-icon {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    color: #684bdf;
    background: #efebff;
    border-radius: 9px;
    font-size: 0.68rem;
}

.jso-errors__cause h4 {
    margin: 0 0 3px;
    color: #1d1928;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.3;
}

.jso-errors__cause p {
    margin: 0;
    color: #625c70;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.48;
}

/* =========================================================
   CODE COMPARISON
========================================================= */

.jso-errors__code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.jso-errors__code-card {
    min-width: 0;
    overflow: hidden;
    background: #10192b;
    border: 1px solid #27334b;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(16, 25, 43, 0.075);
}

.jso-errors__code-card--broken {
    border-top-color: #e74755;
}

.jso-errors__code-card--fixed {
    border-top-color: #17a673;
}

.jso-errors__code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 6px 9px;
    background: #152036;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jso-errors__code-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f3f5fa;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
}

.jso-errors__state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.jso-errors__code-card--broken .jso-errors__state-dot {
    background: #e74755;
    box-shadow: 0 0 0 3px rgba(231, 71, 85, 0.12);
}

.jso-errors__code-card--fixed .jso-errors__state-dot {
    background: #17a673;
    box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.12);
}

.jso-errors__code-file {
    color: #8490a6;
    font-family: "JetBrains Mono", monospace;
    font-size: 8.5px;
    line-height: 1;
}

.jso-errors__pre {
    width: 100%;
    height: 145px;
    margin: 0;
    padding: 10px 11px 11px;
    overflow: auto;
    color: #dbe4f4;
    background: #10192b;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.2px;
    font-weight: 400;
    line-height: 1.52;
    tab-size: 2;
    white-space: pre;
    scrollbar-width: thin;
    scrollbar-color: #45516a #10192b;
}

.jso-errors__pre code {
    display: block;
    min-width: max-content;
    padding: 0;
    margin: 0;
    color: inherit;
    background: none;
    font: inherit;
    line-height: inherit;
}

.jso-errors__pre::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.jso-errors__pre::-webkit-scrollbar-track {
    background: #10192b;
}

.jso-errors__pre::-webkit-scrollbar-thumb {
    background: #45516a;
    border: 2px solid #10192b;
    border-radius: 999px;
}

.jso-errors__pre:focus-visible {
    outline: 2px solid #8d79ef;
    outline-offset: -3px;
}

.jso-errors__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 7px;
    color: #dfe6f3;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.jso-errors__copy:hover {
    color: #bdf4df;
    background: rgba(23, 166, 115, 0.13);
    border-color: rgba(23, 166, 115, 0.55);
}

.jso-errors__copy:focus-visible {
    border-color: #6c4dff;
    box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.25);
}

.jso-errors__copy.is-copied {
    color: #bdf4df;
    background: rgba(23, 166, 115, 0.14);
    border-color: rgba(23, 166, 115, 0.55);
}

/* =========================================================
   BOTTOM GUIDANCE — STRONGER, ROUNDED, COMPACT
========================================================= */

.jso-errors__bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
    align-items: stretch;
}

/* Works both with and without the optional bottom-grid wrapper. */
.jso-errors__success,
.jso-errors__tip {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    min-width: 0;
    min-height: 70px;
    padding: 9px 12px;
    align-items: start;
    overflow: hidden;
    border-radius: 19px;
    box-shadow: 0 5px 14px rgba(36, 28, 60, 0.035);
    will-change: transform, opacity;
}

.jso-errors__success {
    margin-top: 14px;
    color: #173d31;
    background: linear-gradient(135deg, #f1fbf7 0%, #ffffff 78%);
    border: 2px solid #a8dcc8;
}

.jso-errors__tip {
    margin-top: 8px;
    color: #2e2554;
    background: linear-gradient(135deg, #f8f6ff 0%, #ffffff 78%);
    border: 2px solid #d2c7ff;
}

/* If the HTML uses the bottom-grid wrapper, keep both cards aligned in one row. */
.jso-errors__bottom-grid > .jso-errors__success,
.jso-errors__bottom-grid > .jso-errors__tip {
    margin-top: 0;
}

.jso-errors__success-icon,
.jso-errors__tip-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 11px;
    font-size: 0.67rem;
}

.jso-errors__success-icon {
    color: #087b57;
    background: #ddf5eb;
    border: 1px solid #b8e5d4;
}

.jso-errors__tip-icon {
    color: #5d43e6;
    background: #efebff;
    border: 1px solid #d9d0ff;
}

.jso-errors__success strong,
.jso-errors__tip strong {
    display: block;
    margin: 0 0 3px;
    color: #171522;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.jso-errors__success p,
.jso-errors__tip p {
    margin: 0;
    color: #514b5f;
    font-family: var(--font-main, "Plus Jakarta Sans", "DM Sans", Arial, sans-serif);
    font-size: 0.67rem;
    font-weight: 550;
    line-height: 1.5;
}

/* The two cards swipe in from opposite sides whenever another error is selected. */
@keyframes jsoErrorsSwipeFromLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes jsoErrorsSwipeFromRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.jso-errors__solution.is-guidance-animating .jso-errors__success {
    animation: jsoErrorsSwipeFromLeft 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.jso-errors__solution.is-guidance-animating .jso-errors__tip {
    animation: jsoErrorsSwipeFromRight 320ms 45ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.jso-errors__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
    .jso-errors {
        padding: 50px 18px 54px;
    }

    .jso-errors__workspace {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 12px;
    }

    .jso-errors__solution {
        padding: 14px;
    }

    .jso-errors__pre {
        height: 145px;
        font-size: 9.9px;
    }
}

@media (max-width: 900px) {
    .jso-errors__workspace {
        grid-template-columns: 1fr;
    }

    .jso-errors__left-rail {
        position: static;
        top: auto;
        z-index: auto;
        width: 100%;
    }

    .jso-errors__selector {
        padding-bottom: 9px;
    }

    .jso-errors__list {
        height: 210px;
    }

    .jso-errors__code-grid {
        grid-template-columns: 1fr;
    }

    .jso-errors__bottom-grid {
        grid-template-columns: 1fr;
    }

    .jso-errors__success,
    .jso-errors__tip {
        min-height: 0;
    }

    .jso-errors__pre {
        height: auto;
        min-height: 148px;
        max-height: 210px;
    }
}

@media (max-width: 640px) {

    .jso-errors__benefits {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 9px;
    }

    .jso-errors__benefits-label {
        grid-column: 1 / -1;
        margin-bottom: 3px;
    }

    .jso-errors__benefit {
        padding: 5px;
    }

    .jso-errors {
        padding: 46px 14px 50px;
    }

    .jso-errors__header {
        margin-bottom: 18px;
    }

    .jso-errors__header h2 {
        gap: 0.18em;
        font-size: clamp(1.85rem, 8.7vw, 2.2rem);
        line-height: 1.08;
        letter-spacing: -0.055em;
    }

    .jso-errors__intro {
        font-size: 0.79rem;
        line-height: 1.5;
    }

    .jso-errors__selector,
    .jso-errors__solution {
        border-radius: 15px;
    }

    .jso-errors__list {
        height: 208px;
    }

    .jso-errors__item {
        min-height: 48px;
    }

    .jso-errors__solution {
        padding: 12px;
    }

    .jso-errors__solution-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .jso-errors__solution-head h3 {
        font-size: 1.08rem;
    }

    .jso-errors__cause {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .jso-errors__success,
    .jso-errors__tip {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding: 9px 10px;
        border-radius: 17px;
    }

    .jso-errors__cause-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .jso-errors__success-icon,
    .jso-errors__tip-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .jso-errors__code-head {
        padding-left: 9px;
        padding-right: 9px;
    }

    .jso-errors__pre {
        min-height: 158px;
        padding: 10px;
        font-size: 9.9px;
        line-height: 1.52;
    }

    .jso-errors__code-file {
        display: none;
    }
}

@media (max-width: 420px) {
    .jso-errors {
        padding-left: 12px;
        padding-right: 12px;
    }

    .jso-errors__header h2 {
        font-size: clamp(1.68rem, 9vw, 1.95rem);
    }

    .jso-errors__eyebrow {
        font-size: 0.57rem;
        letter-spacing: 0.09em;
    }

    .jso-errors__eyebrow span {
        width: 25px;
        height: 25px;
    }

    .jso-errors__item-text {
        font-size: 0.67rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jso-errors *,
    .jso-errors *::before,
    .jso-errors *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .jso-errors__item:hover,
    .jso-errors__item:hover .jso-errors__item-arrow,
    .jso-errors__item.is-active .jso-errors__item-arrow {
        transform: none;
    }
}






/* =========================================================
   SECTION 6 — JEST SPYON ARTICLE GUIDE
========================================================= */

.jso-guide {
    position: relative;
    padding: 72px 20px 78px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(116, 87, 255, 0.07),
            transparent 32%
        ),
        #ffffff;
    overflow: clip;
}

.jso-guide *,
.jso-guide *::before,
.jso-guide *::after {
    box-sizing: border-box;
}

.jso-guide__shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.jso-guide__header {
    max-width: 880px;
    margin: 0 auto 34px;
    text-align: center;
}

.jso-guide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: #6648ed;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.jso-guide__eyebrow span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #eee9ff;
    color: #684bf0;
}

.jso-guide__header h2 {
    margin: 0;
    color: #17141f;

    /* Same heading feel as Section 5 */
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(33px, 4.2vw, 50px);
    font-weight: 800;

    line-height: 1.08;
    letter-spacing: -0.055em;
}

.jso-guide__header h2 span {
    display: inline;
}

.jso-guide__header h2 .jso-guide__gradient {
    background: linear-gradient(
        90deg,
        #6747f2 0%,
        #9b5fff 48%,
        #497cf7 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.jso-guide__header h2 code {
    padding: 0;
    background: transparent;
    color: #6b4cef;
    font: inherit;
}

.jso-guide__intro {
    max-width: 680px;
    margin: 15px auto 0;
    color: #696273;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}


/* =========================
   MAIN LAYOUT
========================= */

.jso-guide__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 18px;
    align-items: start;
}


/* =========================================================
   LEFT TABLE OF CONTENTS
========================================================= */

.jso-guide__sidebar {
    min-width: 0;
}

.jso-guide__toc {
    position: sticky;
    top: 92px;
    padding: 15px;
    border: 1.5px solid #ded7f6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(45, 32, 92, 0.06);
}

.jso-guide__toc-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 13px;
    margin-bottom: 7px;
    border-bottom: 1px solid #ebe7f7;
}

.jso-guide__toc-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, #7659f8, #6848ed);
    color: #fff;
    font-size: 13px;
}

.jso-guide__toc-label {
    display: block;
    margin-bottom: 2px;
    color: #7358e8;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.jso-guide__toc-head strong {
    display: block;
    color: #1c1825;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
}


/* TOC LINKS */

.jso-guide__toc-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jso-guide__toc-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 11px;
    color: #615b6b;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.jso-guide__toc-link span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #f4f1fb;
    color: #8b8298;
    font-size: 9px;
    font-weight: 800;
}

.jso-guide__toc-link:hover {
    background: #f7f4ff;
    color: #4933b0;
}

.jso-guide__toc-link.is-active {
    background: linear-gradient(90deg, #f0ebff, #f8f6ff);
    color: #573bcf;
    font-weight: 800;
}

.jso-guide__toc-link.is-active span {
    background: #7355ef;
    color: #ffffff;
}

.jso-guide__toc-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 10px 8px 2px;
    border-top: 1px solid #ebe7f7;
    color: #8a8295;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 600;
}

.jso-guide__toc-note i {
    color: #7557eb;
}


/* =========================================================
   SCROLLABLE ARTICLE
========================================================= */

.jso-guide__article {
    position: relative;
    width: 100%;
    min-width: 0;
    max-height: 640px;
    padding: 30px 34px 36px;
    overflow-y: auto;
    overflow-x: hidden;

    border: 1.5px solid #e0daf3;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(38, 29, 76, 0.055);

    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #b9a9ed #f3f0fa;
}

/* Chrome / Edge / Safari scrollbar */

.jso-guide__article::-webkit-scrollbar {
    width: 8px;
}

.jso-guide__article::-webkit-scrollbar-track {
    background: #f5f2fb;
    border-radius: 20px;
}

.jso-guide__article::-webkit-scrollbar-thumb {
    background: #b8a8ec;
    border: 2px solid #f5f2fb;
    border-radius: 20px;
}

.jso-guide__article::-webkit-scrollbar-thumb:hover {
    background: #8b70e2;
}

.jso-guide__article:focus-visible {
    outline: 3px solid rgba(107, 76, 239, 0.25);
    outline-offset: 3px;
}


/* =========================
   OPENING
========================= */

.jso-guide__opening {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #ece8f4;
}

.jso-guide__opening p,
.jso-guide__article-section p,
.jso-guide__takeaway p {
    margin: 0;
    color: #5d5768;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

.jso-guide__opening p + p,
.jso-guide__article-section p + p {
    margin-top: 12px;
}

.jso-guide__article strong {
    color: #24202c;
}


/* =========================================================
   ARTICLE SECTIONS
========================================================= */

.jso-guide__article-section {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeaf5;
    scroll-margin-top: 20px;
}

.jso-guide__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 25px;
    margin-bottom: 9px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f0ebff;
    color: #6848e8;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 800;
}

.jso-guide__article-section h3,
.jso-guide__takeaway h3 {
    margin: 0 0 11px;
    color: #19161f;
    font-family: "Sora", sans-serif;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.jso-guide__article-section h3 code {
    padding: 0;
    background: transparent;
    color: #6748e8;
    font: inherit;
}

.jso-guide__article p code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f1edfb;
    color: #6045ce;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.88em;
}


/* =========================================================
   CODE BLOCKS
========================================================= */

.jso-guide__code {
    margin: 17px 0;
    overflow: hidden;
    border: 1px solid #273348;
    border-radius: 15px;
    background: #101827;
}

.jso-guide__code-bar {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #162135;
    color: #dce5f3;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.jso-guide__code-bar span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.jso-guide__code-bar i {
    color: #b9abff;
}

.jso-guide__code pre {
    margin: 0;
    padding: 15px 16px;
    overflow-x: auto;
    background: transparent;
}

.jso-guide__code pre code {
    padding: 0;
    background: transparent;
    color: #dce6f4;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1.68;
}


/* =========================================================
   ASSERTION LIST
========================================================= */

.jso-guide__assertions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.jso-guide__assertions > div {
    padding: 12px;
    border: 1px solid #e4def3;
    border-radius: 13px;
    background: #fbfaff;
}

.jso-guide__assertions code {
    display: block;
    margin-bottom: 5px;
    color: #6145d0;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
}

.jso-guide__assertions span {
    display: block;
    color: #746d7e;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   IMPORTANT CALLOUT
========================================================= */

.jso-guide__important {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    margin: 17px 0;
    padding: 13px 14px;
    border: 1.5px solid #dcd3fa;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        #f7f4ff,
        #fdfcff
    );
}

.jso-guide__important-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #ece6ff;
    color: #6748eb;
    font-size: 14px;
}

.jso-guide__important strong {
    display: block;
    margin-bottom: 2px;
    color: #272131;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.jso-guide__important p {
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   SIMPLE RULE
========================================================= */

.jso-guide__rule {
    margin-top: 17px;
    padding: 14px 16px;
    border-left: 4px solid #7253ed;
    border-radius: 0 13px 13px 0;
    background: #f8f5ff;
}

.jso-guide__rule > span {
    display: block;
    margin-bottom: 5px;
    color: #7456ea;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jso-guide__rule strong {
    color: #342b43;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.jso-guide__rule code {
    color: #6244d2;
    font-family: "JetBrains Mono", monospace;
}


/* =========================================================
   FINAL TAKEAWAY
========================================================= */

.jso-guide__takeaway {
    padding: 19px;
    border: 1.5px solid #d8cefb;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #f5f1ff 0%,
            #ffffff 100%
        );
}

.jso-guide__takeaway-label {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #e9e1ff;
    color: #6243d7;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.jso-guide__takeaway h3 {
    margin-bottom: 8px;
    font-size: 21px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .jso-guide__shell {
        width: min(940px, 100%);
    }

    .jso-guide__layout {
        grid-template-columns: 200px minmax(0, 1fr);
        justify-content: center;
        gap: 14px;
    }

    .jso-guide__article {
        max-height: 620px;
        padding: 26px 28px 32px;
    }

    .jso-guide__assertions {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {

    .jso-guide {
        padding: 62px 16px 66px;
    }

    .jso-guide__layout {
        grid-template-columns: 1fr;
    }

    .jso-guide__toc {
        position: static;
    }

    .jso-guide__toc-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jso-guide__article {
        max-height: 620px;
    }
}


@media (max-width: 560px) {

    .jso-guide__header h2 {
        font-size: 29px;
    }

    .jso-guide__intro {
        font-size: 14px;
    }

    .jso-guide__toc-nav {
        grid-template-columns: 1fr;
    }

    .jso-guide__article {
        max-height: 600px;
        padding: 20px 17px 24px;
        border-radius: 19px;
    }

    .jso-guide__article-section h3 {
        font-size: 20px;
    }

    .jso-guide__opening p,
    .jso-guide__article-section p,
    .jso-guide__takeaway p {
        font-size: 14px;
        line-height: 1.7;
    }
}



/* =========================================================
   SECTION 7 — JEST SPYON FAQS
   Exact clean accordion direction
========================================================= */

.jso-faqs {
    position: relative;
    width: 100%;

    padding: 72px 20px 78px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(115, 86, 255, 0.065),
            transparent 24%
        ),
        radial-gradient(
            circle at 88% 78%,
            rgba(91, 111, 255, 0.055),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcfbff 100%
        );
}

.jso-faqs *,
.jso-faqs *::before,
.jso-faqs *::after {
    box-sizing: border-box;
}

.jso-faqs__shell {
    position: relative;
    z-index: 2;

    width: min(1000px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.jso-faqs__header {
    max-width: 850px;

    margin: 0 auto 30px;

    text-align: center;
}

.jso-faqs__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 0 13px;

    color: #6748ed;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.12em;
}

.jso-faqs__eyebrow-icon {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #8d73ff,
            #6046f2
        );

    box-shadow:
        0 6px 14px rgba(102, 72, 237, 0.24);

    font-size: 13px;
}

.jso-faqs__header h2 {
    margin: 0;

    color: #17131f;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: clamp(38px, 5vw, 57px);

    font-weight: 800;

    line-height: 1.06;

    letter-spacing: -0.055em;
}

.jso-faqs__gradient {
    background:
        linear-gradient(
            90deg,
            #643ff4 0%,
            #845cff 43%,
            #547cf4 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.jso-faqs__heading-dark {
    color: #17131f;
}

.jso-faqs__intro {
    max-width: 700px;

    margin: 13px auto 0;

    color: #5e586a;

    font-family: "DM Sans", sans-serif;

    font-size: 15px;

    line-height: 1.6;
}

.jso-faqs__intro code {
    padding: 0;

    background: transparent;

    color: #6244dc;

    font-family: inherit;

    font-weight: 600;
}


/* =========================================================
   FAQ LIST
========================================================= */

.jso-faqs__list {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.jso-faqs__item {
    position: relative;

    width: 100%;

    overflow: hidden;

    border: 1.4px solid #e1dcf0;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 6px 17px rgba(37, 26, 75, 0.03);

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


/* OPEN FAQ */

.jso-faqs__item.is-open {
    border-color: #8063f4;

    background: #ffffff;

    box-shadow:
        0 9px 24px rgba(91, 65, 200, 0.075);
}


/* =========================================================
   QUESTION BUTTON
========================================================= */

.jso-faqs__question {
    width: 100%;
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 10px 17px;

    border: 0;

    background: transparent;

    cursor: pointer;

    text-align: left;
}

.jso-faqs__question-main {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;
}


/* =========================================================
   LEFT ICON
========================================================= */

.jso-faqs__icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 47px;
    height: 47px;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #f2efff,
            #ebe7ff
        );

    color: #6c4af0;

    font-size: 18px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.jso-faqs__item.is-open .jso-faqs__icon {
    color: #6544eb;

    background:
        linear-gradient(
            145deg,
            #eee8ff,
            #f5f2ff
        );
}


/* =========================================================
   QUESTION TEXT
========================================================= */

.jso-faqs__question-text {
    min-width: 0;

    color: #191526;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 16px;

    font-weight: 750;

    line-height: 1.35;

    letter-spacing: -0.02em;
}


/* =========================================================
   PLUS / MINUS
========================================================= */

.jso-faqs__toggle {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    border: 1.5px solid #9e96b2;

    border-radius: 50%;

    color: #56506a;

    background: #ffffff;

    font-size: 11px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.jso-faqs__item.is-open .jso-faqs__toggle {
    color: #ffffff;

    border-color: #6747eb;

    background:
        linear-gradient(
            145deg,
            #7959fa,
            #5c3eea
        );

    box-shadow:
        0 5px 12px rgba(101, 68, 235, 0.2);
}


/* =========================================================
   ANSWER
========================================================= */

.jso-faqs__answer {
    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    visibility: hidden;

    transition:
        grid-template-rows 0.3s ease,
        opacity 0.22s ease,
        visibility 0.3s ease;
}

.jso-faqs__answer-inner {
    min-height: 0;

    overflow: hidden;
}

.jso-faqs__answer p {
    margin: 0;

    padding:
        2px
        70px
        19px
        100px;

    color: #5d5769;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    line-height: 1.65;
}

.jso-faqs__answer code {
    padding: 2px 5px;

    border-radius: 5px;

    background: #f1edff;

    color: #6346d6;

    font-family: "JetBrains Mono", monospace;

    font-size: 0.88em;
}


/* OPEN ANSWER */

.jso-faqs__item.is-open .jso-faqs__answer {
    grid-template-rows: 1fr;

    opacity: 1;

    visibility: visible;
}


/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .jso-faqs__item:not(.is-open):hover {
        border-color: #cbc1ee;

        box-shadow:
            0 8px 20px rgba(58, 40, 120, 0.05);
    }

    .jso-faqs__item:not(.is-open):hover .jso-faqs__icon {
        transform: translateY(-1px);

        background: #ece7ff;
    }

    .jso-faqs__question:hover .jso-faqs__toggle {
        border-color: #7052e6;

        color: #6849df;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.jso-faqs__question:focus-visible {
    outline: 3px solid rgba(108, 76, 240, 0.24);

    outline-offset: -3px;

    border-radius: 12px;
}


/* =========================================================
   BACKGROUND DECORATIONS
========================================================= */

.jso-faqs__decor {
    position: absolute;

    z-index: 0;

    pointer-events: none;

    user-select: none;

    color: #7557ec;

    opacity: 0.055;
}


/* giant ? */

.jso-faqs__decor--question {
    top: 55px;
    left: 4%;

    font-size: 145px;
}


/* </> */

.jso-faqs__decor--code {
    top: 72px;
    right: 5%;

    font-family: "JetBrains Mono", monospace;

    font-size: 105px;

    font-weight: 700;

    transform: rotate(-8deg);
}


/* { } */

.jso-faqs__decor--braces {
    right: 8%;
    bottom: 35px;

    font-family: "JetBrains Mono", monospace;

    font-size: 75px;

    font-weight: 700;

    transform: rotate(6deg);
}


/* DOTTED DECORATION */

.jso-faqs__decor--dots-a,
.jso-faqs__decor--dots-b {
    width: 72px;
    height: 72px;

    opacity: 0.11;

    background-image:
        radial-gradient(
            circle,
            #8268eb 2px,
            transparent 2px
        );

    background-size: 14px 14px;
}

.jso-faqs__decor--dots-a {
    left: 3%;
    bottom: 80px;
}

.jso-faqs__decor--dots-b {
    right: 2%;
    top: 240px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .jso-faqs {
        padding:
            64px
            18px
            68px;
    }

    .jso-faqs__shell {
        width: min(760px, 100%);
    }

    .jso-faqs__answer p {
        padding:
            2px
            55px
            18px
            82px;
    }

    .jso-faqs__decor {
        opacity: 0.035;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 620px) {

    .jso-faqs {
        padding:
            54px
            14px
            58px;
    }

    .jso-faqs__header {
        margin-bottom: 25px;
    }

    .jso-faqs__header h2 {
        font-size: 34px;

        line-height: 1.1;
    }

    .jso-faqs__intro {
        font-size: 14px;

        line-height: 1.55;
    }

    .jso-faqs__eyebrow {
        font-size: 10px;
    }

    .jso-faqs__eyebrow-icon {
        width: 30px;
        height: 30px;

        font-size: 11px;
    }

    .jso-faqs__question {
        min-height: 60px;

        gap: 10px;

        padding: 9px 11px;
    }

    .jso-faqs__question-main {
        gap: 10px;
    }

    .jso-faqs__icon {
        width: 41px;
        height: 41px;

        border-radius: 9px;

        font-size: 15px;
    }

    .jso-faqs__question-text {
        font-size: 13px;

        line-height: 1.4;
    }

    .jso-faqs__toggle {
        width: 27px;
        height: 27px;

        font-size: 10px;
    }

    .jso-faqs__answer p {
        padding:
            2px
            16px
            17px
            61px;

        font-size: 13px;

        line-height: 1.62;
    }

    .jso-faqs__decor {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .jso-faqs__item,
    .jso-faqs__answer,
    .jso-faqs__icon,
    .jso-faqs__toggle {
        transition: none !important;
    }
}

/* =========================================================
   GLOBAL PAGE WIDTH / HORIZONTAL OVERFLOW FIX
========================================================= */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body *,
body *::before,
body *::after {
    box-sizing: border-box;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

svg {
    max-width: 100%;
}