@import url("/clanli-tokens.css");

* { box-sizing: border-box; }

::selection { background: #a99cf0; color: #fff; }

a { color: var(--accent); }
a:hover { color: var(--ink); }

input::placeholder { color: #9aa1bb; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 55% at 50% 0%, color-mix(in oklab, var(--accent2) 14%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 26px;
}

.lockup {
  height: 26px;
  width: auto;
  image-rendering: pixelated;
}

.beta,
.eyebrow,
.hint,
.received-label,
#reset,
#submit,
.foot {
  font-family: var(--font-meta);
  letter-spacing: 1px;
}

.beta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--soft);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  flex: none;
}

.blink { animation: blink 1.6s infinite; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 26px 48px;
}

.stack {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(79, 195, 214, .35));
}

.floaty { animation: floaty 5s ease-in-out infinite; }

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  font-size: 11px;
  color: var(--soft);
}

h1 {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 72px);
  line-height: 1;
  letter-spacing: 2.3px;
  text-wrap: balance;
}

.subhead {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--ink) 78%, transparent);
  text-wrap: pretty;
}

.invite,
.received {
  width: 100%;
  max-width: 460px;
}

.invite {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px -28px rgba(43, 47, 69, .5);
}

.pill:focus-within { border-color: var(--accent); }

#email {
  flex: 1;
  min-width: 150px;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

#submit {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 0 18px var(--glow);
  transition: transform .12s ease;
}

#submit:hover { transform: translateY(-1px); }

#submit:disabled {
  cursor: progress;
  transform: none;
  opacity: .72;
}

.hint {
  min-height: 18px;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--soft);
}

.hint.error { color: #c4607a; }

.received {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 26px 60px -30px rgba(43, 47, 69, .45);
}

.invite[hidden],
.received[hidden] { display: none; }

.received-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--soft);
}

.received-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.received-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}

.received-body span { color: var(--ink); }

.received-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

#reset {
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--soft);
}

#reset:hover { color: var(--ink); }

.foot {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 24px;
  font-size: 11px;
  color: var(--soft);
}
