@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Colours from the dark neon screens of the UX PDF. */
:root {
  --void: #07070a;
  --surface: #15151b;
  --surface-2: #1e1e26;
  --line: #2b2b35;
  --ink: #f2f1ec;
  --muted: #94939f;
  --lime: #d9f95a;
  --pink: #e0569a;
  --orb: #2a0d1c;

  --display: "Clash Display", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* The orb hangs off the right edge; clip it without making a scroll container. */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--lime); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--lime);
  color: var(--void);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  position: relative;
  z-index: 2;
}
.wordmark {
  font: 600 1.6rem/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.top-cta {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}
.top-cta:hover { border-color: var(--lime); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(72px, 12vh, 140px);
  min-height: calc(100svh - 88px);
}

/* The large dark-pink circle from the recording screen, drifting slowly. */
.orb {
  position: absolute;
  width: min(78vw, 980px);
  aspect-ratio: 1;
  right: -22vw;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a1127 0%, var(--orb) 55%, #16070f 100%);
  z-index: 0;
  animation: drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-6vw, 4vh); }
}

.hero-copy { position: relative; z-index: 1; }

h1 {
  font: 600 clamp(3.4rem, 9.5vw, 8.75rem)/0.9 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 0.35em;
  max-width: 9ch;
  text-wrap: balance;
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: #cfced8;
  margin: 0 0 40px;
}

/* Waitlist form */
.join { max-width: 32rem; scroll-margin-top: 24px; }
.field-label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}
.join-row {
  display: flex;
  gap: 10px;
}
.join input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 18px;
}
.join input[type="email"]::placeholder { color: #6c6b78; }
.join input[type="email"]:focus { border-color: var(--lime); outline: none; }
.join input[aria-invalid="true"] { border-color: var(--pink); }
.join button {
  flex: 0 0 auto;
  font: 600 1rem/1 var(--text);
  color: var(--void);
  background: var(--lime);
  border: 0;
  border-radius: 16px;
  padding: 0 24px;
  cursor: pointer;
}
.join button:hover { background: #e6ff7d; }
.join button[disabled] { opacity: 0.6; cursor: progress; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  accent-color: var(--lime);
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.status { min-height: 1.5em; margin: 12px 0 0; font-size: 0.95rem; }
.status[data-state="error"] { color: #ff8cc0; }
.status[data-state="ok"] { color: var(--lime); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The pulsing signal: the record button from the app, without saying what it records. */
.signal {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: clamp(180px, 26vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.core, .ring {
  grid-area: 1 / 1;
  border-radius: 50%;
}
.core {
  width: 46%;
  aspect-ratio: 1;
  background: var(--pink);
  box-shadow: 0 0 80px 10px rgba(224, 86, 154, 0.35);
}
.ring {
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid var(--pink);
  opacity: 0;
  animation: pulse 4.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.ring:nth-child(2) { animation-delay: 1.5s; }
.ring:nth-child(3) { animation-delay: 3s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Three short lines about what this is not. */
.nots {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 0;
  display: grid;
  gap: 0.15em;
  font: 600 clamp(1.8rem, 4.2vw, 3.4rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}
.nots p { margin: 0; color: #5d5c69; }
.nots p:last-child { color: var(--ink); max-width: 22ch; margin-top: 0.35em; }

/* Closing */
.closing {
  padding: clamp(96px, 16vw, 200px) var(--gutter) clamp(72px, 10vw, 120px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px 48px;
}
.closing-line {
  margin: 0;
  font: 600 clamp(2.8rem, 8vw, 7rem)/0.95 var(--display);
  letter-spacing: -0.035em;
}
.closing-cta {
  display: inline-block;
  background: var(--lime);
  color: var(--void);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 16px 28px;
}
.closing-cta:hover { color: var(--void); background: #e6ff7d; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }

/* Joined page */
.joined {
  position: relative;
  min-height: calc(100svh - 88px);
  padding: 8vh var(--gutter);
}
.joined h1, .joined .lede, .joined .closing-cta { position: relative; z-index: 1; }
.joined h1 { max-width: 10ch; }

/* Small screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .signal { width: 180px; margin-top: 8px; }
  .orb { width: 120vw; right: -60vw; top: 30%; }
}
@media (max-width: 560px) {
  .join-row { flex-direction: column; }
  .join button { padding: 16px 24px; }
  .top-cta { padding: 8px 14px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .ring { animation: none; opacity: 0.25; }
  .ring:nth-child(2) { transform: scale(1.5); opacity: 0.15; }
  .ring:nth-child(3) { transform: scale(2); opacity: 0.08; }
}

/* Holding page on voidle.app until launch */
.soon {
  position: relative;
  min-height: calc(100svh - 88px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 32px;
  padding: 0 var(--gutter) 12vh;
}
.soon .signal { justify-self: start; width: clamp(120px, 14vw, 180px); }
.soon h1 { position: relative; z-index: 1; max-width: 13ch; margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); }

/* Interview offer, shown after signing up */
.interview {
  max-width: 32rem;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.interview[hidden] { display: none; }
.interview p { margin: 0; color: #cfced8; font-size: 0.95rem; }
.interview button {
  font: 600 0.95rem/1 var(--text);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
}
.interview button:hover { background: var(--lime); color: var(--void); }
.interview button[disabled] { opacity: 0.6; cursor: progress; }

/* Who it's for: three lines drifting further out, like the voidles themselves. */
.for {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  font: 500 clamp(1.5rem, 3.2vw, 2.6rem)/1.15 var(--display);
  letter-spacing: -0.015em;
}
.for p { margin: 0; max-width: 22ch; }
.for p:nth-child(2) { margin-left: clamp(0px, 12vw, 220px); }
.for p:nth-child(3) { margin-left: clamp(0px, 24vw, 440px); }
@media (max-width: 560px) {
  .for p:nth-child(2) { margin-left: 8vw; }
  .for p:nth-child(3) { margin-left: 16vw; }
}
