/*
 * The web designers page (.pg-designers): the dark list, the steps from quote
 * to online, the volume discount calculator and the table of who may do what.
 */
@layer marketing {
    .mk .pg-designers {
        /* the dark numbered list under the hero */
        & .sp-list {
            padding-block: clamp(56px, 7vw, 96px) clamp(80px, 10vw, 130px);
        }
        & .sp-list .box {
            border-radius: 22px;
            padding: clamp(28px, 4vw, 56px);
            border: 1px solid #1f1f1f;
            background: #0d0d0d;
        }
        & .sp-list .top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 24px 64px;
            margin-bottom: clamp(36px, 5vw, 64px);
        }
        & .sp-list .top .h2 {
            font-size: clamp(32px, 4vw, 52px);
            color: #f3ede6;
        }
        & .sp-list .top p {
            color: rgb(243 237 230 / 0.7);
        }
        & .sp-list ol {
            list-style: none;
            margin: 0;
            padding: 0;
            counter-reset: n;
        }
        & .sp-list li {
            counter-increment: n;
            display: grid;
            grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.1fr);
            gap: 16px 32px;
            align-items: baseline;
            padding: 24px 0;
            border-top: 1px solid rgb(255 255 255 / 0.1);
        }
        & .sp-list li::before {
            content: counter(n, decimal-leading-zero);
            font-size: 18px;
            color: #f3ede6;
        }
        & .sp-list li b {
            font-size: clamp(18px, 1.8vw, 22px);
            font-weight: 500;
            color: #f3ede6;
            letter-spacing: -0.02em;
        }
        & .sp-list li span {
            font-size: 15px;
            color: rgb(243 237 230 / 0.68);
        }

        /* from quote to online: the line fills as you scroll (core.js sets --p) */
        & .steps {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 40px;
            position: relative;
            margin: 0;
            padding: 34px 0 0;
        }
        & .steps::before,
        & .steps::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 1px;
        }
        & .steps::before {
            right: 0;
            background: var(--line);
        }
        & .steps::after {
            width: calc(var(--p, 0) * 100%);
            background: var(--text);
            transition: width 0.2s linear;
        }
        & .steps li {
            list-style: none;
            display: grid;
            gap: 12px;
            align-content: start;
        }
        & .steps .n {
            font: 500 13px / 1 var(--f-mono);
            color: var(--faint);
        }
        & .steps h3 {
            font-size: 24px;
            letter-spacing: -0.025em;
        }
        & .steps p {
            color: var(--muted);
            font-size: 16px;
        }

        /* the volume discount calculator */
        & .calc {
            max-width: 760px;
            margin: 0 auto;
            border-radius: 18px;
            border: 1px solid var(--line);
            background: #fff;
            padding: clamp(24px, 4vw, 40px);
            display: grid;
            gap: 28px;
            box-shadow: 0 30px 80px -50px rgb(14 17 23 / 0.3);
        }
        & .calc-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        & .seg {
            display: inline-flex;
            gap: 2px;
            padding: 3px;
            border-radius: 10px;
            background: var(--bg-2);
            border: 1px solid var(--line);
        }
        & .seg button {
            border: 0;
            background: none;
            height: 34px;
            padding: 0 14px;
            border-radius: 7px;
            cursor: pointer;
            font-size: 14px;
            color: var(--muted);
        }
        & .seg button.on {
            background: #fff;
            color: var(--text);
            box-shadow: 0 1px 3px rgb(14 17 23 / 0.1);
        }
        & .calc-n {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }
        & .calc-n b {
            font-size: 48px;
            font-weight: 600;
            letter-spacing: -0.045em;
            font-variant-numeric: tabular-nums;
        }
        & .calc input[type="range"] {
            width: 100%;
            accent-color: var(--text);
        }
        & .tiers {
            position: relative;
            height: 34px;
            margin-top: 6px;
        }
        & .tiers span {
            position: absolute;
            transform: translateX(-50%);
            font: 400 12px / 1.3 var(--f-mono);
            color: var(--faint);
            text-align: center;
            transition: color 0.3s;
        }
        & .tiers span:first-child {
            transform: none;
            text-align: left;
        }
        & .tiers span.on {
            color: var(--text);
        }
        & .totals {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            padding-top: 24px;
            border-top: 1px solid var(--line);
        }
        & .totals div {
            display: grid;
            gap: 4px;
        }
        & .totals small {
            font-size: 13px;
            color: var(--faint);
        }
        & .totals b {
            font-size: clamp(22px, 2.6vw, 30px);
            font-weight: 600;
            letter-spacing: -0.035em;
            font-variant-numeric: tabular-nums;
        }

        /* who may do what */
        & .wide-photo {
            aspect-ratio: 21 / 9;
            border-radius: 20px;
            margin-bottom: clamp(40px, 6vw, 64px);
            background: #eee6dc;
        }
        & .wide-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        & .tbl-wrap {
            overflow-x: auto;
        }
        & .roles {
            max-width: 960px;
            margin: 0 auto;
            border-collapse: collapse;
            width: 100%;
            font-size: 15px;
        }
        & .roles th,
        & .roles td {
            padding: 16px 12px;
            border-top: 1px solid var(--line);
            text-align: center;
        }
        & .roles th:first-child,
        & .roles td:first-child {
            text-align: left;
            padding-left: 0;
        }
        & .roles thead th {
            border-top: 0;
            font-weight: 500;
            font-size: 15px;
        }
        & .roles thead th small {
            display: block;
            color: var(--faint);
            font-weight: 400;
            font-size: 13px;
        }
        & .roles td {
            color: var(--muted);
        }
        & .roles td:first-child {
            color: var(--text);
        }
        & .yes {
            display: inline-block;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background:
                var(--text)
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.1L11.5 5.6' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                center / 100% no-repeat;
            vertical-align: middle;
        }
        & .no {
            color: #c8cbd3;
        }

        /* the closing call to action */
        & .final {
            text-align: center;
        }
        & .final .h2 {
            font-size: clamp(40px, 6vw, 76px);
            letter-spacing: -0.045em;
            max-width: 14ch;
            margin: 0 auto;
        }
        & .final .ctas {
            margin-top: 36px;
        }
        & .final .note {
            margin-top: 18px;
        }
    }

    @media (max-width: 800px) {
        .mk .pg-designers .sp-list .top {
            grid-template-columns: minmax(0, 1fr);
        }
        .mk .pg-designers .sp-list li {
            grid-template-columns: 48px minmax(0, 1fr);
        }
        .mk .pg-designers .sp-list li span {
            grid-column: 2;
        }
        .mk .pg-designers .steps {
            grid-template-columns: minmax(0, 1fr);
            gap: 32px;
        }
    }

    /* "let your client pay": the note under its list */
    .mk .pg-designers .billing-note {
        margin-top: 22px;
        font-size: 14px;
        color: rgb(243 237 230 / 0.55);
    }
}
