:root {
  --bg: #f3e4e5;
  --text: #342d2d;
  --muted: #6f6a6a;
  --input-bg: #f8ecec;
  --input-border: #7f5045;
  --button-bg: #865749;
  --button-bg-hover: #75493d;
  --pill-border: #ccb9b4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hero {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #3d3131;
}

.subtitle {
  margin: 0 auto 26px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.signup-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.email-row {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 18px;
  border: 2px solid var(--input-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--input-bg);
  min-height: 58px;
}

.email-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-size: 0.98rem;
}

.email-row input::placeholder {
  color: #a29a9a;
}

.email-row button {
  border: 0;
  outline: none;
  background: var(--button-bg);
  color: white;
  width: 190px;
  min-width: 190px;
  padding: 0 18px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-row button:hover {
  background: var(--button-bg-hover);
}

.boroughs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
}

.checkbox-pill {
  position: relative;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 9px 16px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: transparent;
  color: #4b4343;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.checkbox-pill input:checked + span {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: white;
}

.message {
  max-width: 480px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.message.success {
  background: #edf7ed;
  color: #1f5f2a;
}

.message.error {
  background: #fff0f0;
  color: #8a2f2f;
}

.footnote {
  margin: 14px auto 0;
  color: #8a8282;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.65rem;
  }

  .subtitle {
    font-size: 0.96rem;
    margin-bottom: 22px;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 20px 12px;
    align-items: flex-start;
  }

  h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.94rem;
    margin-bottom: 18px;
  }

  .email-row {
    flex-direction: column;
    max-width: 100%;
    min-height: 0;
    border-radius: 16px;
  }

  .email-row input {
    width: 100%;
    padding: 14px 16px;
    min-height: 52px;
  }

  .email-row button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .boroughs {
    gap: 8px;
  }

  .checkbox-pill span {
    min-width: 108px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .footnote {
    margin-top: 12px;
  }
}