/* Wholesale & affiliates /wholesale/ (all-pages-spec §3.5). Loaded on this page only. */

/* ---------- W1. Hero: the businessman, the mover behind him ---------- */
.ws-hero .page-hero__center { grid-template-columns: 1fr 470px; }
.ws-hero h1 .line { display: block; }
.ws-hero .lead { max-width: 30em; margin-bottom: 30px; }
.ws-guys { width: 470px; height: 500px; justify-self: end; }
.ws-guys > img { position: absolute; bottom: 0; width: auto; }
.ws-guys__biz { left: 30px; height: 500px; z-index: 2; }
.ws-guys__mover { right: -30px; height: 440px; z-index: 1; }
.ws-guys .sbubble--biz { left: -170px; top: 40px; transform: rotate(-5deg); }

/* ---------- W2. Who's it for: three playing cards on a confetti table ---------- */
#who { padding-bottom: 110px; }
#who > .wrap { position: relative; z-index: 1; }
.ws-table { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.ws-table::before { content: ""; position: absolute; left: 50%; top: 0; width: 2400px; height: 1400px; margin-left: -1200px;
  background: url("../../img/wholesale-table.svg") no-repeat 0 0 / 2400px 1400px; }
.cards-a.cards-a--3 { gap: 56px; padding-top: 20px; }
/* No CSS zoom: scale the 3-card row (3 × 400 + 2 × 56 = 1312px) and pull up the space it leaves (overrides site.css .cards-a scale(.85)) */
@media (min-width: 901px) { .cards-a.cards-a--3 { transform: scale(.78); transform-origin: top center; margin-bottom: -140px; } }
.cards-a--3 .dc-wrap { display: block; text-decoration: none; color: inherit; }
.ws-w1 { transform: rotate(-4deg); }
.ws-w2 { transform: rotate(2deg) translateY(30px); }
.ws-w3 { transform: rotate(4deg); }
.ws-w1 .dc:hover { --unrot: 4deg; }
.ws-w2 .dc:hover { --unrot: -2deg; }
.ws-w3 .dc:hover { --unrot: -4deg; }
.dc--yellow .dc__window { background: var(--yellow); }
.cards-a--3 .dc__plate { bottom: 70px; }
.cards-a--3 .dc__caption { font-size: 30px; margin-top: 46px; }
@media (max-width: 900px) {
  .cards-a.cards-a--3 { gap: 70px; }
  .ws-w1, .ws-w2, .ws-w3 { transform: rotate(-2deg); }
  .ws-w2 { transform: rotate(2deg); }
  .cards-a--3 .dc__plate { bottom: 60px; }
  .cards-a--3 .dc__caption { font-size: 24px; margin-top: 30px; }
  .ws-table::before { width: 1350px; height: 788px; margin-left: -675px; top: 240px; background-size: 1350px 788px; }
}

/* ---------- W3. Affiliates ---------- */
#affiliates { padding-bottom: 120px; }
.aff { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: end; max-width: 1160px; }
.aff__copy { padding-bottom: 10px; }
.aff__copy .kicker { color: var(--ink); }
.aff__copy h2 { margin: 0 0 18px; }
.aff-steps { list-style: none; padding: 0; margin: 40px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.aff-step { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 40px 18px 18px; text-align: center; }
.aff-step:nth-child(1) { transform: rotate(-3deg); }
.aff-step:nth-child(2) { transform: rotate(2deg) translateY(14px); }
.aff-step:nth-child(3) { transform: rotate(-1.5deg); }
.aff-step .feature__num { position: absolute; top: -32px; left: 50%; margin: 0 0 0 -32px; background: var(--pink); }
.aff-step h3 { font-size: 34px; margin-bottom: 6px; }
.aff-step p { margin: 0; font-size: 17px; line-height: 1.35; }
.aff__guy { position: relative; align-self: end; margin-bottom: -150px; }
.aff__guy img { height: 560px; width: auto; display: block; margin: 0 auto; }
.aff__guy .sbubble--share { left: 250px; top: 30px; transform: rotate(5deg); }

/* ---------- W4. Form ---------- */
#form { padding-bottom: 120px; }
.ws-form { max-width: 820px; margin: 0 auto; }
.ws-form__head { text-align: center; margin-bottom: 30px; }
.ws-form__head h2 { font-size: 72px; line-height: .9; }
.ws-form__head .hand { font-size: 30px; margin: 8px 0 0; transform: rotate(-2deg); display: inline-block; }
.ws-form .btn { min-width: 220px; margin-top: 6px; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .6; }
.ws-form select { appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 22px; padding-right: 48px; }
.ws-e1 { left: calc(50% - 420px); top: -26px; width: 50px; height: 50px; background-image: url("../../img/wholesale-edge-spade.svg"); }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .ws-hero .page-hero__center { grid-template-columns: 1fr; }
  .ws-hero .hero__ctas { justify-content: center; }
  .ws-hero .lead { margin-inline: auto; }
  .ws-guys { width: 320px; height: 320px; justify-self: center; }
  .ws-guys__biz { height: 320px; left: 40px; }
  .ws-guys__mover { height: 280px; right: -10px; }
  .ws-guys .sbubble--biz { left: -60px; top: -30px; width: 170px; height: 64px; font-size: 19px; }
  .aff { grid-template-columns: minmax(0, 1fr); }
  .aff-steps { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 360px; margin-inline: auto; }
  .aff__copy { text-align: center; }
  .aff__copy .lead { margin-inline: auto; }
  .aff__guy { margin: 20px auto calc(var(--section) * -1 - 30px); }
  .aff__guy img { height: 400px; }
  .aff__guy .sbubble--share { left: 150px; top: -20px; }
  .ws-form__head h2 { font-size: 54px; }
}

/* The footer's red top rule peeks through the blue tear here (on home a red band hides it) */
.site-footer { border-top-color: var(--ink); }

/* Fixed card size on desktop so the confetti table (made for this geometry) lines up at every width */
@media (min-width: 901px) { .cards-a--3 .dc { width: 400px; } }
@media (min-width: 901px) and (max-width: 1140px) { .cards-a.cards-a--3 { transform: scale(.66); margin-bottom: -215px; } }
@media (max-width: 760px) { .ws-e1 { left: calc(50% - 190px); } }

/* ---------- V2 round 2 (A10): trade details on request, Wholesale / Affiliate pills, deck-count field ---------- */
.ws-terms { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; width: fit-content; max-width: 760px;
  margin: 70px auto 0; padding: 16px 28px; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink);
  font-size: 18px; font-weight: 600; text-align: center; transform: rotate(-1deg); }
.ws-terms b { font-family: var(--f-display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.ws-terms .link-arrow { white-space: nowrap; }
.ws-topic { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; }
.ws-topic legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; text-align: center; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
/* the same borderless pill + hard shadow as the game filter chips */
.ws-topic__pill { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border: 0; cursor: pointer; font-size: 16px;
  background: var(--cream); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.ws-topic__pill:nth-of-type(1) { transform: rotate(-1.5deg); } .ws-topic__pill:nth-of-type(2) { transform: rotate(1deg); }
.ws-topic__pill:hover { box-shadow: 6px 6px 0 var(--ink); }
.ws-topic__pill input { position: absolute; opacity: 0; pointer-events: none; }
.ws-topic__pill:has(input:checked) { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--red); transform: rotate(0) translateY(-2px); }
.ws-topic__pill:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 900px) { .ws-terms { margin-top: 56px; padding: 14px 18px; } .ws-terms b { font-size: 24px; } }

/* V2 round 4 */
.aff__guy .sbubble--share { left: 300px; top: -46px; }

/* ===== PHONE LAYOUT (≤760px) · mobile pass ===== */
@media (max-width: 760px) {
  /* W1. Hero: title, then the boss and the mover on a spinning yellow sun, then the pitch + both doors */
  .ws-hero .page-hero__center { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); padding: 20px 0 44px; text-align: left; }
  .ws-hero .page-hero__copy { display: contents; }
  .ws-hero .page-hero__copy > .sticker { order: 1; justify-self: start; margin-left: var(--m-pad); rotate: -3deg; }
  .ws-hero h1.h-xl { order: 2; position: relative; z-index: 3; margin: 14px 0 0; padding: 0 var(--m-pad); font-size: clamp(64px, 20.5vw, 90px); line-height: .84; }
  .ws-hero h1 .line:nth-child(2) { text-align: right; }
  .ws-hero .lead { order: 4; position: relative; z-index: 3; margin: 0 auto 20px; padding: 22px var(--m-pad) 0; max-width: 24em; text-align: center; font-weight: 600; }
  .ws-hero .hero__ctas { order: 5; display: grid; gap: 14px; padding: 0 var(--m-pad); }
  .ws-hero .hero__ctas .btn { width: 100%; justify-content: center; margin: 0; }
  .ws-guys { order: 3; position: relative; justify-self: stretch; width: auto; height: min(106vw, 430px); margin: 16px 0 0; }
  .ws-guys::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 34px; width: min(84vw, 350px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
    background: var(--yellow); box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--ink); }
  .ws-guys::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 8px; width: calc(min(84vw, 350px) + 52px); aspect-ratio: 1; margin-left: calc((min(84vw, 350px) + 52px) / -2); border-radius: 50%;
    background: repeating-conic-gradient(var(--yellow) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
    animation: m-spin 60s linear infinite; }
  .ws-guys__biz { left: 6vw; height: 92%; }
  .ws-guys__mover { right: -9vw; height: 82%; }
  .ws-guys > img { -webkit-mask: linear-gradient(#000 80%, transparent 99%); mask: linear-gradient(#000 80%, transparent 99%); }
  .ws-guys .sbubble--biz { z-index: 4; left: 37vw; top: 0; width: 150px; height: 58px; font-size: 19px; transform: rotate(-4deg); }
  .ws-guys .sbubble--biz::before { transform: scaleX(-1); }

  /* W2. Who's it for: the three court cards on a swipe rail, tabs on top, the terms ticket under */
  #who { padding-bottom: 84px; overflow-x: clip; }
  #who > .wrap { display: flex; flex-direction: column; }
  #who .section-head { order: 1; margin-bottom: 22px; }
  #who .m-who-segs { order: 2; width: 100%; }
  #who .cards-a { order: 3; }
  #who .m-who-dots { order: 4; color: var(--ink); }
  #who .ws-terms { order: 5; }
  .cards-a.cards-a--3[data-m-rail] { --m-rail-pad: 13vw; gap: 4px; padding-top: 52px; padding-bottom: 18px; }
  .cards-a--3 .dc-wrap { width: min(74vw, 300px); transform: none; }
  .cards-a--3 .dc { width: 100%; }
  .cards-a--3 .dc__plate { bottom: 62px; font-size: 30px; }
  .cards-a--3 .dc__caption { font-size: 22px; margin-top: 22px; }
  .ws-terms { width: auto; margin-top: 34px; padding: 18px 18px 16px; flex-direction: column; gap: 6px; }

  /* W3. Affiliates: three steps climbing up to the pizza guy (no side strips: the confetti table is right above) */
  #affiliates { padding-bottom: 64px; overflow-x: clip; }
  #affiliates .reviews-strip { display: none; }
  .aff { display: block; position: relative; }
  .aff__copy { text-align: left; padding-bottom: 0; }
  .aff__copy .lead { margin-inline: 0; }
  .aff-steps { position: relative; z-index: 3; width: 63%; max-width: none; margin: 30px 0 26px; gap: 22px; }
  .aff-step { padding: 14px 12px 12px 60px; text-align: left; }
  .aff-step:nth-child(1) { transform: rotate(-3deg); }
  .aff-step:nth-child(2) { transform: rotate(2deg); margin-left: 12px; background: var(--pink); }
  .aff-step:nth-child(3) { transform: rotate(-1.5deg); margin-left: 24px; background: var(--blue); }
  .aff-step .feature__num { top: 50%; left: 10px; width: 42px; height: 42px; margin: -21px 0 0; font-size: 24px; background: var(--red); color: #fff; }
  .aff-step h3 { font-size: 30px; margin-bottom: 2px; }
  .aff-step p { font-size: 15px; line-height: 1.25; font-weight: 600; }
  .aff__copy > .btn { position: relative; z-index: 4; width: 100%; justify-content: center; }
  .aff__guy { position: absolute; z-index: 2; right: -7vw; bottom: 30px; width: 50vw; max-width: 230px; margin: 0; }
  .aff__guy img { width: 100%; height: auto; }
  .aff__guy .sbubble--share { left: auto; right: 22%; top: -58px; width: 150px; height: 58px; font-size: 19px; transform: rotate(5deg); }

  /* W4. The form: topic pills side by side, full-width send */
  #form { padding-top: 84px; }
  .ws-form { padding: 28px 18px 22px; }
  .ws-form__head { margin-bottom: 18px; }
  .ws-form__head h2 { font-size: 52px; }
  .ws-form__head .hand { font-size: 24px; color: var(--red); }
  .ws-topic { flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .ws-topic legend { text-align: left; width: 100%; }
  .ws-topic__pill { flex: 1 1 40%; justify-content: center; min-height: 48px; padding: 0 8px; font-size: 14px; text-align: center; }
  .ws-topic__pill:nth-of-type(1), .ws-topic__pill:nth-of-type(2) { transform: none; }
  .ws-form .btn { width: 100%; justify-content: center; }
}

/* ===== Art-director review fixes (phone only, 2026-11-22) ===== */
@media (max-width: 760px) {
  .cards-a.cards-a--3[data-m-rail] { flex-direction: row; align-items: flex-start; }
  .aff__guy { z-index: 4; }
  .aff__guy .sbubble--share { right: -4px; top: -118px; }
  .ws-guys .sbubble--biz { top: 40px; }
}
@media (max-width: 760px) {
  .aff__guy .sbubble--share { left: -84px; right: auto; top: -74px; transform: rotate(-4deg); }
  .aff__guy .sbubble--share::before { transform: scaleX(-1); }
}
@media (max-width: 760px) { .aff__guy .sbubble--share { top: -92px; height: 52px; } }

/* New pizza guy (whole box in frame, shorter image): keep the box on screen and the bubble clear of step 1 */
@media (max-width: 760px) {
  .aff__guy { right: -1vw; }
  .aff__guy { z-index: 1; }                 /* behind the step cards and the Apply button */
  .aff__guy .sbubble--share { display: none; }
}

/* Phone hero: pull the two guys in toward the middle of the sunburst (no empty gap between them) */
@media (max-width: 760px) {
  .ws-guys__biz { left: 18vw; }
  .ws-guys__mover { right: 6vw; }
}

/* Tablet / small laptop (user, 2026-11-22): "Let's talk volume" sat on the heading + intro text; "Sharing is caring" ran off the right edge */
@media (min-width: 901px) and (max-width: 1240px) {
  .ws-guys .sbubble--biz { left: 4%; right: auto; top: -84px; }
  .aff__guy .sbubble--share { left: auto; right: -10px; top: -84px; }
}
