/* ==========================================================================
   Spending PIVX — where the coin is actually accepted.
   Adds on top of pivx-simple-pages.css.
   ========================================================================== */

/* ------------------------------------------------------------- hero ----- */
/* No brief column on this page — let the copy use the full width. */
body.pivx-spending-page .simple-hero--solo {
  grid-template-columns: minmax(0, 1fr);
}

body.pivx-spending-page .simple-hero--solo .simple-hero__copy > p {
  max-width: 680px;
}

body.pivx-spending-page .simple-hero--solo .simple-hero__copy h2 {
  max-width: 760px;
}

/* --------------------------------------------------- section headings --- */
.spend-head {
  display: flex;
  gap: 26px;
  align-items: end;
  justify-content: space-between;
  margin-top: 28px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(var(--page-secondary-rgb), 0.16);
}

.spend-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--page-secondary);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.info.pivx .spend-head h2 {
  margin: 0;
  padding: 0;
  color: #f6f4fb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.1vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  border: 0;
}

.spend-head p {
  max-width: 420px;
  margin: 0;
  color: #a8b1bd;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --------------------------------------------------- provider cards ----- */
.spend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.spend-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.spend-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--page-accent-rgb), 0.13), transparent 52%),
    linear-gradient(160deg, rgba(var(--page-accent-rgb), 0.07), rgba(6, 10, 18, 0.94));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* the whole card is the link */
body.info.pivx.pivx-simple-page a.spend-card {
  color: inherit;
  text-decoration: none;
}

.spend-card:hover {
  border-color: rgba(var(--page-accent-rgb), 0.48);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24), 0 0 20px rgba(var(--page-accent-rgb), 0.09);
  transform: translateY(-2px);
}

.spend-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-bottom: 14px;
}

.spend-card__logo img {
  width: auto;
  height: 40px;
  max-width: 236px;
  object-fit: contain;
}

/* FlokiNET ships a near-black wordmark — force it to white on the dark card. */
.spend-card__logo--white img { filter: brightness(0) invert(1); }

.spend-card__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #b8c2ce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px dashed rgba(var(--page-secondary-rgb), 0.34);
  border-radius: 12px;
  background: rgba(var(--page-secondary-rgb), 0.05);
}

.spend-card__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--page-secondary);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.spend-card h3 {
  margin: 0 0 7px;
  color: #f5f2fb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.15;
  text-align: center;
}

.spend-card p {
  margin: 0;
  color: #a8b2be;
  font-size: 0.89rem;
  line-height: 1.52;
  text-align: center;
}

body.info.pivx.pivx-simple-page .spend-card__link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 14px;
  color: var(--page-secondary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 160ms ease, gap 160ms ease;
}

.spend-card:hover .spend-card__link { gap: 9px; color: #fff; }

.spend-card__link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spend-card__status {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: #6f7a87;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.spend-grid > .spend-note { margin-top: 0; }

/* ------------------------------------------------------------- steps ---- */
.spend-steps {
  counter-reset: spend-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.spend-steps li {
  counter-increment: spend-step;
  padding: 20px;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--page-accent-rgb), 0.08), rgba(5, 9, 16, 0.85));
}

.spend-steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  content: counter(spend-step, decimal-leading-zero);
  place-items: center;
  color: #06100d;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 50%;
  background: var(--page-secondary);
  box-shadow: 0 0 16px rgba(var(--page-secondary-rgb), 0.45);
}

.spend-steps b {
  display: block;
  margin-bottom: 6px;
  color: #f3f0ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.spend-steps p {
  margin: 0;
  color: #a9b3bf;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- notes ---- */
.spend-note {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px dashed rgba(var(--page-accent-rgb), 0.3);
  border-radius: 14px;
  background: rgba(var(--page-accent-rgb), 0.045);
  color: #b3bcc9;
  font-size: 0.9rem;
  line-height: 1.6;
}

.spend-note strong { color: #fff; }

body.info.pivx.pivx-simple-page .spend-note a {
  color: #cfc0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------------- CTA ----- */
.spend-cta {
  position: relative;
  margin-top: 26px;
  padding: 36px 30px 38px;
  overflow: hidden;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--page-secondary-rgb), 0.16), transparent 62%),
    linear-gradient(150deg, rgba(var(--page-accent-rgb), 0.1), rgba(6, 10, 18, 0.95));
  text-align: center;
}

.spend-cta span {
  display: block;
  margin-bottom: 10px;
  color: var(--page-secondary);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spend-cta strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 0 34px rgba(var(--page-secondary-rgb), 0.3);
}

.spend-cta p {
  max-width: 560px;
  margin: 12px auto 0;
  color: #b2bcc7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.spend-cta .simple-action-row { margin-top: 20px; }

/* --------------------------------------------------- reveal on scroll --- */
body.spend-reveal-ready .spend-head,
body.spend-reveal-ready .spend-grid,
body.spend-reveal-ready .spend-steps,
body.spend-reveal-ready .spend-note,
body.spend-reveal-ready .spend-cta {
  opacity: 0;
}

body.spend-reveal-ready .is-revealed {
  opacity: 1;
  animation: spend-rise 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) forwards;
}

@keyframes spend-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .spend-head { display: block; }
  .spend-head p { margin-top: 10px; max-width: none; }
  .spend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spend-grid--two { grid-template-columns: 1fr; }
  .spend-steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .spend-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.spend-reveal-ready .spend-head,
  body.spend-reveal-ready .spend-grid,
  body.spend-reveal-ready .spend-steps,
  body.spend-reveal-ready .spend-note,
  body.spend-reveal-ready .spend-cta { opacity: 1; }

  body.spend-reveal-ready .is-revealed { animation: none; }
}
