/*
 * founding-modal.css, styles for the cross-product Founding Member
 * post-checkout success modal (ADR 084). Pairs with
 * site-js/founding-success-modal.js. Uses canonical design tokens from
 * tokens.css; no inline styles in the JS module.
 *
 * Synced into each product's site/css/ via scripts/sync-shared.sh and
 * loaded on the pricing page that owns the post-checkout success URL.
 */

.founding-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  animation: founding-modal-fade var(--transition-slow, 0.3s ease) forwards;
}

.founding-modal--closing {
  animation: founding-modal-fade var(--transition-fast, 0.15s ease) reverse forwards;
}

@keyframes founding-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.founding-modal__card {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px 24px;
  background: var(--surface-1, #0f1012);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 12px);
  color: var(--text, #f5f5f5);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.founding-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted, #a3a3a3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm, 8px);
  transition: background var(--transition-fast, 0.15s ease), color var(--transition-fast, 0.15s ease);
}

.founding-modal__close:hover,
.founding-modal__close:focus-visible {
  background: var(--surface-2, #161719);
  color: var(--text, #f5f5f5);
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(96, 165, 250, 0.25));
}

.founding-modal__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--status-active-bg, rgba(52, 211, 153, 0.15));
  color: var(--status-active-text, #34d399);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm, 8px);
}

.founding-modal__heading {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.founding-modal__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary, #e0e0e0);
}

.founding-modal__lead strong {
  color: var(--text, #f5f5f5);
}

.founding-modal__detail {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-2, #161719);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  font-size: 14px;
}

.founding-modal__detail dt {
  color: var(--text-muted, #a3a3a3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  align-self: center;
}

.founding-modal__detail dd {
  margin: 0;
  color: var(--text, #f5f5f5);
  font-weight: 600;
}

.founding-modal__nextsteps {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, #a3a3a3);
}

.founding-modal__nextsteps code {
  padding: 1px 6px;
  background: var(--surface-2, #161719);
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-secondary, #e0e0e0);
}

.founding-modal__action {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--blue, #60a5fa);
  color: var(--bg, #08090a);
  border: 0;
  border-radius: var(--radius-sm, 8px);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--transition-fast, 0.15s ease);
}

.founding-modal__action:hover,
.founding-modal__action:focus-visible {
  filter: brightness(1.1);
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(96, 165, 250, 0.25));
}

@media (max-width: 480px) {
  .founding-modal {
    padding: 12px;
  }
  .founding-modal__card {
    padding: 24px 20px 20px;
  }
  .founding-modal__heading {
    font-size: 19px;
  }
}
