/* ═══════════════════════════════════════════════════════════════════════
   MemeCoin P0 — TBA Buy (hype, not dead) + Robinhood Chain badge
   States: prelaunch (default) · live (CA injected / .link-tba removed)
   Keep #contractAddr intact for deploy-site.js inject.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Buy CTA robinhood ─────────────────────────────────────────────────────── */
.buy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid currentColor;
  line-height: 1.2;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.buy-cta:hover { transform: translateY(-1px); }

.buy-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

/* ── Prelaunch: loud hype (NOT muted/disabled look) ───────────────────── */
.buy-cta--prelaunch,
a.buy-cta.buy-cta--prelaunch.link-tba,
a.link-tba.buy-cta.buy-cta--prelaunch {
  opacity: 1 !important;
  pointer-events: auto !important; /* allow click → notify / placeholder */
  cursor: pointer !important;
  filter: none !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 200, 60, 0.35),
    0 0 42px rgba(255, 120, 40, 0.22);
  animation: buy-cta-pulse 2.4s ease-in-out infinite;
}

.buy-cta--prelaunch::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 200, 80, 0.45);
  pointer-events: none;
  opacity: 0.7;
}

/* Override the global dead .link-tba treatment when it's a hype Buy CTA */
a.link-tba.buy-cta,
a.buy-cta.link-tba {
  opacity: 1;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  filter: none;
}

/* Keep aria-disabled Buy from looking greyed-out */
a.buy-cta[aria-disabled="true"] {
  opacity: 1;
  filter: none;
}

/* ── Live: CA present / .link-tba removed + .buy-cta--live ────────────── */
.buy-cta--live {
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.buy-cta--live::after { display: none; }

/* ── Secondary: Get notified ──────────────────────────────────────────── */
.social-tba,
a.social-tba {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.92em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px dashed currentColor;
  opacity: 0.95;
  cursor: pointer;
}

.social-tba:hover { opacity: 1; }

/* Footer / secondary Buy·DEX TBA links: same hype language, slightly smaller */
a.link-tba.buy-cta--sm,
.buy-cta--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.88em;
}

/* ── Robinhood Chain badge (hero story block) ─────────────────────────── */
.chain-badge--rh,
.chain-tba-badge.chain-badge--rh {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.65rem 0 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid currentColor;
  border-style: solid;
  border-radius: 14px;
  opacity: 1;
  max-width: 100%;
  line-height: 1.35;
}

.chain-badge__line {
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.chain-badge__sub {
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Kit-chain details: demote out of above-the-fold (collapsible / note) */
.kit-chain-note {
  font-size: 0.85rem;
  opacity: 0.82;
  margin: 0.4rem 0 1rem;
  max-width: 70ch;
}

.kit-chain-details {
  margin: 0.75rem 0 1rem;
  max-width: 70ch;
  font-size: 0.85rem;
  opacity: 0.85;
}

.kit-chain-details > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.kit-chain-details > summary::-webkit-details-marker { display: none; }
.kit-chain-details > summary::before {
  content: "▸ ";
  opacity: 0.7;
}
.kit-chain-details[open] > summary::before { content: "▾ "; }

/* ── Motion ───────────────────────────────────────────────────────────── */
@keyframes buy-cta-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 14px rgba(255, 200, 60, 0.28),
      0 0 32px rgba(255, 120, 40, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 26px rgba(255, 200, 60, 0.5),
      0 0 56px rgba(255, 120, 40, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-cta--prelaunch,
  a.buy-cta.buy-cta--prelaunch.link-tba {
    animation: none !important;
  }
}
