/* "Tell us their story" modal — shares tokens with styles.css. */

.cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(22, 20, 48, 0.72);
  backdrop-filter: blur(3px);
}

.cta-overlay[hidden] { display: none; }

body.cta-open { overflow: hidden; }

.cta-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #fffdf7;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 2.4rem 2.2rem 2.2rem;
}

.cta-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.cta-close:hover { color: var(--ink); background: rgba(51, 48, 79, 0.06); }

.cta-whisper {
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--amber-deep);
  margin: 0 0 0.6rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.cta-lede { color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.3rem; }

.cta-modal textarea,
.cta-modal input[type="text"],
.cta-modal input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(51, 48, 79, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.cta-modal textarea { resize: vertical; line-height: 1.55; }

.cta-modal textarea:focus,
.cta-modal input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 178, 92, 0.25);
}

.cta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1rem 0 0.4rem;
}

.cta-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-style: italic;
  color: var(--amber-deep);
}

.cta-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.4rem 0 0;
}

.cta-name-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cta-name-row > div { flex: 1 1 180px; }

.cta-error {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.7rem 0 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* Quiet button sits on the modal's paper background. */
.cta-modal .btn-quiet { color: var(--ink); border-color: rgba(51, 48, 79, 0.35); }
.cta-modal .btn-quiet:hover { border-color: var(--ink); }

/* The CTA band on the storefront. */
.your-story-band .band-head { max-width: 56ch; }

.your-story-steps {
  display: flex;
  gap: 0.6rem 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 1.6rem;
}

/* The CTA strip under the library grid. */
.library-cta {
  margin-top: 2.6rem;
  text-align: center;
}

.library-cta p {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

@media (max-width: 640px) {
  .cta-modal { padding: 1.8rem 1.3rem 1.5rem; }
}
