/* ------------------------------------------------------------------
   S2L Quiz Funnel — shared styles
   Tokens lifted from the proposals site so the funnel matches the
   rest of the FutureFlow estate (violet on near-black).
   Mobile-first. Desktop is the same column, centred.
   ------------------------------------------------------------------ */

:root {
  --paper:      #0A0912;
  --band:       #0D0B16;
  --panel:      #15131F;
  --panel-hi:   #1B1828;
  --hairline:   #282338;
  --ink:        #EEEAF6;
  --body:       #B4AEC4;
  --muted:      #7E7794;

  /* #5F1FED is the real FutureFlow purple off the live site. It's the
     solid-fill colour. --brand is a lightened cousin for text and icons,
     because #5F1FED on near-black doesn't read. */
  --brand-core: #5F1FED;
  --brand:      #AF93FB;
  --brand-ink:  #CBBCFD;
  --brand-soft: #1E1633;

  /* Answer tiles are accent-filled, not dark panels — the Fusion move.
     Deliberately a step down from --brand-core so a primary button still
     outranks a grid of tiles on pages that have both. */
  --tile:       #3E1CB0;
  --tile-hi:    #5322DC;
  --tile-ink:   #FFFFFF;
  --plate:      #FFFFFF;
  --plate-ink:  #15093A;

  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --col: 34rem;          /* content column width */
  --r:   14px;           /* corner radius */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Soft violet bleed from the top, per the brand spec */
  background-image: radial-gradient(120% 60% at 50% -10%, #1A1230 0%, rgba(26,18,48,0) 60%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
}

/* ---------- header ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2.25rem;
}
.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: block;
}
.brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---------- type ---------- */

h1, h2 {
  margin: 0 0 .75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }

.sub {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--body);
}
.sub strong { color: var(--brand-ink); font-weight: 700; }

/* ICP callout above the H1. Was a pill; it's now long enough to be a
   proper line of copy, and a pill that wraps looks broken. */
.eyebrow {
  display: block;
  margin: 0 0 .6rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand);
}

/* Screen one is centred, wholesalelaunchpad style. Later questions stay
   left-aligned — a centred column of long answer labels is harder to scan. */
.screen--first { text-align: center; }
.screen--first .tiles--rows .tile { text-align: left; }

/* ---------- answer tiles ---------- */

.tiles {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, 1fr);
}
/* Long-label questions read better as full-width rows */
.tiles--rows { grid-template-columns: 1fr; }

/* Accent-filled tiles with a white icon plate — lifted wholesale from the
   Fusion build. Dark-on-dark panels look inert; a block of colour with a
   bright plate in it reads as "tap me" without any instruction. */

.tile {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 7.75rem;
  padding: 1rem .85rem;
  border: 0;
  border-radius: var(--r);
  background: var(--tile);
  color: var(--tile-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease, box-shadow .12s ease;
}
.tiles--rows .tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 4.75rem;
  gap: 1rem;
  padding: .85rem 1rem;
  text-align: left;
}
.tile:hover  { background: var(--tile-hi); }
.tile:active { transform: scale(.985); }
.tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.tile.is-picked {
  background: var(--tile-hi);
  box-shadow: inset 0 0 0 3px var(--brand);
}

/* The white plate the icon sits on */
.tile__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--plate);
  color: var(--plate-ink);
}
.tiles--rows .tile__icon { width: 46px; height: 46px; border-radius: 10px; }
.tile__icon svg { width: 60%; height: 60%; display: block; }

/* "Tap to choose" affordance under the question. The negative top margin
   pulls it up into the subheading's bottom margin — so when a question has
   no subheading it must be cancelled, or the hint rides over the heading. */
.hint {
  display: block;
  margin: -1.25rem 0 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-ink);
}
h2 + .hint { margin-top: .35rem; }

/* ---------- buttons ---------- */

.btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--r);
  background: linear-gradient(150deg, #7B3BFF 0%, var(--brand-core) 100%);
  color: #FFFFFF;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter .12s ease, transform .08s ease;
}
.btn:hover  { filter: brightness(1.08); }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--panel); }

/* ---------- progress ---------- */

.progress {
  position: fixed;
  inset: auto 0 0 0;
  height: 5px;
  background: var(--band);
  z-index: 20;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-core), var(--brand));
  transition: width .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- proof strip ---------- */

.proof {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  font-size: .85rem;
  color: var(--muted);
}
.proof__stat { font-weight: 800; color: var(--ink); }

/* ---------- footer ---------- */

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: .78rem;
  color: var(--muted);
}
.foot a { color: var(--muted); }

/* ---------- screen transitions ---------- */

.screen { display: none; }
.screen.is-live {
  display: block;
  animation: rise .28s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.is-live { animation: none; }
  .progress__bar  { transition: none; }
}
