@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Headings font, ready for when the page grows a heading */
@font-face { font-family: "Fraunces Soft"; src: url("fonts/fraunces-soft.woff2") format("woff2"); font-weight: 520; font-display: swap; }

:root {
  --bg: #0D1014;
  --ink: #F7F5F2;
  --muted: #A3ADBA;
  --line: #232A33;
  --field: #141920;
  --blue: #A7BED3;
  --blue-deep: #3C5063;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: radial-gradient(60vmax 45vmax at 50% 38%, rgba(96, 140, 196, 0.12), transparent 70%), var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 24px 16px 64px;
}

main {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo: lowercase Nunito 800, dotless i with a powder-blue chat bubble for its dot */
.wordmark {
  font: 800 clamp(88px, 22vw, 148px)/1 "Nunito", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-top: 0.12em;
}
.wordmark .i { position: relative; display: inline-block; }
.bubble {
  position: absolute;
  width: 0.27em;
  height: 0.23em;
  left: -0.015em;
  top: 0.02em;
  overflow: visible;
  transform-origin: 0% 100%;
  animation: pop 0.6s cubic-bezier(.34, 1.56, .64, 1) 0.25s both;
}
.bubble path { fill: var(--blue); }
.typing circle {
  fill: var(--bg);
  opacity: 0;
  animation: typing 0.9s ease-in-out 0.9s 3, fadeout 0.3s ease 3.6s forwards;
}
.typing circle:nth-child(2) { animation-delay: 1.05s, 3.6s; }
.typing circle:nth-child(3) { animation-delay: 1.2s, 3.6s; }

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes typing {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-5px); }
}
@keyframes fadeout { to { opacity: 0; } }

.tagline {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.waitlist {
  margin-top: 40px;
  width: 100%;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.waitlist:focus-within { border-color: var(--blue-deep); }

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 0 4px 0 16px;
}
.waitlist input::placeholder { color: #66717F; }

.waitlist button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #0D1014;
  font: 500 15px/1 "Inter", sans-serif;
  padding: 13px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.waitlist button:hover { background: #B9CCDD; }
.waitlist button:active { transform: scale(0.97); }
.waitlist button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist button:disabled { opacity: 0.7; cursor: default; }

.waitlist.done { display: none; }

.note {
  margin-top: 10px;
  min-height: 1.5em;
  font-size: 15px;
  color: var(--blue);
}
.waitlist.done ~ .note { margin-top: 40px; font-size: 17px; }

.privacy {
  margin-top: 14px;
  font-size: 13px;
  color: #6F7A88;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-size: 13px;
}
footer a {
  color: #6F7A88;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover, footer a:focus-visible { color: var(--blue); }

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

@media (max-width: 420px) {
  .waitlist { flex-direction: column; border-radius: 22px; padding: 6px; }
  .waitlist input[type="email"] { padding: 12px 14px; text-align: center; }
  .waitlist button { border-radius: 16px; padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .typing circle { animation: none; }
}
