/**
 * Forward Thinkers — Growth Friction Scorecard
 * Flow chrome: intro, questions, gate. Result styling lives in ft-view.css.
 *
 * FOR SIMEON — this file and ft-view.css are the whole surface. Every colour
 * and size is a --ft-* custom property declared at the top of ft-view.css;
 * override them there and both files follow. Nothing in src/ needs touching.
 */

.ft-app {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 90px;
  font-family: var(--ft-font, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
  color: var(--ft-ink);
}

body {
  margin: 0;
  background: var(--ft-page-bg, #F3F5F2);
}

/* ── header: brand mark above every screen ────────────────────────── */
.ft-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.ft-logo-link { display: inline-block; }
/* Same height as the forwardthinkers.io navbar logo. */
.ft-logo { display: block; height: 3rem; width: auto; }
.ft-logo-link:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 4px; }

/* ── step meta ─────────────────────────────────────────────────────── */
.ft-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ft-ink-3);
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--ft-rule);
  margin-bottom: 34px;
}
.ft-step-meta .ft-cat { color: var(--ft-accent); }

/* ── type ──────────────────────────────────────────────────────────── */
.ft-title {
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.ft-question {
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.ft-lede { font-size: 18px; line-height: 1.55; color: var(--ft-ink-2); margin: 0 0 22px; }
.ft-help { font-size: 14px; color: var(--ft-ink-3); margin: -18px 0 24px; }

/* ── options ───────────────────────────────────────────────────────── */
.ft-options {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ft-rule);
  background: var(--ft-surface);
}
.ft-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: none;
  border-top: 1px solid var(--ft-rule);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ft-ink);
  transition: background .12s;
}
.ft-option:first-child { border-top: none; }
.ft-option:hover { background: var(--ft-surface-2); }
.ft-option:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: -2px; }
.ft-option-key {
  font-size: 11px;
  font-weight: 600;
  color: var(--ft-ink-3);
  border: 1px solid var(--ft-rule-2, var(--ft-rule));
  border-radius: 50%;
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.ft-option:hover .ft-option-key { border-color: var(--ft-accent); color: var(--ft-accent); }

/* ── nav / buttons ─────────────────────────────────────────────────── */
.ft-nav { display: flex; gap: 14px; align-items: center; margin-top: 26px; }
.ft-link {
  background: none; border: none; font: inherit; font-size: 14px;
  color: var(--ft-ink-3); cursor: pointer; padding: 6px 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.ft-link:hover { color: var(--ft-accent); }
.ft-btn:disabled { opacity: .6; cursor: default; }

/* ── gate ──────────────────────────────────────────────────────────── */
.ft-gate {
  border: 1px solid var(--ft-rule-2, var(--ft-rule));
  background: var(--ft-surface);
  padding: 26px;
  margin-top: 34px;
}
.ft-gate-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.ft-gate-list {
  margin: 0 0 20px; padding-left: 20px;
  font-size: 15px; color: var(--ft-ink-2);
}
.ft-gate-list li { margin-bottom: 5px; }
.ft-form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.ft-form input {
  font: inherit; font-size: 15px; padding: 12px 13px;
  border: 1px solid var(--ft-rule-2, var(--ft-rule));
  border-radius: var(--ft-radius);
  background: var(--ft-page-bg, #fff);
  color: var(--ft-ink);
}
.ft-form input:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: -1px; }
.ft-error { font-size: 13.5px; color: var(--ft-low); margin: 0; }
.ft-permalink {
  font-size: 13.5px; color: var(--ft-ink-3);
  background: var(--ft-surface-2); border: 1px solid var(--ft-rule);
  padding: 12px 14px; margin: 0 0 26px; overflow-wrap: anywhere;
}
.ft-permalink a { color: var(--ft-accent); }

.ft-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── dev bar (only with ?dev=1) ────────────────────────────────────── */

/* MUST come before .ft-devbar. The `hidden` attribute works by setting
   display:none in the UA stylesheet, so ANY explicit display rule — like the
   flex below — silently overrides it and the element renders anyway. That is
   how a dev toolbar ends up live in production. */
[hidden] { display: none !important; }

.ft-devbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ft-ink); color: #fff;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  padding: 9px 24px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
}
.ft-devbar strong { color: #8FD6C9; letter-spacing: .1em; }
.ft-devbar-spacer { flex: 1; }
.ft-devbar select, .ft-devbar button {
  font: inherit; background: #25312F; color: #fff;
  border: 1px solid #3A4744; border-radius: 2px; padding: 4px 7px; cursor: pointer;
}

@media (max-width: 560px) {
  .ft-app { padding: 0 18px 70px; }
  .ft-header { padding: 24px 18px 0; }
  .ft-option { grid-template-columns: 28px 1fr; gap: 11px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
