/* ============================================================
   Beem Card — photographic asset renderer.
   Per docs/card-system-master-prompt.md the cards themselves are
   real PNGs (no synthetic SVG/CSS). This stylesheet sizes,
   flips, and frames them.
   ============================================================ */

/* Photo card — single side, ISO ID-1 ratio (1.586:1) */
.bpc {
  position: relative;
  perspective: 1200px;
  margin: 0 auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bpc-flippable { cursor: pointer; }
.bpc-flippable:focus-visible { outline: 2px solid var(--accent-orange, #E8872C); outline-offset: 6px; border-radius: 14px; }

.bpc-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bpc.is-flipped .bpc-flip { transform: rotateY(180deg); }

.bpc-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  /* The PNGs already have soft shadow under the card via natural lighting,
     but the iso pair PNGs do — single-side PNGs don't, so add a subtle one. */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 48px -16px rgba(0,0,0,0.55),
    0 8px 16px -8px rgba(0,0,0,0.45);
}
.bpc-back { transform: rotateY(180deg); }

.bpc-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The reference PNGs include the rounded corners, but cover-fitting can
     still leave a 1px hairline on some browsers. */
  border-radius: 14px;
}

/* ---- Placeholder card (asset pending) ---- */
.bpc-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  font-family: var(--font-display);
}
.bpc-ph-corner {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bpc-ph-corner-tl { align-self: flex-start; }
.bpc-ph-corner-br { align-self: flex-end; opacity: 0.5; font-size: 10px; letter-spacing: 0.18em; }
.bpc-ph-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  gap: 4px;
}
.bpc-ph-tier {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.bpc-ph-color {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.005em;
  opacity: 0.7;
}
.bpc-ph-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  opacity: 0.7;
}
.bpc-ph-hex {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  margin-top: 6px;
  opacity: 0.5;
}

/* ============================================================
   Iso pair (front + back together) — used for hero & two-up
   ============================================================ */
.bpi {
  position: relative;
  margin: 0 auto;
}
.bpi-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Lift slightly off the page background */
  filter: drop-shadow(0 28px 48px rgba(0,0,0,0.45));
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bpi:hover .bpi-img { transform: translateY(-4px); }

/* Iso placeholder — two layered card silhouettes */
.bpi-placeholder { position: relative; }
.bpi-ph-card {
  position: absolute;
  width: 36%;
  height: 88%;
  border-radius: 14px;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,0.55);
}
.bpi-ph-back  { right: 18%; top: 6%;  transform: rotate(8deg); opacity: 0.85; }
.bpi-ph-front { left: 18%;  top: 12%; transform: rotate(-6deg); display: flex; align-items: center; justify-content: center; }
.bpi-ph-label { text-align: center; color: #0A0A0B; padding: 12px; }
.bpi-ph-tier {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.bpi-ph-status {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; margin-top: 6px; opacity: 0.65;
}

/* ============================================================
   Two-up (Beem section) — one prepaid + one premium
   ============================================================ */
.bpc-twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin: 32px auto 16px;
  max-width: 1380px;
}
@media (max-width: 900px) {
  .bpc-twoup { grid-template-columns: 1fr; gap: 48px; }
}
.bpc-twoup-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bpc-twoup-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bpc-twoup-product { color: var(--fg-muted, rgba(250,250,247,0.6)); }
.bpc-twoup-tier { font-weight: 600; margin-left: 6px; }

/* ============================================================
   Hero / single mount (homepage hero, Verify-once scene, etc.)
   ============================================================ */
.hero-card-mount,
.beem-card-mount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 8px auto 56px;
}
.hero-card-mount { margin-top: 64px; }
.beem-card-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
  text-align: center;
}

/* ============================================================
   BitidPass — digital pass tile (NOT a Mastercard)
   ============================================================ */
.bp {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
  font-family: var(--font-display);
  user-select: none;
}
.bp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.05;
  pointer-events: none;
}
.bp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
}
.bp-brand { display: inline-flex; align-items: baseline; gap: 8px; }
.bp-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.bp-tier-meta { text-align: right; }
.bp-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 1.2;
}
.bp-tier-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.bp-center {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
  align-self: center;
  margin-top: 4px;
  z-index: 1;
}
.bp-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  z-index: 1;
}
.bp-bottom > div:last-child { text-align: right; }
.bp-v {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.bp-prog {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 12px;
  z-index: 2;
}
.bp-prog-track {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  opacity: 0.18;
  border-radius: 1px;
}
.bp-prog-fill {
  position: absolute; left: 0; bottom: 0;
  height: 2px;
  border-radius: 1px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bp-prog-pct {
  position: absolute; right: 0; bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  line-height: 1;
}

/* ============================================================
   /assets-checklist page
   ============================================================ */
.ach-page { padding: 96px var(--pad-x) 120px; }
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
@media (max-width: 1000px) { .ach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ach-grid { grid-template-columns: 1fr; } }
.ach-card {
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.10));
  border-radius: 14px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ach-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ach-tier {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ach-swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ach-rows { display: grid; gap: 6px; margin-top: 4px; }
.ach-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ach-row .l { color: var(--fg-muted); }
.ach-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.10em;
  border: 1px solid currentColor;
}
.ach-pill.is-done { color: #BFFF00; }
.ach-pill.is-pending { color: #FF6A00; }
.ach-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.ach-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}
@media (max-width: 720px) { .ach-summary { grid-template-columns: repeat(2, 1fr); } }
.ach-stat {
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.10));
  border-radius: 12px;
  padding: 18px;
}
.ach-stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ach-stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 8px;
}
