:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: #27272a;
  --field: #111111;
  --ok: #4ade80;
  --err: #f87171;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  /* content is at most 1352px wide; percentages here are of the full-width section */
  --side: max(var(--gutter), calc((100% - 1352px) / 2));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mono label style, used for nav, buttons and eyebrows */
.nav-links, .btn-outline, .btn-solid, .eyebrow, .scroll-cue, .kit-num, .footer a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--side);
  background: linear-gradient(var(--ink) 30%, rgba(10, 10, 10, 0));
  -webkit-user-select: none; user-select: none;
}
.nav img { -webkit-user-drag: none; }
.nav-logo { justify-self: start; }
.nav-logo img { height: 20px; width: auto; }
.nav-links { display: flex; gap: 32px; color: var(--muted); }
.btn-outline {
  justify-self: end;
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid #3f3f46; text-decoration: none; color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.btn-outline:hover { border-color: var(--muted); background: rgba(255, 255, 255, .04); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px var(--side) 104px;
  overflow: hidden;
}
#steps {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
#steps.dragging { cursor: grabbing; }
.hero-bottom {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero-copy { max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em;
}
.lede { margin: 20px 0 0; max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; }

.hero-form { width: min(440px, 100%); }
.form-note { margin: 0 0 12px; text-align: right; color: var(--faint); font-size: 13px; }
.signup { display: flex; gap: 8px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font-family: var(--mono); font-size: 14px;
  outline: none; transition: border-color .2s;
}
.signup input[type="email"]::placeholder { color: #52525b; }
.signup input[type="email"]:focus { border-color: var(--muted); }
.signup input[aria-invalid="true"] { border-color: var(--err); }
.btn-solid {
  height: 48px; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  transition: opacity .2s;
}
.btn-solid:hover { opacity: .88; }
.btn-solid:disabled { opacity: .5; cursor: progress; }
.btn-solid span { font-size: 14px; line-height: 1; }
.btn-outline:focus-visible, .btn-solid:focus-visible, .scroll-cue:focus-visible, .footer a:focus-visible {
  outline: 2px solid var(--paper); outline-offset: 3px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 20px; margin: 10px 0 0; text-align: right; font-size: 13px; color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint); text-decoration: none; transition: color .2s;
}
.scroll-cue:hover { color: var(--text); }

/* Kit */
.kit { padding: 120px var(--side) 96px; border-top: 1px solid #18181b; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.kit-grid article { padding: 32px 32px 40px 0; }
.kit-grid article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.kit-num { color: var(--faint); }
.kit h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.kit p:not(.eyebrow) { margin: 0; max-width: 340px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Footer */
.footer {
  display: flex; align-items: center; gap: 12px;
  padding: 28px var(--side); border-top: 1px solid #18181b;
  color: var(--faint); font-size: 13px;
}
.footer-mark { display: block; flex: none; color: var(--text); }
.footer a { margin-left: auto; color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Tablet and phone */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  /* keep a clear area for the mark above the stacked text */
  .hero { padding-top: calc(72px + min(76vw, 360px)); padding-bottom: 88px; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 32px; }
  .form-note, .form-status { text-align: left; }
  .hero-form { width: 100%; max-width: 480px; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit-grid article, .kit-grid article + article { padding: 28px 0 32px; border-left: 0; }
  .kit-grid article + article { border-top: 1px solid var(--line); }
  .kit h2 { margin-top: 24px; }
}
@media (max-width: 480px) {
  .btn-outline { height: 36px; padding: 0 12px; font-size: 10px; }
  .signup { flex-direction: column; }
  .signup input[type="email"] { flex: none; }
  .btn-solid { justify-content: center; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}
