/* AFL palette from afl-production/site/src/styles/tokens.css. System fonts
   only: CSP is default-src 'self', and a phone on LTE shouldn't wait for a
   webfont before it can show a form. */
:root {
  --bg: #0f1115;
  --bg-elev: #181b22;
  --fg: #e6e8ee;
  --fg-mute: #98a0ad;
  --yellow: #f5b82e;
  --yellow-deep: #e0a218;
  --ink: #15140f;
  --border: #2e3440;
  --bad: #ff8a80;
  --warn: #ffd27a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }

.head { margin-bottom: 20px; }
.logo { display: block; width: 160px; height: auto; margin-bottom: 20px; }
h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--yellow);
}
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { margin: 0; font-size: 1.1rem; }
.deadline { margin: 12px 0 0; font-weight: 700; color: var(--yellow); }

.banner {
  border-left: 4px solid var(--yellow);
  background: var(--bg-elev);
  padding: 12px 14px;
  margin: 0 0 20px;
  border-radius: 6px;
}
.banner--soft { border-left-color: var(--fg-mute); color: var(--fg-mute); }

.spec {
  background: var(--bg-elev);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.spec ul { margin: 0; padding-left: 1.2em; }
.spec li + li { margin-top: 4px; }
.tip { margin: 12px 0 0; color: var(--fg-mute); font-size: 0.95rem; }

.field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
/* 16px minimum or iOS zooms the page on focus. */
input[type="text"], input:not([type]), input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: max(16px, 1rem);
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
}
input:focus-visible, .pick:focus-within, .consent:focus-within, .btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
::placeholder { color: #6b7280; }
.hint { margin: 6px 0 0; color: var(--fg-mute); font-size: 0.9rem; }
.hint--warn { color: var(--warn); }

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 400;
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  margin: 0;
}
/* Visually hidden but still focusable and announced. */
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick__btn {
  background: var(--fg);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pick__name { color: var(--fg-mute); overflow-wrap: anywhere; min-width: 0; flex: 1; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  margin: 8px 0 20px;
  cursor: pointer;
}
.consent input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--yellow); }

.error { color: var(--bad); font-weight: 700; margin: 0 0 16px; }

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover { background: var(--yellow-deep); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  margin-top: 12px;
}
.btn--ghost:hover { background: var(--bg-elev); }

.progress, .failed, .done {
  background: var(--bg-elev);
  border-radius: 10px;
  padding: 20px 18px;
}
.progress__title { font-weight: 700; margin: 0 0 12px; }
progress {
  width: 100%;
  height: 14px;
  appearance: none;
  border: 0;
  border-radius: 7px;
  background: var(--border);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--border); }
progress::-webkit-progress-value { background: var(--yellow); }
progress::-moz-progress-bar { background: var(--yellow); }
.progress__meta { color: var(--fg-mute); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.done h2 { color: var(--yellow); font-size: 1.4rem; }
.done p { margin: 0 0 12px; }

.foot { margin-top: 40px; color: var(--fg-mute); font-size: 0.85rem; text-align: center; }
