/* Mobile-first closed-testing invite journey */
.tester-page {
  min-height: 100vh;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.tester-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.5rem;
}

.tester-top .brand {
  font-size: 0.95rem;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.tester-progress {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem 0;
}

.tester-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(26, 33, 28, 0.1);
  transition: background 0.25s ease;
}

.tester-progress span.on {
  background: var(--brand);
}

.tester-hero {
  padding: 1.25rem 1.15rem 0.5rem;
  text-align: center;
}

.tester-hero img.mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}

.tester-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tester-hero p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.tester-card {
  margin: 1rem 1.15rem 0;
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.step-kicker {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.tester-card h2 {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.tester-card .step-copy {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.step-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.step-list .n {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(99, 195, 106, 0.18);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.tester-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.tester-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.btn-ghost-lite {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem;
  cursor: pointer;
}

.tester-form label {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.tester-form input,
.tester-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.tester-form textarea {
  resize: vertical;
  min-height: 88px;
}

.tester-form .hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.tester-error {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #9f1239;
  font-size: 0.88rem;
}

.tester-done {
  text-align: center;
}

.tester-done h2 {
  margin-top: 0.5rem;
}

.hidden-step {
  display: none;
}

.tester-foot {
  margin: 1.25rem 1.15rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.tester-foot a {
  color: var(--brand-dark);
}

.tester-accordion {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(99, 195, 106, 0.08);
  overflow: hidden;
}

.tester-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tester-accordion summary::-webkit-details-marker {
  display: none;
}

.tester-accordion summary::after {
  content: "+";
  font-weight: 800;
  opacity: 0.7;
}

.tester-accordion[open] summary::after {
  content: "−";
}

.tester-accordion-body {
  padding: 0 1rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.tester-status-pill {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 195, 106, 0.15);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.tester-status-pill[data-status="pending"] {
  background: #fff7ed;
  color: #9a3412;
}

.tester-status-pill[data-status="rejected"] {
  background: #fff1f2;
  color: #9f1239;
}

.tester-status-pill[data-status="approved"],
.tester-status-pill[data-status="completed"] {
  background: rgba(99, 195, 106, 0.18);
  color: var(--brand-dark);
}
