@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* The app's dark theme. */
:root {
  --bg: #09090b;
  --card: #111113;
  --raise: #18181b;
  --line: #232327;
  --text: #ededef;
  --muted: #a1a1aa;
  --accent: #7c6cff;
  --accent-text: #a99fff;
  --primary: #6553f0;
  --ok: #3dd68c;
  --danger: #f2555a;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 28px; height: 28px; }
.top-cta {
  font-size: 0.875rem; font-weight: 550; text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: color 150ms, background-color 150ms;
}
.top-cta:hover { color: var(--text); background: var(--raise); }

/* Hero */
.hero { padding-top: clamp(40px, 9vw, 104px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 {
  margin: 22px auto 0; max-width: 15ch;
  font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.02; font-weight: 680; letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede { margin: 20px auto 0; max-width: 34ch; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--muted); text-wrap: balance; }

/* Waitlist */
.join { margin: 36px auto 0; max-width: 640px; text-align: left; }
.join:focus { outline: none; }
.fields {
  display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 8px; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
}
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: 0.75rem; font-weight: 500; color: var(--muted); padding-left: 4px; }
.field em { font-style: normal; color: #8b8b95; font-weight: 400; margin-left: 4px; }
input {
  width: 100%; height: 44px; padding: 0 12px;
  font: inherit; font-size: 0.9375rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 150ms, box-shadow 150ms;
}
input::placeholder { color: #7a7a85; }
input:hover { border-color: #34343a; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(124 108 255 / 0.25); }
input[aria-invalid="true"] { border-color: var(--danger); }
.at-wrap { position: relative; display: block; }
.at { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: #8b8b95; font-size: 0.9375rem; pointer-events: none; }
.at-wrap input { padding-left: 26px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border: 0; border-radius: 8px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  color: #fff; background: var(--primary); cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
  transition: background-color 150ms, transform 150ms var(--ease);
}
button:hover, .button:hover { background: #5a47e6; }
button:active, .button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.7; cursor: progress; }

.hint { margin-top: 10px; padding-left: 4px; font-size: 0.8125rem; color: var(--muted); }
.hint.error { color: var(--danger); }

.thanks {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  animation: pop 400ms var(--ease) both;
}
.thanks svg { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.thanks-title { font-weight: 620; font-size: 1.0625rem; }
.thanks p + p { color: var(--muted); margin-top: 2px; }

/* Screenshots */
.shot {
  margin: 0; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -20px rgb(0 0 0 / 0.7);
}
.shot-hero {
  position: relative; margin-top: clamp(48px, 8vw, 80px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 40px 80px -30px rgb(0 0 0 / 0.9);
}

/* Features */
.features { margin-top: clamp(64px, 10vw, 112px); }
.features ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.features li { padding: 24px 24px 0 0; }
.features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.features h2 { font-size: 1rem; font-weight: 620; letter-spacing: -0.01em; }
.features p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* Tour */
.tour { margin-top: clamp(80px, 12vw, 144px); display: grid; gap: clamp(64px, 10vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row:nth-child(even) .copy { order: 2; }
.copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.copy p { margin-top: 12px; color: var(--muted); max-width: 36ch; }

/* Closer */
.closer { margin-top: clamp(96px, 14vw, 160px); text-align: center; display: grid; justify-items: center; gap: 24px; }
.closer h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 660; letter-spacing: -0.035em; }

/* Footer */
.foot {
  margin-top: clamp(96px, 14vw, 160px); padding-block: 28px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 0.875rem; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Plain text pages */
.doc { max-width: 680px; padding-top: clamp(32px, 6vw, 72px); }
.doc h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.75rem); max-width: none; text-align: left; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
.doc h2 { margin-top: 36px; font-size: 1.125rem; font-weight: 620; }
.doc p, .doc li { color: #c4c4cc; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }

/* Motion: a short rise on load, a fade as rows scroll in. Only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { animation: rise 700ms var(--ease) both; }
  .js .rise:nth-child(2) { animation-delay: 60ms; }
  .js .rise:nth-child(3) { animation-delay: 120ms; }
  .js .rise:nth-child(4) { animation-delay: 180ms; }
  .js .rise:nth-child(5) { animation-delay: 260ms; }
  .js .reveal { opacity: 0; translate: 0 16px; transition: opacity 700ms var(--ease), translate 700ms var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
@keyframes pop { from { opacity: 0; scale: 0.98; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thanks { animation: none; }
}

/* Phones and small tablets */
@media (max-width: 860px) {
  .features ul { grid-template-columns: 1fr 1fr; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n + 3) { padding-top: 24px; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .copy { order: 0; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  button { width: 100%; }
  .features ul { grid-template-columns: 1fr; }
  .features li, .features li + li { padding: 20px 0 0; border-left: 0; }
  .features li + li { margin-top: 20px; border-top: 1px solid var(--line); }
  .shot, .shot-hero { border-radius: 10px; }
}
.thanks:focus { outline: none; }
