/* The two form pages — /idea/ and /testers/. Layout and controls only;
   every colour comes from site.css. The form ids, field names and the
   Cloudflare Functions endpoints are untouched by this file. */

.bar { position: sticky; top: 0; z-index: 40; background: var(--ink-950); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: var(--s-10); height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); margin-right: auto;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand .mk { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-fill);
  display: grid; place-items: center; font-size: var(--t-label); font-weight: 700; color: var(--on-accent);
  box-shadow: 0 6px 20px var(--glow); }
.bar .lnk { display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--text-2); font-size: var(--t-sm); font-weight: 500; }
.bar .lnk:hover { color: var(--text); text-decoration: none; }

.app-hero { padding: var(--s-16) 0 var(--s-10); }
.app-hero h1 { font-size: clamp(32px, 4.2vw, 56px); margin-top: var(--s-5); }
.app-hero .sub { margin-top: var(--s-6); font-size: 17px; line-height: 1.68; color: var(--text-2); max-width: 62ch; }
.kicker { display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--accent-text); }
.rule2 { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ── controls ─────────────────────────────────────────────────────── */
.form-section { padding: var(--s-10) 0; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--text); }
.input, textarea.input, select.input {
  width: 100%; min-height: var(--control-h); padding: var(--s-3) var(--s-4);
  background: var(--ink-850); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--body); font-size: var(--t-body);
}
.input::placeholder { color: var(--text-3); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
textarea.input { min-height: 120px; resize: vertical; line-height: var(--lh-body); }
.hint { margin-top: var(--s-2); font-size: 14px; color: var(--text-3); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); max-width: 720px; margin-top: var(--s-4); }
@media (max-width: 620px) { .pair { grid-template-columns: 1fr; } }

/* the staged questions on /idea/ */
.q { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q-num { display: block; font-family: var(--display); font-weight: 600; font-size: var(--t-label);
  letter-spacing: .1em; color: var(--text-3); margin-bottom: var(--s-2); }
.q h2, .q h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: var(--s-4); }
.platforms, .segs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.seg-opt { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  padding: var(--s-2) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--ink-850); color: var(--text-2); font-size: var(--t-sm); cursor: pointer; }
.seg-opt:has(input:checked) { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-on-wash); }
.seg-opt input { accent-color: var(--accent); }

/* ── outcome cards ────────────────────────────────────────────────── */
.done-card { background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-8); max-width: 720px; margin-block: var(--s-8); }
.done-card h2 { font-size: 26px; margin-bottom: var(--s-3); }
.done-card p { color: var(--text-2); }
.done-card pre { white-space: pre-wrap; margin: 0 0 var(--s-5); font-size: 13px; line-height: 1.6;
  color: var(--text-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
#err { border-color: var(--accent-line); }

/* ── the numbered steps and app rows on /testers/ ─────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s-4) 0 0; max-width: 62ch; }
.steps li { counter-increment: step; position: relative; padding-left: var(--s-9);
  margin-bottom: var(--s-4); font-size: var(--t-sm); line-height: 1.55; color: var(--text-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent);
  font-family: var(--display); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.testers-app { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; }
.testers-app + .testers-app { border-top: 1px solid var(--line); }
.testers-app .t-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; object-fit: cover; }
.testers-app .t-body { flex: 1; min-width: 0; }
.testers-app .t-name { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.testers-app .t-copy { font-size: 14px; line-height: 1.5; color: var(--text-3); }

.site-foot { padding: var(--s-9) 0 var(--s-12); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--t-xs); color: var(--text-3); }
.site-foot a { color: var(--text-3); }
@media (max-width: 620px) { .bar .lnk { display: none; } .brand { white-space: nowrap; } }
