/* ==========================================================================
   ANDROID TESTER RECRUITMENT
   Shared by the home-page popup and the standalone signup page, so both stay
   visually identical. Loaded on index.html (popup only) and testers.html.
   ========================================================================== */

/* ---------- Popup ---------- */
.tester-pop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.tester-pop[hidden] { display: none; }
.tester-pop.is-on { opacity: 1; }

.tester-pop__card {
  position: relative;
  width: 100%;
  max-width: 27rem;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur-base) var(--ease);
}
.tester-pop.is-on .tester-pop__card { transform: none; }

/* Generous hit area — this is the primary "get rid of it" control. */
.tester-pop__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.tester-pop__close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.tester-pop__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-extra);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--pix-green);
  margin-bottom: var(--space-3);
}
.tester-pop__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}
.tester-pop__body {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
}
.tester-pop__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.tester-pop__dismiss {
  border: 0;
  background: none;
  color: var(--text-faint);
  font-family: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  padding: var(--space-2);
}
.tester-pop__dismiss:hover { color: var(--text-muted); }

/* ---------- Signup page ---------- */
.tester-page {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: var(--space-10) var(--gutter) var(--space-9);
}
.tester-page h1 { margin-bottom: var(--space-3); }
.tester-page .lede {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
}

.tester-req {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: var(--space-5);
  margin-bottom: var(--space-7);
}
.tester-req h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}
.tester-req ul { list-style: none; padding: 0; margin: 0; }
.tester-req li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.tester-req li:last-child { margin-bottom: 0; }
.tester-req li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pix-green);
}
.tester-req strong { color: var(--text); }

/* ---------- Reward ---------- */
/* Gold, where the requirements box is neutral — this is the half of the deal
   that has to do the persuading, so it gets the same colour as the primary CTA. */
.tester-reward {
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(245,166,35,0.10) 0%, rgba(245,166,35,0.03) 100%);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}
.tester-reward h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}
.tester-reward__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--pix-gold);
  margin-bottom: var(--space-2);
}
.tester-reward__worth {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-gold);
  background: var(--pix-gold);
  border-radius: var(--radius-pill);
  padding: 0.35em 0.9em;
  margin-bottom: var(--space-4);
}
.tester-reward__intro {
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-3);
}
.tester-reward ul { list-style: none; padding: 0; margin: 0; }
.tester-reward li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.tester-reward li:last-child { margin-bottom: 0; }
.tester-reward li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pix-gold);
}
.tester-reward strong { color: var(--text); }

/* Signup card. Same shell as .tester-req so the page reads as three panels:
   what we ask, what you get, and where you sign. */
.tester-signup {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: var(--space-5);
}
.tester-signup h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-5);
}

/* Reward line inside the popup — compact version of the same idea. */
.tester-pop__reward {
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  color: var(--text);
}
.tester-pop__reward b { color: var(--pix-gold); }

/* ---------- Form ---------- */
.tester-form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.field .optional {
  color: var(--text-faint);
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: 0;
}
.field .hint {
  font-size: var(--fs-small);
  color: var(--text-faint);
  line-height: var(--lh-normal);
}
.field input {
  width: 100%;
  padding: 0.85em 1em;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: var(--pix-purple-soft);
  box-shadow: 0 0 0 3px rgba(123, 63, 228, 0.25);
}
.field input[aria-invalid="true"] { border-color: var(--pix-red); }
.field .error {
  font-size: var(--fs-small);
  color: var(--pix-red);
  min-height: 1.1em;
}

/* Bot trap. Off-screen rather than display:none — some bots skip hidden fields
   but happily fill this one, and real users never reach it via tab order. */
.tester-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tester-form__submit { align-self: flex-start; }
.tester-form__note {
  font-size: var(--fs-small);
  color: var(--text-faint);
  line-height: var(--lh-relaxed);
}
.tester-form__note a { color: var(--pix-purple-soft); }

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}
.form-status[hidden] { display: none; }
.form-status--ok {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: var(--text);
}
.form-status--err {
  border: 1px solid rgba(220, 38, 38, 0.40);
  background: rgba(220, 38, 38, 0.10);
  color: var(--text);
}

/* ---------- Home-page entry points ---------- */
.tester-cta {
  font-size: var(--fs-small);
  color: var(--pix-green);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.5em 1.1em;
  transition: background var(--dur-base) var(--ease);
}
.tester-cta:hover { background: rgba(34, 197, 94, 0.12); }

/* Header variant. The header is logo + two buttons, and on a 375px phone that
   is genuinely tight, so the label has a short form that swaps in below the
   same 760px breakpoint the rest of the landing page uses. */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tester-cta--header {
  font-size: var(--fs-eyebrow);
  padding: 0.55em 1em;
  white-space: nowrap;
}
.tester-cta__short { display: none; }

@media (max-width: 760px) {
  .header-actions { gap: var(--space-2); }
  .tester-cta--header { padding: 0.5em 0.75em; font-size: 0.75rem; }
  .tester-cta__full { display: none; }
  .tester-cta__short { display: inline; }
}

/* Very narrow phones: the two buttons plus the logo stop fitting on one line,
   so drop the logo wordmark down a size rather than wrapping the header. */
@media (max-width: 380px) {
  .tester-cta--header { padding: 0.45em 0.6em; font-size: 0.7rem; }
  .site-header .header-cta { font-size: 0.8rem; padding: 0.5em 0.8em; }
}
