/* WeekSquire marketing site — shared styles.
   Colors mirror constants/theme.ts (light/dark) and spacing mirrors
   constants/tokens.ts, so the site reads as the same product as the app. */

:root {
  --background: #F6F8F6;
  --card: #FFFFFF;
  --text: #16211B;
  --text-muted: #657168;
  --accent: #1E8F68;
  --accent-text: #FFFFFF;
  --accent-soft: #E4F3EB;
  --border: #E3E8E4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0F1512;
    --card: #1A211D;
    --text: #EEF2EF;
    --text-muted: #98A39C;
    --accent: #5FCB9E;
    --accent-text: #08110C;
    --accent-soft: #172C22;
    --border: #2A322D;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

main {
  padding: 40px 0 8px;
}

.hero {
  padding: 0 0 8px;
}

.badge {
  display: inline-block;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.pitch {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 62ch;
}

.waitlist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
}

.waitlist button {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.waitlist button:hover {
  opacity: 0.9;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.form-success {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 48px 0 8px;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.step-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
  margin-bottom: 10px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 32px;
  font-size: 13px;
  color: var(--text-muted);
}

footer.site-footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Legal pages */
.legal h1 {
  font-size: 28px;
}

.legal h2 {
  font-size: 19px;
  margin-top: 36px;
}

.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal .draft-note {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  text-decoration: none;
}
