/* Compare page, proposal B: the list's huge head on the black page, then the comparison
   at full length, closed by the quiz band. */

.cmpp-head {
    padding: clamp(16px, 2vw, 28px) 0 clamp(28px, 3.4vw, 48px);
}

.cmpp-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: end;
    gap: 28px 56px;
    margin-top: clamp(16px, 2.4vw, 32px);
}

.cmpp-head h1 {
    font-size: clamp(3.2rem, 8vw, 6rem);
    line-height: .84;
    letter-spacing: 0;
}

.cmpp-head h1 .mark > .br {
    bottom: -.08em;
    height: .2em;
    stroke-width: 8;
}

.cmpp-head__side {
    display: grid;
    gap: 22px;
}

.cmpp-head__side p {
    font-weight: 500;
}

.cmpp-head__phone {
    display: none;
}

.cmpp-head__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

/* Toggle: a pill track ringed in chalk, the knob fills it when on. */
.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-weight: 700;
    cursor: pointer;
}

.switch input {
    appearance: none;
    position: relative;
    flex: none;
    width: 52px;
    height: 30px;
    margin: 0;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px var(--ink);
    cursor: pointer;
    transition: background-color .25s;
}

.switch input::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform .3s var(--ease), background-color .25s;
}

.switch input:checked {
    background: var(--ink);
}

.switch input:checked::after {
    background: var(--holo);
    transform: translateX(22px);
}

.cmpp {
    padding: clamp(8px, 1vw, 16px) 0 var(--sec);
    box-shadow: inset 0 1px 0 var(--ink-line);
}

.cmpp .cmp__group:first-of-type {
    margin-top: clamp(32px, 4vw, 56px);
}

.cmpp .demo-note {
    margin-top: 48px;
}

.cmpp-quiz {
    padding: 0 0 var(--sec);
}

.cmpp-quiz__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px clamp(32px, 5vw, 80px);
    padding-top: clamp(48px, 6vw, 88px);
    border-top: 2px solid var(--ink);
}

.cmpp-quiz__title {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    line-height: .86;
    letter-spacing: 0;
}

.cmpp-quiz__side {
    display: grid;
    justify-items: start;
    gap: 24px;
    padding-bottom: .4em;
}

@media (max-width: 760px) {
    .cmpp-head__side .cmpp-head__phone {
        display: block;
        margin-top: -10px;
        font-size: .875rem;
        color: var(--ink-2);
    }

    .cmpp-head__inner,
    .cmpp-quiz__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}
