/* Landing page layout. All color comes from tokens.css (--bl-*), which
   already handles light/dark via prefers-color-scheme. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bl-background);
  color: var(--bl-text-primary);
  line-height: 1.6;
}

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

/* Hero */
.hero { padding: 4.5rem 0 3rem; text-align: center; }
.hero-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bl-primary);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0.75rem auto 1rem;
  max-width: 22ch;
}
.hero-sub {
  max-width: 54ch;
  margin: 0 auto 2rem;
  color: var(--bl-text-secondary);
}

/* Beta form */
.beta-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.beta-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  min-height: 48px;
  padding: 0 1rem;
  font-size: 1rem;
  border: 1px solid var(--bl-outline);
  border-radius: 10px;
  background: var(--bl-surface);
  color: var(--bl-text-primary);
}
.beta-form button {
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: var(--bl-primary);
  color: var(--bl-on-primary);
  cursor: pointer;
}
.beta-form button:disabled { opacity: 0.6; cursor: default; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message { min-height: 1.5rem; margin-top: 0.75rem; font-size: 0.95rem; }
.form-message-success { color: var(--bl-success); }
.form-message-error { color: var(--bl-error); }
.beta-note { margin-top: 0.5rem; font-size: 0.85rem; color: var(--bl-text-secondary); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.feature {
  background: var(--bl-surface);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { color: var(--bl-text-secondary); font-size: 0.95rem; }

/* Screenshots */
.screenshots { padding: 2rem 0 3rem; text-align: center; }
.screenshots h2 { margin-bottom: 1.25rem; }
.screenshot-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.screenshot-frame {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border: 2px dashed var(--bl-outline);
  border-radius: 24px;
  background: var(--bl-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-frame span {
  color: var(--bl-text-secondary);
  font-size: 0.85rem;
  padding: 0 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--bl-surface-alt);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--bl-text-secondary);
}
footer p { max-width: 70ch; margin: 0 auto 0.5rem; }

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