/* Waitlist page A — static, no web fonts, no external assets.
   Mobile-first. Colors are tokens; dark mode redefines them.
   Contrast targets: body text >= 7:1, muted text >= 4.5:1, UI borders >= 3:1. */

:root {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --text: #1b1e22;
  --muted: #4a5058;
  --border: #767c84;
  --rule: #d9dbd6;
  --accent: #1d5a85;
  --accent-text: #ffffff;
  --accent-hover: #164a6e;
  --status-bg: #fff4d6;
  --status-text: #5c4200;
  --focus: #b3420b;
  --todo-bg: #ffe0e0;
  --todo-text: #7a0000;
  --radius: 8px;
  --max: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1e2226;
    --text: #eceef0;
    --muted: #b9bfc6;
    --border: #8d949c;
    --rule: #343a40;
    --accent: #8cc4ec;
    --accent-text: #0d1a24;
    --accent-hover: #b0d8f4;
    --status-bg: #3a2f10;
    --status-text: #ffe2a0;
    --focus: #ffb37a;
    --todo-bg: #4a1414;
    --todo-text: #ffd0d0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.4rem 0;
}

/* Type */

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.45rem;
  margin-top: 0.25rem;
}

h3 {
  font-size: 1.1rem;
}

.page-title {
  margin-top: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
}

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

section {
  padding: 2rem 0 0.5rem;
}

section + section {
  border-top: 1px solid var(--rule);
  margin-top: 1.5rem;
}

.status {
  display: inline-block;
  margin: 1.5rem 0 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--status-bg);
  color: var(--status-text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
}

.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

/* Figures */

figure {
  margin: 0 0 1.5rem;
}

figure img {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #f2f2ee;
}

figcaption {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 1rem;
}

/* Lists */

.points {
  list-style: none;
  padding: 0;
}

.points li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.points li:last-child {
  border-bottom: 0;
}

.points strong {
  display: block;
}

.state {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 0.9rem;
  margin: 0 0 1rem;
}

.state dt {
  font-weight: 700;
}

.state dd {
  margin: 0;
}

/* Form */

.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.field {
  margin: 0 0 1.5rem;
}

label,
legend {
  font-weight: 700;
}

fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 0.4rem;
}

.hint {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.15rem 0 0.4rem;
}

.req {
  font-weight: 400;
  color: var(--muted);
}

input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.choice input {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
}

.choice label {
  font-weight: 400;
}

.other {
  margin: 0.25rem 0 0 2.1rem;
}

.other label {
  font-weight: 400;
  font-size: 0.95rem;
}

.consent {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.consent label {
  font-weight: 400;
}

/* FAQ */

details {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details p {
  margin: 0.5rem 0;
}

/* Placeholders the owner must fill before launch (the deploy job refuses to publish them). */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 700;
}

/* Wider screens */

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .wrap {
    padding: 0 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Brevo's spam trap (honeypot): kept off-screen; people never see or reach it. */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
