/* Layout: one centred column, one question per screen; the report widens to a two-column reading page. */
:root {
  --bg: #0c0f11; --surface: #181f24; --ink: #f4f2ee; --muted: #bec7cc; --line: #495860;
  --accent: #dfb45f; --accent-ink: #1b1409; --accent-soft: #342918;
  --good: #85cb9e; --warn: #f1cb83; --crit: #f29e92;
  --crit-soft: #3a2224; --warn-soft: #362c1c; --good-soft: #1c3127;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 56px;
  margin: 0;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 920px; margin: 0 auto 32px; }
.site-nav img { display: block; width: min(100%, 165px); height: auto; background: #e4e8ec; padding: 5px 8px; border-radius: 4px; }
.site-nav a { color: var(--accent); font-size: 14px; text-underline-offset: .2em; }
.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.wrap.wide { max-width: 920px; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.brand b { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: .01em; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; vertical-align: -5px; margin-right: 8px; position: relative; }
.mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--accent-ink); border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 17px; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 4vw, 24px); display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  font: inherit; font-weight: 600; font-size: 15px; border-radius: 8px; padding: 12px 20px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); filter: none; }
.btn.link { background: none; border: 0; color: var(--accent); padding: 8px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.err { color: var(--crit); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact span:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Progress */
.progress { display: flex; flex-direction: column; gap: 8px; }
.segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.seg { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.seg i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.ptext { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Question */
.qcard { gap: 20px; }
.qtext { font-family: var(--font-display); font-size: clamp(21px, 4.6vw, 26px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.because { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.because::before { content: "↳"; color: var(--accent); font-weight: 600; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  font: inherit; text-align: left; display: flex; gap: 12px; align-items: center; width: 100%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; cursor: pointer;
}
.opt:hover { border-color: var(--accent); }
.opt kbd { font-family: var(--font-mono); font-size: 12px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); flex: none; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt.sel kbd { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt.dk { color: var(--muted); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .opt { justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; padding: 16px 0; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fade { animation: fade .28s ease both; }
@keyframes fade { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } .seg i { transition: none; } }

/* Teaser */
.teaser { border-color: var(--accent); }
.big-area { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--accent); }

/* Report */
.report-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .report-grid { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; position: relative; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.bar .track::after { content: ""; position: absolute; left: 60%; top: 0; bottom: 0; border-left: 1px dashed var(--muted); opacity: .6; }
.bar b { font-family: var(--font-mono); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.scale-note { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-left: 108px; padding-right: 56px; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.good { background: var(--good-soft); color: var(--good); }
.flag { border-left: 3px solid var(--crit); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.flag.warn { border-left-color: var(--warn); }
.flag .ask { font-size: 14px; background: var(--bg); border-radius: 6px; padding: 8px 10px; }
.flag .ask::before { content: "Ask in the meeting: "; font-weight: 600; }
.quote { font-size: 17px; border-left: 3px solid var(--line); padding-left: 14px; }
.root { background: var(--accent-soft); border-color: transparent; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
details summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); }
dl.answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0 0; }
dl.answers dt { font-size: 13px; color: var(--muted); }
dl.answers dd { margin: 0 0 4px; font-weight: 500; }
.demo-note { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.quote, dl.answers dd { overflow-wrap: anywhere; }
