/* Hamilton waitlist pages (/join, /thanks, /privacy). Loaded after styles.css
   and reuses its colour tokens. Big fields and tap targets for a 55+ audience. */

.wl-main { background: var(--sky); padding: clamp(2.5rem, 7vw, 5rem) 0; }
.wl-narrow { max-width: 44rem; }
.wl-main h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0.6rem 0 1rem; }
.wl-main h1:focus { outline: none; }
.wl-note {
  margin: 1.25rem 0 1.5rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--blue);
  background: var(--white); border-radius: var(--radius-sm); color: var(--text);
}

.wl-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 4vw, 2.25rem);
}
.wl-form-note { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; }

.wl-field { margin-bottom: 1.1rem; min-width: 0; }
.wl-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.wl-field input, .wl-field select {
  width: 100%; min-height: 3.3rem; padding: 0.7rem 0.9rem; font: inherit; color: var(--text);
  background: var(--white); border: 2px solid #9aabbf; border-radius: var(--radius-sm);
}
.wl-field input:focus, .wl-field select:focus, .wl-check input:focus {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--navy);
}
.wl-field [aria-invalid="true"], .wl-check [aria-invalid="true"] { border-color: #b3261e; }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .wl-row { grid-template-columns: 1fr; gap: 0; } }

.wl-check { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 0.4rem; }
.wl-check input { flex: none; width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--blue); }
.wl-check label { font-weight: 500; }

.wl-error { margin: 0.35rem 0 0; min-height: 0; color: #b3261e; font-weight: 600; font-size: 0.95rem; }
.wl-error:empty { display: none; }
.wl-card .btn { margin-top: 1.4rem; }
.wl-fine { margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* Spam trap: kept off-screen so people never see or tab to it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts written by the server or by waitlist.js */
.wl-alert-slot:focus { outline: none; }
.alert { margin: 0 0 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 2px solid; background: var(--white); }
.alert-error { border-color: #b3261e; }
.alert-info { border-color: var(--blue); background: var(--blue-50); }
.alert-title { margin: 0; font-weight: 700; color: var(--navy); }
.alert p:last-child { margin-bottom: 0; }
.alert ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* Thanks page */
.wl-thanks { text-align: center; }
.wl-thanks .lead { margin: 0 auto 1rem; }
.wl-thanks-icon {
  width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green-100); color: var(--green); display: grid; place-items: center;
}
.wl-thanks-icon svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy page */
.wl-prose h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.wl-prose ul { padding-left: 1.25rem; }
.wl-lawyer { background: #fff6dc; border: 2px solid #c99a1b; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.wl-lawyer p { margin: 0; }

.wl-footer { padding-top: 2.5rem; }
.wl-footer-links { margin: 0.5rem 0 1.5rem; }
