/* How to pay, in "The Deck" look: a big title block, sections on rules, the apps as cards to pick, a guide's steps
   with big gold numbers, and the way back to the plan as the one gold button. */
main { max-width: 1100px; padding-top: 34px; }
.pay-wrap { max-width: 46rem; margin: 0 auto; }
.pay-wrap > p:first-child a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 .95rem/1 var(--display); color: var(--text-dim); text-decoration: none; }
.pay-wrap > p:first-child a::before { content: ""; width: 18px; height: 18px; background: var(--accent); -webkit-mask: var(--pay-back) center / contain no-repeat; mask: var(--pay-back) center / contain no-repeat; }
.pay-wrap > p:first-child a:hover { color: var(--text); }
.pay-wrap h1 { margin: 20px 0 0; font: 800 clamp(2.8rem, 8vw, 4.6rem)/.92 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.pay-wrap h1 + .dim { margin: 18px 0 0; max-width: 34em; font-size: 1.12rem; line-height: 1.55; }

.pay-item { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.pay-item h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 700 .8rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.pay-item h2::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; flex: none; }
.pay-item p, .pay-item li { font-size: 1.04rem; line-height: 1.7; color: var(--text-dim); text-wrap: pretty; }
.pay-item p:first-of-type { color: var(--text); }
.pay-item p + p { margin-top: 1em; }

/* A guide's steps: big gold numbers down a line. */
.pay-item ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.pay-item ol li { position: relative; counter-increment: step; padding: 0 0 26px 62px; color: var(--text); }
.pay-item ol li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-fill); color: var(--on-accent); font: 800 1.15rem/1 var(--display); letter-spacing: -.03em;
}
.pay-item ol li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 2px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pay-item ol li:last-child { padding-bottom: 0; }
.pay-item ol li:last-child::after { display: none; }

/* The apps: cards to pick, an arrow on each. */
.pay-apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pay-apps a {
  position: relative; display: block; min-height: 44px; padding: 18px 56px 18px 20px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .35s var(--spring);
}
.pay-apps a::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; background: var(--accent);
  -webkit-mask: var(--pay-on) center / contain no-repeat; mask: var(--pay-on) center / contain no-repeat; transition: transform .35s var(--spring);
}
.pay-apps a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pay-apps a:hover::after { transform: translateX(3px); }
.pay-apps strong { display: block; font: 800 1.3rem/1.15 var(--display); letter-spacing: -.025em; }
.pay-apps span { display: block; margin-top: 4px; color: var(--text-dim); font-size: .95rem; line-height: 1.45; }
@media (min-width: 760px) { .pay-apps { grid-template-columns: 1fr 1fr; } }

.pay-wrap > .dim.small { margin-top: 30px; }
.pay-foot { margin-top: 36px; padding: 26px 0 10px; border-top: 1px solid var(--line); display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.pay-foot a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pay-foot .btn { min-width: 180px; }
:root {
  --pay-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --pay-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}
@media (max-width: 600px) {
  main { padding-top: 16px; }
  .pay-item { margin-top: 36px; }
  .pay-item ol li { padding-left: 54px; }
  .pay-foot .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-apps a, .pay-apps a::after { transition: none; }
}
