/* Shared signup dialog and confirmation state. */
.launch-modal, .launch-thanks {
  --launch-paper: #faf7f2;
  --launch-cream: #f4efe6;
  --launch-ink: #2c2820;
  --launch-muted: #7a7060;
  --launch-green: #2c3828;
  --launch-gold: #c8a96d;
  box-sizing: border-box;
  color: var(--launch-ink);
  font-family: var(--font-sans);
}
.launch-modal {
  position: fixed;
  inset: 0;
  width: calc(100% - 2rem);
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 3.25rem 3rem 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--launch-paper);
}
.launch-modal[open] { animation: launch-modal-in 220ms ease-out; }
.launch-modal::backdrop { background: rgba(44, 40, 32, 0.55); backdrop-filter: blur(8px); }
.launch-modal .launch-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--launch-muted);
  font: 300 1.75rem/1 var(--font-sans);
  cursor: pointer;
}
.launch-modal .launch-modal__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--launch-gold);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.18em;
}
.launch-modal .launch-modal__title {
  margin: 0 0 1rem;
  color: var(--launch-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.8vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.launch-modal .launch-modal__sub { margin: 0 0 2.5rem; color: var(--launch-muted); font-size: 1rem; line-height: 1.65; }
.launch-modal .launch-modal__form { display: grid; gap: 1.25rem; margin: 0; }
.launch-modal__field { position: relative; }
.launch-modal .launch-modal__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.85rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid rgba(44, 40, 32, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--launch-ink);
  font: 400 1rem/1.5 var(--font-sans);
  appearance: none;
  transition: none;
}
.launch-modal .launch-modal__label {
  position: absolute;
  top: 0.9rem;
  left: 0;
  color: var(--launch-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  pointer-events: none;
  transition: top 160ms ease, font-size 160ms ease;
}
.launch-modal__input:focus + .launch-modal__label,
.launch-modal__input:not(:placeholder-shown) + .launch-modal__label { top: -0.8rem; font-size: 0.75rem; }
.launch-modal .launch-modal__submit, .launch-thanks .launch-thanks__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  margin: 0.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--launch-green);
  border-radius: 0;
  background: var(--launch-green);
  color: var(--launch-cream);
  font: 500 0.875rem/1.45 var(--font-sans);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.launch-modal .launch-modal__submit:hover, .launch-thanks .launch-thanks__button:hover { background: var(--launch-ink); border-color: var(--launch-ink); }
.launch-modal .launch-modal__note { margin: 1rem 0 0; color: var(--launch-muted); font-size: 0.75rem; line-height: 1.6; text-align: center; }
.launch-modal .form-status { margin: 0; font-size: 0.875rem; line-height: 1.6; }
.launch-modal .form-status:empty { display: none; }
.launch-modal .is-error { color: #8a3d2d; }
.launch-modal [aria-invalid='true'] { border-color: #8a3d2d; }
.launch-modal button:disabled, .launch-signup button:disabled { opacity: 0.6; cursor: wait; }
.launch-modal :focus-visible, .launch-thanks a:focus-visible { outline: 2px solid #2c3828; outline-offset: 4px; }
/* Keep the original quiet underline in every input state. */
.launch-modal .launch-modal__input:focus {
  outline: none;
  box-shadow: none;
}
.launch-modal .launch-modal__input:is(:autofill, :-webkit-autofill) {
  -webkit-box-shadow: 0 0 0 1000px var(--launch-paper) inset;
  box-shadow: 0 0 0 1000px var(--launch-paper) inset;
  -webkit-text-fill-color: var(--launch-ink);
  caret-color: var(--launch-ink);
}
.launch-modal #launch-modal-title:focus { outline: none; }
.launch-modal [hidden] { display: none; }
.launch-modal.is-success { max-width: 38rem; }
.launch-modal__success { text-align: center; }
.launch-modal .launch-modal__success-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  outline: none;
}
.launch-modal .launch-modal__success-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}
.launch-thanks h1 { margin: 0 0 1.4rem; font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.launch-thanks p { margin: 0; color: var(--launch-muted); font-size: 1rem; line-height: 1.75; }
.launch-thanks hr { margin: 2.5rem 0; border: 0; border-top: 1px solid rgba(44, 40, 32, 0.2); }
.launch-thanks h2 { margin: 0 0 1rem; font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; line-height: 1.2; }
.launch-thanks .launch-thanks__button { margin-top: 2rem; }
.launch-thanks .launch-thanks__footer { margin-top: 2rem; font-size: 0.875rem; }
@keyframes launch-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .launch-modal { padding: 3rem 1.5rem 2rem; }
  .launch-modal.is-success { padding: 2.75rem 1.25rem 1.25rem; }
  .launch-modal.is-success .launch-modal__success-title {
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 9vw, 2.2rem);
    line-height: 1.08;
  }
  .launch-modal.is-success .launch-thanks p {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
  .launch-modal.is-success .launch-thanks hr { margin: 1.35rem 0; }
  .launch-modal.is-success .launch-modal__success-subtitle {
    margin-bottom: 0.65rem;
    font-size: 1.45rem;
  }
  .launch-modal.is-success .launch-thanks__button {
    min-height: 3.25rem;
    margin-top: 1rem;
    padding: 0.8rem 0.75rem;
    font-size: 0.875rem;
  }
  .launch-modal.is-success .launch-thanks__footer {
    margin-top: 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .launch-modal[open] { animation: none; }
  .launch-modal__label { transition: none; }
}
