/* Zen waitlist layer: the live fields, the early-access ticket, and page polish. */
html { scroll-behavior: smooth; background: #0b090c; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: rgba(207, 57, 121, 0.38); color: #fff; }

.zw-noscript { max-width: 640px; margin: 96px auto; padding: 0 24px; color: #f6f3f5; font: 400 18px/1.6 system-ui, sans-serif; }
.zw-noscript h1 { font-size: 48px; line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.zw-noscript a { color: #f483b0; }

/* The fields: the engine draws each as a text block; the input fills it. */
.zw-field { cursor: text; display: flex !important; align-items: center; transition: background-color 160ms ease, box-shadow 160ms ease; }
.zw-input {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  font: inherit;
  line-height: normal;
  color: #f6f3f5;
  caret-color: #f483b0;
  text-overflow: ellipsis;
}
.zw-input::placeholder { color: #9b8f97; opacity: 1; }
.zw-field:focus-within { background-color: rgba(255, 255, 255, 0.045) !important; box-shadow: inset 0 0 0 1px rgba(244, 131, 176, 0.5); }
.zw-field[aria-invalid='true'] { box-shadow: inset 0 0 0 1px rgba(255, 128, 128, 0.75); }
@media (min-width: 1000px) {
  .zw-field:focus-within { border-radius: 10px; }
}
.zw-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zw-cta { transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease; }
.zw-cta:hover { filter: brightness(1.08); }
.zw-cta:active { transform: translateY(1px); }
.zw-cta:focus-visible { outline: 2px solid #f483b0; outline-offset: 2px; }
.zw-cta[aria-busy='true'] { cursor: progress; filter: saturate(0.85); }

.zw-msg { margin: 10px 2px 0; font: 500 13px/1.4 Geist, system-ui, sans-serif; color: #ffb0b0; }
[data-node-id='closing-copy'] .zw-msg { text-align: center; }

/* "Request access" lands here: one soft pulse around the capsule. */
@keyframes zw-ping { 0% { box-shadow: 0 0 0 0 rgba(207, 57, 121, 0.55); } 100% { box-shadow: 0 0 0 18px rgba(207, 57, 121, 0); } }
.zw-ping { animation: zw-ping 900ms ease-out 1; }

/* The ticket that replaces the fields. The engine wraps every child in a
   display: contents slot, which beats the hidden attribute, so hide them here. */
.zw-joined { flex-direction: row !important; flex-wrap: nowrap !important; }
.zw-joined > :not(.zw-ticket) { display: none !important; }
.zw-ticket {
  position: relative;
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 14px;
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(207, 57, 121, 0.22), rgba(207, 57, 121, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(244, 131, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: Geist, system-ui, sans-serif;
  color: #f6f3f5;
  text-align: left;
  outline: none;
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transition: opacity 420ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.zw-ticket.zw-in { opacity: 1; transform: none; }
.zw-ticket::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 212px;
  border-left: 1px dashed rgba(255, 255, 255, 0.16);
}
.zw-avatar { width: 44px; height: 44px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 22px rgba(207, 57, 121, 0.5); }
.zw-body { min-width: 0; }
.zw-meta { margin: 0; display: flex; gap: 10px; align-items: center; font: 500 11px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #b4a8b0; }
.zw-code { color: #f483b0; letter-spacing: 0.1em; }
.zw-title { margin: 5px 0 0; font: 600 19px/1.15 Geist, system-ui, sans-serif; letter-spacing: -0.025em; color: #f6f3f5; }
.zw-who { margin: 3px 0 0; font: 400 13px/1.3 Geist, system-ui, sans-serif; color: #a99da5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zw-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 180px; }
.zw-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f6f3f5;
  color: #0b090c;
  font: 600 14px/1 Geist, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}
.zw-share:hover { background: #ffffff; }
.zw-share:active { transform: translateY(1px); }
.zw-share:focus-visible, .zw-reset:focus-visible { outline: 2px solid #f483b0; outline-offset: 2px; }
.zw-reset { all: unset; cursor: pointer; text-align: center; font: 400 12px/1.4 Geist, system-ui, sans-serif; color: #9b8f97; padding: 2px 0; }
.zw-reset:hover { color: #f6f3f5; }

@media (max-width: 999px) {
  .zw-ticket { grid-template-columns: auto 1fr; padding: 14px; gap: 12px 14px; }
  .zw-ticket::after { display: none; }
  .zw-actions { grid-column: 1 / -1; width: auto; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
  .zw-share { flex: 1; max-width: 220px; }
  .zw-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .zw-ticket { transition: none; opacity: 1; transform: none; }
  .zw-ping { animation: none; }
}

/* Idle motion the engine has no primitive for: Ren breathes, the status chips drift. */
@keyframes zw-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes zw-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  [data-node-id='hero-ren'] { animation: zw-breathe 6s ease-in-out infinite; will-change: transform; }
  [data-node-id='hero-chip-0'], [data-node-id='hero-chip-1'], [data-node-id='hero-chip-2'], [data-node-id='hero-chip-3'] { animation: zw-drift 7s ease-in-out infinite; }
  [data-node-id='hero-chip-1'] { animation-delay: -1.8s; animation-duration: 8s; }
  [data-node-id='hero-chip-2'] { animation-delay: -3.4s; animation-duration: 7.5s; }
  [data-node-id='hero-chip-3'] { animation-delay: -5.1s; animation-duration: 8.5s; }
}
