/* SF Pro on Apple devices (the system font; Apple does not license it for web
   embedding). Everyone else gets Inter, the closest match, served from here. */
@font-face {
  font-family: "Inter Fallback";
  src: url(/fonts/inter-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #000;
  --fg: #f4f4ef;
  --body: #c8c8c2;
  --dim: #8b8b85;
  --line: #4a4a45;
  --accent: #f9f006;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* Left half: halftone particles, pinned while the right side scrolls */
.field { position: sticky; top: 0; height: 100svh; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Right half */
.side {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 28px 28px 28px 0;
}
.meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .01em;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 12px; height: auto; }

/* Waitlist form (home) */
form { margin: auto 0; width: 100%; max-width: 620px; }
.row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.row:focus-within { border-color: var(--fg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: 400 clamp(28px, 3.4vw, 48px)/1.15 var(--font);
  letter-spacing: -.02em;
  padding: 0 0 6px;
  border-radius: 0;
}
input::placeholder { color: var(--fg); opacity: 1; }
input:focus::placeholder { color: var(--dim); }
button {
  background: none;
  border: 0;
  color: var(--fg);
  padding: 0 0 6px 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
button svg { width: clamp(22px, 2.4vw, 32px); height: auto; transition: transform .2s; }
button:hover svg, button:focus-visible svg { transform: translateX(4px); }
button:disabled { opacity: .4; cursor: default; }
.lead { font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.sub { font-size: 13px; color: var(--dim); margin: 0 0 40px; }
.note { min-height: 16px; margin: 12px 0 0; font-size: 11px; color: var(--fg); }
.consent { font-size: 11px; line-height: 1.5; color: var(--dim); margin: 4px 0 0; max-width: 420px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Text pages */
.doc { max-width: 620px; margin: 18vh 0 96px; }
.doc h1 {
  font: 400 clamp(28px, 3.4vw, 48px)/1.15 var(--font);
  letter-spacing: -.02em;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.doc .updated { font-size: 11px; color: var(--dim); margin: 12px 0 48px; }
.doc h2 { font-size: 13px; font-weight: 500; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 14px; line-height: 1.65; color: var(--body); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 18px; }
.doc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.doc .big { font: 400 clamp(22px, 2.2vw, 30px)/1.3 var(--font); letter-spacing: -.01em; color: var(--fg); margin: 0 0 6px; }
.doc .label { font-size: 11px; color: var(--dim); margin: 36px 0 8px; }

/* Footer */
.foot { font-size: 11px; line-height: 1.5; color: var(--dim); }
.foot nav, .foot .line { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav { color: var(--fg); margin-bottom: 8px; }
.foot .line + .line { margin-top: 4px; }
.foot [aria-current="page"] { color: var(--dim); }

@media (max-width: 760px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .field { position: relative; height: 42svh; }
  .side { min-height: 58svh; padding: 20px 16px 28px; }
  form { margin: 48px 0 auto; padding-bottom: 64px; }
  .doc { margin: 48px 0 64px; }
}
.foot .line.plain { display: block; }

/* Text pages: full width, no particles, big type */
body.doc-page { display: block; }
.doc-page .side { min-height: 100svh; padding: 28px; }
.doc-page .doc { max-width: none; margin: 18vh 0 140px; }
.doc-page .doc h1 {
  font-size: clamp(56px, 10vw, 160px);
  line-height: .95;
  letter-spacing: -.045em;
  padding-bottom: 20px;
}
.doc-page .doc .updated { margin: 16px 0 96px; }
.doc-page .doc h2 {
  font: 400 clamp(28px, 3.4vw, 48px)/1.15 var(--font);
  letter-spacing: -.02em;
  color: var(--fg);
  margin: 96px 0 20px;
}
.doc-page .doc p, .doc-page .doc li { font-size: 17px; max-width: 760px; }
.doc-page .doc .big { font-size: clamp(28px, 3.4vw, 48px); max-width: none; }
.doc-page .doc .label { font-size: 11px; margin: 72px 0 10px; }
@media (max-width: 760px) {
  .doc-page .side { padding: 20px 16px 28px; }
  .doc-page .doc { margin: 64px 0 96px; }
  .doc-page .doc .updated { margin-bottom: 56px; }
  .doc-page .doc h2 { margin-top: 64px; }
  .doc-page .doc p, .doc-page .doc li { font-size: 15px; }
}

/* Small text uses the same SF Pro stack */
:root { --font-small: var(--font); }
.meta, .lead, .sub, .note, .consent, .foot,
.doc .updated, .doc .label, .doc p:not(.big), .doc li {
  font-family: var(--font-small);
}

/* Bigger brand mark and name, top left */
.meta .brand { font-size: 32px; font-weight: 500; letter-spacing: -.025em; gap: 14px; }
.meta .brand img { width: 30px; }
.meta { align-items: center; }

/* Product line above the waitlist */
.pitch {
  font: 400 clamp(18px, 1.6vw, 22px)/1.4 var(--font);
  letter-spacing: -.01em;
  color: var(--fg);
  max-width: 520px;
  margin: 0 0 56px;
}
.pitch { margin-bottom: 56px; }
.pitch strong { font-weight: 500; }
::selection { background: var(--accent); color: #000; }

/* Home: one column, centred on the page */
/* Map background, faded, with a dark vignette around the edges */
.home::before, .home::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.home::before { background: url(/map.webp) center / cover no-repeat; opacity: .045; }
.home::after { background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 70%, #000 100%); }
body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  position: relative;
  isolation: isolate;
  background: #000;
}
.home .stage {
  flex: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
  padding: 48px 0 120px;
}
.home .title {
  font: 600 clamp(32px, 6vw, 46px)/1.1 var(--font);
  letter-spacing: -.03em;
  margin: 0 0 16px;
  color: var(--fg);
}
.home .title { max-width: 640px; }
.home .intro {
  font: 400 14px/1.6 var(--font-small);
  color: var(--dim);
  margin: 0 0 36px;
}
.home form { margin: 0; width: 100%; max-width: 460px; display: grid; gap: 14px; }
.field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0a;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.field-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 240, 6, .15); }
.field-box label { font: 500 14px var(--font-small); color: var(--fg); white-space: nowrap; }
.field-box label span { color: var(--accent); }
.home input {
  font: 400 15px/1 var(--font-small);
  letter-spacing: 0;
  padding: 0;
  height: 100%;
  color: var(--fg);
}
.home button {
  height: 52px;
  padding: 0;
  border-radius: 999px;
  display: block;
  width: 100%;
  color: #111;
  font: 600 12px var(--font-small);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: #fff;
  border: 0;
  transition: transform .15s, filter .2s;
}
.home button:hover { filter: brightness(.92); transform: translateY(-1px); }
.home button:active { transform: translateY(0); }
.home .done .field-box, .home .done button { opacity: .5; pointer-events: none; }
.home .note { margin: 4px 0 0; font-size: 13px; min-height: 18px; color: var(--accent); }
.home .consent { margin: 0 auto; max-width: 360px; }
.home .foot { width: 100%; max-width: 460px; padding: 0 0 28px; text-align: center; }
@media (min-height: 620px) {
  .home .stage { padding: 48px 0; }
  .home .foot { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
}
.home .foot nav, .home .foot .line { justify-content: center; }
.home .foot .line.plain { display: block; }

/* Motion. Only active once JS runs (the inline script adds .anim); without JS
   everything is simply visible. */
.anim .title, .anim .intro, .anim .field-box, .anim #join button, .anim .consent,
.anim .home .foot, .anim .doc > * { visibility: hidden; }
.splash { display: none; }
.has-intro .splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: #f9f006;
}
.has-intro .splash svg { width: min(132px, 30vw); height: auto; opacity: 0; }
.has-intro, .has-intro body { overflow: hidden; }
.line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Buttons and links: quick, small responses */
.home button { transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.home button:hover { transform: translateY(-2px); }
.home button:active { transform: translateY(-1px) scale(.98); transition-duration: .12s; }
a { transition: color .2s ease, opacity .2s ease; }
.meta a:not(.brand):hover { text-decoration: none; opacity: .7; }

/* Footer: one shared indicator under the current or hovered link */
.foot nav { position: relative; }
.foot nav a:hover { text-decoration: none; }
.foot [aria-current="page"] { color: var(--fg); }
.nav-ind {
  position: absolute;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), width .25s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .home button, .home button:hover, .home button:active { transform: none; }
  .nav-ind { transition: opacity .2s ease; }
}
