/* /paid — builds on site.css (tokens, HUD, rows, the fill-in-the-blanks form). */

.pd-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--gutter) 80px;
}
.pd-jump {
  display: inline-flex;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.3s;
}
.pd-jump:hover { border-color: var(--signal); }
.pd-jump span { display: inline-block; transition: transform 0.4s var(--ease); }
.pd-jump:hover span { transform: translateY(3px); }
.pd-hero-card { justify-self: center; width: min(460px, 100%); }
.card.is-floating { animation: float 7s ease-in-out infinite; }
.card.is-floating.tilting { animation-play-state: paused; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -14px; rotate: 1deg; }
}
@media (max-width: 860px) {
  .pd-hero { grid-template-columns: 1fr; align-content: center; }
  .pd-hero-card { width: min(380px, 88%); justify-self: start; }
}
.pd-hero .label { padding: 0; margin-bottom: 24px; }
.pd-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 8.2vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.pd-title em { color: var(--dim); }
.pd-lede {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 34ch;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--dim);
  line-height: 1.45;
}
.pd-lede strong { color: var(--fg); font-weight: 500; }

.pd-how { padding: clamp(40px, 8vh, 96px) 0; }
.pd-how .row-t { font-size: clamp(48px, 8vw, 128px); }

.pd-join { padding: clamp(80px, 14vh, 160px) var(--gutter); min-height: 80svh; display: grid; align-content: center; }
.pd-join .ask-wrap { margin-top: 0; }

/* ---------- The minted card ---------- */
.mint { display: grid; justify-items: start; gap: 22px; }
.mint[hidden] { display: none; }
.card-stage { perspective: 1200px; width: min(560px, 100%); }
.card {
  position: relative;
  aspect-ratio: 1.586; /* a real card's proportions */
  border-radius: 22px;
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: var(--fg);
  background:
    radial-gradient(120% 90% at 0% 0%, #1b1b19 0%, transparent 55%),
    linear-gradient(135deg, #121211 0%, #070707 60%, #0e0e0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.card::after {
  /* fine grain, like printed stock */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-sheen {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(35% 35% at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, 0.16), transparent 70%),
              linear-gradient(115deg, transparent 40%, rgba(255, 59, 31, 0.07) 50%, transparent 60%);
  mix-blend-mode: screen;
}
.card-top, .card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.card-mark { color: var(--fg); font-weight: 500; letter-spacing: 0.34em; }
.card-bottom { letter-spacing: 0.12em; }
.card-bottom span:first-child { color: var(--fg); text-transform: none; letter-spacing: 0.02em; font-size: 15px; }
.card-code {
  position: relative;
  align-self: center;
  display: flex;
  gap: 0.06em;
  font-family: var(--serif);
  font-size: clamp(52px, 11vw, 104px);
  line-height: 1;
  letter-spacing: 0;
}
.card-code span {
  display: inline-block;
  min-width: 0.66em;
  text-align: center;
  transition: color 0.3s;
}
.card-code span.spin { color: var(--faint); }
.card-code span.set { animation: settle 0.5s var(--ease); }
@keyframes settle { from { transform: translateY(-8%); } to { transform: none; } }

.mint-link { color: var(--dim); word-break: break-all; font-size: 15px; }
.mint-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.pill:hover { border-color: var(--fg); }
.pill:first-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill:first-child:hover { background: transparent; color: var(--fg); }
.mint-note { color: var(--dim); max-width: 46ch; }
.mint-note em { color: var(--fg); }

.mint.in .card-stage { animation: cardIn 1.1s var(--ease) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) rotateX(28deg) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* ---------- Fine print ---------- */
.pd-rules { padding: 40px var(--gutter) clamp(80px, 14vh, 160px); }
.pd-rules .label { padding: 0; margin-bottom: 20px; }
.rules { list-style: none; display: grid; gap: 10px; max-width: 62ch; color: var(--dim); }
.rules li { padding-left: 22px; position: relative; }
.rules li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--dim); }

.foot-home { color: inherit; text-decoration: none; }
.foot-home:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; transform: none; }
  .card.is-floating { animation: none; }
  .mint.in .card-stage { animation: none; }
}

/* ---------- Hero: form on the left, live card on the right ---------- */
.pd-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.pd-copy { display: grid; align-content: center; }
.pd-copy .ask-wrap { margin-top: clamp(36px, 5vw, 64px); max-width: none; }
.pd-copy .ask-line { font-size: clamp(24px, 2.7vw, 44px); }
.pd-copy .ask-foot { margin-top: 26px; }
.pd-hero-card { position: sticky; top: 18vh; align-self: center; }

/* Sealed: the code is blurred and keeps shuffling; it only resolves when you mint. */
.card-code span { transition: filter 0.9s var(--ease), opacity 0.9s var(--ease), color 0.3s; }
.card.sealed .card-code span { filter: blur(7px); opacity: 0.9; }
.card.minting .card-code span { filter: blur(4px); opacity: 0.8; }
.card-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.card:not(.sealed) .card-seal { opacity: 0; transform: translate(-50%, -30%); pointer-events: none; }
.card-bottom .placeholder { color: var(--faint); font-style: italic; }
.card.settled { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 59, 31, 0.25), 0 0 80px -20px rgba(255, 59, 31, 0.35); }

.minted { display: grid; justify-items: start; gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.minted[hidden] { display: none; }
.minted-lead { font-family: var(--serif); font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.minted.in { animation: lineIn 1s var(--ease) both; }

@media (max-width: 860px) {
  /* Phones: intro, then the card, then the form, so the card fills in where you can see it. */
  .pd-hero { grid-template-columns: 1fr; gap: 0; align-content: start; padding-top: 104px; }
  .pd-copy { display: contents; }
  .pd-copy > .label { order: 1; }
  .pd-title { order: 2; }
  .pd-lede { order: 3; }
  .pd-hero-card { order: 4; position: relative; top: auto; width: min(420px, 100%); justify-self: start; margin-top: 36px; }
  .pd-copy > .ask-wrap, .pd-copy > .minted { order: 5; }
  .pd-copy .ask-line { font-size: clamp(24px, 6.4vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .card.sealed .card-code span { transition: none; }
}

/* The code scales with the card itself, not the window, so it always fits. */
.card { container-type: inline-size; grid-template-columns: minmax(0, 1fr); }
.card-code { font-size: 15.5cqw; justify-content: center; gap: 0.04em; }
.card-code span { min-width: 0.62em; }
