/* Unbounded and Atkinson Hyperlegible. SIL Open Font License. Self-hosted. */
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/unbounded-500.woff2") format("woff2");
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-700.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2");
}

:root {
  --bg: #07080d;
  --ink: #f4f5f8;
  --muted: #d5d8e2;
  --line: rgba(210, 214, 224, 0.32);
  --purple: #c84bff;
  --blue: #9ad8ff;
  --danger: #ffb7c4;
  --ok: #b7f3d0;
  --button: #d5d8e2;
  --button-ink: #14151c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(820px 480px at 88% 8%, rgba(176, 38, 255, 0.34), transparent 62%),
    radial-gradient(680px 420px at 6% 92%, rgba(0, 160, 255, 0.18), transparent 58%),
    var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
::selection { background: #6d28d9; color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1.05rem;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: Unbounded, "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand svg { width: 36px; height: 36px; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; min-width: 0; max-width: 100%; }
nav a { text-decoration: none; border-bottom: 1px solid var(--blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  padding-bottom: 2rem;
}
.kicker {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-family: Unbounded, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, .soon {
  font-family: Unbounded, "Avenir Next", sans-serif;
  text-wrap: balance;
  letter-spacing: -0.03em;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
}
.soon {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: #f4f5f8;
  background: linear-gradient(180deg, #ffffff 0%, #e4e6ee 38%, #8e93a3 50%, #f7f8fb 100%);
  background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .soon {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.tagline {
  margin: 0.9rem 0 0;
  max-width: 22ch;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}
.lede, .note, .facts p, .prose p {
  max-width: 62ch;
  color: var(--muted);
}
.lede { margin: 1rem 0 0; color: var(--ink); }

.signup {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
label { font-weight: 700; }
.field { display: grid; gap: 0.35rem; }
input[type="email"], input[type="text"], .code-block input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0e14;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 400;
  color: var(--ink);
}
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: #7a3ff0; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button, .button {
  appearance: none;
  border: 0;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f8fb, var(--button));
  color: var(--button-ink);
  font: inherit;
  font-weight: 700;
  white-space: normal;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; opacity: 0.62; }
.note { margin: 0; font-size: 0.98rem; }
#form-status, #remove-status { min-height: 1.4em; margin: 0; }
#form-status:not(:empty), .error { color: var(--danger); }
.ok { color: var(--ok); }
.widget {
  min-height: 0;
}
.preview-note { margin: 0; color: var(--muted); }

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(200, 75, 255, 0.55), rgba(94, 200, 255, 0.08) 46%, transparent 70%);
  filter: blur(6px);
}
.hero-mark svg { position: relative; width: min(100%, 460px); }
.ring {
  stroke-dasharray: 7 11;
}
@media (min-width: 861px) {
  .hero-mark { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 3rem); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-mark { order: -1; max-width: 168px; margin-inline: auto; border: 0; padding: 0; }
  .tagline { max-width: 28ch; }
  .top { flex-direction: column; align-items: flex-start; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
  padding-bottom: 3rem;
}
.facts article { border-top: 1px solid var(--line); padding-top: 1rem; }
h2 { margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; }
.prose { padding-bottom: 3rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 0.8rem; }
footer {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem 2rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between; }
.result { padding-block: 2rem 4rem; max-width: 40rem; }
.code-block { display: grid; gap: 0.4rem; margin: 1rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .ring { animation: drift 22s linear infinite; }
  .glow { animation: pulse 5.5s ease-in-out infinite; }
}
@keyframes drift { to { stroke-dashoffset: -220; } }
@keyframes pulse {
  50% { opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
  .ring { stroke-dasharray: none; animation: none; }
  .glow { animation: none; }
}
