.nml-ha {
    padding: 128px 0 80px;
    background: var(--color-bg);
}

/* ── Layout ── */
.nml-ha__inner {
    display: grid;
    grid-template-columns: 1fr 564px;
    gap: 49px;
    align-items: center;
}

/* ── Left content ── */
.nml-ha__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.nml-ha__deco-lines {
    position: absolute;
    left: -16px;
    top: -29px;
    width: 40px;
    height: 40px;
}

.nml-ha__heading {
    margin: 0 0 20px 0;
    font-size: 56px;
    line-height: 64px;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Wrap a word in <span> to give it the accent colour. */
.nml-ha__heading span { color: var(--color-accent); }

.nml-ha__subhead {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: var(--color-text-secondary);
    max-width: 492px;
}

.nml-ha__btn {
    align-self: flex-start;
    margin-top: 40px;
    background: var(--color-primary);
    position: relative;
    z-index: 1;
}

.nml-ha__arrow {
    position: absolute;
    bottom: -16px;
    right: 0;
    pointer-events: none;
    width: 294px;
    height: 200px;
}

/* ── Calculator card ── */
.nml-ha__calc {
    background: linear-gradient(157deg, #0B1436 0%, #16265C 46%, #2B4194 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border: 1px solid rgba(136, 156, 241, 0.35);
}

.nml-ha__calc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.nml-ha__calc-label {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--color-text-white);
}

.nml-ha__range-output {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-text-white);
    white-space: nowrap;
}

/* ── Range slider ── */
.nml-ha__range-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -16px;
}

.nml-ha__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
}

.nml-ha__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s;
}

.nml-ha__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

.nml-ha__range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.nml-ha__range:focus-visible {
    outline: 2px solid var(--color-text-white);
    outline-offset: 6px;
}

.nml-ha__range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Commission rate picker ── */
.nml-ha__rates {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nml-ha__rates-label {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--color-text-white);
}

.nml-ha__rates-list {
    display: flex;
    gap: 16px;
}

.nml-ha__rate {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1.5px solid var(--color-line);
    background: transparent;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.nml-ha__rate:hover {
    background-color: #FFFFFF4D;
}

.nml-ha__rate.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent-light);
}

.nml-ha__rate:focus-visible {
    outline: 2px solid var(--color-text-white);
    outline-offset: 2px;
}

/* ── Earnings ── */
.nml-ha__earnings {
    border-radius: 8px;
    background: #FFFFFF26;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
    margin-top: 12px;
}

.nml-ha__earnings-label {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--color-text-white);
}

.nml-ha__earnings-amount {
    display: block;
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    color: var(--color-text-white);
    padding-bottom: 12px;
    border-bottom: 1px solid #FFFFFF;
}

.nml-ha__earnings-formula {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.nml-ha__formula-num {
    font-weight: 700;
    color: var(--color-text-white);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .nml-ha__heading {
        font-size: 40px;
        line-height: 48px;
        margin: 0 0 12px 0;
    }
}

@media (max-width: 768px) {
    .nml-ha {
        padding: 32px 0 40px;
    }

    .nml-ha__inner {
        grid-template-columns: 1fr;
    }

    .nml-ha__deco-lines {
        display: none;
    }

    .nml-ha__subhead {
        font-size: 16px;
        line-height: 24px;
    }

    .nml-ha__arrow {
        display: none;
    }

    .nml-ha__btn {
        margin-top: 24px;
        width: 100%;
    }

    .nml-ha__calc {
        border-radius: 16px;
        padding: 20px;
        gap: 24px;
    }

    .nml-ha__calc-label,
    .nml-ha__rates-label {
        font-size: 14px;
        line-height: 24px;
    }

    .nml-ha__calc-row {
        margin-bottom: 12px;
    }

    .nml-ha__range-output {
        font-size: 18px;
        line-height: 26px;
    }

    .nml-ha__range-limits {
        font-size: 14px;
        line-height: 20px;
    }

    /* Six pills stop fitting on one line — wrap to three per row. */
    .nml-ha__rates-list {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nml-ha__rate {
        flex: 1 1 calc(33.333% - 6px);
        font-size: 16px;
        line-height: 24px;
        padding: 10px 6px;
    }

    .nml-ha__earnings {
        padding: 16px;
    }

    .nml-ha__earnings-amount {
        font-size: 32px;
        line-height: 38px;
    }

    .nml-ha__earnings-formula {
        font-size: 14px;
        line-height: 20px;
    }
}
