/* ===== Subpages: Payments, Portal, Risk, Developers =====
   The homepage's language, page by page: one grey-50 page, grey-100 panels (corner 24), drawn cards (grey-50, corner 16,
   a barely-there outline and a soft shadow, rows 12), blue for actions and for one datum per picture, the guilloché
   lines in empty areas (data-gq in home.js), the blur-in and count-up motion (data-bl, data-bl-box, data-money,
   data-pop, data-bars). Loaded after v2.css on the four subpages only; every colour comes from the theme tokens, so the
   dark theme follows. */

/* ---------- page hero: a grey-100 panel as tall as a screen, the copy centred over a drawn picture (.ph--c) ---------- */
.ph { padding: calc(var(--head-h) + 2px) clamp(8px, 1.1vw, 16px) 0; }
.ph__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: clamp(32px, 4vw, 64px);
  min-height: clamp(600px, calc(100svh - var(--head-h) - 16px), 860px);
  padding: clamp(40px, 5vw, 80px) clamp(24px, 4.4vw, 72px);
  border-radius: clamp(24px, 2.6vw, 40px); background: var(--g-100);
}
.ph__copy { position: relative; z-index: 3; max-width: 560px; }
.ph__title { font: 600 clamp(40px, 4.4vw, 68px)/1.02 var(--font); letter-spacing: -.036em; color: var(--g-900); text-wrap: balance; }
.ph__lead { margin-top: 22px; font: 400 18px/1.55 var(--font); color: var(--g-600); text-wrap: pretty; }
.ph__ctas { margin-top: 32px; }
.ph__art { position: relative; z-index: 2; align-self: stretch; min-height: 480px; }
/* a centred hero: the copy on top, the picture below it, in the panel's middle once the fly-through has played */
.ph--c .ph__panel { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; row-gap: clamp(40px, 5vw, 64px); padding-bottom: 0; text-align: center; }
.ph--c .ph__copy { display: flex; flex-direction: column; align-items: center; max-width: 960px; }
.ph--c .ph__lead { max-width: 760px; }
.ph--c .ph__ctas { justify-content: center; }
.ph--c .ph__art { width: 100%; min-height: 0; }
@media (max-width: 1023.98px) {
  .ph__panel { grid-template-columns: minmax(0, 1fr); row-gap: 40px; min-height: 0; padding-bottom: 0; }
  .ph__copy { max-width: 640px; }
  .ph__art { min-height: 440px; }
}
@media (max-width: 767.98px) {
  .ph__panel { padding: 36px 20px 0; border-radius: 24px; row-gap: 32px; }
  .ph__title { font-size: clamp(32px, 9vw, 40px); line-height: 1.05; }
  .ph__lead { margin-top: 16px; font-size: 16px; }
  .ph__ctas { margin-top: 24px; }
  .ph__art { min-height: 380px; }
}

/* ---------- sections ---------- */
.ps { padding: var(--v-sec) 0 0; }
.ps + .ps { margin-top: 0; }
.subpage main > .ps + section.vc { margin-top: 0; padding-top: var(--v-sec); }

/* ---------- text + picture rows ---------- */
.pk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(40px, 6vw, 96px); }
.pk + .pk { margin-top: clamp(64px, 8vw, 128px); }
.pk--flip .pk__txt { order: 2; }
.pk__txt { max-width: 520px; }
.pk__h { font: 600 clamp(32px, 3.4vw, 48px)/1.08 var(--font); letter-spacing: -.025em; color: var(--g-900); text-wrap: balance; }
.pk__p { margin-top: 16px; font: 400 18px/1.55 var(--font); color: var(--g-600); text-wrap: pretty; }
.pk__txt .vr__pts { margin-top: 32px; }
.pk__txt .v-link { margin-top: 32px; }
.pk__pic {
  position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center;
  min-height: 520px; padding: 48px; border-radius: 24px; background: var(--g-100);
}
@media (max-width: 1023.98px) { .pk { grid-template-columns: minmax(0, 1fr); row-gap: 40px; } .pk--flip .pk__txt { order: 0; } .pk__txt { max-width: 640px; } }
@media (max-width: 767.98px) { .pk__p { font-size: 16px; } .pk__pic { min-height: 400px; padding: 28px 20px; border-radius: 20px; } .pk + .pk { margin-top: 64px; } }

/* ---------- bento tiles: caption top-left, the picture below it ---------- */
.pb { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--v-col-gap); }
.pb__t {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  grid-column: span 4; min-height: 440px; border-radius: 24px; background: var(--g-100); container-type: inline-size;
}
.pb__t--5 { grid-column: span 5; }
.pb__t--7 { grid-column: span 7; }
.pb__t--12 { grid-column: span 12; }
.pb__cap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 40px 40px 0; }
.pb__cap b { font: 600 clamp(24px, 2vw, 28px)/1.15 var(--font); letter-spacing: -.018em; color: var(--g-900); }
.pb__cap span { font: 400 16px/1.5 var(--font); color: var(--g-600); text-wrap: pretty; max-width: 34em; }
.pb__art { position: relative; flex: 1 1 auto; min-height: 220px; }
@media (max-width: 1023.98px) { .pb__t, .pb__t--5, .pb__t--7 { grid-column: span 6; } .pb__t--12 { grid-column: span 12; } }
@media (max-width: 767.98px) {
  .pb { grid-template-columns: minmax(0, 1fr); }
  .pb__t, .pb__t--5, .pb__t--7, .pb__t--12 { grid-column: 1; min-height: 0; border-radius: 20px; }
  .pb__cap { padding: 28px 24px 0; }
  .pb__art { min-height: 260px; }
}

/* ---------- drawn cards: the page's card language ---------- */
.dc {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px;
  border-radius: 16px; background: var(--g-50); color: var(--g-900); text-align: left;
  box-shadow: inset 0 0 0 1px #ebebee, 0 1px 2px rgba(17, 18, 19, .03), 0 18px 40px -24px rgba(17, 18, 19, .22);
}
.dc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 13px/1.3 var(--font); color: var(--g-500); }
.dc__top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.dc__amt { font: 500 30px/1.05 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--g-900); }
.dc__amt small { font-size: .55em; letter-spacing: 0; color: var(--g-500); margin-left: 4px; }
.dc__meta { display: flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--font); color: var(--g-600); }
.dc__rule { height: 1px; background: var(--g-200); }
.dc__rows { display: flex; flex-direction: column; gap: 10px; }
.dc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 400 14px/1.35 var(--font); color: var(--g-600); }
.dc__row b { font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc__id { font: 400 12px/1.3 var(--mono); color: var(--g-500); }
.dc__h { font: 600 15px/1.3 var(--font); color: var(--g-900); }
.dc__p { font: 400 13px/1.45 var(--font); color: var(--g-600); }
/* a card mark: the card brand or wallet in a small light box (the portal's own) */
.mk { display: inline-grid; place-items: center; flex: none; width: 34px; height: 22px; border-radius: 5px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); }
.mk svg { width: 24px; height: 12px; }
.mk--wallet svg { width: 26px; height: 20px; color: var(--g-900); }
/* the brand ring in a small box, as the receipts carry it */
.bm { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--b-50); }
.bm svg { width: 15px; height: 15px; fill: none; stroke: var(--b-600); stroke-width: 20; }

/* one status badge (as on the homepage): 12px medium, 3px 8px, corner 8, an optional dot */
/* the blue chip (as the homepage's Developer chip) */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #e3e9fd; color: #3f3cca; font: 500 13px/1.2 var(--font); white-space: nowrap; }

/* a vertical timeline inside a card: done steps blue, the current one ringed, the rest grey */
.tl { display: flex; flex-direction: column; }
.tl__s { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 0 0 16px 26px; font: 400 14px/1.35 var(--font); color: var(--g-600); }
.tl__s:last-child { padding-bottom: 0; }
.tl__s b { font-weight: 500; color: var(--g-900); }
.tl__s small { grid-column: 1 / -1; font-size: 12.5px; color: var(--g-500); }
.tl__s > span:last-of-type { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__s::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--g-50); box-shadow: inset 0 0 0 2px var(--g-300); }
.tl__s:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 4px; width: 1px; background: var(--g-200); }
.tl__s--done::before { background: var(--b-600); box-shadow: none; }
.tl__s--done:not(:last-child)::after { background: rgba(78, 76, 242, .35); }
.tl__s--now::before { background: var(--b-600); box-shadow: 0 0 0 4px rgba(78, 76, 242, .18); }
.tl__s--now b { color: var(--b-600); font-weight: 600; }

/* a quiet outline for every panel and tile, one for every card (the homepage's rule) */
:is(.ph__panel, .pk__pic, .pb__t) { box-shadow: inset 0 0 0 1px #ebebee; }

/* ---------- dark theme ---------- */
[data-theme="dark"] .dc { background-clip: padding-box; box-shadow: inset 0 0 0 1px #2d2e30, 0 18px 40px -22px rgba(0, 0, 0, .6); }
[data-theme="dark"] :is(.ph__panel, .pk__pic, .pb__t) { box-shadow: inset 0 0 0 1px #242527; }
[data-theme="dark"] .chip { background: #25265a; color: #b4bdfd; }
[data-theme="dark"] .mk { background: #f2f3f5; box-shadow: none; }
[data-theme="dark"] .mk--wallet svg { color: #111213; }
[data-theme="dark"] .bm { background: #25265a; }
[data-theme="dark"] .bm svg { stroke: #b4bdfd; }
[data-theme="dark"] .tl__s--done:not(:last-child)::after { background: rgba(132, 148, 252, .4); }
[data-theme="dark"] .tl__s--now b { color: #b4bdfd; }

/* ---------- Developers ---------- */
/* the opening: the homepage's dark panel, under the header and with the page's title */
.pd-hero { padding-top: calc(var(--head-h) + 2px); }
.pd-hero .vd__title { font: 600 clamp(40px, 4.4vw, 64px)/1.04 var(--font); letter-spacing: -.035em; max-width: 14em; margin: 0 auto; }

/* two ways to take a payment: one wide grey row each — what it is on the left, its three steps on the right, joined by
   short dashed arrows */
.pw { display: flex; flex-direction: column; gap: var(--v-col-gap); }
.pw__row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: clamp(32px, 3.4vw, 48px); border-radius: 24px; background: var(--g-100); box-shadow: inset 0 0 0 1px #ebebee; }
.pw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1279.98px) { .pw { grid-template-columns: minmax(0, 1fr); } }
.pw__cap { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.pw__cap b { font: 600 clamp(24px, 2vw, 28px)/1.15 var(--font); letter-spacing: -.018em; color: var(--g-900); }
.pw__cap > span { font: 400 16px/1.5 var(--font); color: var(--g-600); text-wrap: pretty; }
.pw__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dw__btn { display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--b-600); color: #fff; font: 600 13px/1 var(--font); }
.dw__field { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 10px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); font: 400 12.5px/1.3 var(--mono); color: var(--g-900); white-space: nowrap; }
.dw__field small { font: 400 11px/1.2 var(--font); color: var(--g-500); }
.dw__field .mk { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 30px; height: 20px; }
.dw__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 767.98px) {
  .pw__row { padding: 28px 20px; border-radius: 20px; }
}
[data-theme="dark"] .pw__row { box-shadow: inset 0 0 0 1px #242527; }

/* ---------- Payments ---------- */
/* hero: the portal's Payments page in a window under the centred copy, the EUR 129.00 payment open in its drawer
   (fee, reserve, to your bank, seven steps); the balance it lands in over the window's lower-left corner */
.pp-art { min-height: 680px; }
.pw-win {
  position: absolute; left: 0; top: 4%; right: calc(-1 * clamp(24px, 4.4vw, 72px)); bottom: calc(-1 * clamp(40px, 5vw, 80px));
  overflow: hidden; border-radius: 16px 0 0 0; background: var(--g-50); text-align: left;
  box-shadow: inset 0 0 0 1px #ebebee, 0 40px 80px -40px rgba(30, 31, 33, .35);
}
.pw-top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 22px; border-bottom: 1px solid var(--g-200); }
.pw-top > b { margin-right: auto; font: 600 16px/1 var(--font); color: var(--g-900); }
.pw-search { display: flex; align-items: center; gap: 8px; width: 260px; height: 34px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--g-200); font: 400 12.5px/1 var(--font); color: var(--g-500); white-space: nowrap; overflow: hidden; }
.pw-search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.pw-f { display: flex; gap: 8px; padding: 14px 22px; }
.pw-tbl { margin: 0 22px; border-radius: 12px 12px 0 0; box-shadow: inset 0 0 0 1px var(--g-200); overflow: hidden; }
.pw-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-top: 1px solid var(--g-100); font: 400 13px/1 var(--font); color: var(--g-800); white-space: nowrap; }
.pw-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pw-tr b { font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pw-th { height: 38px; border-top: 0; background: var(--g-100); font: 500 12px/1 var(--font); color: var(--g-600); }
.pw-tr.is-sel { background: var(--b-50); }
.pw-pm { display: flex; align-items: center; gap: 8px; }
.pw-drw { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; width: min(330px, 56%); padding: 18px 22px; background: var(--g-50); box-shadow: -1px 0 0 var(--g-200), -30px 0 60px -40px rgba(17, 18, 19, .35); }
.pw-drw__h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.pw-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--g-200); color: var(--g-600); }
.pw-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pp-net b { color: var(--b-600); font-weight: 600; }
.pp-bal { position: absolute; left: 4%; bottom: 3%; z-index: 3; width: min(300px, 48%); }
/* Payments and Risk open as the homepage does: the copy centred on top and, on a desktop, the portal window below it at
   the homepage window's proportions (1120 x 650) with all four corners, the card over its lower-left edge */
@media (min-width: 1024px) {
  .ph--c .pp-art { width: min(1120px, 100%); }
  .ph--c .pw-win { position: relative; inset: auto; height: 650px; border-radius: 16px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .ph--c .pp-art { min-height: 640px; } }
@media (max-width: 767.98px) { .ph--c .rh-art { justify-self: start; width: calc(100% + 20px); } }
@media (max-width: 1023.98px) { .pp-art { min-height: 640px; } .pw-win { top: 0; } }
@media (max-width: 767.98px) {
  .pp-art { display: flex; flex-direction: column; min-height: 0; padding-bottom: 28px; }
  .pw-win { position: relative; inset: auto; border-radius: 16px; }
  .pw-top, .pw-f, .pw-tbl { display: none; }
  .pw-drw { position: static; width: auto; box-shadow: none; }
  .pw-drw__h { display: none; }
  .pp-bal { position: relative; inset: auto; width: 88%; margin: -10px 0 0 auto; }
}
[data-theme="dark"] .pw-win { box-shadow: inset 0 0 0 1px #2d2e30, 0 40px 80px -40px rgba(0, 0, 0, .7); }
[data-theme="dark"] .pw-th { background: #1e1f21; }
[data-theme="dark"] .pw-tr.is-sel { background: #1c1d33; }
[data-theme="dark"] .pp-net b { color: #b4bdfd; }

/* the whole API: one grey panel, three drawn cards of method + path rows */
.pe { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--v-col-gap); padding: clamp(32px, 3.4vw, 48px); border-radius: 24px; background: var(--g-100); box-shadow: inset 0 0 0 1px #ebebee; }
.pe__g { position: relative; z-index: 1; gap: 0; padding: 22px 24px 10px; }
.pe__h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.pe__h b { font: 600 17px/1.3 var(--font); color: var(--g-900); }
.pe__h span { font: 400 13.5px/1.4 var(--font); color: var(--g-500); }
.pe__h--2 { margin-top: 20px; }
.pe__r { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--g-200); }
.pe__r code { font: 500 13px/1.35 var(--mono); color: var(--g-900); overflow-wrap: anywhere; }
.pe__r > span { grid-column: 2; font: 400 13px/1.35 var(--font); color: var(--g-500); }
.pe__m { grid-row: 1 / 3; align-self: start; display: grid; place-items: center; height: 20px; border-radius: 6px; background: var(--g-100); color: var(--g-700); font: 600 10.5px/1 var(--mono); font-style: normal; letter-spacing: .02em; }
.pe__m--post { background: #e3e9fd; color: #3f3cca; }
@media (max-width: 1023.98px) { .pe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 767.98px) { .pe { grid-template-columns: minmax(0, 1fr); padding: 20px; border-radius: 20px; } }
[data-theme="dark"] .pe { box-shadow: inset 0 0 0 1px #242527; }
[data-theme="dark"] .pe__m { background: #2e2f31; color: #d6d7da; }
[data-theme="dark"] .pe__m--post { background: #25265a; color: #b4bdfd; }

/* safe to send twice: the same request sent twice, one payment */
.pr-pic { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; }
.pr-pic > * { width: min(420px, 100%); }
.pr-again { color: #f2c56b; }
.pr-one { align-self: flex-end; margin-top: 20px; width: min(360px, 100%); z-index: 2; }
.pr-rid { font: 500 12.5px/1.3 var(--mono); color: var(--b-600) !important; }
[data-theme="dark"] .pr-rid { color: #b4bdfd !important; }
@media (max-width: 767.98px) { .pr-one { margin-top: 16px; } }

/* webhooks: the events as mono chips in three groups */
.hk-sig { display: grid; place-items: center; padding: 24px 32px 40px; }
.pb__t--row { min-height: 0; }
.hk-rt { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto; align-items: center; gap: 28px 48px; padding: 36px 40px 40px; min-height: 0; }
.hk-rt__line { grid-column: 1; position: relative; display: flex; align-items: flex-start; gap: 0; }
.hk-rt__line b { flex: 0 0 76px; font: 500 13px/12px var(--font); color: var(--g-500); }
.hk-rt__line::before { content: ""; position: absolute; left: 76px; right: 0; top: 5.5px; height: 1px; background: var(--g-300); }
.hk-rt__d { position: relative; z-index: 1; flex: 1 1 0; display: flex; justify-content: center; padding-top: 22px; font: 400 12px/1 var(--mono); color: var(--g-600); white-space: nowrap; }
.hk-rt__d::before { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--g-50); box-shadow: inset 0 0 0 2px var(--g-300); }
.hk-rt__d--x::before { background: #b42323; box-shadow: none; }
.hk-rt__d--ok::before { background: var(--b-600); box-shadow: 0 0 0 4px rgba(78, 76, 242, .18); }
.hk-rt__line:nth-child(2) .hk-rt__d { flex: 0 0 calc((100% - 76px) / 9); }
.hk-rt__log { grid-column: 2; grid-row: 1 / 3; gap: 10px; }
@media (max-width: 1023.98px) { .hk-rt { grid-template-columns: minmax(0, 1fr); } .hk-rt__log { grid-column: 1; grid-row: auto; } }
@media (max-width: 767.98px) { .hk-sig { padding: 20px 20px 24px; }
  .hk-rt { grid-template-columns: minmax(0, 1fr); padding: 24px; overflow-x: auto; }
  .hk-rt__line { min-width: 520px; }
  .hk-rt__log { grid-column: 1; grid-row: auto; }
}
[data-theme="dark"] .hk-rt__d--x::before { background: #ff9d94; }

/* keys: the key list with its Live/Sandbox switch, and the new key shown once */
.pky { place-items: stretch; align-content: center; gap: 0; }
.pky__mode { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); }
.pky__mode span { padding: 5px 10px; border-radius: 8px; font: 500 12.5px/1 var(--font); color: var(--g-500); }
.pky__mode .is-on { background: var(--g-50); color: var(--g-900); box-shadow: 0 1px 3px rgba(17, 18, 19, .12); }
.pky__r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g-200); font: 400 13.5px/1.3 var(--font); color: var(--g-600); }
.pky__r > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pky__r b { font-weight: 500; color: var(--g-900); }
.pky__new { width: min(320px, 90%); margin: -18px 0 0 auto; margin-right: -12px; z-index: 2; rotate: -2deg; }
.pky__key { padding: 10px 12px; border-radius: 10px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); font: 400 12.5px/1.3 var(--mono); color: var(--g-900); overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .pky__r { grid-template-columns: minmax(0, 1fr) auto; } .pky__r > span:nth-child(2) { display: none; } .pky__new { margin-right: 0; rotate: none; width: 92%; } }

/* Sandbox: the two test cards, and the amounts that always give the same answer */
.psb__t { width: min(500px, 100%); gap: 0; padding: 20px 24px 10px; }
.psb__h, .psb__r { display: grid; grid-template-columns: 84px 116px minmax(0, 1fr); align-items: center; gap: 12px; }
.psb__h { padding-bottom: 12px; font: 400 12.5px/1.2 var(--font); color: var(--g-500); }
.psb__h span:first-child { font-family: var(--mono); }
.psb__r { padding: 11px 0; border-top: 1px solid var(--g-200); }
.psb__r code { font: 500 13.5px/1 var(--mono); color: var(--g-900); }
.psb__r .bdg { justify-self: start; }
.psb__r--any code { color: var(--g-500); font-weight: 400; }
@media (max-width: 767.98px) { .psb__h, .psb__r { grid-template-columns: 76px auto minmax(0, 1fr); gap: 8px; } }

/* the page's money flow: the homepage block, as a section of this page */
.ps-flow { padding-bottom: 0; }

/* cards and wallets: our payment page as the customer sees it (wallets, then the card, EUR or GBP), a paid £64.50 Apple
   Pay payment over its corner; rings around the page */
.pm-pic { display: block; }
.pm-co { position: absolute; left: 50%; top: 50%; translate: calc(-50% - 36px) calc(-50% - 30px); z-index: 1; width: min(380px, 78%); gap: 14px; padding: 22px 24px 24px; }
.pm-co__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-co__m { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--font); color: var(--g-800); }
.pm-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); }
.pm-seg span { padding: 4px 9px; border-radius: 7px; font: 600 12px/1 var(--font); color: var(--g-500); }
.pm-seg .is-on { background: var(--g-50); color: var(--g-900); box-shadow: 0 1px 3px rgba(17, 18, 19, .14); }
.pm-co__amt { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; }
.pm-co__amt b { font: 500 34px/1.05 var(--font); letter-spacing: -.02em; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pm-co__amt small { font: 400 13px/1.2 var(--font); color: var(--g-500); }
.pm-card { padding-right: 86px; }
.pm-marks { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: flex; gap: 4px; }
.pm-marks .mk { position: static; translate: none; width: 30px; height: 20px; }
.pm-pay { height: 44px; border-radius: 12px; font-size: 14px; }
.pm-ok { position: absolute; right: 4%; top: calc(50% + 160px); z-index: 2; width: min(250px, 50%); }
@media (max-width: 767.98px) {
  .pm-pic { display: flex; flex-direction: column; }
  .pm-co, .pm-ok { position: relative; inset: auto; translate: none; width: 100%; }
  .pm-ok { width: 86%; margin: -12px 0 0 auto; }
  .pm-card { padding-right: 80px; }
}
[data-theme="dark"] .pm-seg { background: #1e1f21; box-shadow: inset 0 0 0 1px #2e2f31; }

/* refunds: the payment, the refund dialog over it, the partial refund it made */
.prf { display: block; min-height: 640px; }
.prf > .dc { position: absolute; }
.prf-dlg { right: 7%; top: 18%; z-index: 2; width: min(300px, 56%); }
.prf-ref { left: 9%; bottom: 5%; z-index: 3; width: min(330px, 62%); }
.prf-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); }
.prf-seg span { display: grid; place-items: center; height: 30px; border-radius: 8px; font: 500 13px/1 var(--font); color: var(--g-500); }
.prf-seg .is-on { background: var(--g-50); color: var(--g-900); box-shadow: 0 1px 3px rgba(17, 18, 19, .12); }
.prf-of { position: absolute; right: 10px; bottom: 9px; font: 400 12px/1 var(--font); color: var(--g-500); }
.prf-why { white-space: normal; font-family: var(--font); font-size: 13px; }
@media (max-width: 767.98px) {
  .prf { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .prf > .dc { position: relative; inset: auto; width: 100%; }
  .prf-ref { width: 92%; margin: -24px 0 0 auto; }
}

/* balance: the EUR balance part by part, a GBP balance behind it */
.pbl { display: block; min-height: 600px; }
.pbl > .dc { position: absolute; }
.pbl-gbp { left: 8%; top: 7%; width: min(240px, 46%); }
.pbl-eur { right: 8%; bottom: 6%; z-index: 2; width: min(360px, 66%); gap: 10px; }
.pbl-eur .vwc__bar { margin-top: 2px; }
.pbl-hold { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 767.98px) {
  .pbl { display: flex; flex-direction: column; min-height: 0; }
  .pbl > .dc { position: relative; inset: auto; translate: none; }
  .pbl-gbp { width: 70%; }
  .pbl-eur { width: 100%; margin-top: -20px; }
}

/* money out: the withdrawal request at its review step and its status; a card payout on its way */
[data-theme="dark"] .prf-seg { background: #1e1f21; box-shadow: inset 0 0 0 1px #2e2f31; }

/* ---------- Risk ---------- */

/* stopped payments: the failed list and the opened payment with its reason */
.rsp-why { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #fdf6f6; box-shadow: inset 0 0 0 1px rgba(180, 35, 35, .14); }
.rsp-why svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #b42323; stroke-width: 1.8; stroke-linecap: round; }
.rsp-why > span { display: flex; flex-direction: column; gap: 4px; }
.rsp-why b { font: 500 13.5px/1.35 var(--font); color: var(--g-900); }
[data-theme="dark"] .rsp-why { background: #2a1c1c; box-shadow: inset 0 0 0 1px rgba(255, 157, 148, .2); }
[data-theme="dark"] .rsp-why svg { stroke: #ff9d94; }

/* disputes: the case with its steps, deadline and the two answers on the left; what it means on the right */
.rd-case { z-index: 1; gap: 12px; padding: 24px 26px; }
.rd-acts { display: flex; gap: 10px; margin-top: 4px; }
.rd-btn { flex: 1 1 0; display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-300); font: 600 13.5px/1 var(--font); color: var(--g-900); }
.rd-btn--pri { background: var(--b-600); color: #fff; box-shadow: none; }
@media (max-width: 767.98px) {
  .rd-case { padding: 20px 18px; }
  .rd-acts { flex-direction: column; }
}

/* requests for information: the Needs attention list and the answered request */
.rfi-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fdecec; color: #b42323; font: 600 12px/1 var(--font); }
[data-theme="dark"] .rfi-n { background: #3a1a1a; color: #ff9d94; }

/* ---------- Portal ---------- */
/* hero: the portal's Dashboard in the homepage's portal frame, under the centred copy */
.pt-art { display: flex; align-items: flex-start; justify-content: center; overflow: visible; }
.pt-scene { margin: 0 auto; }
.pt-scene .hb-scr { height: 46em; }
@media (max-width: 1023.98px) { .pt-scene { width: 86em; font-size: clamp(6px, 1.05vw, 10px); } }
@media (max-width: 767.98px) {
  .pt-art { justify-content: flex-start; min-height: 0; overflow: hidden; margin: 0 -20px; padding-left: 20px; }
  .pt-scene { font-size: 7px; width: 60em; height: 46em; }
  .pt-scene .hp { grid-template-columns: minmax(0, 1fr); }
  .pt-scene .hp-side { display: none; }
  .pt-scene .hb-scr { width: 60em; height: 46em; }
  .pdb-row, .pdb-row:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
}

/* everything in its place: small glimpses of five portal pages */
.pa-tx { display: flex; flex-direction: column; gap: 14px; padding: 24px 40px 40px; }
.pa-tx__f { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-chip { padding: 6px 10px; border-radius: 9px; background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-200); font: 500 12.5px/1.2 var(--font); color: var(--g-700); }
.pa-chip.is-on { background: #e3e9fd; box-shadow: none; color: #3f3cca; }
.pa-tx__t { gap: 0; padding: 6px 18px; }
.pa-tx__r { display: grid; grid-template-columns: minmax(0, 1.3fr) 90px 110px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g-200); font: 400 13.5px/1.2 var(--font); color: var(--g-700); }
.pa-tx__r:first-child { border-top: 0; }
.pa-tx__r b { text-align: right; font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pa-tx__pm { display: flex; align-items: center; gap: 8px; }
.pa-bell__i { display: flex; align-items: center; gap: 10px; font: 400 13.5px/1.3 var(--font); color: var(--g-900); }
.pa-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g-300); }
.pa-dot--red { background: #c53030; }
.pa-dot--amber { background: #d97706; }
.pa-dsp__bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pa-dsp__bar i { height: 6px; border-radius: 3px; background: var(--g-200); }
.pa-dsp__bar .is-done { background: #1f7a45; }
.pa-dsp__bar .is-now { background: var(--b-600); }
.pa-pdf { padding: 4px 8px; border-radius: 8px; background: var(--g-100); font: 500 12px/1.2 var(--font); color: var(--g-700); white-space: nowrap; }
@media (max-width: 767.98px) {
  .pa-tx { padding: 20px 20px 24px; }
  .pa-tx__r { grid-template-columns: minmax(0, 1fr) auto; }
  .pa-tx__r .bdg, .pa-tx__pm { display: none; }
}
[data-theme="dark"] .pa-chip { box-shadow: inset 0 0 0 1px #2e2f31; }
[data-theme="dark"] .pa-chip.is-on { background: #25265a; color: #b4bdfd; }
[data-theme="dark"] .pa-pdf { background: #2e2f31; color: #d6d7da; }
[data-theme="dark"] .pa-dsp__bar .is-done { background: #7fd1a0; }

/* roles: who can do what, as one drawn table */
.prm { overflow-x: auto; padding: 12px 32px 20px; border-radius: 24px; background: var(--g-100); box-shadow: inset 0 0 0 1px #ebebee; }
.prm__row { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)); align-items: center; gap: 16px; min-width: 760px; padding: 16px 0; border-top: 1px solid var(--g-200); font: 400 15px/1.4 var(--font); color: var(--g-800); }
.prm__head { border-top: 0; align-items: end; }
.prm__head > span { display: flex; flex-direction: column; gap: 4px; }
.prm__head b { font: 600 16px/1.2 var(--font); color: var(--g-900); }
.prm__head small { font: 400 12.5px/1.35 var(--font); color: var(--g-500); }
.prm-y, .prm-n { font-style: normal; font: 600 14px/1 var(--font); }
.prm-y { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e3e9fd; color: #3f3cca; }
.prm-n { color: var(--g-400); padding-left: 8px; }
@media (max-width: 767.98px) { .prm { padding: 8px 20px 12px; border-radius: 20px; } }
[data-theme="dark"] .prm { box-shadow: inset 0 0 0 1px #242527; }
[data-theme="dark"] .prm-y { background: #25265a; color: #b4bdfd; }

/* ===== Phones: the subpages' fixes after the 390 px pass ===== */
@media (max-width: 767.98px) {
  /* every drawing sits in its own room: no empty band under small pictures */
  .pb__art { min-height: 0; }
  /* payments */
  .prf-ref { margin-top: -10px; }
  /* card fields keep their number clear of the brand mark */
  .dw__field { overflow: hidden; padding-right: 48px; }
  .dw__field:not(:has(.mk)) { padding-right: 10px; }
  /* portal: the Dashboard fits the phone, cut only at its foot */
  .pt-art { margin: 0; padding: 0; overflow: hidden; }
  .pt-scene { width: 100%; height: 40em; font-size: 7.4px; }
  .pt-scene .hb-scr { width: 100%; height: 40em; }
  .pdb { padding: 1.4em; }
  /* roles: one card per action, the roles that may do it as chips */
  .prm { overflow: visible; padding: 4px 20px; }
  .prm__head { display: none; }
  .prm__row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 16px 0; }
  .prm__row > span { width: 100%; }
  .prm-y { white-space: nowrap; }
  .prm__row:nth-child(2) { border-top: 0; }
  .prm__row > span { grid-column: 1 / -1; font-weight: 500; color: var(--g-900); }
  .prm-y { width: auto; height: auto; padding: 4px 9px; border-radius: 8px; font: 500 12.5px/1.2 var(--font); }
  .prm-y::after { content: attr(data-r); }
  .prm-y { font-size: 0; }
  .prm-y::after { font-size: 12.5px; }
  .prm-n { display: none; }
  /* risk */
  .rd-btn { flex: none; }
  /* developers */
  .pky__r > span:first-child .dc__id, .pky__r b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .psb__h, .psb__r { grid-template-columns: 72px minmax(0, 1fr); }
  .psb__h span:nth-child(2) { display: none; }
  .psb__h::after { content: "Result"; }
  .psb__r .bdg--bad { display: none; }
  .psb__r .dc__id { overflow-wrap: anywhere; }
  .psb__r--any .dc__id { display: none; }
}
/* phones: the hero's two buttons share the full row, as on the homepage (a pair that doesn't fit goes full width each) */
@media (max-width: 767.98px) { .ph__ctas { width: 100%; align-self: stretch; } .ph__ctas > * { flex: 1 1 auto; } }

/* Text + picture rows in the homepage's fraud block layout: two equal
   columns 64 px apart (80 from 1440), the panel as tall as the homepage's (a screen, 580–880 px); the title and line sit
   level with the panel's top, the points and the link at its bottom. */
@media (min-width: 1024px) {
  .pk { --ph: clamp(580px, calc(100svh - var(--head-h) - var(--v-sec)), 880px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; column-gap: 64px; }
  .pk__txt { display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
  .pk__txt > .pk__p + * { margin-top: auto; padding-top: 48px; }
  .pk__txt .vr__pts { width: 100%; }
  .pk__txt .vr__pts + .v-link { margin-top: 32px; padding-top: 0; }
  .pk__pic { min-height: var(--ph); }
}
@media (min-width: 1440px) { .pk { column-gap: 80px; } }
/* in the tall panels the drawn cards gather around the panel's middle instead of its corners */
@media (min-width: 1024px) {
  .prf-dlg { top: calc(50% - 210px); }
  .prf-ref { top: calc(50% + 100px); bottom: auto; }
  .pbl-gbp { top: calc(50% - 270px); }
  .pbl-eur { top: calc(50% - 160px); bottom: auto; }
}

/* the guilloché lines only rise in the lower part of the hero panel; the payments hero's balance card reaches out past
   the portal window's left edge */
@media (min-width: 1024px) {
  .ph__panel > .gq-fade-top { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 52%, #000 82%); mask-image: linear-gradient(180deg, transparent 0, transparent 52%, #000 82%); }
  .pp-bal { left: calc(-1 * clamp(24px, 3.4vw, 56px)); bottom: 5%; }
}

/* Subpage heroes move like the homepage hero: the copy and the pictures come in out of a blur on
   load, one after another; on a desktop the panel holds (sticky) while the fly-through plays (home.js, html.pfly). */
html.motion .ph__copy > *, html.motion .pd-hero .vd__copy > * { animation: hb-blur-in 1.2s cubic-bezier(.22, .61, .2, 1) backwards; }
html.motion .ph__copy > :nth-child(2), html.motion .pd-hero .vd__copy > :nth-child(2) { animation-delay: .1s; }
html.motion .ph__copy > :nth-child(3), html.motion .pd-hero .vd__copy > :nth-child(3) { animation-delay: .2s; }
html.motion :is(.ph, .pd-hero) [data-fly] { animation: hb-rise-in 1.3s cubic-bezier(.22, .61, .2, 1) backwards; }
html.motion :is(.ph, .pd-hero) [data-fly="left"] { animation-delay: .5s; }
html.motion :is(.ph, .pd-hero) [data-fly="right"] { animation-delay: .62s; }
@media (min-width: 1024px) {
  html.pfly .ph__panel, html.pfly .pd-hero .vd__panel { position: sticky; top: calc(var(--head-h) + 2px); }
  /* While a hero holds, its panel fills the screen's height whatever the screen, so no empty band shows under it. */
  html.pfly .ph__panel { min-height: max(600px, calc(100svh - var(--head-h) - 16px)); }
  html.pfly .ph--c .ph__panel { height: max(600px, calc(100svh - var(--head-h) - 16px)); }
  html.pfly .pd-hero .vd__panel { height: max(680px, calc(100svh - var(--head-h) - 32px)); }
  html.pfly :is(.ph__copy, .vd__copy), html.pfly [data-fly] { will-change: translate; }
}
@media (prefers-reduced-motion: reduce) { html.motion .ph__copy > *, html.motion .pd-hero .vd__copy > *, html.motion :is(.ph, .pd-hero) [data-fly] { animation: none; } }

/* cards and wallets, larger by its own room: more padding and air inside the payment page */
.pm-co { width: min(460px, 86%); gap: 18px; padding: 32px 34px 34px; border-radius: 20px; }
.pm-co__amt { padding: 10px 0 6px; }
.pm-co__amt b { font-size: 40px; }
.pm-co .dw__field { padding: 10px 14px; font-size: 13.5px; }
.pm-co .dw__pair { gap: 12px; }
.pm-pay { height: 52px; border-radius: 14px; font-size: 15px; }
.pm-co { translate: calc(-50% - 28px) calc(-50% - 40px); }
.pm-ok { top: calc(50% + 180px); right: 9%; }
@media (max-width: 767.98px) { .pm-co { width: 100%; padding: 22px 20px 24px; translate: none; } .pm-co__amt b { font-size: 32px; } }
/* the paid card sits 40 px from the panel's right and lower edges alike; the payment page stands just above
   it, so its button stays clear at any panel height */
@media (min-width: 768px) {
  #methods .pk__pic { min-height: max(var(--ph, 0px), 700px); }
  .pm-ok { top: auto; right: 40px; bottom: 40px; }
  .pm-co { top: auto; bottom: 149px; translate: calc(-50% - 28px) 0; }
}

/* refunds, calmer: the dialog with its payment in the head, the partial refund below it 40 px from
   the panel's right and lower edges; the refund's three steps joined by a line */
.prf-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--g-100); }
.prf-head__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 400 13px/1.2 var(--font); }
.prf-head__t b { font-weight: 500; color: var(--g-900); }
.prf-head__a { margin-left: auto; font: 600 15px/1 var(--font); color: var(--g-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prf-dlg { gap: 14px; padding: 26px 28px 28px; }
.prf-dlg .dc__h { font-size: 17px; }
.prf-step { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.prf-step > span { position: relative; display: flex; flex-direction: column; gap: 8px; font: 500 12.5px/1.2 var(--font); color: var(--g-700); }
.prf-step i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--b-600); }
.prf-step > span:not(:last-child)::after { content: ""; position: absolute; left: 12px; right: 0; top: 5.5px; height: 1px; background: rgba(78, 76, 242, .4); }
.prf-step .is-now { color: var(--b-600); font-weight: 600; }
.prf-step .is-now i { box-shadow: 0 0 0 4px rgba(78, 76, 242, .18); }
[data-theme="dark"] .prf-head { background: #1e1f21; }
[data-theme="dark"] .prf-step .is-now { color: #b4bdfd; }
@media (min-width: 768px) {
  .prf { min-height: max(var(--ph, 0px), 700px); }
  .prf-dlg { left: 40px; right: auto; top: auto; bottom: 202px; width: min(400px, calc(100% - 140px)); }
  .prf-ref { left: auto; right: 40px; top: auto; bottom: 40px; width: min(320px, calc(100% - 80px)); }
}
@media (max-width: 767.98px) { .prf-ref { margin-top: -10px; } }
.prf-head__t { flex: 1 1 auto; overflow: hidden; }
.prf-head__t .dc__id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) { .prf-dlg { padding: 22px 20px 24px; } .prf-ref { width: 92%; margin-left: auto; } }

/* refunds, take 3: the «Cards and wallets» composition — a large dialog in the
   middle of the panel, roomy inside, and a compact refund card 40 px from the right and lower edges overlapping its foot */
.prf-dlg__h { display: flex; align-items: center; justify-content: space-between; }
.prf-left { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 0; font: 400 13.5px/1.3 var(--font); color: var(--g-600); }
.prf-left b { font-weight: 600; color: var(--g-900); font-variant-numeric: tabular-nums; }
.prf-btn { height: 52px; border-radius: 14px; font-size: 15px; }
.prf-dlg .dw__field { padding: 10px 14px; font-size: 13.5px; }
.prf-seg span { height: 36px; }
@media (min-width: 768px) {
  .prf-dlg { left: 50%; right: auto; top: auto; bottom: 164px; width: min(460px, calc(100% - 100px)); gap: 16px; padding: 32px 34px 34px; border-radius: 20px; translate: calc(-50% - 28px) 0; }
  .prf-ref { left: auto; right: 40px; top: auto; bottom: 40px; width: min(290px, calc(100% - 80px)); gap: 10px; }
}
@media (max-width: 767.98px) { .prf-dlg { translate: none; padding: 22px 20px 24px; } }
/* both «big card + small card» pictures on one rule: the big card 40 px from the panel's left edge, the small one 40 px
   from its right and lower edges */
@media (min-width: 768px) {
  .pm-co, .prf-dlg { left: 40px; translate: none; width: min(460px, calc(100% - 140px)); }
}
/* the big card is up to 520 px tall, its rows spread evenly over the extra room; the pair (the big card and the small one
   over its lower edge) keeps 40 px from the panel's edges and, in a taller panel, stands in its middle */
@media (min-width: 768px) {
  .prf-dlg { top: max(40px, calc((100% - 644px) / 2)); bottom: calc(max(40px, (100% - 644px) / 2) + 124px); justify-content: space-between; }
  .prf-ref { bottom: max(40px, calc((100% - 644px) / 2)); }
  .pm-co { top: max(40px, calc((100% - 629px) / 2)); bottom: calc(max(40px, (100% - 629px) / 2) + 109px); justify-content: space-between; }
  .pm-ok { bottom: max(40px, calc((100% - 629px) / 2)); }
}

/* Money out, in the homepage's «Nothing happens unseen» language: the extra icon and badge colours it needs */
.vk__na-ic--blue { background: #e3e9fd; color: #3f3cca; }
.vk__na-ic--grey { background: var(--g-100); color: var(--g-700); }
.vk__na-b--ok { background: #e9f6ee; color: #1f7a45; }
.vk__na-b--info { background: #e3e9fd; color: #3f3cca; }
[data-theme="dark"] .vk__na-ic--blue, [data-theme="dark"] .vk__na-b--info { background: #25265a; color: #b4bdfd; }
[data-theme="dark"] .vk__na-ic--grey { background: #2e2f31; color: #d6d7da; }
[data-theme="dark"] .vk__na-b--ok { background: #12301f; color: #7fd1a0; }

/* the EUR balance card, finer: a currency chip, the big sum, one stacked bar whose four
   colours are the four parts below it; the on-hold parts grouped in a soft panel; «on its way out» set apart and quiet */
.pbl-eur { gap: 16px; padding: 26px 26px 26px; }
.pbl-top { display: flex; align-items: center; justify-content: space-between; font: 400 13.5px/1 var(--font); color: var(--g-500); }
.pbl-cur { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-200); font: 600 12.5px/1 var(--font); color: var(--g-900); }
.pbl-cur b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--b-600); color: #fff; font: 600 12px/1 var(--font); }
.pbl-amt { display: flex; flex-direction: column; gap: 6px; }
.pbl-amt b { font: 500 38px/1 var(--font); letter-spacing: -.025em; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pbl-amt small { font: 400 13.5px/1.2 var(--font); color: var(--g-500); }
.pbl-bar { display: flex; gap: 3px; height: 10px; }
.pbl-bar i { width: var(--w); min-width: 6px; border-radius: 5px; transform-origin: left; }
.pbl-eur .c1 { background: var(--b-600); }
.pbl-eur .c2 { background: var(--b-400); }
.pbl-eur .c3 { background: #c8d2fe; }
.pbl-eur .c4 { background: var(--g-300); }
.pbl-rows { display: flex; flex-direction: column; gap: 10px; }
.pbl-r { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 400 13.5px/1.3 var(--font); color: var(--g-600); }
.pbl-r i { width: 10px; height: 10px; border-radius: 3px; }
.pbl-r b { font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pbl-r--main { font-size: 14px; color: var(--g-900); }
.pbl-r--main b { font-weight: 600; }
.pbl-hold { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: 12px; background: var(--g-100); }
.pbl-r--head { grid-template-columns: minmax(0, 1fr) auto; color: var(--g-900); font-weight: 500; }
.pbl-r--head b { font-weight: 600; }
.pbl-hold .pbl-r:not(.pbl-r--head) b { font-weight: 400; color: var(--g-700); }
.pbl-r--out svg { width: 12px; height: 12px; fill: none; stroke: var(--g-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pbl-r--out span { display: flex; flex-direction: column; gap: 2px; }
.pbl-r--out small { font-size: 12px; color: var(--g-500); }
.pbl-r--out b { color: var(--g-600); }
.pbl-btn { height: 46px; border-radius: 12px; font-size: 14px; }
@media (min-width: 768px) { .pbl-eur { width: min(380px, calc(100% - 100px)); } }
[data-theme="dark"] .pbl-hold { background: #1e1f21; }
[data-theme="dark"] .pbl-cur { background: #1e1f21; box-shadow: inset 0 0 0 1px #2e2f31; }
[data-theme="dark"] .pbl-eur .c3 { background: #3c3ab4; }
[data-theme="dark"] .pbl-eur .c4 { background: #3c3d40; }
.pbl-gbp { gap: 14px; padding: 22px 24px; }
.pbl-gbp .pbl-amt b { font-size: 28px; }
.pbl-gbp .pbl-cur b { background: var(--g-700); }
/* the same grid as the other pictures: the GBP card 40 px from the panel's left, the EUR card 40 px from its right and
   over the GBP card's lower edge; the pair (138 + 457 px, 40 px overlapping) keeps 40 px from the panel's top and bottom
   and, in a taller panel, stands in its middle */
@media (min-width: 768px) {
  .pbl-gbp { left: 40px; top: max(40px, calc((100% - 555px) / 2)); width: min(260px, calc(100% - 140px)); }
  .pbl-eur { left: auto; right: 40px; top: auto; bottom: max(40px, calc((100% - 555px) / 2)); translate: none; }
}
[data-theme="dark"] .pbl-eur .c3 { background: #b4bdfd; }
[data-theme="dark"] .pbl-gbp .pbl-cur b { background: #5b5d60; }
html.motion :is(.ph, .pd-hero) [data-fly="drawer"] { animation-delay: .45s; }

/* ===== Phones ===== */
@media (max-width: 767.98px) {
  /* 1 · the hero's two buttons take the same width */
  .ph__ctas > * { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  /* 2 · each subpage hero fits one phone screen: the pictures keep only their main card */
  .pw-drw .dc__rows + .dc__rule, .pw-drw .dc__rows ~ .dc__rows, .pp-bal { display: none; }
  .ph__panel { row-gap: 24px; }
  /* 4–6 · the second, smaller card of a picture is left out, so the block is shorter */
  .pm-ok, .prf-ref, .pbl-gbp { display: none; }
  .pbl-eur { margin-top: 0; }
}
/* phones: the developers hero ends at the screen's lower edge, its code window running off it */
@media (max-width: 767.98px) { .pd-hero .vd__panel { max-height: calc(100svh - var(--head-h) - 12px); } }
@media (max-width: 767.98px) {
  .pk { row-gap: 24px; }
  .ph--c .ph__panel { row-gap: 24px; }
}

/* Portal hero, like the homepage hero: the dashboard rises and comes closer as you scroll, and three
   cards float over its edges and fly apart — what needs you, a payment, a team member */
.pt-art { position: relative; }
.pt-fl { position: absolute; z-index: 3; display: none; text-align: left; }
@media (min-width: 1024px) {
  .pt-scene .hb-scr { height: 50em; }
  .pt-fl { display: flex; }
  .pt-fl--att { left: max(0px, calc(50% - 43em - 90px)); top: 130px; width: 300px; gap: 10px; padding: 18px 20px; }
  .pt-fl--pay { right: max(0px, calc(50% - 43em - 80px)); top: 290px; width: 270px; }
  .pt-fl--team { right: max(16px, calc(50% - 43em - 40px)); top: -28px; flex-direction: row; align-items: center; gap: 12px; width: auto; padding: 14px 16px; }
}
/* on a short laptop screen the payment card stands higher, so it is still in the first screen */
@media (min-width: 1024px) and (max-height: 880px) {
  .pt-fl--pay { top: 150px; }
}
.pt-fl__h { display: flex; align-items: center; gap: 8px; }
.pt-fl__h b { font: 600 15px/1.2 var(--font); color: var(--g-900); }
.pt-fl--att .pa-bell__i { gap: 10px; }
.pt-fl--att .bdg { margin-left: auto; }
.pt-fl__av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pt-fl__who { display: flex; flex-direction: column; gap: 2px; font: 400 12.5px/1.3 var(--font); color: var(--g-500); }
.pt-fl__who b { font: 600 14px/1.2 var(--font); color: var(--g-900); }
html.motion :is(.ph, .pd-hero) [data-fly="zoom"] { animation-delay: .3s; }
html.motion :is(.ph, .pd-hero) [data-fly="upright"] { animation-delay: .74s; }
/* «Find any payment»: every cell stays in its column and cuts with an ellipsis; in a narrow tile the
   payment method makes room for the ID, amount and status */
.pa-tx__r > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-tx__r .bdg { justify-self: start; overflow: visible; }
@container (max-width: 620px) {
  .pa-tx__r { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pa-tx__pm { display: none; }
}
/* the centred hero keeps a screen-tall panel (as the homepage hero); its window starts under the copy */
@media (min-width: 1024px) { .ph--c .ph__panel { height: clamp(600px, calc(100svh - var(--head-h) - 16px), 860px); min-height: 0; } }

/* «Every part of your business» in the homepage bento's composition: 7 + 5 on top (grey list,
   blue attention), 4 + 4 + 4 below; each picture sits under its caption and fades out downwards */
.pa-vb .vb__tile { min-height: 400px; }
@media (min-width: 1024px) {
  .pa-vb .pa-t1 { grid-column: span 7; min-height: 540px; }
  .pa-vb .pa-t2 { grid-column: span 5; min-height: 540px; }
}
.pa-vb .vb__stage { position: relative; flex: 1 1 auto; margin: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
.pa-vb .pa-tx { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; flex: none; display: flex; flex-direction: column; gap: 14px; padding: 0 40px; }
.pa-vb .pa-tx__t { padding: 6px 20px; }
@media (max-width: 1023.98px) { .pa-vb .pa-t1, .pa-vb .pa-t2 { grid-column: span 12; } }
@media (max-width: 767.98px) {
  .pa-vb .vb__tile { min-height: 0; }
  .pa-vb .pa-tx { position: static; padding: 0 24px; max-height: 320px; }
}
/* the three lower tiles: their cards sit low and run off the tile's lower edge, as on the homepage */
@media (min-width: 768px) {
  .pa-vb .pa-tx { top: 136px; }
  .pa-vb :is(.pa-t3, .pa-t4, .pa-t5) .vb__stage { display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .pa-vb :is(.pa-t3, .pa-t4, .pa-t5) .dc { margin-bottom: -28px; padding-bottom: 46px; }
}

/* «Find any payment»: a header row and evenly spaced columns (ID · amount · status · method), as in the portal */
.pa-tx__r { grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pa-tx__r b { text-align: left; }
.pa-tx__th { padding: 10px 0; border-top: 0; font: 500 12px/1.2 var(--font); color: var(--g-500); }
.pa-tx__th + .pa-tx__r { border-top: 1px solid var(--g-200); }
@container (max-width: 620px) { .pa-tx__r { grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr); } .pa-tx__th > :last-child { display: none; } }
/* the blue tile's caption sits under its fan, as on the homepage tile; its taller content needs the tile's full height */
.pa-vb .pa-t2.vb__tile--b .vb__stage { -webkit-mask-image: none; mask-image: none; overflow: visible; }
@media (max-width: 767.98px) {
  .pa-vb .vb__tile, .pa-vb .pa-t1, .pa-vb .pa-t2 { grid-column: 1 / -1; }
  .pa-vb .pa-t2 { min-height: 440px; }
}

/* «Needs attention»: the homepage blue tile's fan, made of the portal's task cards:
   rounded cards, the dispute in front, the two others light blue and tilted behind it */
.pa-fs { position: relative; flex: 1 1 auto; min-height: 330px; margin: 0; overflow: visible; }
.pa-fan { position: absolute; left: 50%; bottom: 8px; width: 0; height: 0; }
.pa-fc { position: absolute; left: -132px; bottom: 0; display: flex; flex-direction: column; gap: 10px; width: 264px; padding: 18px; border-radius: 18px; text-align: left; transform-origin: 50% 110%; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s; }
.pa-fc--c { z-index: 3; background: var(--g-50); box-shadow: 0 1px 2px rgba(17, 18, 19, .06), 0 24px 44px -20px rgba(17, 18, 19, .45); }
.pa-fc--l, .pa-fc--r { z-index: 1; background: #b9bffb; color: #3a3fae; }
.pa-fc--l { transform: translateX(-128px) translateY(-42px) rotate(-8deg); }
.pa-fc--r { transform: translateX(128px) translateY(-42px) rotate(8deg); }
.pa-fc--l > *, .pa-fc--r > * { opacity: .55; }
.pa-fc__top { display: flex; align-items: center; justify-content: space-between; }
.pa-fc__top .vk__na-ic { width: 36px; height: 36px; }
.pa-fc > b { font: 600 15px/1.3 var(--font); color: var(--g-900); }
.pa-fc--l > b, .pa-fc--r > b { color: #2b2f8f; }
.pa-fc__amt { font: 600 26px/1.05 var(--font); letter-spacing: -.02em; color: var(--g-900); font-variant-numeric: tabular-nums; }
.pa-fc__p { font: 400 13px/1.35 var(--font); color: var(--g-600); }
.pa-fc--l .pa-fc__p, .pa-fc--r .pa-fc__p { color: #3a3fae; }
.pa-fc__btns { display: flex; gap: 8px; margin-top: 4px; }
.pa-fc__btn { flex: 1 1 auto; display: grid; place-items: center; height: 34px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--g-300); font: 600 12.5px/1 var(--font); color: var(--g-900); white-space: nowrap; }
.pa-fc__btn--pri { background: var(--b-600); color: #fff; box-shadow: none; }
.pa-fc--l .pa-fc__btn, .pa-fc--r .pa-fc__btn { box-shadow: inset 0 0 0 1px rgba(43, 47, 143, .35); color: #2b2f8f; }
.pa-fc--l .pa-fc__btn--pri, .pa-fc--r .pa-fc__btn--pri { background: rgba(43, 47, 143, .25); box-shadow: none; }
html.motion .pa-t2.tl-wait .pa-fc--l, html.motion .pa-t2.tl-wait .pa-fc--r { transform: none; opacity: 0; }
@media (max-width: 767.98px) {
  .pa-fs { min-height: 290px; }
  .pa-fc { left: -112px; width: 224px; padding: 16px; }
  .pa-fc--l { transform: translateX(-78px) translateY(-34px) rotate(-8deg); }
  .pa-fc--r { transform: translateX(78px) translateY(-34px) rotate(8deg); }
}
[data-theme="dark"] .pa-t2 .pa-fc--c { color-scheme: light; --g-50: #f9fafb; --g-300: #d6d7da; --g-600: #6d6f71; --g-900: #1e1f21; }
[data-theme="dark"] .pa-t2 .pa-fc--c .vk__na-ic--red, [data-theme="dark"] .pa-t2 .pa-fc--c .vk__na-b--red { background: #fdecec; color: #b42323; }
.pa-fc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--g-200); font: 400 13px/1.2 var(--font); color: var(--g-600); }
.pa-fc__row b { font-weight: 500; color: var(--g-900); }
.pa-fc--l .pa-fc__row, .pa-fc--r .pa-fc__row { border-top-color: rgba(43, 47, 143, .2); color: #3a3fae; }
.pa-fc--l .pa-fc__row b, .pa-fc--r .pa-fc__row b { color: #2b2f8f; }
.pa-fc .pa-dsp__bar { margin-top: 2px; }
@media (min-width: 768px) {
  .pa-fc { left: -152px; width: 304px; padding: 20px; gap: 12px; }
  .pa-fc--l { transform: translateX(-150px) translateY(-58px) rotate(-8deg); }
  .pa-fc--r { transform: translateX(150px) translateY(-58px) rotate(8deg); }
  .pa-fan { bottom: 12px; }
}
/* a fan: the dispute card stands highest in the middle, the two others lower and tilted out to the sides */
@media (min-width: 768px) {
  .pa-fc--l { transform: translateX(-150px) translateY(34px) rotate(-10deg); }
  .pa-fc--r { transform: translateX(150px) translateY(34px) rotate(10deg); }
  .pa-fan { bottom: 0; }
  .pa-fc--c { bottom: 22px; }
}
@media (max-width: 767.98px) {
  .pa-fc--l { transform: translateX(-84px) translateY(28px) rotate(-10deg); }
  .pa-fc--r { transform: translateX(84px) translateY(28px) rotate(10deg); }
  .pa-fc--c { bottom: 18px; }
}
/* the side cards fade out at their foot, so the tile's caption below stays clean */

/* the fan sits higher, clear of the caption */
@media (min-width: 768px) { .pa-fan { bottom: 64px; } }
@media (max-width: 767.98px) { .pa-fan { bottom: 40px; } .pa-fs { min-height: 320px; } }

/* ---- the three lower tiles, each its own composition ---- */
.pa-vb :is(.pa-t3, .pa-t4, .pa-t5) .vb__stage { -webkit-mask-image: none; mask-image: none; }
.pa-vb :is(.pa-t3, .pa-t4, .pa-t5) .dc { margin-bottom: 0; padding-bottom: 20px; }
/* disputes: a deadline dial — half the ten days used, the dot where today is */
.pa-dial { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; padding: 0 32px 32px !important; }
.pa-dial__g { width: min(260px, 100%); overflow: visible; }
.pa-dial__bg, .pa-dial__fg { fill: none; stroke-width: 14; stroke-linecap: round; }
.pa-dial__bg { stroke: var(--g-200); }
.pa-dial__fg { stroke: var(--b-600); stroke-dasharray: 50 100; transition: stroke-dasharray 1.4s cubic-bezier(.2, .7, .2, 1) .3s; }
.pa-dial__dot { fill: var(--g-50); stroke: var(--b-600); stroke-width: 4; }
html.motion .pa-t3:not(.bl-in) .pa-dial__fg { stroke-dasharray: 0 100; }
.pa-dial__c { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -58px; }
.pa-dial__c b { font: 600 30px/1 var(--font); letter-spacing: -.02em; color: var(--g-900); }
.pa-dial__c span { font: 400 13px/1.2 var(--font); color: var(--g-500); }
.pa-dial__ends { display: flex; justify-content: space-between; width: min(290px, 100%); margin-top: 14px; font: 500 13px/1.25 var(--font); color: var(--g-900); }
.pa-dial__ends span { display: flex; flex-direction: column; gap: 2px; }
.pa-dial__ends span:last-child { text-align: right; color: var(--b-600); }
.pa-dial__ends small { font-weight: 400; font-size: 11.5px; color: var(--g-500); }
.pa-dial__case { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--g-50); box-shadow: inset 0 0 0 1px #ebebee, 0 8px 20px -14px rgba(17, 18, 19, .3); font: 500 12.5px/1 var(--font); color: var(--g-800); }
/* fee changes: a stack of notices on top, the caption under it (as the homepage team tile) */
.pa-t4 { flex-direction: column-reverse; }
.pa-t4 figcaption { padding-top: 24px !important; }
/* events: a live feed — a line with a dot per event, the newest one pulsing */
.pa-feed { position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; gap: 0; padding: 0 40px 28px !important; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%) !important; mask-image: linear-gradient(180deg, transparent 0, #000 30%) !important; }
.pa-feed::before { content: ""; position: absolute; left: 45px; top: 0; bottom: 40px; width: 1px; background: var(--g-300); }
.pa-feed__i { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; font: 400 12.5px/1.2 var(--font); color: var(--g-500); }
.pa-feed__i code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/1.2 var(--mono); color: var(--g-800); }
.pa-feed__d { position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px var(--g-100); }
.pa-feed__d--ok { background: #1f7a45; }
.pa-feed__d--ref { background: var(--b-400); }
.pa-feed__d--pay { background: var(--b-600); }
.pa-feed__i.is-new { margin: 0 -14px; padding: 12px 14px; border-radius: 12px; background: var(--g-50); box-shadow: inset 0 0 0 1px #ebebee, 0 10px 24px -14px rgba(17, 18, 19, .3); order: 9; }
.pa-feed__i.is-new code { color: var(--g-900); font-weight: 600; }
html.motion .pa-feed__i.is-new .pa-feed__d { animation: pa-ping 1.8s ease-out infinite; }
@keyframes pa-ping { 0% { box-shadow: 0 0 0 0 rgba(78, 76, 242, .45); } 100% { box-shadow: 0 0 0 10px rgba(78, 76, 242, 0); } }
@media (prefers-reduced-motion: reduce) { html.motion .pa-feed__i.is-new .pa-feed__d { animation: none; } }
@media (max-width: 767.98px) { .pa-dial { padding: 8px 24px 28px !important; } .pa-feed { padding: 16px 24px 24px !important; } .pa-feed::before { left: 29px; } }
[data-theme="dark"] .pa-feed__i.is-new, [data-theme="dark"] .pa-dial__case { box-shadow: inset 0 0 0 1px #2d2e30, 0 18px 40px -22px rgba(0, 0, 0, .6); }
[data-theme="dark"] .pa-dial__ends span:last-child { color: #b4bdfd; }
[data-theme="dark"] .pa-feed__d--ok { background: #7fd1a0; }

/* the fan without any fade: side cards are shorter, end above the centre card's foot; the whole fan sits higher */
@media (min-width: 768px) {
  .pa-fan { bottom: 96px; }
  .pa-fc--l { transform: translateX(-150px) translateY(26px) rotate(-10deg); }
  .pa-fc--r { transform: translateX(150px) translateY(26px) rotate(10deg); }
}
@media (min-width: 768px) { .pa-fan { bottom: 68px; } }
/* the task cards a little taller through their own spacing */
@media (min-width: 768px) {
  .pa-fc { padding: 26px 26px 28px; gap: 16px; }
  .pa-fc__btns { margin-top: 6px; }
  .pa-fc__btn { height: 38px; }
  .pa-fan { bottom: 34px; }
}
/* the back cards as tall as the front one, their rows spread through the extra room */
@media (min-width: 768px) {
  .pa-fc--l, .pa-fc--r { min-height: 329px; padding-bottom: 34px; justify-content: space-between; }
  .pa-fan { bottom: 46px; }
}
/* the fan as on the homepage «Every payment» tile: the two back cards lifted and tilted out, their inner
   top corners showing above the front card */
.pa-fc { transform-origin: 50% 120%; }
@media (min-width: 768px) {
  .pa-fc--l { transform: translateX(-150px) translateY(-46px) rotate(-8deg); }
  .pa-fc--r { transform: translateX(150px) translateY(-46px) rotate(8deg); }
  .pa-fan { bottom: -6px; }
}
@media (max-width: 767.98px) {
  .pa-fc--l { transform: translateX(-84px) translateY(-34px) rotate(-8deg); }
  .pa-fc--r { transform: translateX(84px) translateY(-34px) rotate(8deg); }
}
@media (max-width: 767.98px) {
  .pa-fc { left: -130px; width: 260px; }
  .pa-fc .vk__na-b { display: inline-block; }
  .pa-fc__btns { gap: 6px; }
  .pa-fc__btn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 12px; }
  .pa-fan { bottom: 4px; }
  .pa-fs { min-height: 360px; }
}
/* events: the newest event on top, more room between the events, the feed fading out downwards */
.pa-feed { justify-content: flex-start !important; padding: 4px 40px 0 !important; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%) !important; mask-image: linear-gradient(180deg, #000 40%, transparent 96%) !important; }
.pa-feed::before { top: 24px; bottom: 0; }
.pa-feed__i { padding: 15px 0; }
.pa-feed__i.is-new { order: 0; margin-bottom: 6px; }
@media (max-width: 767.98px) { .pa-feed { padding: 4px 24px 0 !important; min-height: 300px; } .pa-feed__i { padding: 13px 0; } }
/* events, the other way round: the newest event at the foot, the older ones above it fading out upwards;
   the wider spacing stays */
.pa-feed { justify-content: flex-end !important; padding: 0 40px 28px !important; -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent 98%) !important; mask-image: linear-gradient(0deg, #000 45%, transparent 98%) !important; }
.pa-feed::before { top: 0; bottom: 48px; }
.pa-feed__i.is-new { order: 9; margin: 6px -14px 0; }
@media (max-width: 767.98px) { .pa-feed { padding: 0 24px 24px !important; } }
/* the dispute under the dial as a small card in the page's card language */
.pa-dial__case { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(300px, 100%); margin-top: 20px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--g-50); box-shadow: inset 0 0 0 1px #ebebee, 0 12px 28px -18px rgba(17, 18, 19, .3); font: inherit; }
.pa-dial__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pa-dial__t b { font: 600 15px/1.2 var(--font); color: var(--g-900); font-variant-numeric: tabular-nums; }
.pa-dial__t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12.5px/1.2 var(--font); color: var(--g-500); }
/* the role table's ticks in green, the same green as the page's «Succeeded» badges */
.prm-y { background: #e9f6ee; color: #1f7a45; }
[data-theme="dark"] .prm-y { background: #12301f; color: #7fd1a0; }

/* Live and Sandbox: the whole Transactions screen in either, one at a time in one grey panel, chosen with the switch at
   its top; the screen is the homepage hero's portal, sized in em of the panel's width */
.lsv { position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; height: clamp(440px, 46cqw + 60px, 620px); padding: 48px 0 0 48px; border-radius: 24px; background: var(--g-100); box-shadow: inset 0 0 0 1px #ebebee; }
.lsv { height: auto; aspect-ratio: 1280 / 640; max-height: 640px; min-height: 420px; }
.lsv-win { position: absolute; left: 48px; top: 48px; right: 0; bottom: 0; overflow: hidden; border-radius: 16px 0 0 0; font-size: calc((100cqw - 48px) / 86); box-shadow: 0 30px 60px -30px rgba(17, 18, 19, .3); }
.lsv-l { position: absolute; inset: 0; }
.lsv-l .hb-scr { width: 100%; height: 100% !important; border-radius: 0; box-shadow: none; }
.lsv-l { transition: opacity .35s, visibility 0s linear .35s; }
.lsv:not([data-env="sb"]) .lsv-l--sb, .lsv[data-env="sb"] .lsv-l--live { opacity: 0; visibility: hidden; }
.lsv:not([data-env="sb"]) .lsv-l--live, .lsv[data-env="sb"] .lsv-l--sb { transition: opacity .35s, visibility 0s; }
/* Sandbox wears the portal's own frame: the orange edge along the window's top, the marker strip and a warm wash behind
   the page; tables stay opaque above it (the design system's app shell and its sandbox colours). */
.hp--sb { position: relative; }
.hp--sb::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #d16100; pointer-events: none; }
.hp--sb .hp-main { background: radial-gradient(150% 90% at 50% 0%, rgba(209, 97, 0, .1), transparent 72%), #fff; }
.hp-mark { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; padding: .9em 1.2em .7em; border-bottom: 1px solid #ffc6a7; background: #fff2ec; color: #944300; font-size: .92em; line-height: 1.3; }
.hp-mark b { font-weight: 600; }
.hp-env--sb span.is-on { background: #fff2ec; color: #944300; }
.hp--sb .hp-nav span.is-lock { color: var(--g-400); justify-content: flex-start; }
.hp--sb .hp-nav span.is-lock em { margin-left: auto; padding: .2em .5em; border-radius: .45em; background: var(--g-200); font: 500 .74em/1.2 var(--font); font-style: normal; color: var(--g-600); white-space: nowrap; }
/* The switch, like the portal's own Live / Sandbox switch (Sandbox wears its orange when chosen), sits inside the block,
   centred at its top, and the window starts under it */
.lsv-switch { position: absolute; z-index: 3; top: 20px; left: 50%; translate: -50% 0; display: flex; width: max-content; padding: 4px; border-radius: 12px; background: var(--g-50); box-shadow: inset 0 0 0 1px #ebebee; }
html.js .lsv-win { top: 88px; }
.lsv-switch button { min-width: 104px; height: 40px; padding: 0 18px; border-radius: 9px; text-align: center; font: 500 14px/1 var(--font); color: var(--g-600); transition: background-color .2s, color .2s, box-shadow .2s; }
.lsv-switch button:hover { color: var(--g-900); }
.lsv-switch [aria-pressed="true"] { background: #fff; color: var(--g-900); box-shadow: 0 1px 2px rgba(17, 18, 19, .08), 0 0 0 1px #ebebee; }
.lsv-switch [data-env="sb"][aria-pressed="true"] { background: #fff2ec; color: #944300; box-shadow: 0 0 0 1px #ffc6a7; }
html:not(.js) .lsv-switch { display: none; }
@media (max-width: 767.98px) {
  .lsv { aspect-ratio: auto; height: 420px; min-height: 0; padding: 36px 0 0 16px; border-radius: 20px; }
  .lsv-win { left: 16px; top: 40px; font-size: 6.4px; }
  .lsv-l .hb-scr { width: 86em; }
}
[data-theme="dark"] .lsv { box-shadow: inset 0 0 0 1px #242527; }
[data-theme="dark"] .hp--sb::after { background: #ef7926; }
[data-theme="dark"] .hp--sb .hp-main { background: radial-gradient(150% 90% at 50% 0%, rgba(239, 121, 38, .16), transparent 72%), var(--page, #111213); }
[data-theme="dark"] .hp-mark, [data-theme="dark"] .hp-env--sb span.is-on { background: #351909; color: #fc9c64; border-color: #542300; }
[data-theme="dark"] .lsv-switch { background: #1b1c1e; box-shadow: inset 0 0 0 1px #242527; }
[data-theme="dark"] .lsv-switch button { color: #a9abb0; }
[data-theme="dark"] .lsv-switch [aria-pressed="true"] { background: #2a2b2d; color: #fff; box-shadow: none; }
[data-theme="dark"] .lsv-switch [data-env="sb"][aria-pressed="true"] { background: #351909; color: #fc9c64; box-shadow: 0 0 0 1px #542300; }
/* the heading on the left, its line and link on the right, level with the heading's last line (as the homepage go-live
   block puts its heading and buttons) */
.lsv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 80px); align-items: end; max-width: none; }
.lsv-head .v-h2 { grid-column: 1; grid-row: 1 / 3; }
.lsv-head .v-sub { grid-column: 2; grid-row: 1; margin: 0; }
.lsv-head .v-link { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 16px; }
@media (max-width: 1023.98px) {
  .lsv-head { grid-template-columns: minmax(0, 1fr); }
  .lsv-head .v-h2, .lsv-head .v-sub, .lsv-head .v-link { grid-column: 1; grid-row: auto; }
  .lsv-head .v-sub { margin-top: 16px; }
  .lsv-head .v-h2 br { display: none; }
}
/* the line beside the heading runs in two rows: the right column is the wider one */
@media (min-width: 1024px) { .lsv-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .lsv-head .v-sub { text-wrap: pretty; } }
/* the same heading as «The right access for each person» — title on one line, the line under it — with the
   link on the right, level with the line's last row */
@media (min-width: 1024px) {
  .lsv-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 48px; align-items: end; }
  .lsv-head .v-h2 { grid-column: 1 / -1; grid-row: 1; }
  .lsv-head .v-sub { grid-column: 1; grid-row: 2; max-width: 760px; margin-top: 16px; text-wrap: pretty; }
  .lsv-head .v-link { grid-column: 2; grid-row: 2; justify-self: end; margin: 0 0 4px; }
}
/* the compare panel always takes the container's full width, like every other block: its height follows
   the width instead of an aspect ratio that capped the width on wide screens */
@media (min-width: 768px) { .lsv { width: 100%; aspect-ratio: auto; max-height: none; height: clamp(440px, 40vw, 660px); } }

/* The Live and Sandbox block comes in: the panel rises, the portal window slides up, the table's rows arrive one after
   another. (The page's blur-in rule set its own transition on the panel; this one keeps the window's too.) */
html.motion .lsv.bl { transition: opacity 1.2s cubic-bezier(.22, .61, .2, 1), translate 1.2s cubic-bezier(.22, .61, .2, 1); }
html.motion .lsv .lsv-win { transition: translate 1s cubic-bezier(.2, .7, .2, 1) .15s, opacity .8s .15s; }
html.motion .lsv:not(.bl-in) .lsv-win { translate: 0 70px; opacity: 0; }
html.motion .lsv .hp-tr, html.motion .lsv .hp-nav > * { transition: opacity .5s, translate .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.45s + var(--i, 0) * 45ms); }
html.motion .lsv:not(.bl-in) .hp-tr, html.motion .lsv:not(.bl-in) .hp-nav > * { opacity: 0; translate: 0 10px; }
@media (prefers-reduced-motion: reduce) { html.motion .lsv .lsv-win, html.motion .lsv .hp-tr, html.motion .lsv .hp-nav > * { transition: none; opacity: 1; translate: none; } .lsv-l { transition: none; } }
/* phones: the role table's header row stays hidden (the chips name the roles), and the compare window fills its panel
   with readable type */
@media (max-width: 767.98px) {
  .prm .prm__row.prm__head { display: none; }
  .lsv { padding: 0; height: 440px; }
  .lsv-win { top: 16px; font-size: 7.8px; }
}

/* ===== Phones (2) ===== */
/* 1 · the filters stay on one row; those that don't fit are left out */
.pa-tx__f { flex-wrap: nowrap; overflow: hidden; }
.pa-tx__f .pa-chip { flex: none; }
@container (max-width: 560px) { .pa-tx__f .pa-chip:nth-child(4) { display: none; } }
@container (max-width: 330px) { .pa-tx__f .pa-chip:nth-child(3) { display: none; } }
/* 2–3 · Fee changes uses the homepage team tile: its stack sits in the flow on phones, so the card is never cut */
.pa-t4 .ilt { overflow: visible; min-height: 260px; }
.pa-t4 .ild__t svg { fill: none; }
/* 4 · the role table on phones: a real table — the actions on the left, four narrow role columns with short names */
@media (max-width: 767.98px) {
  .prm { padding: 8px 16px; }
  .prm .prm__row, .prm .prm__row.prm__head { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 44px); align-items: center; gap: 0 4px; min-width: 0; padding: 12px 0; }
  .prm .prm__row > span { grid-column: auto; width: auto; font-size: 13.5px; line-height: 1.3; font-weight: 400; color: var(--g-800); padding-right: 8px; }
  .prm .prm__head { border-top: 0; padding: 10px 0 8px; }
  .prm .prm__head > span { align-items: center; padding: 0; }
  .prm .prm__head > span:first-child { visibility: hidden; }
  .prm .prm__head small { display: none; }
  .prm .prm__head b { font-size: 0; }
  .prm .prm__head b::after { content: attr(data-s); font: 600 11.5px/1.2 var(--font); color: var(--g-900); }
  .prm .prm__row:nth-child(2) { border-top: 1px solid var(--g-200); }
  .prm .prm-y { justify-self: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; font-size: 12px; }
  .prm .prm-y::after { content: none; }
  .prm .prm-n { display: block; justify-self: center; padding: 0; }
}
/* 5 · the compare window: larger type on phones */
@media (max-width: 767.98px) { .lsv { height: 460px; } .lsv-win { font-size: 9.4px; } .lsv-switch { top: 14px; } html.js .lsv-win { top: 76px; } }
/* the filter row keeps its height inside the list's column (it was shrinking to nothing), and phones keep the status */
.pa-tx__f { flex: none; }
.pa-tx__f .pa-chip { display: inline-flex; align-items: center; }
@media (max-width: 767.98px) {
  .pa-tx__r { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
  .pa-tx__r .bdg { display: inline-flex; }
  .pa-tx__r b { text-align: right; }
}
@media (max-width: 767.98px) { .pa-dial { padding-inline: 24px !important; } .pa-dial__case { width: 100%; } }

/* ===== Risk, second pass ===== */
/* three checks: the homepage go-live cards, three of them, the middle one lower */
.rk-vgx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 470px; }
.rk-vgx .vgx__col:nth-of-type(2) { margin-top: 64px; }
.rk-vgx .vgx__col:nth-of-type(3) { margin-top: 0; }
.rk-vgx .vgx__txt { max-width: 30em; }
.rk-pay .mk, .rk-pay .bm { flex: none; }
.rk-pay > span:last-child { display: flex; flex-direction: column; gap: 2px; font: 400 12px/1.2 var(--font); color: var(--g-500); }
.rk-pay b { font: 600 15px/1.2 var(--font); color: var(--g-900); font-variant-numeric: tabular-nums; }
.rk-c { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; font: 400 13.5px/1.3 var(--font); color: var(--g-800); }
.rk-c--no { padding: 8px 10px; margin: 0 -8px; border-radius: 10px; background: #fdf6f6; box-shadow: inset 0 0 0 1px rgba(180, 35, 35, .14); }
.rk-c .vgx__chk { margin-left: 0; }
.rk-no { background: #c53030; }
.rk-st { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rk-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--g-200); }
.rk-r:first-of-type { border-top: 0; }
.rk-r > span:first-child { display: flex; flex-direction: column; gap: 2px; font: 400 12px/1.2 var(--font); color: var(--g-500); }
.rk-r b { font: 600 14px/1.2 var(--font); color: var(--g-900); font-variant-numeric: tabular-nums; }
@media (max-width: 1199.98px) {
  .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 470px; }
  .rk-vgx .vgx__col:nth-of-type(2) { margin-top: 48px; }
}
@media (max-width: 1023.98px) {
  .rk-vgx { grid-template-columns: minmax(0, 1fr); }
  .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 440px; }
  .rk-vgx .vgx__col:nth-of-type(n) { margin-top: 0; }
}
@media (max-width: 767.98px) { .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: auto; } }
[data-theme="dark"] .rk-c--no { background: #2a1c1c; box-shadow: inset 0 0 0 1px rgba(255, 157, 148, .2); }
/* check cards: room for three lines of text above the glimpse; the glimpse's rows keep their own height */
.rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 540px; }
.rk-vgx .vgx__ui > * { flex: none !important; max-height: none !important; }
.rk-vgx .vgx__ui > .rk-pay { justify-content: flex-start; }
@media (max-width: 1023.98px) { .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 520px; } }
@media (max-width: 767.98px) { .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: auto; } }
/* the glimpses fill their cards and run off the lower edge, as on the homepage go-live cards */
.rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 470px; }
.rk-note { font: 400 12.5px/1.4 var(--font); color: var(--g-500); }
@media (max-width: 1023.98px) { .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: 440px; } }
@media (max-width: 767.98px) { .rk-vgx .vgx__col, .rk-vgx .vgx__col + .vgx__col { height: auto; } }
/* Risk on phones (the Portal rules): shorter glimpses, the second smaller card left out, lists trimmed to what fits */
@media (max-width: 767.98px) {
  .rk-vgx .vgx__col:nth-of-type(1) .rk-c:nth-of-type(n+5) { display: none; }
  .rk-vgx .rk-note { display: none; }
  .rk-vgx .vgx__col:nth-of-type(3) .rk-r:nth-of-type(n+5) { display: none; }
}
[data-theme="dark"] .vgx__chk.rk-no { background: #e5484d; }

/* ===== Risk, third pass ===== */

/* 2 · check cards: the glimpse follows the text (never under it) and runs off the card's lower edge */
.rk-vgx .vgx__col { display: flex; flex-direction: column; }
.rk-vgx .vgx__ui { position: relative; inset: auto; flex: 1 0 auto; margin: 24px -8px 0; border-radius: 16px 16px 0 0; }
@media (max-width: 767.98px) { .rk-vgx .vgx__ui { margin: 20px 0 0; border-radius: 16px; } }

/* 3 · stopped payments: the portal window, Status: Failed, the stopped payment open in its drawer */
.rsw { display: block; padding: 0; }
.rsw-win { left: 40px; top: 40px; right: -2px; bottom: -2px; }
.rsw-drw { width: min(340px, 64%); }
.rsw-drw .rsp-why { margin-top: 2px; }
.rsw .pw-tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 767.98px) {
  .rsw { min-height: 0; }
  .rsw-win { position: relative; inset: auto; border-radius: 16px; }
  .rsw .pw-top, .rsw .pw-f, .rsw .pw-tbl { display: none; }
  .rsw-drw { position: static; width: auto; box-shadow: none; }
  .rsw-drw .pw-drw__h { display: none; }
}

/* 4 · questions from us: the request itself — the question, your answer with its files */
.rfi-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rfi-files span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-200); font: 500 12px/1 var(--font); color: var(--g-800); }
.rfi-files svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .rfi-files span { box-shadow: inset 0 0 0 1px #2e2f31; }
/* questions from us: on shorter screens the list keeps three items, so the request card overlaps only its foot */
@media (max-width: 767.98px) {
  .rsw { padding: 24px 20px; }
  .rsw-win { box-shadow: inset 0 0 0 1px #ebebee, 0 18px 40px -24px rgba(17, 18, 19, .22); }
  .rsw-drw { padding: 20px; }
}

/* ===== Risk, fourth pass ===== */
/* 1 · hero: the portal's Disputes page in its own words (Dispute ID, Reason, Amount, Status, Time left) in a window under
   the centred copy; the payment the fraud filter stopped over the window's lower-left corner */
.rh-tr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-top: 1px solid var(--g-100); font: 400 13px/1 var(--font); color: var(--g-800); white-space: nowrap; }
.rh-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rh-tr b { font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; }
.rh-tr.pw-th { height: 38px; border-top: 0; }
.rh-tr.is-sel { background: var(--b-50); }
.rh-none { color: var(--g-500); }
.rh-fraud { position: absolute; z-index: 3; left: 4%; bottom: 3%; width: min(320px, 50%); gap: 12px; }
.rh-fraud .rsp-why { margin-top: 2px; }
@media (min-width: 1024px) { .rh-fraud { left: calc(-1 * clamp(24px, 3.4vw, 56px)); bottom: 5%; } }
[data-theme="dark"] .rh-tr.is-sel { background: #1c1d33; }
[data-theme="dark"] .rh-tr.pw-th { background: #1e1f21; }

/* 3 · disputes, mirrored to the block above: the case on the left, 40 px from the panel's left and top; the evidence for
   the challenge 40 px from its right and lower edges */
.rdp { display: block; }
.rdp > .dc { position: absolute; }
.rdp .rd-case { left: 40px; top: 40px; width: min(460px, calc(100% - 100px)); }
.rdp-ev { right: 40px; bottom: 40px; z-index: 2; width: min(320px, calc(100% - 80px)); gap: 12px; }
.rdp-files { flex-direction: column; align-items: flex-start; }
@media (min-width: 1024px) {
  .rdp .rd-case { top: calc(50% - 280px); }
  .rdp-ev { top: calc(50% + 110px); bottom: auto; }
}
@media (max-width: 767.98px) {
  .rdp { display: flex; flex-direction: column; min-height: 0; }
  .rdp > .dc { position: relative; inset: auto; width: 100%; }
  .rdp-ev { display: none; }
}
/* the two cards of «Disputes» and «Questions from us» follow each other down the panel's middle, the small one
   overlapping only the big one's foot — at any screen height (the panel grows if they need more room) */
@media (min-width: 768px) {
  .rdp { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .rdp > .dc { position: relative; inset: auto; }
  .rdp .rd-case { align-self: flex-start; }
  .rdp-ev { align-self: flex-end; margin-top: -28px; }
  .rdp .rd-case { width: min(460px, calc(100% - 20px)); }
}

/* ===== Risk, money cards tidied ===== */
/* One pattern for the stopped payment's drawer and the dispute case: a label, the amount with its status on its line,
   one card line, then sections under small titles — no rules, one left edge; gaps 8 inside a group, 24 between groups */
.rx { gap: 8px; }
.rx .dc__top .pw-x { width: 26px; height: 26px; }
.rx-amt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.rx-why { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdf3f3; }
.rx-why svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #b42323; stroke-width: 1.8; stroke-linecap: round; }
.rx-why > span { display: flex; flex-direction: column; gap: 4px; }
.rx-why b { font: 500 13.5px/1.4 var(--font); color: var(--g-900); }
.rx-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rx-sec > small { font: 500 12px/1 var(--font); letter-spacing: .02em; color: var(--g-500); }
.rx .dc__rows { gap: 10px; }
.rx .dc__row { font-size: 13.5px; }
/* the steps: one dot column on the content's left edge, grey line between, the step's time or badge on the right */
.rx-tl .tl__s { padding: 0 0 14px 22px; font-size: 13.5px; line-height: 20px; align-items: center; }
.rx-tl .tl__s:last-child { padding-bottom: 0; }
.rx-tl .tl__s::before { left: 0; top: 5px; width: 10px; height: 10px; }
.rx-tl .tl__s:not(:last-child)::after { left: 4.5px; top: 19px; bottom: 3px; background: var(--g-200); }
.rx-tl .tl__s--done:not(:last-child)::after { background: rgba(78, 76, 242, .35); }
.rx-tl .tl__s--now::before { box-shadow: 0 0 0 3px rgba(78, 76, 242, .18); }
.rx-tl .tl__s small { font-size: 12.5px; line-height: 18px; }
.rx-tl .tl__s .bdg { justify-self: end; }
.rx-next b { font-weight: 400 !important; color: var(--g-500) !important; }
.rx-note { margin-top: 16px; font: 400 12.5px/1.45 var(--font); color: var(--g-500); }
.rd-case.rx .rd-acts { margin-top: 8px; }
.rsw-drw.rx { padding: 20px 24px; }
[data-theme="dark"] .rx-why { background: #2a1c1c; }
[data-theme="dark"] .rx-why svg { stroke: #ff9d94; }
[data-theme="dark"] .rx-tl .tl__s--done:not(:last-child)::after { background: rgba(132, 148, 252, .4); }
[data-theme="dark"] .rx-tl .tl__s:not(:last-child)::after { background: #2e2f31; }
@media (max-width: 767.98px) { .rsw-drw.rx { padding: 20px; } }
.rx-tl .tl__s:not(:last-child)::after { top: 17px; bottom: -3px; }
@media (min-width: 768px) { .rdp-ev { margin-top: -16px; } }

/* ===== Questions from us in the homepage «Nothing happens unseen» look ===== */
/* no outer card: the title and each item's own white card sit on the grey panel, the list fading out downwards; the
   request for information is open in place (question, your answer with files, Submit for review) */
.rq { display: block; overflow: hidden; }
.rq__in { position: absolute; left: 40px; right: 40px; top: 40px; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }
.rq .vk__na-h { gap: 10px; margin: 0 0 16px; font-size: 20px; letter-spacing: -.01em; }
.rq .vk__na-h span { min-width: 26px; height: 26px; border-radius: 13px; font-size: 13px; }
.rq__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rq .vk__na-i { gap: 16px; padding: 18px 20px; border-radius: 18px; }
.rq .vk__na-ic { width: 44px; height: 44px; }
.rq .vk__na-t { gap: 4px; }
.rq-open { flex-direction: column; align-items: stretch; gap: 12px !important; }
.rq-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
@media (min-width: 1440px) { .rq .vk__na-i { padding: 20px 24px; } }
@media (max-width: 767.98px) {
  .rq { min-height: 460px; }
  .rq__in { left: 16px; right: 16px; top: 24px; }
  .rq .vk__na-h { font-size: 18px; }
  .rq .vk__na-i { gap: 14px; padding: 16px; }
  .rq .vk__na-ic { width: 40px; height: 40px; }
  .rq .vk__na-b { display: none; }
}
/* the fade belongs to the panel's lower edge, not to the list's own end */
.rq__in { bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* ===== Questions from us as the homepage «Nothing happens unseen» row ===== */
/* blue title tile (5 columns) + grey Needs attention tile (7); the tiles are taller than the homepage's, the open
   request needs the room */
.rq-vk .vk__t { min-height: 620px; }
.rq-vk .vk__t--b { padding: 0; }
.rq-vk .rq__in { left: 40px; right: 40px; top: 40px; bottom: 0; }
@media (min-width: 1440px) { .rq-vk .vk__t { min-height: 660px; } }
@media (max-width: 1023.98px) { .rq-vk .vk__t--a { min-height: 0; } .rq-vk .vk__t--b { min-height: 600px; } }
@media (max-width: 767.98px) { .rq-vk .vk__t--b { min-height: 460px; } .rq-vk .rq__in { left: 16px; right: 16px; top: 24px; } }

/* the request's conversation: who and when above each message, the question from the left,
   your answer from the right, attachments as small file cards with their type */
.rq-th { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 0 60px; }
.rq-m { display: flex; align-items: flex-start; gap: 10px; max-width: 92%; }
.rq-m--me { flex-direction: row-reverse; align-self: flex-end; }
.rq-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rq-m--me .rq-b { align-items: flex-end; }
.rq-who { display: flex; align-items: baseline; gap: 8px; font: 400 12px/1.2 var(--font); color: var(--g-500); }
.rq-who b { font-weight: 600; color: var(--g-900); font-size: 12.5px; }
.rq-txt { padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--g-100); font: 400 13.5px/1.45 var(--font); color: var(--g-800); }
.rq-m--me .rq-txt { border-radius: 16px 4px 16px 16px; background: var(--b-600); color: #fff; }
.rq-att { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rq-f { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-200); }
.rq-f > span { display: flex; flex-direction: column; gap: 2px; }
.rq-f b { font: 500 12.5px/1.2 var(--font); color: var(--g-900); }
.rq-f small { font: 400 11.5px/1.2 var(--font); color: var(--g-500); }
.rq-f__t { display: grid; place-items: center; width: 30px; height: 34px; border-radius: 6px; font: 700 9px/1 var(--font); font-style: normal; letter-spacing: .04em; }
.rq-f__t--pdf { background: #fdecec; color: #b42323; }
.rq-f__t--csv { background: #e9f6ee; color: #1f7a45; }
[data-theme="dark"] .rq-f { box-shadow: inset 0 0 0 1px #2e2f31; }
[data-theme="dark"] .rq-f__t--pdf { background: #3a1a1a; color: #ff9d94; }
[data-theme="dark"] .rq-f__t--csv { background: #12301f; color: #7fd1a0; }
@media (max-width: 767.98px) {
  .rq-th { margin-left: 0; }
  .rq-m { max-width: 100%; }
  .rq-vk .vk__t--b { min-height: 600px; }
}

/* Money out: the same height as Questions from us; its list runs off the tile's lower edge, fading */
.po-vk .vk__t { min-height: 620px; }
@media (min-width: 1440px) { .po-vk .vk__t { min-height: 660px; } }
.po-vk .vk__na { bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
@media (max-width: 1023.98px) { .po-vk .vk__t--a { min-height: 0; } .po-vk .vk__t--b { min-height: 560px; } }
@media (max-width: 767.98px) { .po-vk .vk__t--b { min-height: 460px; } }
/* no avatars; the files sit inside your message */
.rq-txt { display: flex; flex-direction: column; gap: 10px; }
.rq-m--me .rq-txt { padding: 12px 14px; }
.rq-txt .rq-att { justify-content: flex-start; }
.rq-m--me .rq-f { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.rq-m--me .rq-f b { color: #fff; }
.rq-m--me .rq-f small { color: rgba(255, 255, 255, .72); }
.rq-m--me .rq-f__t--pdf, .rq-m--me .rq-f__t--csv { background: #fff; }
[data-theme="dark"] .rq-m--me .rq-f { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
[data-theme="dark"] .rq-m--me .rq-f__t--pdf { background: #fff; color: #b42323; }
[data-theme="dark"] .rq-m--me .rq-f__t--csv { background: #fff; color: #1f7a45; }

/* phones: the hero shows the portal's Disputes page itself, the
   desktop window drawn at 60 % and running off the panel's right and lower edges; the stopped payment stays on desktop */
@media (max-width: 767.98px) {
  .rh-art { position: relative; display: block; min-height: 0; height: 300px; margin-right: -20px; padding: 0; }
  .rh-win { position: absolute; inset: auto; left: 0; top: 0; width: 720px; height: 520px; zoom: .6; border-radius: 16px 0 0 0; }
  .rh-win .pw-top, .rh-win .pw-f { display: flex; }
  .rh-win .pw-tbl { display: block; }
  .rh-fraud { display: none; }
}
/* the three check cards on phones: the glimpse runs off the card's lower edge, cut through a later row like on desktop
 */
@media (max-width: 767.98px) {
  .rk-vgx .vgx__ui { position: relative; margin: 24px -8px 0; border-radius: 16px 16px 0 0; overflow: hidden; }
  .rk-vgx .vgx__col:nth-of-type(1) .rk-c:nth-of-type(n+5), .rk-vgx .rk-note, .rk-vgx .vgx__col:nth-of-type(3) .rk-r:nth-of-type(n+5) { display: flex; }
  .rk-vgx .vgx__col:nth-of-type(1) .vgx__ui { height: var(--cut1, 268px); }
  .rk-vgx .vgx__col:nth-of-type(2) .vgx__ui { height: var(--cut2, 268px); }
  .rk-vgx .vgx__col:nth-of-type(3) .vgx__ui { height: var(--cut3, 220px); }
}
/* the cut goes through the row after the one that matters: card fingerprint, the note, the third payment */
@media (max-width: 767.98px) { .rk-vgx { --cut1: 232px; --cut2: 264px; --cut3: 202px; } }
@media (max-width: 767.98px) { .rk-vgx { --cut1: 226px; } }
/* phones: the glimpse keeps clear of the card's rounded lower corners (inset 24 = the corner radius and more), so its cut is
   straight, and it fades out into the card instead of a hard cut through a row */
@media (max-width: 767.98px) {
  .rk-vgx .vgx__ui { margin: 24px 0 0; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .rk-vgx { --cut1: 250px; --cut2: 270px; --cut3: 250px; }
}
/* no fade: the glimpse is cut straight by the card's lower edge, through the middle of a row */
@media (max-width: 767.98px) {
  .rk-vgx .vgx__ui { -webkit-mask-image: none; mask-image: none; }
  .rk-vgx { --cut1: 230px; --cut2: 264px; --cut3: 202px; }
}
/* phones: the check-card glimpse has square lower corners (the card's edge cuts it) */
@media (max-width: 767.98px) { .rk-vgx .vgx__col .vgx__ui { border-radius: 16px 16px 0 0; } }

/* ===== Developers, tidied ===== */
/* hero: the webhook card joins the payment card on the right, over the window's empty side, clear of the code */
@media (min-width: 1024px) {
  .pd-hero .vd__fl--hook { display: flex; left: auto; right: -60px; top: 232px; }
  .pd-hero .vd__fl--pay { top: 64px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .pd-hero .vd__fl--hook { right: -8px; } }

/* two ways: the way itself as one big card, its result over the lower-right corner — no row of tiny cards */
.pw__row { grid-template-rows: auto 1fr; }
.pw__pic { position: relative; min-height: 380px; }
.pw__pic > .dc { position: absolute; }
@media (max-width: 767.98px) {
  .pw__pic { display: flex; flex-direction: column; min-height: 0; }
  .pw__pic > .dc { position: relative; inset: auto; width: 100%; }
}

/* safe to send twice: the two requests straight, one under the other, the one payment over their corner */
.pr-pic { padding: 40px; }
.pr-pic > * { width: min(440px, calc(100% - 40px)); }
.pr-one { margin-top: -20px; width: min(340px, calc(100% - 40px)); }
@media (max-width: 767.98px) { .pr-pic { padding: 24px 20px; } .pr-pic > * { width: 100%; } .pr-one { width: 92%; margin-top: -16px; } }

/* signed by us: the delivery top left, your server's check of it over the lower-right corner */
.hk-sig { display: block; min-height: 300px; padding: 0; }
.hk-sig > .dc { position: absolute; }
@media (max-width: 767.98px) {
  .hk-sig { display: flex; flex-direction: column; min-height: 0; padding: 0 20px 24px; }
  .hk-sig > .dc { position: relative; inset: auto; width: 100%; }
}

/* keys: the list and the new key follow each other down the panel's middle, straight, the new key over the list's foot */
.pky { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.pky__new { align-self: flex-end; width: min(340px, calc(100% - 40px)); margin: -24px 0 0; rotate: none; }
.pky__key { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 767.98px) { .pky { padding: 24px 20px; } .pky__new { width: 92%; margin-top: -16px; } }

/* sandbox: the table and one test payment's answer over its foot (100051 = EUR 1,000.51 → insufficient_funds) */
.psb { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.psb__t { align-self: flex-start; width: min(500px, calc(100% - 40px)); }
.psb__r--any code { white-space: nowrap; }
@media (max-width: 767.98px) { .psb { padding: 24px 20px; } .psb__t { width: 100%; } }
.pr-one { margin-top: -10px; }

/* ===== Developers, second pass ===== */

/* shared: a browser window and a dark code window, each running off its tile's right and lower edges */
.pw-cw { position: absolute; overflow: hidden; border-radius: 16px 0 0 0; text-align: left; }
.pw-cw { background: #1c1d1f; color: #c6c8cc; box-shadow: 0 40px 80px -40px rgba(17, 18, 19, .5); }
.pw-cw__bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--g-200); }
.pw-cw__bar { border-bottom-color: rgba(255, 255, 255, .08); }
.pw-cw__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--g-300); }
.pw-cw__bar i { background: #3a3b3e; }
.pw-cw__bar em { margin-left: 10px; font: 400 12.5px/1 var(--mono); font-style: normal; color: var(--g-500); white-space: nowrap; }
.pw-cw__bar em { color: #8b8c8f; }
.pw-cw__code { margin: 0; padding: 18px 20px; font: 400 13px/1.7 var(--mono); color: #c6c8cc; white-space: pre; }
.pw-cw__code .s { color: #b4bdfd; } .pw-cw__code .n { color: #f2c56b; } .pw-cw__code .k { color: #fff; font-weight: 600; } .pw-cw__code .c { color: #77797d; } .pw-cw__code .ok { color: #8fd6a8; }

/* 2 · two ways: the window off the tile's right and lower edges, one card over it */
.pw__row { --pwp: clamp(32px, 3.4vw, 48px); position: relative; overflow: hidden; isolation: isolate; }
.pw__row::before { content: ""; position: absolute; inset: 0; z-index: 50; border-radius: inherit; box-shadow: inset 0 0 0 1px #ebebee; pointer-events: none; }
[data-theme="dark"] .pw__row::before { box-shadow: inset 0 0 0 1px #242527; }
.pw__pic { min-height: 430px; }
.pw-fl { position: absolute; z-index: 3; gap: 10px; padding: 18px 20px; }
.pw__pic--hpp .pw-fl { left: -12px; bottom: 28px; width: min(280px, 52%); }
.pw__pic--api .pw-cw { left: 34%; top: 28px; right: calc(-1 * var(--pwp) - 2px); bottom: calc(-1 * var(--pwp) - 2px); }
.pw__pic--api .pw-fl { left: -12px; top: 0; width: min(290px, 50%); }
.pw__pic--api .pw-fl .dw__field { padding: 8px 46px 8px 12px; font-size: 13px; }
.pw__pic--api .pw-fl .dw__pair .dw__field { padding-right: 12px; }
.pw__pic--api .pw-fl .dw__btn { height: 40px; }
.pw__pic--api .pw-cw__code { padding-left: calc(50% - 34% + 40px); }
@media (max-width: 1279.98px) { .pw__pic--api .pw-cw { left: 30%; } .pw__pic--api .pw-cw__code { padding-left: 300px; } }
@media (max-width: 767.98px) {
  .pw__row { --pwp: 20px; }
  .pw__pic { min-height: 300px; }
  .pw-fl { display: none; }
  .pw__pic--api .pw-cw { left: 0; top: 0; }
  .pw__pic--api .pw-cw__code, .pw__pic--api .pw-cw__code { padding-left: 20px; font-size: 12px; }
}

/* 3 · safe to send twice: your server's log off the panel's edges, the one payment over its lower-left corner */
.pr-pic { display: block; padding: 0; }
.pr-log { left: 40px; top: 40px; right: -2px; bottom: -2px; display: flex; flex-direction: column; }
.pr-l { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 400 13px/1.5 var(--mono); color: #c6c8cc; }
.pr-l > i { font-style: normal; color: #77797d; }
.pr-l b { color: #fff; font-weight: 600; }
.pr-l small { display: block; margin-top: 4px; font-size: 12.5px; color: #8b8c8f; }
.pr-l--x > span { color: #ff9d94; }
.pr-l--ok > span { color: #8fd6a8; }
.pr-again { margin-left: 6px; font-style: normal; color: #f2c56b; }
.pr-pic .pr-one { position: absolute; z-index: 3; left: 24px; bottom: 40px; top: auto; margin: 0; width: min(320px, 70%); }
@media (max-width: 767.98px) {
  .pr-pic { min-height: 0; padding: 24px 0 0 20px; }
  .pr-log { position: relative; inset: auto; border-radius: 16px 0 0 0; margin-right: -2px; }
  .pr-l { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; }
  .pr-pic .pr-one { display: none; }
}

/* 4 · signed by us: the check in a code window off the tile's edges, its result over the window's corner */
.hk-sig { display: block; min-height: 300px; padding: 0; }
.hk-sig .hk-sig__cw { left: 40px; top: 8px; right: -2px; bottom: -2px; }
.hk-sig__ok { position: absolute; z-index: 3; left: 24px; bottom: 32px; width: min(280px, calc(100% - 48px)); gap: 6px; padding: 14px 18px; }
.hk-sig__ok .rk-c { font-size: 13.5px; }
@media (max-width: 767.98px) {
  .hk-sig { display: block; min-height: 250px; padding: 0; }
  .hk-sig .hk-sig__cw { position: absolute; left: 20px; top: 0; right: -2px; bottom: -2px; }
  .hk-sig .pw-cw__code { font-size: 12px; }
  .hk-sig__ok { display: none; }
}

/* 5 · keys: the API keys page off the panel's edges, the new key over its lower-left corner */
.pky { display: block; padding: 0; }
.pky__win { left: 40px; top: 40px; right: -2px; bottom: -2px; }
.pky__win .pw-top { gap: 12px; }
.pky__new-btn { display: grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--b-600); color: #fff; font: 600 13px/1 var(--font); white-space: nowrap; }
.pky__tbl { padding: 4px 22px 0; }
.pky__tbl .pky__r { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr); padding: 12px 0; }
.pky__th { padding: 10px 0 !important; border-top: 0 !important; font: 500 12px/1 var(--font) !important; color: var(--g-500) !important; }
.pky__tbl .pky__r .bdg { justify-self: start; }
.pky .pky__new { position: absolute; z-index: 3; left: 24px; bottom: 40px; top: auto; margin: 0; width: min(330px, 70%); rotate: none; }
@media (max-width: 767.98px) {
  .pky { min-height: 380px; }
  .pky__win { left: 20px; top: 24px; border-radius: 16px 0 0 0; }
  .pky__win .pw-top { display: flex; padding: 0 16px; }
  .pky__new-btn { display: none; }
  .pky__tbl { padding: 0 16px; }
  .pky__tbl .pky__r { grid-template-columns: minmax(0, 1fr) auto; }
  .pky__tbl .pky__r > span:nth-child(2) { display: none; }
  .pky .pky__new { display: none; }
}

/* 6 · sandbox: the portal's Transactions in Sandbox off the panel's edges, the rule itself over its lower-left corner */
.psb { display: block; padding: 0; }
.psb-w { left: 40px; top: 40px; right: -2px; bottom: -2px; }
.psb-w__mode { padding: 5px 10px; border-radius: 8px; background: #fdf3dc; color: #8a520c; font: 500 12.5px/1 var(--font); }
.psb-w__tbl { margin: 0 22px; padding-top: 6px; }
.psb-w__r { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .8fr); align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-top: 1px solid var(--g-100); font: 400 13px/1 var(--font); color: var(--g-800); white-space: nowrap; }
.psb-w__r > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.psb-w__r b { font-weight: 500; color: var(--g-900); font-variant-numeric: tabular-nums; }
.psb-w__th { height: 38px; border-top: 0; border-radius: 10px; background: var(--g-100); font: 500 12px/1 var(--font); color: var(--g-600); }
.psb-w__r.is-sel { background: var(--b-50); }
.psb .psb__rule { position: absolute; z-index: 3; left: 24px; bottom: 40px; width: min(300px, 70%); padding: 16px 18px 6px; }
.psb__rule .psb__h, .psb__rule .psb__r { grid-template-columns: 84px minmax(0, 1fr); }
.psb__rule .psb__r { padding: 8px 0; }
.psb__rule .psb__r code { font-size: 12.5px; }
[data-theme="dark"] .psb-w__mode { background: #3a2c10; color: #f2c56b; }
[data-theme="dark"] .psb-w__th { background: #1e1f21; }
[data-theme="dark"] .psb-w__r.is-sel { background: #1c1d33; }
@media (max-width: 767.98px) {
  .psb { display: flex; padding: 24px 20px; min-height: 0; }
  .psb-w { display: none; }
  .psb .psb__rule { position: relative; inset: auto; width: 100%; }
  .psb__rule .psb__h span:nth-child(2) { display: inline; }
  .psb__rule .psb__h::after { content: none; }
}

/* 7 · test cards, named, as the text column's points */
.psb-pts li { grid-template-columns: 34px minmax(0, 1fr); }
.psb-pts li > .mk { grid-row: 1 / 3; width: 34px; height: 24px; }
.psb-pts .mk svg { grid-row: auto; width: 100%; height: 100%; fill: initial; stroke: none; }
.psb-pts code { font: 500 15px/1.4 var(--mono); color: var(--g-800); letter-spacing: .02em; }
.pr-pic > .pr-log { width: auto; }
.pr-pic > .pr-one { width: min(320px, 70%); }
/* direct API: the code window starts where the checkout card ends, so its title and code stay clear of the card */
.pw__pic--api .pw-cw { left: 44%; }
.pw__pic--api .pw-cw__code { padding-left: 40px; }
.pw__pic--api .pw-cw__bar { padding-left: 40px; }
@media (max-width: 1279.98px) { .pw__pic--api .pw-cw { left: 44%; } .pw__pic--api .pw-cw__code { padding-left: 40px; } }
@media (max-width: 767.98px) { .pw__pic--api .pw-cw { left: 0; } .pw__pic--api .pw-cw__code, .pw__pic--api .pw-cw__bar { padding-left: 20px; } }
/* signed by us: the result sits under the code, not over it */
.hk-sig__ok { bottom: 24px; }
.hk-sig .pw-cw__code { font-size: 12.5px; }
@media (max-width: 767.98px) { .pky__tbl { padding: 0 24px 0 16px; } .pky__win .pw-top { padding-right: 24px; } }

/* ===== Developers, third pass ===== */
/* 1 · the hero code window has the other heroes' proportions (1120 x 650, all four corners) and holds its longest
   example (the examples share one cell, so switching tabs never changes its height) */
@media (min-width: 1024px) {
  .pd-hero .vd__stage { width: min(1120px, 100% - 160px); }
  .pd-hero .vd__stage .code { height: 650px; border-radius: 16px; }
  html.js .pd-hero .vd__code { display: grid; grid-template-columns: minmax(0, 1fr); }
  html.js .pd-hero .vd__code .code__pane { grid-row: 3; grid-column: 1; }
  html.js .pd-hero .vd__code .code__pane[hidden] { display: block !important; visibility: hidden; }
}
/* 2 · the docs link sits to the right of the endpoints title, level with its last line */
.pe-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.pe-head > div { max-width: 760px; }
.pe-head .pe-docs { margin: 0 0 6px; padding: 0; }
@media (max-width: 767.98px) { .pe-head { align-items: flex-start; } .pe-head .pe-docs { margin: 0; } }
/* 4 · the delivery log comes closer and sits over the schedule's lines, which run on under it to the tile's edge */
@media (min-width: 1024px) {
  .hk-rt { column-gap: 8px; overflow: hidden; }
  .hk-rt__line::before { right: -480px; }
  .hk-rt__log { position: relative; z-index: 2; }
}
.v-head.pe-head { max-width: none; }

/* ===== Developers, fourth pass ===== */
/* HPP: our payment page on a phone, off the tile's lower edge; the thank-you card over the phone's right edge */
.pw__pic--hpp .pw-fl { left: auto; right: 0; top: 34%; bottom: auto; width: min(270px, 50%); }
@media (max-width: 767.98px) {
  .pw__pic--hpp { min-height: 380px; }
}
/* dark theme: the dark code windows keep an edge against the dark tiles */
[data-theme="dark"] .pw-cw { box-shadow: inset 0 0 0 1px #2d2e30, 0 40px 80px -40px rgba(0, 0, 0, .8); }

/* HPP, fifth idea: the three steps as a fan like the Portal page's — our payment page in front and
   taller, your site and back-on-your-site behind it in light blue, turned out; all rise from the tile's lower edge */
.pw__pic--hpp { min-height: 440px; }
.pw-fan { position: absolute; left: 50%; bottom: calc(-1 * var(--pwp) - 30px); width: 0; height: 0; }
.pw-fc { position: absolute; left: -140px; bottom: 0; display: flex; flex-direction: column; gap: 12px; width: 280px; padding: 20px 20px 40px; border-radius: 20px; text-align: left; transform-origin: 50% 110%; }
.pw-fc--c { z-index: 3; background: var(--g-50); box-shadow: 0 1px 2px rgba(17, 18, 19, .06), 0 30px 60px -24px rgba(17, 18, 19, .4); }
.pw-fc--l, .pw-fc--r { z-index: 1; width: 250px; left: -125px; background: #dfe4fd; color: #3a3fae; box-shadow: 0 20px 40px -24px rgba(63, 60, 202, .35); }
.pw-fc--l { transform: translateX(-150px) translateY(-34px) rotate(-8deg); }
.pw-fc--r { transform: translateX(150px) translateY(-34px) rotate(8deg); }
.pw-fc__k { display: flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--font); color: var(--g-500); }
.pw-fc__k i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--b-600); color: #fff; font: 600 11px/1 var(--font); font-style: normal; }
.pw-fc--l .pw-fc__k, .pw-fc--r .pw-fc__k { color: #3a3fae; }
.pw-fc--l .pw-fc__k i, .pw-fc--r .pw-fc__k i { background: #3a3fae; }
.pw-fc__url { padding-bottom: 10px; border-bottom: 1px solid rgba(43, 47, 143, .18); font: 400 12px/1.2 var(--mono); color: #4b50b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-fc--l .dc__row, .pw-fc--r .dc__row { font-size: 13.5px; color: #3a3fae; }
.pw-fc--l .dc__row b, .pw-fc--r .dc__row b, .pw-fc--r .dc__h { color: #23277f; }
.pw-fc--l .dw__btn { background: #3a3fae; }
.pw-fc__m { display: flex; align-items: center; gap: 8px; margin-top: 2px; font: 500 13.5px/1.2 var(--font); color: var(--g-700); }
.pw-fc--c .dc__amt { font-size: 30px; }
.pw-fc--c .dw__field { padding: 8px 46px 8px 12px; font-size: 13px; }
.pw-fc--c .dw__btn { height: 40px; }
[data-theme="dark"] .pw-fc--l, [data-theme="dark"] .pw-fc--r { background: #25265a; color: #b4bdfd; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
[data-theme="dark"] .pw-fc--l .pw-fc__k, [data-theme="dark"] .pw-fc--r .pw-fc__k, [data-theme="dark"] .pw-fc__url, [data-theme="dark"] .pw-fc--l .dc__row, [data-theme="dark"] .pw-fc--r .dc__row { color: #b4bdfd; }
[data-theme="dark"] .pw-fc--l .dc__row b, [data-theme="dark"] .pw-fc--r .dc__row b, [data-theme="dark"] .pw-fc--r .dc__h { color: #fff; }
[data-theme="dark"] .pw-fc--l .pw-fc__k i, [data-theme="dark"] .pw-fc--r .pw-fc__k i { background: #5856f5; }
[data-theme="dark"] .pw-fc__url { border-bottom-color: rgba(180, 189, 253, .2); }
[data-theme="dark"] .pw-fc--l .dw__btn { background: #5856f5; }
[data-theme="dark"] .pw-fc--c { box-shadow: inset 0 0 0 1px #2d2e30, 0 30px 60px -24px rgba(0, 0, 0, .7); }
/* the fan opens when the tile comes in, as on the Portal page */
.pw-fc--l, .pw-fc--r { transition: transform .9s cubic-bezier(.2, .8, .25, 1.05) .25s; }
@media (prefers-reduced-motion: reduce) { .pw-fc--l, .pw-fc--r { transition: none; } }
@media (max-width: 767.98px) {
  .pw__pic--hpp { min-height: 400px; }
  .pw-fc--c { left: -118px; width: 236px; padding: 18px 18px 36px; }
  .pw-fc--l, .pw-fc--r { left: -105px; width: 210px; padding: 16px 16px 36px; }
  .pw-fc--l { transform: translateX(-74px) translateY(-30px) rotate(-8deg); }
  .pw-fc--r { transform: translateX(74px) translateY(-30px) rotate(8deg); }
  .pw-fc--c .dc__amt { font-size: 26px; }
}
/* the fan stands higher: the cards run longer below their content and are still cut by the tile's edge */
.pw-fc { padding-bottom: 130px; }
.pw-fc--l > *, .pw-fc--r > * { opacity: .75; }
@media (max-width: 767.98px) { .pw__pic--hpp { min-height: 360px; } .pw-fc { padding-bottom: 96px; } .pw-fc--c { padding-bottom: 96px; } .pw-fc--l, .pw-fc--r { padding-bottom: 96px; } }
/* the front card's top level with the Direct API tile's checkout card */
@media (min-width: 768px) { .pw-fc { padding-bottom: 208px; } }
/* the fan, refined: the cards hold their whole content, so little
   white is left under it; the cards behind are white, their content quieter */
@media (min-width: 768px) { .pw-fc { padding-bottom: 96px; } .pw-fc--l, .pw-fc--r { padding-bottom: 120px; } }
.pw-fc--l, .pw-fc--r { background: var(--g-50); color: var(--g-800); box-shadow: inset 0 0 0 1px #ebebee, 0 20px 40px -26px rgba(17, 18, 19, .3); }
.pw-fc--l > *, .pw-fc--r > * { opacity: .6; }
.pw-fc--l .pw-fc__k, .pw-fc--r .pw-fc__k { color: var(--g-500); }
.pw-fc--l .pw-fc__k i, .pw-fc--r .pw-fc__k i { background: var(--g-700); }
.pw-fc__url { border-bottom-color: var(--g-200); color: var(--g-500); }
.pw-fc--l .dc__row, .pw-fc--r .dc__row { color: var(--g-600); }
.pw-fc--l .dc__row b, .pw-fc--r .dc__row b, .pw-fc--r .dc__h { color: var(--g-900); }
.pw-fc--l .dw__btn { background: var(--b-600); }
.pw-fc--c .dw__pair .dw__field { padding-right: 12px; }
.pw-fc__note { display: flex; align-items: center; justify-content: center; gap: 6px; font: 400 12px/1.2 var(--font); color: var(--g-500); }
.pw-fc__note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .pw-fc--l, [data-theme="dark"] .pw-fc--r { background: var(--g-50); color: var(--g-800); box-shadow: inset 0 0 0 1px #2d2e30, 0 20px 40px -26px rgba(0, 0, 0, .6); }
[data-theme="dark"] .pw-fc--l .pw-fc__k, [data-theme="dark"] .pw-fc--r .pw-fc__k, [data-theme="dark"] .pw-fc__url, [data-theme="dark"] .pw-fc--l .dc__row, [data-theme="dark"] .pw-fc--r .dc__row { color: var(--g-500); }
[data-theme="dark"] .pw-fc--l .dc__row b, [data-theme="dark"] .pw-fc--r .dc__row b, [data-theme="dark"] .pw-fc--r .dc__h { color: var(--g-900); }
[data-theme="dark"] .pw-fc--l .pw-fc__k i, [data-theme="dark"] .pw-fc--r .pw-fc__k i { background: var(--g-600); }
[data-theme="dark"] .pw-fc__url { border-bottom-color: #2e2f31; }
[data-theme="dark"] .pw-fc--l .dw__btn { background: var(--b-600); }
@media (min-width: 768px) { .pw-fan { bottom: calc(-1 * var(--pwp) - 4px); } }
@media (max-width: 767.98px) { .pw__pic--hpp { min-height: 470px; } .pw-fc, .pw-fc--c, .pw-fc--l, .pw-fc--r { padding-bottom: 48px; } }
@media (max-width: 767.98px) { .pw__pic--hpp { min-height: 410px; } }
/* the fan's cards end shortly under their content; the fan stands higher so the front card's
   top stays level with the Direct API card */
.pw-fc, .pw-fc--c, .pw-fc--l, .pw-fc--r { padding-bottom: 22px; }
@media (min-width: 768px) { .pw-fan { bottom: calc(-1 * var(--pwp) + 70px); } }
@media (max-width: 767.98px) { .pw-fan { bottom: calc(-1 * var(--pwp) - 4px); } }
/* direct API: the code window further left, the checkout card a little narrower, so the code shows whole */
@media (min-width: 768px) {
  .pw__pic--api .pw-fl { width: min(264px, 44%); }
  .pw__pic--api .pw-cw { left: 34%; }
  .pw__pic--api .pw-cw__code, .pw__pic--api .pw-cw__bar { padding-left: calc(10% + 30px); }
}
@media (min-width: 768px) { .pw__pic--api .pw-cw__code, .pw__pic--api .pw-cw__bar { padding-left: calc(10% + 24px); } }
@media (min-width: 768px) and (max-width: 1279.98px) { .pw__pic--api .pw-cw { left: 230px; } .pw__pic--api .pw-cw__code, .pw__pic--api .pw-cw__bar { padding-left: 40px; } }

/* Direct API tile on a dark ground (and a blue trial), */
.pw__row--blue { background: var(--b-600); }
.pw__row--blue::before { box-shadow: none; }
.pw__row--blue .pw__cap b { color: #fff; }
.pw__row--blue .pw__cap > span { color: rgba(249, 250, 251, .82); }
.pw__row--blue .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.pw__row--blue .pw-cw { background: #1c1d1f; box-shadow: 0 40px 80px -40px rgba(20, 22, 80, .7); }
.pw__row--blue .pw-fl { box-shadow: 0 30px 60px -24px rgba(20, 22, 80, .6); }
.pw__row--blue, [data-theme="dark"] .pw__row--blue { box-shadow: none; }
/* the card number keeps clear of the Visa mark */
.pw__pic--api .pw-fl .dw__field { padding-right: 50px; white-space: nowrap; font-size: 12.5px; letter-spacing: -.01em; }
.pw__pic--api .pw-fl .dw__pair .dw__field { padding-right: 12px; }
@media (min-width: 768px) { .pw__pic--api .pw-fl { width: max(264px, min(280px, 44%)); } }
@media (min-width: 768px) { .pw__pic--api .pw-fl { width: min(264px, 44%); } }
@media (min-width: 768px) and (max-width: 1279.98px) { .pw__pic--api .pw-fl { width: 230px; } .pw__pic--api .pw-cw { left: 250px; } }
@media (min-width: 768px) and (max-width: 1279.98px) { .pw__pic--api .pw-fl { width: 250px; } .pw__pic--api .pw-cw { left: 270px; } }
/* safe to send twice: the panel is dark, the log window a step lighter with a hairline edge */
.pk__pic.pr-pic { background: #111213; }
.pk__pic.pr-pic::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pr-pic .pr-log { background: #1e1f21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.pr-pic .pr-log .pw-cw__bar { border-bottom-color: rgba(255, 255, 255, .08); }
.pr-pic .pr-one { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
[data-theme="dark"] .pk__pic.pr-pic { background: #0b0b0c; }
/* the one-payment card is dark too, a step lighter than the log window, with a hairline edge */
.pr-pic .pr-one { background: #2a2b2e; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.pr-pic .pr-one .dc__top { color: #8b8c8f; }
.pr-pic .pr-one .dc__amt { color: #fff; }
.pr-pic .pr-one .dc__id { color: #8b8c8f; }
.pr-pic .pr-one .dc__rule { background: rgba(255, 255, 255, .1); }
.pr-pic .pr-one .dc__row { color: #a3a5a8; }
.pr-pic .pr-one .pr-rid { color: #b4bdfd; }
.pr-pic .pr-one .bdg--ok { background: rgba(143, 214, 168, .14); color: #8fd6a8; }
.pk__pic.pr-pic .pr-one .dc__row b.pr-rid { color: #b4bdfd; }
.pk__pic.pr-pic .pr-one .dc__row b.pr-rid { color: #b4bdfd !important; }
/* signed by us: all dark — the tile, the code window a step lighter, the result card a step lighter again;
   40 px between the text and the window */
.pb__t--dark { background: #111213; }
.pb__t--dark::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important; }
.pb__t--dark .pb__cap b { color: #fff; }
.pb__t--dark .pb__cap span { color: rgba(249, 250, 251, .7); }
.pb__t--dark .hk-sig { min-height: 330px; }
.pb__t--dark .hk-sig .hk-sig__cw { top: 40px; background: #1e1f21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.pb__t--dark .hk-sig__ok { background: #2a2b2e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.pb__t--dark .hk-sig__ok .rk-c { color: #e6e7e9; }
[data-theme="dark"] .pb__t--dark { background: #0b0b0c; }
@media (max-width: 767.98px) { .pb__t--dark .hk-sig { min-height: 270px; } .pb__t--dark .hk-sig .hk-sig__cw { top: 24px; } }
/* 15 events as the homepage «Nothing happens unseen» tile: blue, big title, the log at the bottom */
.pb__t.hk-blue { grid-column: span 7; min-height: 440px; padding: 40px; }
.hk-blue .vk__h { max-width: none; }
.hk-blue .vk__log { padding-top: 40px; }
@media (max-width: 1023.98px) { .pb__t.hk-blue { grid-column: span 12; } }
@media (max-width: 767.98px) { .pb__t.hk-blue { padding: 28px 24px; min-height: 0; } .hk-blue .vk__log span { gap: 12px; font-size: 12px; } }
.pb__t.hk-blue { background: var(--b-600); }
.pb__t.hk-blue::before { box-shadow: none; }
@media (max-width: 1023.98px) { .pb__t.hk-blue { grid-column: 1 / -1; } }
/* 15 events: the same type sizes as the tiles beside and below it */
.hk-blue .vk__h { font: 600 clamp(24px, 2vw, 28px)/1.15 var(--font); letter-spacing: -.018em; }
.hk-blue .vk__p { max-width: 34em; margin-top: 8px; font: 400 16px/1.5 var(--font); color: rgba(249, 250, 251, .82); }

/* ===== Developers pictures come alive once, when they first come in =====
   Each picture waits (only while JS runs the page: .bl without .bl-seen) and plays when it gets .bl-seen; the waiting
   state hides instantly, the showing state animates. Motion only (html.motion is not set for reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  /* HPP: the payment page rises, then the two other steps open out from behind it */
  html.motion .pw__row.bl:not(.bl-seen) .pw-fc--c { opacity: 0; translate: 0 48px; }
  html.motion .pw__row.bl:not(.bl-seen) .pw-fc--l, html.motion .pw__row.bl:not(.bl-seen) .pw-fc--r { opacity: 0; transform: translateY(-10px); }
  html.motion .pw__row.bl-seen .pw-fc--c { transition: opacity .5s .25s, translate .8s cubic-bezier(.2, .7, .2, 1) .25s; }
  html.motion .pw__row.bl-seen .pw-fc--l, html.motion .pw__row.bl-seen .pw-fc--r { transition: opacity .4s .75s, transform 1s cubic-bezier(.2, .8, .25, 1.05) .8s; }

  /* Direct API: the checkout card slides in, its button is pressed, then the request and the answer type out line by line */
  html.motion .pw__row.bl:not(.bl-seen) .pw__pic--api .pw-fl { opacity: 0; translate: -28px 0; }
  html.motion .pw__row.bl:not(.bl-seen) .pw__pic--api .pw-cw__code { clip-path: inset(0 0 100% 0); }
  html.motion .pw__row.bl-seen .pw__pic--api .pw-fl { transition: opacity .5s .25s, translate .8s cubic-bezier(.2, .7, .2, 1) .25s; }
  html.motion .pw__row.bl-seen .pw__pic--api .pw-fl .dw__btn { animation: dv-press .5s ease 1.05s; }
  html.motion .pw__row.bl-seen .pw__pic--api .pw-cw__code { clip-path: inset(0 0 0 0); transition: clip-path 1.8s steps(14, end) 1.35s; }

  /* endpoints: each card's rows come in one after another */
  html.motion .pe.bl:not(.bl-seen) .pe__r, html.motion .pe.bl:not(.bl-seen) .pe__h--2 { opacity: 0; translate: 0 8px; }
  html.motion .pe.bl-seen .pe__r, html.motion .pe.bl-seen .pe__h--2 { transition: opacity .45s calc(var(--g, 0ms) + var(--r, 0) * 80ms + 450ms), translate .6s cubic-bezier(.2, .7, .2, 1) calc(var(--g, 0ms) + var(--r, 0) * 80ms + 450ms); }
  .pe__g:nth-child(2) { --g: 140ms; } .pe__g:nth-child(3) { --g: 280ms; }
  .pe__g > :nth-child(2) { --r: 1; } .pe__g > :nth-child(3) { --r: 2; } .pe__g > :nth-child(4) { --r: 3; } .pe__g > :nth-child(5) { --r: 4; }

  /* safe to send twice: the log lines arrive one by one, then the one payment comes up */
  html.motion .pr-pic.bl:not(.bl-seen) .pr-l { opacity: 0; translate: -10px 0; }
  html.motion .pr-pic.bl:not(.bl-seen) .pr-one { opacity: 0; translate: 0 28px; }
  html.motion .pr-pic.bl-seen .pr-l { transition: opacity .4s, translate .5s cubic-bezier(.2, .7, .2, 1); }
  html.motion .pr-pic.bl-seen .pr-l:nth-child(2) { transition-delay: .4s; } html.motion .pr-pic.bl-seen .pr-l:nth-child(3) { transition-delay: 1s; }
  html.motion .pr-pic.bl-seen .pr-l:nth-child(4) { transition-delay: 1.6s; } html.motion .pr-pic.bl-seen .pr-l:nth-child(5) { transition-delay: 2.1s; }
  html.motion .pr-pic.bl-seen .pr-one { transition: opacity .5s 2.5s, translate .8s cubic-bezier(.2, .7, .2, 1) 2.5s; }
  .pr-one .pop { --pd: 1700ms !important; }

  /* signed by us: the check types out, then its result comes up and the ticks click in */
  html.motion .pb__t--dark.bl:not(.bl-seen) .hk-sig .pw-cw__code { clip-path: inset(0 0 100% 0); }
  html.motion .pb__t--dark.bl:not(.bl-seen) .hk-sig__ok { opacity: 0; translate: 0 24px; }
  html.motion .pb__t--dark.bl-seen .hk-sig .pw-cw__code { clip-path: inset(0 0 0 0); transition: clip-path 1.1s steps(4, end) .45s; }
  html.motion .pb__t--dark.bl-seen .hk-sig__ok { transition: opacity .5s 1.6s, translate .8s cubic-bezier(.2, .7, .2, 1) 1.6s; }
  .hk-sig__ok .pop { --pd: 700ms !important; } .hk-sig__ok .rk-c + .rk-c .pop { --pd: 950ms !important; }

  /* tried again: the schedule draws, the tries light up one by one (failed, failed, delivered), the log follows */
  html.motion .pb__t--12.bl:not(.bl-seen) .hk-rt__line::before { scale: 0 1; }
  html.motion .pb__t--12.bl:not(.bl-seen) .hk-rt__d { opacity: 0; }
  html.motion .pb__t--12.bl:not(.bl-seen) .hk-rt__d::before { scale: 0; }
  html.motion .pb__t--12.bl:not(.bl-seen) .hk-rt__log .dc__row { opacity: 0; translate: 0 8px; }
  .hk-rt__line::before { transform-origin: 0 50%; }
  html.motion .pb__t--12.bl-seen .hk-rt__line::before { transition: scale 1.4s cubic-bezier(.3, .7, .2, 1) .35s; }
  html.motion .pb__t--12.bl-seen .hk-rt__d, html.motion .pb__t--12.bl-seen .hk-rt__d::before { transition: opacity .3s, scale .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.45s + var(--k, 0) * 150ms); }
  .hk-rt__d:nth-child(3) { --k: 1; } .hk-rt__d:nth-child(4) { --k: 2; } .hk-rt__d:nth-child(5) { --k: 3; } .hk-rt__d:nth-child(6) { --k: 4; }
  .hk-rt__d:nth-child(7) { --k: 5; } .hk-rt__d:nth-child(8) { --k: 6; } .hk-rt__d:nth-child(9) { --k: 7; } .hk-rt__d:nth-child(10) { --k: 8; }
  html.motion .pb__t--12.bl-seen .hk-rt__log .dc__row { transition: opacity .4s, translate .5s cubic-bezier(.2, .7, .2, 1); }
  html.motion .pb__t--12.bl-seen .hk-rt__log .dc__row:nth-child(1) { transition-delay: .5s; }
  html.motion .pb__t--12.bl-seen .hk-rt__log .dc__row:nth-child(2) { transition-delay: .65s; }
  html.motion .pb__t--12.bl-seen .hk-rt__log .dc__row:nth-child(3) { transition-delay: .8s; }

  /* keys: the keys list in one by one, the new key comes up and its value types out */
  html.motion .pky.bl:not(.bl-seen) .pky__tbl .pky__r:not(.pky__th) { opacity: 0; translate: 0 8px; }
  html.motion .pky.bl:not(.bl-seen) .pky__new { opacity: 0; translate: 0 28px; }
  html.motion .pky.bl:not(.bl-seen) .pky__key { clip-path: inset(0 100% 0 0); }
  html.motion .pky.bl-seen .pky__tbl .pky__r { transition: opacity .4s calc(.3s + var(--r, 0) * 80ms), translate .5s cubic-bezier(.2, .7, .2, 1) calc(.3s + var(--r, 0) * 80ms); }
  .pky__tbl > :nth-child(3) { --r: 1; } .pky__tbl > :nth-child(4) { --r: 2; } .pky__tbl > :nth-child(5) { --r: 3; } .pky__tbl > :nth-child(6) { --r: 4; }
  .pky__tbl > :nth-child(7) { --r: 5; } .pky__tbl > :nth-child(8) { --r: 6; } .pky__tbl > :nth-child(9) { --r: 7; }
  html.motion .pky.bl-seen .pky__new { transition: opacity .5s 1.3s, translate .8s cubic-bezier(.2, .7, .2, 1) 1.3s; }
  html.motion .pky.bl-seen .pky__key { clip-path: inset(0 0 0 0); transition: clip-path .9s steps(32, end) 2s; }

  /* sandbox: the test payments come in one by one, then the rule they follow comes up */
  html.motion .psb.bl:not(.bl-seen) .psb-w__r:not(.psb-w__th) { opacity: 0; translate: 0 8px; }
  html.motion .psb.bl:not(.bl-seen) .psb__rule { opacity: 0; translate: 0 28px; }
  html.motion .psb.bl-seen .psb-w__r { transition: opacity .4s calc(.3s + var(--r, 0) * 90ms), translate .5s cubic-bezier(.2, .7, .2, 1) calc(.3s + var(--r, 0) * 90ms); }
  .psb-w__tbl > :nth-child(3) { --r: 1; } .psb-w__tbl > :nth-child(4) { --r: 2; } .psb-w__tbl > :nth-child(5) { --r: 3; } .psb-w__tbl > :nth-child(6) { --r: 4; }
  .psb-w__tbl > :nth-child(7) { --r: 5; } .psb-w__tbl > :nth-child(8) { --r: 6; } .psb-w__tbl > :nth-child(9) { --r: 7; } .psb-w__tbl > :nth-child(10) { --r: 8; }
  html.motion .psb.bl-seen .psb__rule { transition: opacity .5s 1.4s, translate .8s cubic-bezier(.2, .7, .2, 1) 1.4s; }
}
@keyframes dv-press { 0%, 100% { scale: 1; } 40% { scale: .95; filter: brightness(1.15); } }

/* 15 events: the log has ten lines, so each of them gets its own step (the homepage rule times only five, and lines 6–10
   jumped in together with the first) */
html.motion .hk-blue.is-wait .vk__log > span:nth-child(1) { transition-delay: 0.10s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(2) { transition-delay: 0.22s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(3) { transition-delay: 0.34s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(4) { transition-delay: 0.46s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(5) { transition-delay: 0.58s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(6) { transition-delay: 0.70s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(7) { transition-delay: 0.82s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(8) { transition-delay: 0.94s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(9) { transition-delay: 1.06s; }
html.motion .hk-blue.is-wait .vk__log > span:nth-child(10) { transition-delay: 1.18s; }
html.motion .hk-blue.is-play .vk__log > span:last-child { animation-delay: 1.4s; }

/* ===== One motion language for every subpage picture, classes set by home.js =====
   rows 80 ms apart from .3 s; a drawer slides in from the right at .6 s; the card laid over the picture comes up at
   1.3 s — the same timing as the Developers pictures. A picture waits while JS runs the page and plays once. */
@media (prefers-reduced-motion: no-preference) {
  html.motion :is(.bl:not(.bl-seen), .vgx.is-wait:not(.is-in)) .mx-row { opacity: 0; translate: 0 8px; }
  html.motion :is(.bl:not(.bl-seen), .vgx.is-wait:not(.is-in)) .mx-late { opacity: 0; translate: 0 28px; }
  html.motion :is(.bl:not(.bl-seen), .vgx.is-wait:not(.is-in)) .mx-side { opacity: 0; translate: 48px 0; }
  html.motion :is(.bl-seen, .vgx.is-in) .mx-row { transition: opacity .4s calc(var(--mo, 0s) + .3s + var(--mi, 0) * 80ms), translate .5s cubic-bezier(.2, .7, .2, 1) calc(var(--mo, 0s) + .3s + var(--mi, 0) * 80ms); }
  html.motion :is(.bl-seen, .vgx.is-in) .mx-late { transition: opacity .5s 1.3s, translate .8s cubic-bezier(.2, .7, .2, 1) 1.3s; }
  html.motion :is(.bl-seen, .vgx.is-in) .mx-side { transition: opacity .5s .6s, translate .8s cubic-bezier(.2, .7, .2, 1) .6s; }
  /* rows inside a drawer start once the drawer is in; the Risk check cards come in one after another, so do their rows */
  .mx-side { --mo: .7s; }
  .rk-vgx [data-n="2"] { --mo: .5s; } .rk-vgx [data-n="3"] { --mo: 1s; }
  /* the late card's own status waits for the card */
  .mx-late .pop { --pd: 1200ms !important; }
}
@media (prefers-reduced-motion: no-preference) { html.motion :is(.bl-seen, .vgx.is-in) .mx-side { transition: opacity .2s .6s, translate .8s cubic-bezier(.2, .7, .2, 1) .6s; } }

/* windows made wider for the leftward drift (.sl, --ext set by home.js): their content keeps its width and place */
.sl .pw-tbl { margin-right: calc(22px + var(--ext, 0px)); }
.sl .pw-top { padding-right: calc(22px + var(--ext, 0px)); }
.sl .pw-drw { right: var(--ext, 0px); }
.sl.pky__win .pky__tbl { padding-right: calc(22px + var(--ext, 0px)); }
.sl.psb-w .psb-w__tbl { margin-right: calc(22px + var(--ext, 0px)); }
.sl.pr-log .pr-l { padding-right: calc(22px + var(--ext, 0px)); }
/* the widened window's table runs to the window's end; the hero's
   disputes list carries two more of the portal's columns, Respond by and Opened, for that part */
.sl .pw-tbl { margin-right: 22px; }
.sl.pky__win .pky__tbl { padding-right: 22px; }
.sl.psb-w .psb-w__tbl { margin-right: 22px; }
.rh-tr { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr); }
@media (max-width: 767.98px) { .rh-win .rh-tr > :nth-child(6), .rh-win .rh-tr > :nth-child(7) { display: none; } }
/* phones */
.hk-s { display: none; font-style: normal; } .hk-l { font-style: normal; }
@media (max-width: 767.98px) {
  /* the HPP fan a little higher, clear of the tile's lower edge */
  .pw-fan { bottom: calc(-1 * var(--pwp) + 30px); }
  /* the Direct API code window reaches the tile's lower edge (the tile's padding is 28 px there, not 20) */
  .pw__pic--api .pw-cw { bottom: -30px; }
  /* the retry schedule fits the phone, no sideways scroll: short labels, a narrower name column */
  .hk-rt { overflow: visible; }
  .hk-rt__line { min-width: 0; }
  .hk-rt__line b { flex-basis: 64px; }
  .hk-rt__line::before { left: 64px; }
  .hk-rt__line:nth-child(2) .hk-rt__d { flex: 0 0 calc((100% - 64px) / 9); }
  .hk-rt__d { font-size: 11px; }
  .hk-l { display: none; } .hk-s { display: inline; }
}
@media (max-width: 767.98px) { .pw-fan { bottom: calc(-1 * var(--pwp) + 8px); } }
