:root {
  --bg: #EEF2EE;
  --surface: #FFFFFF;
  --ink: #22303C;
  --muted: #5F6B73;
  --note: #F2C14E;
  --sage: #4F7A63;
  --line: #CBD5CE;
  --error: #A23B2A;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-4: clamp(2.4rem, 5.2vw, 4.1rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.skip:focus { left: 0.5rem; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--ink);
  border-radius: 7px;
}
.mark i {
  display: block;
  width: 7px;
  height: 14px;
  border-radius: 2px;
}
.mark i:first-child { background: var(--note); }
.mark i:last-child { background: var(--sage); }

.platform {
  font-size: var(--step--1);
  color: var(--muted);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  font: 700 var(--step-0)/1 var(--body);
  color: var(--ink);
  background: var(--note);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Hero video: the one memorable thing */
.hero-media { margin: 0; }

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: var(--bg);
}

.hero-media figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

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

/* What changes */
.how {
  background: var(--surface);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

.how > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.how h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin-top: 0;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.points {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.points h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.points p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
}

/* Join */
.join {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.join h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.join-copy p { margin: 0; max-width: 34ch; }

.form {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field > span,
.field > legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.4rem;
}

input[type="email"],
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
input[type="email"]:focus,
select:focus { border-color: var(--ink); }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: var(--bg);
}
.choices label:has(input:checked) {
  border-color: var(--ink);
  background: #FFF6DB;
}
.choices input { accent-color: var(--ink); margin: 0; }

.hp { position: absolute; left: -9999px; }

.status { margin: 0; min-height: 1.5em; font-weight: 700; }
.status.error { color: var(--error); }
.status.ok { color: var(--sage); }

.fine { margin: 0; font-size: var(--step--1); color: var(--muted); }

.form.done .field,
.form.done .button,
.form.done .fine { display: none; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Privacy page */
.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.doc h2 { font-family: var(--display); font-size: var(--step-1); margin-top: 2rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero, .join { grid-template-columns: 1fr; }
  .hero-media { max-width: 30rem; }
  .points { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero h1 { max-width: 16ch; }
}

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