/* /beta/: TestFlight sign-up. Built on site.css tokens. */
.beta { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding: 24px 32px 160px; align-items: start; }
.beta-card { background: var(--card); border-radius: var(--r-card); padding: 30px; box-shadow: var(--shadow); min-width: 0; }
.beta-card h2 { font-size: 28px; margin: 0 0 6px; }
.beta-req { color: var(--ink-3); margin: 0 0 18px; font-size: 15px; }

.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.field .opt { font-weight: 600; color: var(--ink-3); }
.field .hint { margin: -2px 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.field input[type="text"], .field input[type="email"], .field select {
  display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink-3); border-radius: 16px; appearance: none;
}
.field select {
  padding-right: 42px;
  background: #fff url(draw/chevron.svg) no-repeat right 16px center;
}
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--tint-sky); }
.field [aria-invalid="true"] { border-color: var(--rose-ink); background-color: #FFF7F8; }
.field .err { margin: 6px 0 0; color: var(--rose-ink); font-weight: 700; font-size: 15px; }
.field.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.field.check input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--rose-deep); }
.field.check label { font-weight: 700; margin: 0; line-height: 1.4; }
.field.check .err { grid-column: 2; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-form .btn { margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.beta-form .btn[disabled] { opacity: .7; cursor: progress; }
.beta-fine { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.beta-fine a, .beta-msg a { color: var(--blue-deep); }

/* Messages: shown by :target (no JavaScript: the function redirects to /beta/#thanks etc.) or by beta.js. */
.beta-msg { display: none; border-radius: 20px; padding: 18px 20px; margin: 0 0 20px; }
.beta-msg:target, .beta-msg.on { display: block; }
.beta-msg:focus { outline: none; }
.beta-msg.good { background: var(--tint-leaf); }
.beta-msg.warn { background: var(--tint-sun); }
.beta-msg h2 { font-size: 24px; margin: 0 0 4px; }
.beta-msg p { margin: 0; color: var(--ink); line-height: 1.5; }
.beta-msg .beta-more { margin-top: 10px; font-weight: 700; }
.beta-more a { font-weight: 800; }
.beta-msgs:has(#thanks:target, #already:target, .done) + .beta-form { display: none; }

.beta-how img { display: block; width: 110px; height: auto; margin: -4px 0 8px; }
.beta-how p { color: var(--ink-2); margin: 0; }

@media (max-width: 860px) {
  .beta { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 120px; }
  .beta-card { padding: 22px 18px; }
}
.beta-msg, .beta-form input, .beta-form select { scroll-margin-top: 110px; }
.beta-msgs:has(.done, #thanks:target, #already:target) .beta-msg { margin-bottom: 0; }
