
.foo-inline-hero { padding: 132px 0 64px; }
.foo-inline-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  grid-template-areas: "copy pay" "stats stats";
  align-items: center;
  gap: 48px 64px;
  max-width: none;
  text-align: left;
  animation: none;
}
.foo-hero-copy { grid-area: copy; min-width: 0; }
.foo-inline-hero .hero-title { font-size: clamp(40px, 4.1vw, 58px); text-wrap: balance; }
.foo-inline-hero .hero-subtitle { margin: 0; font-size: 20px; }
.foo-inline-hero .hero-stats { grid-area: stats; text-align: center; }
#pay { grid-area: pay; min-width: 0; scroll-margin-top: 96px; font: inherit; text-align: left; }
#pay [hidden] { display: none !important; }
#pay .pr-card { padding: 24px; border: 1px solid var(--border-secondary); border-radius: 16px; background: var(--bg-card); }
#pay .pr-devices { margin: 0 0 8px; color: #b6ddff; font-size: 14px; }
#pay fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#pay .pr-h { margin-bottom: 14px; font-size: 22px; font-weight: 700; }
#pay .pr-list { display: grid; gap: 6px; }
#pay .pr-row {
  display: flex; align-items: center; gap: 10px;
  position: relative; min-height: 46px; padding: 9px 12px;
  border: 1px solid #44444d; border-radius: 8px;
  background: #1a1a1a; cursor: pointer; font-size: 15px;
}
#pay .pr-row:has(input:checked), #pay .pr-row.is-picked { border-color: #8b91ff; background: #25243c; }
#pay .pr-row:has(input:disabled) { cursor: default; }
#pay .pr-row:hover { border-color: #a5a9ff; }
#pay input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: #858bff; flex: none; }
#pay .pr-dot { display: none; }
#pay .pr-sum { margin-left: auto; font-weight: 700; white-space: nowrap; }
#pay .pr-field-label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 500; }
#pay input[type=email] {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: white;
  background: #0f0f12; border: 1px solid #62626d; border-radius: 8px;
}
#pay input[type=email]::placeholder { color: #a1a1aa; opacity: 1; }
#pay input:disabled { opacity: .75; }

#pay .btn { max-width: none; min-height: 44px; font: inherit; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; }
#pay .pr-submit { display: flex; justify-content: center; width: 100%; min-height: 48px; margin: 12px auto 10px; background: var(--gradient-secondary); border: 0; border-radius: 8px; font-size: 16px; font-weight: 600; box-shadow: none; }
#pay .pr-submit:hover { background: linear-gradient(135deg, #2350cc, #7132cf); transform: none; }
#pay .pr-submit:disabled { opacity: .65; cursor: wait; }
#pay .pr-submit[aria-busy=true] { opacity: 1; cursor: wait; }
#pay .pr-foot { display: flex; align-items: center; }
#pay .pr-method { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #c3c3ce; }
#pay .pr-method input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#pay .pr-method .pm-ico { width: 18px; height: 24px; flex: none; }
#pay .pr-app { display: none; }
#pay .k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#pay .pay-legal { margin-top: 4px; color: #b6b6c2; font-size: 12px; line-height: 1.6; }
#pay .pay-legal a { color: #c9caff; text-decoration: underline; text-underline-offset: 3px; }
#pay .pay-status { margin-top: 10px; color: #c3c3ce; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#pay .pay-status:empty { display: none; }
#pay .pay-status[data-tone=err] { color: #ffb5bc; }
#pay .pay-after { display: grid; gap: 8px; margin-top: 12px; }
#pay[data-pending] .pr-submit { display: none; }
#pay .pr-row:not(.is-picked):has(input:disabled) { opacity: .6; }
#pay .pr-row:has(input:disabled):hover { border-color: #44444d; }
#pay .pr-row.is-picked:has(input:disabled):hover { border-color: #8b91ff; }
#pay .pay-after .btn-primary { min-height: 48px; background: var(--gradient-secondary); border: 0; border-radius: 8px; box-shadow: none; font-size: 16px; font-weight: 600; }
#pay .pay-after .btn-primary:hover { background: linear-gradient(135deg, #2350cc, #7132cf); transform: none; box-shadow: none; }
#pay .pay-after .btn-ghost { min-height: 48px; font-size: 15px; font-weight: 500; }
#pay .pay-after .btn-ghost:hover { border-color: #a5a9ff; background: #1f1f26; transform: none; }
#pay .pay-after .btn-ghost:disabled { opacity: .65; cursor: wait; }
#pay .pay-after-tab { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: #c9caff; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
#pay .btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid #62626d; border-radius: 8px; color: white; background: transparent; }
#pay :is(input, button, a):focus-visible { outline: 3px solid #b9bcff; outline-offset: 3px; }
#pay .pr-row:has(input:focus-visible) { outline: 3px solid #b9bcff; outline-offset: 2px; }
#pay .pay-done { padding: 24px; border: 1px solid #71b99c; border-radius: 16px; background: #12231c; color: white; overflow-wrap: anywhere; }
#pay[data-state=success] .pr-card { display: none; }
#pay .pay-done strong { display: block; margin: 12px 0; font-size: 24px; }
#pay .pay-done p { margin-bottom: 12px; }
#pay .done-actions { display: grid; gap: 10px; }
#pay .pay-modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 24px; border: 1px solid #62626d; border-radius: 16px;
  color: white; background: #161616; font: inherit; overflow: auto; overscroll-behavior: contain;
}
#pay .pay-modal:focus { outline: none; }
#pay .pay-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
#pay .pay-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
#pay .pay-modal-head > div { min-width: 0; }
#pay .pay-modal-head .meta { font-size: 14px; color: #c3c3ce; }
#pay .pay-modal-title { margin: 8px 0 4px; font-size: 32px; line-height: 1.2; }
#pay .pay-modal-term { color: #c3c3ce; font-size: 14px; }

#pay .pay-modal-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: #c3c3ce; background: transparent; cursor: pointer; }
#pay .pay-modal-close:hover { background: var(--bg-card-hover); color: white; }
#pay .pay-modal-wait { display: none; padding: 40px 0; text-align: center; }
#pay .pay-wait-title { margin: 14px 0 8px; font-weight: 600; font-size: 20px; }
#pay .pay-wait-note { color: #c3c3ce; font-size: 14px; }
#pay .pay-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid #525266; border-top-color: #b9bcff; border-radius: 50%; animation: foo-pay-spin 1s linear infinite; }
#pay .pay-modal[data-phase=creating] .pay-modal-wait,
#pay .pay-modal[data-phase=frame] .pay-modal-wait,
#pay .pay-modal[data-phase=fallback] .pay-modal-wait { display: block; }
#pay .pay-modal[data-phase=creating] :is(.pay-modal-hint,.pay-modal-open,.pay-modal-foot,.pay-modal-status),
#pay .pay-modal[data-phase=frame] :is(.pay-modal-hint,.pay-modal-open,.pay-modal-foot),
#pay .pay-modal[data-phase=fallback] :is(.pay-modal-hint,.pay-modal-open,.pay-modal-foot,.pay-modal-status) { display: none; }
#pay .pay-modal[data-mode=frame] :is(.pay-modal-hint-mobile,.pay-modal-open,.pay-wait-mobile),
#pay .pay-modal[data-mode=app] :is(.pay-modal-hint-desktop,.pay-wait-desktop) { display: none; }
#pay .pay-modal-hint { margin: 20px 0 16px; font-size: 14px; color: #dddde6; }
#pay .pay-qr { position: relative; width: min(100%, 310px); margin: 18px auto; background: white; border-radius: 8px; }
#pay .pay-qr-code svg { display: block; width: 100%; height: auto; }
#pay .pay-qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border: 4px solid white; border-radius: 8px; background: white; }
#pay .pay-qr-logo svg { width: 25px; height: 31px; }
#pay .pay-frame { width: 100%; height: 440px; margin-top: 16px; border: 0; background: white; }
#pay .pay-modal-open { display: flex; justify-content: center; width: 100%; max-width: none; min-height: 48px; margin: 16px 0; background: var(--gradient-secondary); border: 0; border-radius: 8px; box-shadow: none; font-weight: 600; }
#pay .pay-modal-open:hover { transform: none; box-shadow: none; }
#pay .pay-modal-foot { margin-top: 12px; font-size: 14px; color: #c3c3ce; }
#pay .pay-modal-foot a { display: inline-flex; align-items: center; min-height: 44px; color: #c9caff; text-decoration: underline; }
#pay .pay-fallback { padding: 18px 24px; border: 1px solid #62626d; border-radius: 12px; }
#pay .pay-fallback a { display: inline-flex; align-items: center; min-height: 44px; color: #c9caff; }
#pay .pay-hint { margin-bottom: 12px; }
@keyframes foo-pay-spin { to { transform: rotate(360deg); } }
@media (max-width: 959px) {
  .foo-inline-hero { padding-top: 108px; }
  .foo-inline-hero .hero-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "pay" "stats"; gap: 26px; max-width: 600px; }
  .foo-inline-hero .hero-title { font-size: 42px; }
  .foo-inline-hero .hero-subtitle { font-size: 17px; }
}
@media (max-width: 719px), (hover: none) and (pointer: coarse) {
  #pay .pr-qr { display: none; }
  #pay .pr-app { display: inline; }
}
@media (max-width: 480px) {
  .foo-inline-hero { padding: 94px 0 44px; }
  .foo-inline-hero .hero-content { gap: 20px; }
  .foo-inline-hero .hero-badge { margin-bottom: 12px; padding: 6px 10px; font-size: 12px; }
  .foo-inline-hero .hero-title { margin-bottom: 12px; font-size: 32px; line-height: 1.13; }

  .foo-inline-hero .hero-subtitle { font-size: 14px; line-height: 1.5; min-block-size: 3lh; }
  .foo-inline-hero .hero-stats { margin-top: 10px; gap: 24px; }
  #pay .pr-card { padding: 16px; }
  #pay .pr-h { margin-bottom: 10px; font-size: 20px; }
  #pay .pr-row { min-height: 44px; padding-block: 8px; }
  #pay .pr-field-label { margin-top: 12px; }
  #pay .pay-modal { padding: 20px; }
  #pay .pay-modal-head { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.foo-inline-hero) { scroll-behavior: auto; }
  .foo-inline-hero *, .foo-inline-hero *::before, .foo-inline-hero *::after { animation: none !important; transition: none !important; }
}
