/* JustSendBitcoin.com */

:root {
  --void:      #08080A;
  --graphite:  #131317;
  --recess:    #0F0F13;
  --text:      #F4F4F5;
  --muted:     #97979F;
  --faint:     #64646D;
  --hairline:  rgba(255, 255, 255, 0.075);
  --hairline-2:rgba(255, 255, 255, 0.13);
  --orange:    #F7931A;
  --orange-hi: #FFB24D;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------
   Ambient depth: a warm orb behind the card, a faint grid that
   fades out at the edges, and a vignette. All CSS, no images.
   --------------------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 34rem at 50% 38%, rgba(247, 147, 26, 0.13), transparent 62%),
    radial-gradient(28rem 22rem at 50% 20%, rgba(247, 147, 26, 0.07), transparent 70%);
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 42%, #000 20%, transparent 78%);
          mask-image: radial-gradient(70% 55% at 50% 42%, #000 20%, transparent 78%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.75) 100%);
}

/* ---------------------------------------------------------------
   Masthead
   --------------------------------------------------------------- */
.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1.125rem, 3.5vw, 1.375rem) 1.25rem 0;
}

.masthead-mark {
  display: block;
}

.masthead-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Stage
   --------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 7vw, 3rem) 1.25rem clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}

/* Emblem: the supplied Bitcoin coin mark. The only thing on the page
   that moves on its own — a slow glow behind it, nothing on the mark itself. */
.emblem {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
}

.emblem img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.emblem::before {
  content: "";
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.34), transparent 64%);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */
.headline {
  margin: clamp(1.25rem, 4.5vw, 1.625rem) 0 0;
  font-size: clamp(2.375rem, 10.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-transform: uppercase;
}

.headline span { display: block; }

.lede {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   The card
   --------------------------------------------------------------- */
.card {
  margin: clamp(1.75rem, 6vw, 2.125rem) auto 0;
  max-width: 20.75rem;
  padding: clamp(1.125rem, 4.5vw, 1.5rem);
  border: 1px solid var(--hairline-2);
  border-radius: 1.375rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%),
    var(--graphite);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(247, 147, 26, 0.10),
    0 1.75rem 4rem -1.5rem rgba(247, 147, 26, 0.28),
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(247, 147, 26, 0.18),
      0 2rem 4.5rem -1.5rem rgba(247, 147, 26, 0.38),
      0 1.75rem 4rem rgba(0, 0, 0, 0.6);
  }
}

.card-label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--faint);
}

/*
  The white tile IS the QR's quiet zone. The supplied QR image ships with a
  zero-pixel margin, so this padding is what lets a camera lock onto the code.
  It is ~13% of the code's width, comfortably over the 4-module minimum.
  Do not reduce it below 1.5rem.
*/
.qr-tile {
  padding: clamp(1.625rem, 6vw, 1.875rem);
  border-radius: 0.875rem;
  background: #FFFFFF;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.qr-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.address {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 3.1vw, 0.8125rem);
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--text);
  word-break: break-all;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.address.is-copied { color: var(--orange-hi); }

/* ---------------------------------------------------------------
   Actions
   --------------------------------------------------------------- */
.actions {
  margin: 0.875rem auto 0;
  max-width: 20.75rem;
  display: grid;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
}

.btn-icon {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon-check { display: none; }
.btn.is-copied .btn-icon-copy { display: none; }
.btn.is-copied .btn-icon-check { display: block; }

.btn-primary {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: #150F05;
  box-shadow: 0 0.5rem 1.5rem -0.5rem rgba(247, 147, 26, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #FFC066, var(--orange-hi));
  box-shadow: 0 0.625rem 1.75rem -0.5rem rgba(247, 147, 26, 0.7);
}

.btn-primary.is-copied {
  background: transparent;
  border-color: rgba(247, 147, 26, 0.5);
  color: var(--orange-hi);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--hairline-2);
  color: var(--muted);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: rgba(247, 147, 26, 0.4);
  color: var(--text);
}

/* Screen-reader announcement only. */
.status {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Verdict / why / colophon
   --------------------------------------------------------------- */
.verdict { margin: clamp(2.75rem, 9vw, 3.75rem) 0 0; }

.verdict-line {
  margin: 0;
  font-size: clamp(1.125rem, 4.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.verdict-terms {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.verdict-close {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.why {
  margin: clamp(3rem, 10vw, 4.25rem) 0 0;
  padding-top: clamp(2rem, 7vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.why h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.why p {
  margin: 0.3125rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.colophon {
  margin: clamp(3rem, 10vw, 4.25rem) 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--faint);
}

.colophon p { margin: 0; }

.colophon-name {
  margin-bottom: 0.375rem !important;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Motion: one load reveal, one slow ambient breath. Nothing else.
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .emblem, .headline, .lede, .card, .actions, .verdict, .why, .colophon {
    animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .emblem   { animation-delay: 0.05s; }
  .headline { animation-delay: 0.14s; }
  .lede     { animation-delay: 0.21s; }
  .card     { animation-delay: 0.30s; }
  .actions  { animation-delay: 0.38s; }
  .verdict  { animation-delay: 0.46s; }
  .why      { animation-delay: 0.52s; }
  .colophon { animation-delay: 0.58s; }

  .emblem::before {
    animation: breathe 9s ease-in-out 1.2s infinite alternate;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes breathe {
  from { opacity: 0.4;  transform: scale(0.94); }
  to   { opacity: 0.85; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
