:root {
  --surface-page: #f5f1e6;
  --surface-card: #fbf9f3;
  --ink: #1c1c1a;
  --muted: #6b6558;
  --line: #ded6c3;
  --accent: #4a5c7a;
  --accent-contrast: #f5f1e6;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

h1,
h2 {
  font-family: "Petrona", ui-serif, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: none;
}

.hero {
  text-align: center;
  padding-top: 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  padding-left: 3rem;
}

.step h3 {
  margin-top: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.waitlist {
  text-align: center;
}

.waitlist form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 28rem;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

#waitlist-status {
  margin-top: 1rem;
  font-weight: 500;
}

#waitlist-status[data-state="success"] {
  color: #2a7c4f;
}

#waitlist-status[data-state="error"] {
  color: #c0392b;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}
