/* =====================================================================
   Early Access – centred in the horizon stage of the dark area.
   Same language as the rest of the page: one big centred line, one
   sentence, a capsule (like the slider capsules), one quiet facts line.
   ===================================================================== */
.dk__sub {
  margin: 22px auto 0; max-width: 34em;
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: #a9a6a0; text-wrap: balance;
}

/* the field as a capsule – dark grey on black, white button inside */
.dk__form { margin: 36px auto 0; width: min(100%, 470px); }
.dk__field {
  display: flex; align-items: center; gap: 6px;
  height: 56px; padding: 5px; border-radius: 999px;
  background: #1d1d1c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 160ms var(--ease);
}
.dk__field:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.dk__field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); }
.ea__input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 18px;
  border: 0; background: transparent; color: var(--dk-text);
  font: inherit; font-size: 16px;
}
.ea__input::placeholder { color: #75736e; }
.ea__input:focus { outline: none; }
.ea__input[aria-invalid="true"]::placeholder { color: #d9a090; }
.ea__btn {
  flex: none; height: 100%; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f4f2ee; color: #121212; font: inherit; font-size: 15px; font-weight: 600;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}
.ea__btn:hover { background: #fff; }
.ea__btn:active { transform: scale(0.985); }
.ea__btn:focus-visible { outline: 2px solid #a3adff; outline-offset: 3px; }
.ea__btn:disabled { background: #6f6d68; color: #1b1b1a; cursor: default; }
.ea__msg { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #c9c6c0; }
.ea__msg:empty { display: none; }
.ea__msg[data-kind="ok"] { color: #fff; }
.ea__msg[data-kind="error"] { color: #e8b3a4; }

/* one quiet line with the facts */
.dk__facts {
  margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-size: 14px; color: var(--dk-muted);
}
.dk__facts span { position: relative; }
.dk__facts span + span::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px;
  border-radius: 50%; background: #5d5b57;
}
.dk__facts b { font-weight: 600; color: var(--dk-text); }

/* the block under the horizon */
.dk__ea {
  position: relative; z-index: 3;
  margin: 0 var(--rail); padding: clamp(8px, 1vw, 16px) var(--pad) clamp(160px, 16vw, 256px);
  text-align: center;
}
.dk__ea-kicker { margin: 0 0 14px; font-size: 14px; color: var(--dk-muted); }
.dk__ea-title {
  margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em;
  color: var(--dk-text); text-wrap: balance;
}

/* appear one after another when scrolled to (early.js sets .is-in) */
.dk__ea > * { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease), transform 1000ms cubic-bezier(0.2, 0, 0, 1); }
.dk__ea > :nth-child(2) { transition-delay: 120ms; }
.dk__ea > :nth-child(3) { transition-delay: 240ms; }
.dk__ea > :nth-child(4) { transition-delay: 360ms; }
.dk__ea > :nth-child(5) { transition-delay: 480ms; }
.dk__ea.is-in > * { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .dk__field { height: auto; flex-direction: column; align-items: stretch; padding: 6px; border-radius: 20px; }
  .ea__input { height: 48px; text-align: center; padding: 0 12px; }
  .ea__btn { height: 48px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk__ea > * { transition: none !important; opacity: 1; transform: none; }
}

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

/* the email field gets the same luminous rim as the horizon ring:
   sand → white → Etalier blue, with a soft glow around it */
.dk__field {
  position: relative;
  box-shadow: 0 0 36px -10px rgba(255, 246, 230, 0.22), 0 0 28px -8px rgba(169, 182, 255, 0.22);
}
.dk__field::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid transparent;
  /* only the calm middle of the ring's gradient: light sand → white → light blue */
  background: linear-gradient(90deg, #e9d8b4 0%, #ffffff 50%, #a9b6ff 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  opacity: 0.7; transition: opacity 180ms var(--ease);
}
.dk__field:hover { box-shadow: 0 0 40px -10px rgba(255, 246, 230, 0.3), 0 0 32px -8px rgba(169, 182, 255, 0.3); }
.dk__field:hover::before, .dk__field:focus-within::before { opacity: 1; }
.dk__field:focus-within { box-shadow: 0 0 44px -8px rgba(255, 246, 230, 0.36), 0 0 36px -6px rgba(169, 182, 255, 0.38); }
.dk__field > * { position: relative; z-index: 1; }
@media (max-width: 560px) { .dk__field::before { border-radius: 20px; } }
