/* ==================================================
   CATALYST COMMITMENT MODAL — Shared modal component
   Used on: GLP-3, Science Explained
   ================================================== */

.commitment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.commitment-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.commitment-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden auto;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.commitment-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.commitment-modal__orb {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(235, 98, 46, 0.15),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.commitment-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.commitment-modal__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.commitment-modal__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.commitment-modal__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}

.commitment-modal__title {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.commitment-modal__title strong {
  font-weight: 600;
  color: #fff;
}

.commitment-modal__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.commitment-modal__panel {
  margin-bottom: 24px;
}

.commitment-modal__panel:last-child {
  margin-bottom: 0;
}

.commitment-modal__panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.commitment-modal__panel-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--catalyst-teal);
  letter-spacing: 0.05em;
}

.commitment-modal__panel-label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.commitment-modal__panel-text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.commitment-modal__panel-text .highlight {
  color: var(--catalyst-teal);
  font-weight: 500;
}

@media (width <= 600px) {
  .commitment-modal {
    padding: 36px 24px;
    max-width: 92%;
    max-height: min(80vh, calc(100dvh - 60px));
  }

  .commitment-modal__close {
    width: 44px;
    height: 44px;
  }

  .commitment-modal__title {
    font-size: 24px;
  }

  .commitment-modal__orb {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -40px;
  }
}
