/* 12 Revenue: four steps from a fan who plays to a fan who pays, joined by a track. A red token
   runs the track and lights each step as it passes (pay.js sets .is-on); the last step is a season
   ticket that gets stamped. Below, one quiet row of what sponsors can buy. */
.pay { --club: #d7192d; background: var(--paper); }
.pay__idx.feat__idx { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-family: var(--body); font-size: 14px; color: var(--slate); }
.pay__title { margin: 0; max-width: 18ch; font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(40px, 4vw, 60px); line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.pay__title em { font-style: normal; color: var(--blue); }

.pay__path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin: clamp(32px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.pay__step { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; align-content: start; gap: 8px; min-height: 200px; padding: 22px; border-radius: var(--r-card, 24px); background: var(--infield); }
.pay__k { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.pay__big { margin-top: auto; font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay__big--sm { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.05; }
.pay__s { font-size: 14px; color: var(--slate); }
.pay__step.is-on { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--club); }
.pay__step.is-on .pay__k { color: var(--club); }

/* The season ticket: a red card with notched sides and a stamp that lands when it lights. */
.pay__ticket { position: relative; display: grid; gap: 4px; margin-top: auto; padding: 18px 18px 20px; border-radius: 14px; background: var(--club); color: #fff;
  -webkit-mask: radial-gradient(circle 10px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.pay__ticket b { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 22px; }
.pay__ticket span { font-family: var(--mono); font-size: 12px; opacity: 0.85; }
.pay__stamp { position: absolute; right: 14px; bottom: 16px; padding: 4px 9px; border: 2px solid #fff; border-radius: 6px; font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform 380ms cubic-bezier(0.3, 1.6, 0.5, 1), opacity 200ms ease; }
.pay__step--ticket.is-on .pay__stamp { transform: rotate(-8deg) scale(1); opacity: 1; }

/* The rail runs under the cards, centre of the first to centre of the last; the token rides it
   and the rail fills red behind it. */
.pay__track { position: absolute; left: 12.5%; right: 12.5%; top: calc(100% + 22px); height: 2px; border-radius: 1px; background: linear-gradient(var(--club), var(--club)) left / calc(var(--t, 0) * 100%) 100% no-repeat, var(--line); }
.pay__token { position: absolute; top: 50%; left: calc(var(--t, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--club); box-shadow: 0 0 0 4px var(--paper); }

.pay__sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: calc(clamp(26px, 4vh, 40px) + 30px) 0 0; }
.pay__sponsors span { margin-right: 6px; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.pay__sponsors b { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }

.js .pay .pay__step { opacity: 0; transform: translateY(20px); }
/* Cards rise in once; after that a lit card just steps up, with no fade on its outline. */
.js .pay.is-seen .pay__step { opacity: 1; transform: none; transition: opacity 500ms ease calc(var(--i, 0) * 90ms), transform 600ms var(--ease) calc(var(--i, 0) * 90ms); }
.js .pay.is-seen .pay__step.is-on { transform: translateY(-6px); transition: transform 260ms var(--ease); }
.pay__step:nth-child(2) { --i: 1; } .pay__step:nth-child(3) { --i: 2; } .pay__step:nth-child(4) { --i: 3; }

@media (max-width: 900px) {
  .pay__path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay__track { display: none; }
  .pay__sponsors { margin-top: clamp(26px, 4vh, 40px); }
  .pay__step { min-height: 160px; padding: 18px; }
  .pay__ticket { padding: 14px 14px 40px; }
  .pay__ticket b { font-size: 18px; }
  .pay__stamp { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pay .pay__step, .js .pay.is-seen .pay__step { opacity: 1; transform: none; transition: none; }
  .pay__stamp { transition: none; }
}
