/* css/transfer-survey.css
   ═══════════════════════════════════════════════════════════════
   /transfer-survey — the member-facing transfer window report.

   The design problem is that this is a SURVEY, and people close surveys. So
   the page opens with the map it is trying to finish rather than with a
   question: the blank space is the argument, and the form is what fills it.

   Every colour comes from the base tokens, so both themes follow with nothing
   redefined here — the light palette is desert sand and a hardcoded dark
   surface would strand text on it (the /whales lesson, DESIGN.md).
   ═══════════════════════════════════════════════════════════════ */

.page-tsv .tsv-wrap {
  width: min(720px, 92vw);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── head ─────────────────────────────────────────────────────── */
.tsv-eyebrow {
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 .5rem;
}
.tsv-title {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.tsv-sub {
  margin: .9rem 0 0;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.6;
}
.tsv-sub strong { color: var(--text-1); font-weight: 600; }

/* ── HERO: the offer leads ────────────────────────────────────────
   Owner's call (2026-08-29) — open with what the member GETS. The page can do
   this honestly because the price really is four questions, so the reward is
   a fair headline rather than bait. The condition sits in the same sentence,
   never in a footnote.

   This is the one place the page spends boldness. Everything below it stays
   quiet so the CTA has somewhere to stand out from. */
.tsv-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 16px;
  border: 1px solid var(--accent-border);
  /* A wash rather than a slab: the site's ambient background stays visible
     through it, so the hero reads as part of the page and not a pasted card. */
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-glow) 0%, transparent 60%),
    var(--glass-bg);
}
.tsv-hero .tsv-title em {
  font-style: normal;
  color: var(--accent);
}
.tsv-hero .tsv-sub { max-width: 52ch; }
/* The hero's one line of body copy. Bigger than the rest because it is the
   only sentence a skimmer will read — the reward is in the headline above it
   and the conditions sit under the button, so this says the ASK and nothing
   else. It was four lines until 2026-08-29; nobody reads four lines while
   deciding whether to bother. */
.tsv-hero .tsv-lede {
  font-size: 1.1rem;
  color: var(--text-1);
  margin-top: .7rem;
}

.tsv-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.5rem;
}
.tsv-cta { min-width: 15rem; font-size: 1.02rem; }
.tsv-cta-sub { color: var(--text-3); font-size: .86rem; }

/* What Pro actually is — four real features, lifted from js/pro-gate.js so the
   promise here and the paywall elsewhere cannot drift apart. */
.tsv-unlocks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .4rem .9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tsv-unlocks li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.45;
}
.tsv-unlocks li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── why we're asking ─────────────────────────────────────────── */
.tsv-why { display: flex; flex-direction: column; }
.tsv-why-h {
  margin: 0 0 .6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.tsv-why .tsv-sub { margin-top: 0; }

/* ── the bracket pills ───────────────────────────────────────────
   Was a bar chart of coverage; the owner's call (2026-08-29) is pills, and
   the reframe is the point: a coverage chart reports OUR progress, a grid of
   claimable brackets reports what is still available. "Be the first from
   1573-1700" is a better reason to fill a form than "help us reach 100%".

   ⚠ Exactly ONE pill may read `mapped` — 677-804. Everything else is open,
   including bands we have measured but are still paying to hear about. */
.tsv-tally {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1.5rem;
}
.tsv-tally-n {
  font-family: var(--font-data);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.tsv-tally-l { color: var(--text-2); font-size: 1rem; }

.tsv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.tsv-pill-skel { color: var(--text-3); font-family: var(--font-data); font-size: .8rem; }

.tsv-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .7rem;
  border-radius: 100px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--text-2);
  font-family: var(--font-data);
  font-size: .8rem;
  line-height: 1.2;
  white-space: nowrap;
}
/* open = the ask. Deliberately the most ordinary state, because most of the
   game is here and a page of alarm colours reads as broken rather than busy. */
.tsv-pill-n {
  font-size: .7rem;
  padding: .04rem .34rem;
  border-radius: 100px;
  background: var(--bg-3);
  color: var(--text-3);
}
/* claimed — somebody has already reported this bracket. Shown, not hidden:
   a bracket with 3 reports tells the reader this is a thing people do. */
.tsv-pill[data-state="claimed"] { border-color: var(--border-2); color: var(--text-1); }
.tsv-pill[data-state="claimed"] .tsv-pill-n { background: var(--accent-glow); color: var(--accent); }

/* mapped — 677-804 only. Muted, not celebrated: it is the one bracket that
   needs nothing, so it should recede rather than draw the eye. */
.tsv-pill[data-state="mapped"] {
  border-style: dashed;
  color: var(--text-3);
  background: transparent;
}

/* yours — the one pill the reader is looking for. */
.tsv-pill[data-state="yours"] {
  border-color: var(--amber);
  background: var(--amber-glow);
  color: var(--amber);
  font-weight: 700;
}
.tsv-pill[data-state="yours"] .tsv-pill-n { background: var(--amber); color: var(--on-amber, #2a1c00); }

.tsv-pill-key { margin: .8rem 0 0; color: var(--text-3); font-size: .82rem; line-height: 1.5; }
.tsv-pill-key b { color: var(--amber); font-weight: 600; }

/* ── the offer, stated before anything is asked ───────────────── */
.tsv-offer {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--accent-border);
  background: var(--accent-glow);
  border-radius: 12px;
}
.tsv-offer-item { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.tsv-offer-amt {
  font-family: var(--font-data);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}
.tsv-offer-lbl { font-size: .86rem; color: var(--text-2); line-height: 1.4; }
.tsv-offer-sep { width: 1px; background: var(--border-1); flex: 0 0 1px; }
@media (max-width: 560px) {
  .tsv-offer { flex-direction: column; gap: .9rem; }
  .tsv-offer-sep { width: auto; height: 1px; flex: 0 0 1px; }
}

/* ── the card + step rail ─────────────────────────────────────── */
.tsv-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* ⚠ REQUIRED: .tsv-card sets display:flex, and a class that sets display beats
   the `hidden` attribute (a UA-stylesheet rule). Without this the signed-out
   gate and the form would BOTH render. Same bug as the "0" badge on every
   empty admin tab — see CLAUDE.md. */
.tsv-card[hidden] { display: none; }

.tsv-rail { display: flex; gap: 6px; margin-bottom: .25rem; }
.tsv-rail i {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-1);
  transition: background var(--t-base, .2s);
}
.tsv-rail i.on { background: var(--accent); }

.tsv-step { display: flex; flex-direction: column; gap: .85rem; }
.tsv-step[hidden] { display: none; }

.tsv-q {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.tsv-q-sm { font-size: 1.02rem; margin-top: .6rem; }
.tsv-help { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.55; max-width: 52ch; }

/* ── option cards: big enough to tap without aiming ───────────── */
.tsv-opts { display: flex; flex-direction: column; gap: .5rem; }
.tsv-opt {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-align: left;
  padding: .85rem 1rem;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, background .15s, transform .1s;
}
.tsv-opt:hover { border-color: var(--accent-border); background: var(--bg-3); }
.tsv-opt:active { transform: scale(.995); }
.tsv-opt b { font-weight: 600; font-size: 1rem; }
.tsv-opt span { color: var(--text-3); font-size: .85rem; }
.tsv-opt[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── inputs ───────────────────────────────────────────────────── */
.tsv-wz, .tsv-ign { font-size: 1.1rem; padding: .7rem .9rem; }
.tsv-wz { max-width: 12rem; font-family: var(--font-data); }
.tsv-band { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.tsv-band label {
  display: flex; flex-direction: column; gap: .3rem;
  font-family: var(--font-data); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.tsv-band input { width: 9rem; font-family: var(--font-data); }
.tsv-band-dash { color: var(--text-3); padding-bottom: .6rem; }
.tsv-note { width: 100%; resize: vertical; font-family: inherit; }

/* ── live verdicts: the page answering back ───────────────────── */
.tsv-verdict { margin: 0; font-size: .9rem; line-height: 1.5; min-height: 1.2em; }
.tsv-verdict:empty { min-height: 0; }
.tsv-verdict.good { color: var(--accent); }
.tsv-verdict.warn { color: var(--amber); }
.tsv-verdict.bad  { color: var(--red); }
.tsv-verdict b { font-weight: 600; }

/* ── screenshot ───────────────────────────────────────────────── */
.tsv-shot {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tsv-shot:hover { border-color: var(--accent); background: var(--bg-3); }
.tsv-shot-icon { font-size: 1.3rem; color: var(--accent); line-height: 1; }
.tsv-shot-label { font-weight: 600; }
.tsv-shot-state { margin-left: auto; font-family: var(--font-data); font-size: .78rem; color: var(--text-3); }
.tsv-shot-state.ok { color: var(--accent); }
.tsv-shot-state.bad { color: var(--red); }
.tsv-shot-preview {
  max-height: 220px; width: auto; max-width: 100%;
  border-radius: 10px; border: 1px solid var(--border-1);
  object-fit: contain;
}
.tsv-shot-preview[hidden] { display: none; }

/* ── nav ──────────────────────────────────────────────────────── */
.tsv-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.tsv-nav .btn-lg { flex: 1; min-width: 10rem; }

/* ── done ─────────────────────────────────────────────────────── */
.tsv-done { align-items: flex-start; }
.tsv-done-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 1.3rem; font-weight: 700;
}

.tsv-gate { text-align: left; }
.tsv-foot { margin: 0; color: var(--text-3); font-size: .82rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .tsv-opt, .tsv-rail i, .tsv-shot { transition: none; }
}
