:root {
  --house-pink: #e0457b;
  --senate-purple: #6a4c93;
  --governor-blue: #2563eb;
  --bg: #0f1115;
  --bg-panel: #ffffff;
  --text-dark: #1a1a1e;
  --text-light: #f5f5f7;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
}

.split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.hero {
  flex: 1.1;
  background: linear-gradient(135deg, var(--house-pink), var(--senate-purple) 55%, var(--governor-blue));
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.hero .coming-soon {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  opacity: 0.9;
  margin: 0;
}

.panel {
  flex: 1;
  background: var(--bg-panel);
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.panel-inner {
  width: 100%;
  max-width: 420px;
  padding: 6vw 2rem;
}

.store-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.store-btn {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--text-dark);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  opacity: 0.5;
  cursor: default;
}

.store-btn-label { font-size: 0.65rem; }
.store-btn-name { font-size: 0.95rem; font-weight: 600; }

.legal-links {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-links a {
  color: var(--muted);
  text-decoration: underline;
}

.legal-links .dot {
  margin: 0 0.5rem;
}

.beta-form-wrap h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.beta-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

#beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#beta-form label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.6rem;
}

#beta-form input,
#beta-form select,
#beta-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

#beta-form button {
  margin-top: 1.25rem;
  background: var(--senate-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

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

#beta-status {
  min-height: 1.2em;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

#beta-status.success { color: #16a34a; }
#beta-status.error { color: #dc2626; }

@media (max-width: 800px) {
  .split { flex-direction: column; }
  .hero { padding: 10vw 6vw; }
  .panel-inner { max-width: 100%; padding: 8vw 6vw; }
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  line-height: 1.65;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--senate-purple);
  text-decoration: none;
  font-weight: 600;
}
