/* Teaser theme. Dark first; light through [data-theme="light"].
   Palette mirrors the shared design tokens. */

:root {
  color-scheme: dark;
  --bg: #0c131a;
  --panel: #111c25;
  --raised: #16242f;
  --line: #22384a;
  --text: #e9f0f4;
  --muted: #9db2bf;
  --faint: #6e8593;
  --accent: #3ecf8e;
  --accent-ink: #06231a;
  --danger: #f38ba0;
  --radius: 8px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f5f6;
  --panel: #ffffff;
  --raised: #e9eff2;
  --line: #c9d6dd;
  --text: #14222b;
  --muted: #47616f;
  --faint: #546973;
  --accent: #0d7a4c;
  --accent-ink: #ffffff;
  --danger: #b4233a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.wordmark {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#theme-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
}

.teasers ul {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.teasers li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 1.25rem;
}

.teasers h2 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.teasers p {
  margin: 0;
  color: var(--muted);
}

.signup h2,
.faq h2 {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

#waitlist-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field legend {
  font-weight: 600;
}

.field legend {
  padding: 0;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.consent label {
  font-weight: 400;
}

.choice {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 400;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 600;
}

#form-status[data-state="ok"] {
  color: var(--accent);
}

#form-status[data-state="bad"] {
  color: var(--danger);
}

#waitlist-submit {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

#waitlist-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.note {
  color: var(--muted);
}

.faq {
  margin-top: 3rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--panel);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.bottom {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--faint);
  font-size: 0.9rem;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.banner {
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

@media (min-width: 40rem) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
