/* ═══════════════════════════════════════════════════════════
   Inkspire — Prelaunch (lead capture)
   Loaded after styles.css, only on prelaunch deployment.
   ═══════════════════════════════════════════════════════════ */

.prelaunch-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  width: 100%;
}
.prelaunch-cta__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.prelaunch-cta__input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.prelaunch-cta__input::placeholder { color: rgba(255, 255, 255, 0.7); }
.prelaunch-cta__input:focus {
  border-color: var(--brand-light, var(--brand));
  background: rgba(255, 255, 255, 0.18);
}
.prelaunch-cta__btn {
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}
.prelaunch-cta__btn[disabled] { opacity: 0.7; cursor: wait; }
.prelaunch-cta__btn.is-loading { filter: saturate(0.7); }

.prelaunch-cta__policy {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color .15s ease;
}
.prelaunch-cta__policy:hover,
.prelaunch-cta__policy:focus-visible { color: var(--text); outline: none; }
.prelaunch-cta__policy svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.75; }

.prelaunch-cta__policy-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  padding: 0;
  transition: max-height .25s ease, opacity .2s ease, padding .25s ease, margin .2s ease;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.prelaunch-cta__policy-text.is-open {
  max-height: 320px;
  opacity: 1;
  padding: 8px 0 8px 12px;
  margin-top: 2px;
}
@media (hover: hover) {
  .prelaunch-cta:hover .prelaunch-cta__policy-text:not(.is-open) {
    max-height: 320px;
    opacity: 1;
    padding: 8px 0 8px 12px;
    margin-top: 2px;
  }
}

.prelaunch-cta__msg {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.prelaunch-cta__msg.is-visible { display: block; }
.prelaunch-cta__msg--ok  { color: #7ee2a4; }
.prelaunch-cta__msg--err { color: #ff9090; }
.prelaunch-cta.is-success .prelaunch-cta__row { opacity: 0.55; pointer-events: none; }

.hero .prelaunch-cta { margin-bottom: 8px; }

.section--cta .prelaunch-cta { margin: 0 auto; }
.section--cta .prelaunch-cta__policy { align-self: center; }
.section--cta .prelaunch-cta__policy-text { text-align: left; }

@media (max-width: 520px) {
  .prelaunch-cta__row { flex-direction: column; align-items: stretch; }
  .prelaunch-cta__input { padding: 11px 14px; font-size: 15px; flex: 0 0 auto; width: 100%; }
  .prelaunch-cta__btn { width: 100%; justify-content: center; }
}
