:root {
  --bg: #FFFFFF;
  --accent: #2A6B6B;
  --accent-dark: #1E4F4F;
  --accent-light: #EBF3F3;
  --text-primary: #1A1916;
  --text-secondary: #9B9A97;
  --border: #E8E7E3;
  --surface: #F7F6F3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

/* ---------- Landing layout ---------- */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.landing main {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.wordmark {
  height: 44px;
  width: auto;
  margin-bottom: 40px;
}

.headline {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.subheadline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 460px;
}

/* ---------- Waitlist form ---------- */

#waitlist-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 16px;
}

#waitlist-form input[type='email'] {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 120ms ease;
}

#waitlist-form input[type='email']::placeholder {
  color: var(--text-secondary);
}

#waitlist-form input[type='email']:focus {
  border-color: var(--accent);
}

#waitlist-form button {
  height: 36px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease;
}

#waitlist-form button:hover {
  background: var(--accent-dark);
}

#waitlist-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.confirmation {
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 16px;
  max-width: 420px;
}

.signin-link {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.signin-link a {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 16px;
  width: 100%;
}

.footer a {
  color: var(--accent);
}

.footer .sep {
  margin: 0 6px;
  color: var(--text-secondary);
}

/* ---------- Prose layout (privacy / terms) ---------- */

.prose-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.prose-header {
  padding: 32px 40px 0;
  display: flex;
  justify-content: center;
}

.prose-header img {
  height: 32px;
  width: auto;
}

.prose {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 64px;
  flex: 1;
}

.prose h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--text-primary);
}

.prose h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 40px 0 12px;
  color: var(--text-primary);
}

.prose h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.prose p {
  margin: 0 0 16px;
  color: var(--text-primary);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  font-weight: 500;
}

.prose em {
  font-style: italic;
}

.prose code {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--surface);
  padding: 1px 4px;
  border-radius: 3px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  font-weight: 500;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  #waitlist-form {
    flex-direction: column;
  }

  #waitlist-form button {
    width: 100%;
  }

  .prose {
    padding: 24px 20px 48px;
  }

  .prose-header {
    padding: 24px 20px 0;
  }
}
