@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* The colours of the cards of the block: ground, ink, white type, and the orange of the TV mark. */
:root {
  --ground: #101014;
  --panel: #18181e;
  --line: #2a2a33;
  --ink: #f2f0ea;
  --muted: #a3a3ad;
  --white: #ffffff;
  --accent: #f7951f;
  --accent-deep: #f0700f;
  --on-accent: #101014;
  --err: #ff8a7a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 70% at 50% -10%, #2a1a0c 0%, var(--ground) 55%) var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }

/* The header: the channel, the title and the status of the concept */
.channel { margin: 0 0 18px; font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.channel b { color: var(--accent); font-weight: 700; }
.kicker { margin: 0 0 6px; font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0.8; }
h1 { margin: 0; font-weight: 700; font-size: clamp(30px, 8.5vw, 44px); line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; color: var(--white); }
.sub { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.status { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.status li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.status li b { color: var(--ink); font-weight: 500; }
.verdict-banner { margin: 22px 0 0; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { margin: 14px 0 0; font-size: 17px; color: var(--ink); }

/* The card that holds the current question, the opt-in or the results */
.app { margin-top: 26px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 20px; }
.step { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.q { margin: 0 0 18px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--white); }
.q:focus { outline: none; }
.answers { display: grid; gap: 10px; }
button { font: inherit; cursor: pointer; }
.answer {
  width: 100%; min-height: 54px; padding: 12px 16px; text-align: left;
  background: transparent; color: var(--ink); border: 1px solid #3a3a45; border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.answer:hover:not(:disabled) { border-color: var(--accent); }
.answer.chosen { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 500; }
.answer:disabled:not(.chosen) { opacity: 0.45; cursor: default; }
.primary {
  width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: var(--on-accent); font-weight: 700;
}
.primary:disabled { opacity: 0.4; cursor: default; }
.link { display: block; width: 100%; margin-top: 10px; padding: 10px; background: none; border: 0; color: var(--muted); text-decoration: underline; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #3a3a45; background: #0c0c10; color: var(--white); font: inherit;
}
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-top: 14px; font-size: 15px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { margin: 12px 0 0; min-height: 0; color: var(--err); font-size: 15px; }
.err:empty { display: none; }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.loading { color: var(--muted); }
.demo { margin: 0 0 12px; padding: 6px 10px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 13px; color: var(--accent); }

/* Results */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars.small { gap: 10px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.bars.small .bar-head { font-size: 14px; }
.bar-head em { font-style: normal; color: var(--accent); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--white); }
.track { height: 12px; margin-top: 6px; border-radius: 999px; background: #26262e; overflow: hidden; }
.bars.small .track { height: 8px; }
.fill { height: 100%; border-radius: 999px; background: #6b6b78; }
.bar.mine .fill { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.count { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
h3 { margin: 24px 0 12px; font-size: 16px; color: var(--white); }

footer { margin-top: 36px; font-size: 12px; line-height: 1.6; color: #77777f; }
footer a { color: #9a9aa4; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Plain pages: holding page, privacy, admin */
.prose h2 { margin: 28px 0 8px; font-size: 19px; color: var(--white); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 18px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
