/* ---------- Pitch deck modal ---------- */
body.is-modal-open {
  overflow: hidden;
}

.pitch-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pitch-modal[hidden] {
  display: none;
}

.pitch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 29, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: modal-fade 0.3s ease both;
}

.pitch-modal-dialog {
  position: relative;
  width: min(100%, 580px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 50px 100px -40px rgba(8, 14, 26, 0.6);
  animation: modal-in 0.45s var(--ease) both;
}

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

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.pitch-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 20, 24, 0.06);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .pitch-modal-close:hover {
    background: rgba(15, 20, 24, 0.12);
  }
}

.pitch-modal-dialog h2 {
  max-width: 14ch;
  margin-top: 18px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.pitch-modal-intro {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.pitch-deck-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-top: 24px;
}

.pitch-deck-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pitch-deck-form label > span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pitch-deck-form input,
.pitch-deck-form select,
.pitch-deck-form textarea {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fafaf8;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.pitch-deck-form textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
}

.pitch-deck-form :is(input, select, textarea):focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 127, 232, 0.16);
}

.pitch-deck-message,
.pitch-deck-submit,
.pitch-deck-note,
.pitch-deck-status {
  grid-column: 1 / -1;
}

.pitch-deck-submit {
  width: 100%;
  margin-top: 4px;
}

.pitch-deck-note {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.pitch-deck-status {
  font-size: 0.85rem;
  color: var(--green);
}

.pitch-deck-status:empty {
  display: none;
}

@media (max-width: 520px) {
  .pitch-deck-form {
    grid-template-columns: 1fr;
  }
}
