/* /testers — tester onboarding page. Loads after style.css and inherits
   the shared :root tokens declared there. */

/* The homepage topbar floats over the hero; here it's a normal header. */
.testers-page .topbar {
  position: static;
  border-bottom: 1px solid var(--line);
}
.testers-page .brand { text-shadow: none; color: var(--text); }

/* ── Article column ── */
.guide {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 48px) clamp(20px, 6vw, 28px) 0;
}

.guide h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.intro {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 52ch;
}
.intro a { color: var(--link); font-weight: 600; }

.guide h2 {
  margin: clamp(36px, 9vw, 56px) 0 4px;
  color: var(--heading);
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.h2-aside { font-weight: 500; font-size: 0.72em; color: var(--muted); }

.guide h3 {
  margin: 28px 0 2px;
  color: var(--heading-soft);
  font-size: 1.08rem;
  font-weight: 650;
}

.guide p, .guide li { color: var(--text-soft); }
.guide strong { color: var(--text); font-weight: 650; }
.guide ul, .guide ol { padding-left: 22px; margin: 10px 0; }
.guide li { margin: 6px 0; }
.guide li::marker { color: var(--earth); font-weight: 600; }
.guide a { color: var(--link); }

/* ── New-in-this-build card ── */
.build-notes {
  margin: clamp(36px, 9vw, 56px) 0 0;
  padding: clamp(18px, 5vw, 28px);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--cta) 45%, transparent);
  border-radius: 18px;
  scroll-margin-top: 16px;
}
.build-notes h2 { margin-top: 0; }
.build-notes h3:first-of-type { margin-top: 16px; }

/* ── Signup card ── */
.signup {
  margin: clamp(20px, 5vw, 32px) 0 0;
  padding: clamp(18px, 5vw, 28px);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  scroll-margin-top: 16px;
}
.signup h2 { margin-top: 0; }
.signup__lead { margin: 8px 0 18px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;   /* ≥16px so iOS Safari doesn't zoom on focus */
}
.field select { appearance: none; -webkit-appearance: none; }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 30%, transparent);
}

.btn--record {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-weight: 700;
}
.btn--record:hover:not(:disabled) { transform: translateY(-1px); background: var(--cta-hover); }
.btn--record:disabled { opacity: 0.7; cursor: default; }
.btn--record:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.4);
  color: #8C2F2F;
  font-size: 0.92rem;
}

.signup__done {
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cta) 45%, transparent);
}
.signup__done p { margin: 0; color: var(--text); }

@media (min-width: 768px) {
  .btn--record { width: auto; min-width: 240px; }
}
