/* Launch list · 上线通知. A deliberately loud band on product pages: the
   waitlist is the main call to action while a product is unavailable. */

.ed-notify {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* The grid rule below sets display:flex, which would otherwise beat the
   browser's [hidden] style while the config is still loading (or missing). */
.ed-notify[hidden] {
  display: none !important;
}

.ed-notify__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 5.5vw, 64px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.ed-notify__kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.ed-notify__title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ed-notify__lead {
  max-width: 54ch;
  margin: 14px 0 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.85;
  color: rgba(10, 10, 10, 0.72);
}

.ed-notify__count {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.62;
}

.ed-notify__closed {
  padding: 28px var(--pad);
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

.ed-notify__form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ed-notify__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ed-notify__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ed-notify__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(10, 10, 10, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  appearance: none;
}

.ed-notify__input::placeholder {
  color: rgba(10, 10, 10, 0.4);
}

.ed-notify__input:focus {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.ed-notify__submit {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--bg);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ed-notify__submit:hover {
  opacity: 0.82;
}

.ed-notify__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.ed-notify__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.68);
  cursor: pointer;
}

.ed-notify__consent input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--bg);
}

.ed-notify__note {
  min-height: 1.4em;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.68);
}

.ed-notify__note.is-error {
  color: #8b1d1d;
  font-weight: 600;
}

/* Invisible to people, tempting to bots. */
.ed-notify__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ed-notify__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.7;
}

.ed-notify__done strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ed-notify__again {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.62;
  cursor: pointer;
}

/* ---------- Compact cards (homepage / reserve page) ---------- */

.ed-notify--compact {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.ed-notify--compact .ed-notify__inner {
  display: block;
  padding: clamp(20px, 2.4vw, 28px);
}

.ed-notify--compact .ed-notify__kicker {
  margin-bottom: 9px;
  color: var(--dim);
  opacity: 1;
}

.ed-notify--compact .ed-notify__title {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.25;
}

.ed-notify--compact .ed-notify__lead {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.ed-notify--compact .ed-notify__count {
  margin-top: 10px;
  color: var(--dim);
  opacity: 1;
}

.ed-notify--compact .ed-notify__form {
  margin-top: 18px;
}

.ed-notify--compact .ed-notify__input {
  padding: 11px 12px;
  border-color: var(--line-2);
  color: var(--ink);
  font-size: 14px;
}

.ed-notify--compact .ed-notify__input::placeholder {
  color: var(--dim);
}

.ed-notify--compact .ed-notify__input:focus {
  outline-color: var(--ink);
}

.ed-notify--compact .ed-notify__submit {
  padding: 0 14px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 8.5px;
}

.ed-notify--compact .ed-notify__consent {
  color: var(--dim);
}

.ed-notify--compact .ed-notify__consent input {
  accent-color: var(--ink);
}

.ed-notify--compact .ed-notify__note {
  color: var(--dim);
}

.ed-notify--compact .ed-notify__note.is-error {
  color: #ff8b8b;
}

.ed-notify--compact .ed-notify__done span {
  color: var(--ink-2);
}

.ed-reserve > .ed-notify {
  margin-top: 34px;
}

.ed-reserve > .ed-notify + .ed-reserve__alt {
  margin-top: 14px;
}

/* The update list on an already-released product sits inside the page body,
   under the availability buttons, rather than as a full-width band. */
.ed-block__body > .ed-notify--compact {
  margin-top: 26px;
}

.ed-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ed-launch-grid > .ed-notify {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 960px) {
  .ed-launch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .ed-notify__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 520px) {
  .ed-notify__row {
    flex-direction: column;
  }

  .ed-notify__submit {
    padding: 13px 18px;
  }
}
