/* styles/intro-primer.css
   Cold-open onboarding overlay (C3). Shown only on the player's very
   first visit. Matches the share-card's resting-beat register —
   typographic-first, sparse, no chrome. Closes the "what is Adyen?
   why am I a payment?" gap for random-user personas. */

.intro-primer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 60);
  background: rgba(4, 6, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 1000ms ease;
  backdrop-filter: blur(10px) saturate(0.7);
  -webkit-backdrop-filter: blur(10px) saturate(0.7);
}
.intro-primer-overlay.revealed { opacity: 1; }

.intro-primer {
  position: relative;
  width: min(560px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 216, 208, 0.20) transparent;
  background: linear-gradient(180deg,
    #0a0f1c 0%,
    #0e1320 55%,
    #060810 100%);
  border: 1px solid rgba(232, 216, 255, 0.18);
  border-radius: 4px;
  padding: 36px 36px 28px 36px;
  color: rgba(248, 240, 224, 0.94);
  font-family: var(--serif);
  box-shadow:
    0 0 50px rgba(232, 216, 255, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.75);
  transform: translateY(10px);
  transition: transform 1000ms ease;
}
.intro-primer-overlay.revealed .intro-primer {
  transform: translateY(0);
}

/* ---------- HEADER ---------- */

.ip-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ip-overline {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(232, 216, 255, 0.75);
}
.ip-overline-thin {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(232, 216, 255, 0.42);
}

/* ---------- HEADLINE ---------- */

.ip-headline {
  margin: 26px 0 28px 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: normal;
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: rgba(232, 216, 255, 0.95);
  text-shadow: 0 0 24px rgba(232, 216, 255, 0.18);
}

/* ---------- SECTIONS ---------- */

.ip-section {
  position: relative;
  margin-bottom: 20px;
  padding-left: 56px;
}
.ip-section-tag {
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232, 216, 255, 0.55);
  /* A small vertical hairline runs from the tag down to anchor it as
     a margin-note rather than a heading. */
}
.ip-section-tag::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 24px;
  width: 1px;
  height: 18px;
  background: rgba(232, 216, 255, 0.28);
}
.ip-section-body {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(248, 240, 224, 0.92);
}
.ip-section-body em {
  font-style: italic;
  color: rgba(255, 244, 208, 1);
}
.ip-section-adyen .ip-section-tag { color: rgba(184, 224, 255, 0.75); }
.ip-section-adyen .ip-section-tag::after { background: rgba(184, 224, 255, 0.32); }
.ip-section-you .ip-section-tag   { color: rgba(255, 232, 168, 0.78); }
.ip-section-you .ip-section-tag::after   { background: rgba(255, 232, 168, 0.32); }

/* ---------- FOOTER — maker credit + Four Pillars ---------- */

.ip-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 216, 255, 0.10);
  text-align: center;
}
.ip-footer-eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.74rem;
  color: rgba(248, 232, 208, 0.65);
  margin-bottom: 10px;
}
.ip-footer-credit-link {
  color: rgba(248, 232, 208, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 232, 208, 0.35);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.ip-footer-credit-link:hover {
  color: rgba(248, 240, 224, 1);
  border-color: rgba(248, 232, 208, 0.85);
}
.ip-pillars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(232, 216, 208, 0.55);
}
.ip-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ip-pillar-n {
  font-style: italic;
  color: rgba(232, 216, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.ip-about-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(232, 216, 255, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 216, 255, 0.25);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.ip-about-link:hover {
  color: rgba(248, 240, 224, 0.95);
  border-color: rgba(232, 216, 255, 0.65);
}

/* ---------- CTAs — fade in LAST ---------- */

.ip-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}
.intro-primer-overlay.cta-revealed .ip-ctas {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ip-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid rgba(232, 216, 208, 0.22);
  border-radius: 3px;
  color: rgba(248, 240, 224, 0.94);
  font-family: var(--mono);
  cursor: pointer;
  transition: all 220ms ease;
  text-align: center;
}
.ip-cta:hover {
  border-color: rgba(232, 216, 255, 0.65);
  background: rgba(232, 216, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.ip-cta:active { transform: translateY(0) scale(0.99); }

.ip-cta-eyebrow {
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(232, 216, 255, 0.6);
}
.ip-cta-label {
  font-size: 0.9rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: bold;
  color: rgba(232, 216, 255, 0.96);
}

.ip-cta-primary {
  border-color: rgba(232, 216, 255, 0.55);
  background: rgba(232, 216, 255, 0.05);
}
.ip-cta-primary:hover {
  border-color: rgba(232, 216, 255, 0.95);
  background: rgba(232, 216, 255, 0.10);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(232, 216, 255, 0.14);
}

.ip-cta-skip {
  border: none;
  padding: 8px;
  background: transparent;
  color: rgba(232, 216, 208, 0.55);
}
.ip-cta-skip:hover {
  color: rgba(248, 240, 224, 0.92);
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.ip-cta-skip .ip-cta-label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  font-family: var(--serif);
  font-style: italic;
  font-weight: normal;
  color: inherit;
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  .intro-primer-overlay { transition-duration: 200ms; }
  .intro-primer { transition-duration: 100ms; transform: none !important; }
  .ip-ctas { transition-duration: 100ms; transform: none !important; }
  .ip-cta { transition-duration: 100ms; }
}

/* ---------- MOBILE BREAKPOINT ---------- */

@media (max-width: 520px) {
  .intro-primer-overlay { padding: 12px; }
  .intro-primer {
    width: 96vw;
    padding: 28px 22px 22px 22px;
  }
  .ip-headline { font-size: 1.55rem; margin: 20px 0 22px 0; }
  .ip-section { padding-left: 0; margin-bottom: 18px; }
  .ip-section-tag {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
  .ip-section-tag::after { display: none; }
  .ip-section-body { font-size: 0.92rem; }
  .ip-pillars { font-size: 0.5rem; gap: 6px 12px; }
}

@media (max-height: 720px) {
  .intro-primer { padding: 24px 28px 18px 28px; }
  .ip-headline { margin: 18px 0 18px 0; font-size: 1.6rem; }
  .ip-section { margin-bottom: 14px; }
  .ip-footer { margin-top: 16px; padding-top: 12px; }
  .ip-ctas { margin-top: 16px; }
}
