/* assets/friend-test.css
 * Styles for /friend-test, the cold-visitor usability instrument.
 * Phase 2 follow-up to the Idempotent Phoenix landing rebuild (2026-05-11).
 * Scoped under .ft-* to avoid colliding with landing.css.
 */

.ft-shell {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 24px 96px;
  color: var(--ink, #1a1a1a);
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
}

.ft-head {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.ft-mark {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim, #555);
  margin-bottom: 12px;
}
.ft-intro-line {
  font-size: 15px;
  color: var(--ink-dim, #555);
  margin: 0;
}

.ft-stage[hidden] { display: none; }

.ft-stage h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
  color: #0F2A1F;
}
.ft-stage p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: var(--ink, #1a1a1a);
}

.ft-steps {
  padding-left: 24px;
  margin: 0 0 28px;
}
.ft-steps li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.ft-note {
  background: rgba(233, 123, 71, .08);
  border-left: 4px solid #E97B47;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  margin: 28px 0;
  color: #4a2c1a;
}

.ft-actions { margin-top: 28px; }

.ft-btn {
  display: inline-block;
  background: #0F2A1F;
  color: #fff;
  border: 0;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: inherit;
  transition: background 120ms ease;
}
.ft-btn:hover { background: #16382A; }
.ft-btn:focus-visible {
  outline: 3px solid #E97B47;
  outline-offset: 2px;
}
.ft-btn-primary { background: #E97B47; }
.ft-btn-primary:hover { background: #D86B38; }
.ft-btn-ghost {
  background: transparent;
  color: var(--ink-dim, #555);
  border: 1px solid rgba(0, 0, 0, .15);
}
.ft-btn-ghost:hover { background: rgba(0, 0, 0, .03); }

.ft-form { display: block; }
.ft-q {
  border: 0;
  padding: 0;
  margin: 0 0 36px;
}
.ft-q legend {
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 8px;
  color: #0F2A1F;
}
.ft-q-hint {
  font-size: 14px;
  color: var(--ink-dim, #555);
  margin: 0 0 12px;
}
.ft-q label {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 100ms ease, border-color 100ms ease;
}
.ft-q label:hover { background: rgba(0, 0, 0, .06); }
.ft-q label input {
  margin-right: 10px;
}
.ft-q input:checked + span,
.ft-q label:has(input:checked) {
  background: rgba(15, 42, 31, .08);
  border-color: #0F2A1F;
}
.ft-q textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 6px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.ft-q-counter {
  font-size: 13px;
  color: var(--ink-dim, #555);
  margin: 6px 0 0;
  text-align: right;
}

.ft-url {
  background: rgba(0, 0, 0, .05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}

.ft-meta {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 13px;
  color: var(--ink-dim, #555);
}
.ft-meta code {
  background: rgba(0, 0, 0, .05);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* Return-to-test banner injected on /petition?confirm=success
   when a friend-test session is in-flight. Floats at bottom so it
   never blocks the existing thank-you UI. */
.ft-return-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #0F2A1F;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ft-return-banner-text { flex: 1 1 240px; font-size: 15px; }
.ft-return-banner-cta {
  background: #E97B47;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.ft-return-banner-cta:hover { background: #D86B38; }

@media (prefers-reduced-motion: reduce) {
  .ft-btn { transition: none; }
  .ft-q label { transition: none; }
}
