/* ==========================================================================
   Partners
   University partnership, merchants, commercial partnerships, download.
   ========================================================================== */

.partnership {
    padding-block: 104px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 0 96px;
    align-items: center;
}

.partnership-head {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

.partnership-foot {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.partnership .map {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.partnership h2 {
    margin-top: 16px;
    font-size: clamp(26px, 3.4vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    text-wrap: balance;
}

.partnership-lead {
    margin-top: 20px;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
}

.chips {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    border: 1px solid rgba(69, 183, 174, .5);
    border-radius: 8px;
    padding: 8px 14px;
}

.chips-note {
    font-size: 15px;
    color: var(--muted);
    padding: 8px 6px;
}

.logo-slot {
    margin-top: 40px;
    width: 220px;
    height: 96px;
    border: 1px dashed rgba(255, 255, 255, .28);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

.logo-slot small {
    font-size: 10px;
    letter-spacing: 1px;
}

.map {
    position: relative;
    height: 520px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.map-legend {
    position: absolute;
    inset-inline-start: 24px;
    top: 24px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.map-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.legend-dot.is-hollow {
    background: none;
    border: 1px solid rgba(255, 255, 255, .5);
}

.merchants {
    margin-inline: var(--gutter);
    background: var(--surface);
    border-radius: 28px;
    padding: 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 0 80px;
}

.merchants-head {
    grid-column: 1;
    grid-row: 1;
}

.merchants-cta {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
}

.merchants .benefits {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.merchants h2 {
    margin-top: 16px;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    text-wrap: balance;
}

.merchants-lead {
    margin-top: 20px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--muted);
}

.merchants-cta {
    margin-top: 36px;
}

.benefits {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, .1);
    align-self: center;
}

.benefits li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.benefit-num {
    flex: none;
    margin-top: 4px;
    font-size: 13px;
    color: var(--indigo);
}

.alliances {
    padding-block: 104px;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
}

.alliances .label {
    padding-top: 10px;
}

.alliances-lead {
    font-size: clamp(20px, 2.6vw, 34px);
    line-height: 1.4;
    font-weight: 700;
    max-width: 860px;
    text-wrap: pretty;
}

.alliances-sub {
    margin-top: 20px;
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 720px;
}

.alliances .btn {
    margin-top: 32px;
}

.download {
    background: var(--teal);
    color: var(--bg);
    padding-block: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    align-items: center;
}

.download h2 {
    font-size: clamp(40px, 5.6vw, 72px);
    line-height: 1.1;
    font-weight: 900;
}

.download p {
    margin-top: 16px;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
}

.download .store-row {
    gap: 12px;
}

.download .store-badge img {
    height: 54px;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    color: var(--bg);
    border-radius: 20px;
    padding: 20px;
    padding-inline-start: 28px;
}

.qr-card img {
    flex: none;
    width: 160px;
    height: 160px;
    border-radius: 8px;
}

.qr-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

/* tablet ---------------------------------------------------------------- */

@media (max-width: 1180px) and (min-width: 901px) {
    .partnership {
        gap: 48px;
    }

    .merchants {
        padding: 56px;
        gap: 48px;
    }

    .download {
        gap: 48px;
    }
}

/* mobile ---------------------------------------------------------------- */

@media (max-width: 900px) {
    .partnership,
    .alliances {
        padding-block: 56px;
    }

    .partnership {
        display: block;
    }

    .partnership h2 {
        margin-top: 14px;
        line-height: 1.25;
    }

    .partnership-lead {
        margin-top: 14px;
    }

    .map {
        margin-top: 24px;
        height: 280px;
        border-radius: 16px;
    }

    .map svg {
        padding: 20px;
        stroke-width: 1.5;
    }

    .map-legend {
        display: none;
    }

    .chips {
        margin-top: 16px;
    }

    .chip {
        font-size: 14px;
        padding: 6px 12px;
    }

    .chips-note {
        flex-basis: 100%;
        font-size: 13px;
        padding: 0;
        margin-top: 2px;
    }

    .logo-slot {
        margin-top: 24px;
        width: 100%;
        height: 80px;
    }

    .merchants {
        border-radius: 20px;
        padding: 32px 24px;
        display: block;
    }

    .merchants h2 {
        margin-top: 12px;
    }

    .merchants-lead {
        margin-top: 12px;
    }

    .benefits {
        margin-top: 24px;
    }

    .benefits li {
        gap: 12px;
        padding: 14px 0;
        font-size: 15px;
    }

    .benefit-num {
        margin-top: 3px;
        font-size: 12px;
    }

    .merchants-cta {
        display: flex;
        width: 100%;
        margin-top: 24px;
        font-size: 16px;
        padding: 14px;
    }

    .alliances {
        display: block;
    }

    .alliances .label {
        padding-top: 0;
    }

    .alliances-lead {
        margin-top: 14px;
        line-height: 1.45;
    }

    .alliances-sub {
        margin-top: 14px;
    }

    .alliances .btn {
        margin-top: 24px;
        font-size: 16px;
        padding: 12px 24px;
    }

    .download {
        display: block;
        padding-block: 56px;
    }

    .download p {
        margin-top: 12px;
    }

    .download .store-row {
        margin-top: 24px;
        gap: 10px;
    }

    .download .store-badge img {
        height: 52px;
    }

    .qr-card {
        margin-top: 24px;
        border-radius: 16px;
        padding: 16px;
        gap: 16px;
    }

    .qr-card img {
        width: 96px;
        height: 96px;
        border-radius: 6px;
    }

    .qr-card p {
        font-size: 14px;
    }
}
