/* Waitlist Progress. Change the colors here. */
:root {
  --bg: #f4f7ff;
  --card: #ffffff;
  --text: #0f1733;
  --muted: #56607f;
  --line: #dfe5f5;
  --accent: #2f5bea;
  --accent-dark: #1f44c4;
  --accent-soft: #e6ecff;
  --success: #12805c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 1px 1px, #d5dcf2 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1040px, 100% - 40px);
  margin: 0 auto;
  padding: 24px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--accent); }
.top-link { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.top-link:hover { color: var(--text); text-decoration: underline; }

.card {
  width: min(620px, 100% - 32px);
  margin: 24px auto;
  padding: clamp(24px, 6vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgb(15 23 51 / 0.04), 0 20px 50px rgb(15 23 51 / 0.08);
}

.pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem; font-weight: 700;
}

h1 { margin: 0 0 14px; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 1.05rem; }

.progress { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fafbff; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.progress-head p { margin: 0; }
.progress-pct { color: var(--accent-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b82ff, var(--accent));
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.waitlist { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.waitlist input, .waitlist select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d1ea;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.waitlist input:focus-visible, .waitlist select:focus-visible { outline-offset: 0; border-color: var(--accent); }
.waitlist button {
  grid-column: 1 / -1;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.waitlist button:hover { background: var(--accent-dark); }

.note { min-height: 1.6em; margin: 12px 0 0; color: var(--success); font-weight: 600; }

.perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks svg { width: 16px; height: 16px; color: var(--success); }

.foot { margin-top: auto; padding: 24px 20px 36px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.foot p { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.foot svg { width: 18px; height: 18px; }
.foot .copy { display: block; font-size: 0.85rem; }
.avatars { display: inline-flex; }
.avatars span {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-left: -8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
}
.avatars span:nth-child(1) { margin-left: 0; background: #2f5bea; }
.avatars span:nth-child(2) { background: #c2410c; }
.avatars span:nth-child(3) { background: #0f766e; }
.avatars span:nth-child(4) { background: #7e22ce; }

@media (max-width: 520px) {
  .waitlist { grid-template-columns: 1fr; }
  .top-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fill { transition: none; }
}
