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

:root {
  --bg: #09090b;
  --raised: #111114;
  --line: #222227;
  --line-strong: #2e2e35;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #8ab4ff;
  --accent-ink: #0b1430;
  --paper: #f1efe8;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* soft blue glow behind the hero, very low key */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 70vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(138, 180, 255, .10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.lockup img { width: 28px; height: 28px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { background: #a3c4ff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, .social:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.xicon { width: 14px; height: 14px; fill: currentColor; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(138, 180, 255, .18); }
h1 {
  margin: 0; font-weight: 650; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(46px, 7.4vw, 88px);
}
h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 24px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; }

.signup { margin-top: 36px; max-width: 520px; }
.field {
  display: flex; gap: 6px; padding: 6px;
  background: var(--raised); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-strong);
}
.field:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.field input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; outline: none;
}
.field input::placeholder { color: var(--faint); }
.signup[aria-busy="true"] .btn { opacity: .6; pointer-events: none; }
.fine { margin: 12px 2px 0; font-size: 13px; color: var(--faint); }
.fine.err { color: #ff9b9b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.joined {
  margin-top: 36px; max-width: 520px; padding: 22px 22px 20px;
  border-radius: var(--radius); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong);
  animation: rise .35s ease both;
}
.joined p { margin: 0; color: var(--muted); }
.joined .joined-title { color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.joined-links { display: flex; gap: 8px; margin-top: 16px; }

.hero-art { display: flex; justify-content: center; }
.page { width: 100%; max-width: 400px; height: auto; animation: float 7s ease-in-out infinite; }
.nb { white-space: nowrap; }
.page .hl { transform-box: fill-box; transform-origin: left center; animation: mark 1.1s .4s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section-title { margin: 0 0 24px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.features, .follow, .faq { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 26px 24px 24px; border-radius: var(--radius); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(138, 180, 255, .1); }
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.follow { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.follow-copy p { margin: 0; max-width: 28em; font-size: 20px; line-height: 1.45; letter-spacing: -.01em; }
.follow-links { display: grid; gap: 10px; }
.social {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border-radius: var(--radius); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; transition: box-shadow .15s ease, background .15s ease;
}
.social:hover { box-shadow: inset 0 0 0 1px var(--accent); background: #13151b; }
.social svg { width: 22px; height: 22px; flex: none; fill: var(--ink); }
.social span { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.social small { color: var(--faint); font-size: 14px; }
.social i { font-style: normal; color: var(--faint); transition: transform .15s ease, color .15s ease; }
.social:hover i { transform: translateX(3px); color: var(--accent); }

.faq details { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; color: var(--muted); max-width: 40em; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--faint);
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- plain pages (privacy, unsubscribe) ---------- */
.plain .plain-card, .doc { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
.plain h1, .doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 40px 0 16px; line-height: 1.05; }
.plain p { color: var(--muted); }
.plain form { margin-top: 24px; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--muted); }
.doc a, .plain a:not(.lockup) { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 64px; gap: 24px; }
  .hero-art { order: -1; }
  .page { max-width: 210px; }
  .grid { grid-template-columns: 1fr; }
  .follow { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .top { height: 64px; }
  .top .btn-sm { padding: 0 12px; font-size: 13px; }
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
