/* engagemessenger.com. Colours match the app (client/src/components/theme.ts). */

:root {
  --background: #f7f6f3;
  --surface: #ffffff;
  --border: #ddd9d0;
  --text: #1e1e1c;
  --muted: #6b6862;
  --primary: #2f6f8f;
  --primary-text: #ffffff;
  --held: #fbf3dd;
  --radius: 18px;
  --gutter: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  line-height: 1.5;
}

.top, main, .bottom {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.top { padding-top: 20px; padding-bottom: 8px; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--primary); }

/* Hero */
.hero { padding: 56px 0 40px; max-width: 640px; }
h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 0 0 28px; }

/* Waitlist form */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.waitlist input[type="email"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.waitlist button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text);
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:disabled { opacity: 0.6; cursor: default; }
.form-message { flex-basis: 100%; margin: 2px 0 0; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.form-message.error { color: #a23e3e; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.feature h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
.feature p { font-size: 18px; color: var(--muted); margin: 0; max-width: 440px; }
.phone { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(30, 30, 28, 0.08);
}

@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px 0; }
  .feature.reverse .feature-text { order: 2; }
  .phone { max-width: 360px; }
}

/* Closing call to action */
.closing { padding: 48px 0 64px; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.closing .waitlist { width: 100%; }

/* Footer */
.bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.bottom p { margin: 0; }
