/* 3 · Three ways in */
.ways {
    padding: 120px 24px;
    background: var(--bg-canvas);
}

.ways .section-head {
    margin-bottom: 56px;
}

.ways-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.way-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.way-visual {
    display: flex;
    justify-content: center;
    height: 240px;
    padding: 56px 24px 0;
    overflow: hidden;
    background: var(--bg-raised);
}

.way-visual-page {
    padding-top: 24px;
}

.code-box {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.code-box pre {
    height: 100%;
    padding: 16px 18px 40px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--text-primary);
    white-space: pre;
}

.code-box code {
    font-family: inherit;
}

/* Comments use the secondary grey and the highlight uses --text-link: both stay at 4.5:1 on the card. */
.c-comment {
    color: var(--text-secondary);
}

.c-hl {
    color: var(--text-link);
}

.way-visual-page img {
    flex: none;
    width: 244px;
    max-width: 100%;
}

.way-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px 26px;
}

.way-text h3 {
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

.way-text p {
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-secondary);
}

@media (max-width: 960px) {
    .ways-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ways {
        padding: 66px 20px;
    }

    .ways .section-head {
        margin-bottom: 36px;
    }
}
