/* Membership, proposal B: an identity page. The Club T91 card takes the visitor's name on the
   black hero, then chalk and black bands for status, T91 Points, the calculator and the steps. */

.ms-hero {
    padding: clamp(16px, 2vw, 28px) 0 var(--sec);
}

.ms-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 40px clamp(32px, 6vw, 112px);
    margin-top: clamp(16px, 2.4vw, 32px);
}

.ms-hero__copy {
    display: grid;
    gap: 26px;
    justify-items: start;
}

.ms-hero h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: .98;
    letter-spacing: 0;
}

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

.ms-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

/* The card stands on its own stage; the name typed below is lettered onto it live. */
.ms-hero__card {
    display: grid;
    justify-items: center;
    gap: clamp(36px, 5vw, 64px);
    padding-top: clamp(40px, 6vw, 80px);
}

.ms-hero__card .mcard {
    width: min(84%, 460px);
    margin-right: 8%;
}

.ms-hero .mcard__name {
    max-width: 62cqi;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-name {
    position: relative;
    display: grid;
    width: min(100%, 360px);
}

.ms-name__note {
    position: absolute;
    right: calc(100% + 12px);
    top: -18px;
    font-size: 1.25rem;
    color: var(--accent);
    white-space: nowrap;
    transform: rotate(-6deg);
}

.ms-name__arrow {
    position: absolute;
    left: 60%;
    top: 100%;
    width: 56px;
    height: 34px;
    stroke-width: 5;
    transform: rotate(20deg);
}

.ms-name input {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(242, 240, 236, .08);
    box-shadow: inset 0 0 0 2px var(--ink-line);
    color: var(--ink);
    font-weight: 600;
    transition: box-shadow .2s;
}

.ms-name input::placeholder {
    color: rgba(242, 240, 236, .55);
}

.ms-name input:hover {
    box-shadow: inset 0 0 0 2px rgba(242, 240, 236, .45);
}

.ms-name input:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent);
}

/* ---------- Status: the money, then what money alone does not buy ---------- */

.ms-status__money {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 64px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms-status__money li {
    display: grid;
    gap: 14px;
    padding-top: 22px;
    border-top: 2px solid var(--ink);
}

.ms-status__money b {
    font-size: clamp(3.4rem, 6vw, 5.4rem);
    line-height: .85;
}

.ms-status__money span {
    max-width: 30ch;
    font-size: 1.0625rem;
    font-weight: 500;
}

.ms-status__inside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 64px);
    margin: clamp(56px, 7vw, 96px) 0 0;
    padding: clamp(28px, 3vw, 44px);
    list-style: none;
    background: #0c0c0c;
    color: #f2f0ec;
    --accent: var(--orange);
}

.ms-status__inside li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 6px 14px;
}

.ms-status__inside .br {
    grid-row: span 2;
    width: 30px;
    height: 26px;
    margin-top: 2px;
    stroke-width: 6;
}

.ms-status__inside b {
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    line-height: 1;
}

.ms-status__inside span {
    color: rgba(242, 240, 236, .72);
    font-size: .9375rem;
}

/* ---------- T91 Points: the ladder is the page's centre ---------- */

.ms-pts {
    scroll-margin-top: var(--hdr-top);
}

.ms-pts__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px clamp(32px, 6vw, 112px);
    margin-bottom: clamp(48px, 7vw, 96px);
}

.ms-pts__head h2 {
    font-size: clamp(3.4rem, 8vw, 7rem);
}

.ms-pts__head .loop > .br {
    inset: -18% -8%;
    width: 116%;
    height: 136%;
    stroke-width: 3;
}

/* Three steps on one marker line; the node of the top level is filled orange. */
.ms-ladder {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    margin: 0;
    padding: 34px 0 0;
    list-style: none;
}

.ms-ladder::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 9px;
    height: 2px;
    background: var(--ink-line);
}

.ms-ladder__step {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: clamp(24px, 2.6vw, 40px);
    box-shadow: inset 0 0 0 2px var(--ink-line);
}

.ms-ladder__step::before {
    content: "";
    position: absolute;
    left: clamp(24px, 2.6vw, 40px);
    top: -34px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--holo);
    box-shadow: inset 0 0 0 2px var(--ink);
}

.ms-ladder__step--top {
    background: var(--paper);
    box-shadow: none;
}

.ms-ladder__step--top::before {
    background: var(--orange);
    box-shadow: 0 0 0 4px #0c0c0c, 0 0 0 6px var(--orange);
}

.ms-ladder__from {
    font-size: 1.3rem;
    color: var(--accent);
    transform: rotate(-4deg);
    transform-origin: left;
}

.ms-ladder__name {
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    font-weight: 800;
    font-size: clamp(2.6rem, 4.4vw, 4rem);
    line-height: .9;
}

.ms-ladder__step ul {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.ms-ladder__step ul li {
    padding-left: 18px;
    position: relative;
    color: rgba(242, 240, 236, .78);
}

.ms-ladder__step--top ul li {
    color: var(--on-ink-muted);
}

.ms-ladder__step ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

/* Earning: one ruled row of numbers, read left to right like a scorecard. */
.ms-earn {
    margin-top: clamp(56px, 7vw, 96px);
}

.ms-earn h3 {
    margin-bottom: 22px;
}

.ms-earn__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-block: 2px solid var(--ink);
}

.ms-earn__list li {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 18px 22px 0;
}

.ms-earn__list li + li {
    padding-left: 18px;
    box-shadow: inset 1px 0 0 var(--ink-line);
}

.ms-earn__list b {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: .9;
    color: var(--accent);
}

.ms-earn__list span {
    font-size: .9375rem;
    font-weight: 600;
}

.ms-earn__eg {
    margin-top: 18px;
    max-width: none;
    color: rgba(242, 240, 236, .72);
}

.ms-earn__eg b {
    color: var(--ink);
}

/* ---------- Calculator ---------- */

.ms-calc__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px clamp(32px, 6vw, 112px);
}

.ms-calc__copy {
    display: grid;
    gap: 24px;
}

.ms-calc__copy .loop > .br {
    stroke-width: 4;
}

.pill-select {
    display: block;
    max-width: 420px;
}

.pill-select select,
.pill-select .dd {
    appearance: none;
    width: 100%;
    height: 56px;
    padding: 0 48px 0 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--ink);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.ms-calc__out {
    display: grid;
    gap: 0;
    margin: 0;
}

.ms-calc__out div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 2px solid var(--ink-line);
}

.ms-calc__out dt {
    font-weight: 700;
}

.ms-calc__out dd {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
}

.ms-calc__net {
    border-bottom: 0 !important;
}

.ms-calc__net dd {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
}

/* ---------- Steps ---------- */

.ms-how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 64px);
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.ms-how__steps li {
    display: grid;
    gap: 10px;
    align-content: start;
}

.ms-how__n {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 1.25rem;
}

.ms-how__steps b {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
}

.ms-how__steps span:last-child {
    max-width: 32ch;
}

/* ---------- Closing ---------- */

.ms-end {
    padding: var(--sec) 0;
}

.ms-end__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

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

@media (max-width: 1080px) {
    .ms-earn__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ms-earn__list li:nth-child(4) {
        padding-left: 0;
        box-shadow: none;
    }
}

@media (max-width: 900px) {
    .ms-hero__inner,
    .ms-calc__inner,
    .ms-status__money,
    .ms-status__inside,
    .ms-pts__head,
    .ms-how__steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .ms-ladder {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 0 0 34px;
    }

    .ms-ladder::before {
        left: 9px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 2px;
        height: auto;
    }

    .ms-ladder__step::before {
        left: -34px;
        top: clamp(24px, 2.6vw, 40px);
    }

    .ms-name__note {
        position: static;
        margin-bottom: 10px;
        justify-self: start;
    }

    .ms-name__arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .ms-earn__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-earn__list li:nth-child(n) {
        padding-left: 0;
        box-shadow: none;
    }

    .ms-earn__list li:nth-child(even) {
        padding-left: 18px;
        box-shadow: inset 1px 0 0 var(--ink-line);
    }
}
