/* ═══════════════════════════════════════════════════════════════════════════════
   android-testing.css — TEMPORARY, and loaded by exactly one page.

   The Android closed-testing signup form. Reached only through `css:` on that
   page's PAGES entry in site/build.mjs, so none of this reaches the other ten
   pages and removing the feature is deleting two files rather than unpicking
   components.css.

   Everything here is the input styling the site has never needed — there was no
   form anywhere until this page. Buttons, cards and type come from the existing
   sheets untouched. Class names are `signup-` prefixed because `.field`,
   `.field-row` and `.field-placeholder` already exist in components.css, where
   they style the fake input inside the phone mock on the home page.

   No hex literals: every colour is a token from tokens.css, and every offset is
   logical, so RTL needs no second rule.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── The three steps above the card ─────────────────────────────────────────── */
.signup-steps {
  list-style: none;
  counter-reset: signup-step;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin: 0;
  padding: 0;
}
.signup-steps li {
  counter-increment: signup-step;
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
/* A numbered badge rather than an <ol> marker, which cannot be styled to this
   and sits outside the text box in RTL. */
.signup-steps li::before {
  content: counter(signup-step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: 26px;
  block-size: 26px;
  margin-block-start: 2px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

/* ── Form ───────────────────────────────────────────────────────────────────── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.signup-field label {
  color: var(--ink);
}

.signup-input {
  inline-size: 100%;
  padding: var(--s3);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r4);
  background: var(--bg-lift);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body-md);
  /* 16px minimum, or iOS Safari zooms the page on focus. --fs-body-md is 16px;
     this is a floor in case that token ever shrinks. */
  min-block-size: 52px;
  transition:
    border-color var(--t-fast) var(--e-glide),
    background var(--t-fast) var(--e-glide),
    box-shadow var(--t-fast) var(--e-glide);
}
.signup-input::placeholder {
  color: var(--text-faint);
}
.signup-input:hover {
  border-color: var(--hairline-strong);
  background: var(--card-2);
}
.signup-input:focus-visible {
  outline: none;
  background: var(--card);
  border-color: var(--accent-line);
  box-shadow: var(--glow-accent);
}
/* :user-invalid, not :invalid — :invalid paints the field red before anything
   has been typed into it, which is a scold for showing up. */
.signup-input:user-invalid {
  border-color: var(--danger);
}

.signup-hint {
  margin: 0;
}

/* The always-visible mailto route, last child of the form. No top margin: the
   form's own gap supplies the space. The hairline is what stops it reading as
   another step in the form. */
.signup-fallback {
  margin: 0;
  padding-block-start: var(--s3);
  border-block-start: 1px solid var(--hairline);
}

.signup-submit {
  align-self: flex-start;
}
.signup-submit[disabled] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Status line ────────────────────────────────────────────────────────────── */
/* Present in the DOM from the start and announced through role="status", so the
   message reaches a screen reader without moving focus. */
.signup-status {
  margin: 0;
  color: var(--text-faint-strong);
}
.signup-status.is-error {
  color: var(--danger);
}

/* ── Success panel ──────────────────────────────────────────────────────────── */
.signup-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.signup-done h2 {
  margin: 0;
}
.signup-done p {
  margin: 0;
}

/* ── Honeypot ───────────────────────────────────────────────────────────────── */
/* Off-screen rather than display:none or hidden: a bot worth defending against
   skips fields it can tell are hidden, and both of those are trivial to detect.
   This one is in the layout, has a label, and is simply somewhere nobody looks. */
.signup-honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* `hidden` must win over the flex displays above, or the success panel is
   visible on load and the form never disappears. */
[hidden] {
  display: none !important;
}
