/* Bitcoin payment section — scoped transplant of the supplied reference. */
.btcpay {
  --btc-bg: var(--lp-navy-bg, #081a2d);
  --btc-card: var(--lp-navy-panel, #0b2b45);
  --btc-card-inner: var(--lp-navy-glow, #123b58);
  --btc-text: #edf4fa;
  --btc-muted: #a7b8cb;
  --btc-orange: #F7931A;
  --btc-orange-soft: #FDBA74;
  --btc-sky: #1EA7E8;
  --btc-sky-hover: #45B8EF;
  --btc-line: rgba(255, 255, 255, 0.10);
  --btc-section-pad: clamp(64px, 10vw, 120px);
  --btc-top-gap: clamp(24px, 4vw, 56px);

  position: relative;
  overflow: hidden;
  background: var(--btc-bg);
  color: var(--btc-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: calc(var(--nav-h, 90px) + var(--btc-top-gap)) 16px var(--btc-section-pad);
  /* Let the section background reach the viewport top beneath the fixed nav.
     Its top padding already reserves the full navbar height for the copy. */
  scroll-margin-top: 0;
}

.btcpay *,
.btcpay *::before,
.btcpay *::after {
  box-sizing: border-box;
}

.btcpay__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.btcpay__copy,
.btcpay__visual {
  min-width: 0;
}

.btcpay__eyebrow {
  margin: 0 0 20px;
  color: var(--cme-blue-on-dark, #A9DFFF);
}

.btcpay__title {
  margin: 0 0 22px;
  color: var(--btc-text);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.btcpay__title span {
  color: var(--btc-orange);
}

.btcpay__lead {
  margin: 0 0 30px;
  max-width: 32em;
  color: var(--btc-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.btcpay__lead sup {
  font-size: 0.65em;
  margin-left: 0.15em;
}

.btcpay__list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 14px;
  color: var(--btc-text);
  font-size: 17px;
  font-weight: 500;
}

.btcpay__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.btcpay__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--btc-sky);
}

.btcpay__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.btcpay__fine-print {
  margin: 24px 0 0;
  color: var(--btc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.btcpay__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--btc-sky);
  color: #06213F;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btcpay__link {
  color: var(--btc-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 0 4px;
  border-bottom: 1.5px solid rgba(238, 242, 255, 0.55);
  transition: border-color 0.2s ease;
}

.btcpay__btn:focus-visible,
.btcpay__link:focus-visible {
  outline: 3px solid var(--btc-orange-soft);
  outline-offset: 4px;
}

.btcpay__visual {
  position: relative;
  width: 100%;
  perspective: 1400px;
}

.btcpay__visual::before {
  content: "";
  position: absolute;
  inset: 10% -10% -10% 15%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
  filter: blur(30px);
  z-index: 0;
}

.btcpay__card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  background: var(--btc-card);
  border: 1px solid var(--btc-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(-2deg);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.btcpay__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btcpay__card-logo {
  display: block;
  width: clamp(210px, 22vw, 300px);
  max-width: 68%;
  height: auto;
  /* The source SVG has 120px of transparent space on each side of its
     2015px canvas. Clip that built-in gutter and shift the artwork back by
     the same proportion so its visible edge follows the card content below. */
  clip-path: inset(0 5.96%);
  transform: translateX(-5.96%);
}

.btcpay__invoice-reference {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--btc-line);
  color: var(--btc-muted);
}

.btcpay__invoice-reference span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.btcpay__invoice-reference strong {
  color: var(--btc-text);
  font-family: "JetBrains Mono", "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btcpay__status {
  max-width: 100%;
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--btc-orange-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.btcpay__label {
  color: var(--btc-muted);
  font-size: 16px;
  margin: 0 0 4px;
}

.btcpay__amount {
  margin: 0 0 24px;
  color: var(--btc-text);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.btcpay__btc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--btc-card-inner);
  border: 1px solid var(--btc-line);
}

.btcpay__coin {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--btc-orange);
}

.btcpay__coin svg {
  width: 22px;
  height: 22px;
}

.btcpay__btc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.btcpay__btc-label {
  color: var(--btc-muted);
  font-size: 15px;
}

.btcpay__btc-value {
  font-family: "JetBrains Mono", "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btcpay__rate-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--btc-orange-soft);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  white-space: nowrap;
}

.btcpay__rate-state > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.btcpay__refresh {
  flex: none;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  margin: -6px -8px 0 -4px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--btc-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btcpay__refresh svg {
  width: 16px;
  height: 16px;
}

.btcpay__refresh[aria-busy="true"] svg {
  animation: btcpay-refresh-spin 0.8s linear infinite;
}

.btcpay__refresh:disabled {
  cursor: wait;
}

.btcpay__refresh:focus-visible {
  outline: 2px solid var(--btc-orange-soft);
  outline-offset: 2px;
}

@keyframes btcpay-refresh-spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
  .btcpay__btn:hover {
    background: var(--btc-sky-hover);
    transform: translateY(-1px);
  }

  .btcpay__link:hover {
    border-color: var(--btc-text);
  }

  .btcpay__refresh:hover:not(:disabled) {
    color: var(--btc-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--btc-line);
  }

  .btcpay__visual:hover .btcpay__card {
    transform: rotateY(-4deg) rotateX(2deg) rotateZ(-1deg);
  }
}

@media (max-width: 900px) {
  .btcpay__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btcpay__visual {
    max-width: 560px;
  }

  .btcpay__card {
    transform: rotateZ(-1.5deg);
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
  .btcpay__visual:hover .btcpay__card {
    transform: rotateZ(-1deg);
  }
}

@media (max-width: 480px) {
  .btcpay__card-top {
    flex-wrap: wrap;
  }

  .btcpay__status {
    margin-left: auto;
  }

  .btcpay__btc {
    flex-wrap: wrap;
  }

  .btcpay__actions {
    gap: 16px 28px;
  }

  .btcpay__btn {
    width: 100%;
  }
}

/* A tall payment section can linger near the journey observer's 36% exit
   threshold during touch scrolling. Mobile browser chrome changes the visible
   viewport too, so that state can repeatedly shift the whole card by 20px.
   Keep this section stationary on touch devices. Its radial shadow is already
   soft without a live 30px blur, which also avoids repainting that large
   layer while the page moves. */
@media (pointer: coarse) {
  .btcpay [data-journey-content] { transition: none; }
  .btcpay.is-journey-exiting [data-journey-content] {
    opacity: 1;
    transform: none;
  }
  .btcpay__visual::before { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btcpay__card,
  .btcpay__btn,
  .btcpay__link,
  .btcpay__refresh {
    transition: none;
  }

  .btcpay__refresh[aria-busy="true"] svg {
    animation: none;
  }
}
