/* Design tokens — copied from the design handoff's source/_ds_tokens/colors.css (same system as report.css) */
:root {
  --blue-400: #3a7bc4;
  --blue-500: #0653a5;
  --blue-600: #064a92;
  --blue-700: #073e78;
  --navy-500: #2a3c58;
  --navy-700: #1d2939;
  --neutral-150: #ebebed;
  --neutral-200: #e0e0e4;
  --neutral-300: #cbcbd2;
  --neutral-400: #a3a3ad;
  --neutral-500: #7c7c87;
  --neutral-600: #5b5b65;
  --clay-400: #bd8b80;
  --clay-500: #72534b;
  --green-500: #85c54c;

  --text-strong: var(--navy-500);
  --text-body: var(--navy-700);
  --text-muted: var(--neutral-600);
  --text-subtle: var(--neutral-500);
  --text-link: var(--blue-500);
  --surface-grey: var(--neutral-150);
  --surface-card: #ffffff;
  --border-subtle: var(--neutral-200);
}

@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }

body { margin: 0; }

.page {
  min-height: 100vh;
  background: var(--surface-grey);
  font-family: "Maven Pro", system-ui, sans-serif;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.q-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.q-header-row {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.q-logo { height: 34px; width: auto; display: block; }
.q-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.q-counter-divider { width: 1px; height: 16px; background: var(--border-subtle); }
.q-counter-pct { font-weight: 700; color: var(--text-strong); }
.q-progress-track { height: 3px; background: var(--neutral-200); }
.q-progress-fill {
  height: 100%;
  background: var(--blue-500);
  border-radius: 0 3px 3px 0;
  transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Main ---- */
.q-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
}
.q-column { width: 100%; max-width: 720px; }

.q-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.q-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-500);
}
.q-eyebrow-rule { height: 1px; flex: 1; background: var(--border-subtle); }

.q-statement {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.q-helper {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 34px;
  max-width: 56ch;
}

/* ---- Answer card ---- */
.q-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(42, 60, 88, 0.08);
  padding: 34px 34px 28px;
}
.q-value-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  min-height: 56px;
}
.q-value-number {
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--neutral-300);
}
.q-value-number.answered { color: var(--blue-600); }
.q-value-label { font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--text-subtle); }
.q-value-label.answered { color: var(--text-strong); }

/* ---- Slider (rail variant) ---- */
.q-slider-wrap { padding: 0 4px; }
.q-track {
  position: relative;
  height: 44px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.q-track:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
  border-radius: 8px;
}
.q-groove {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 99px;
  background: var(--neutral-300);
  box-shadow: inset 0 1px 2px rgba(42, 60, 88, 0.18);
}
.q-fill {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 99px;
  transition: width 180ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
}
.q-fill.answered { opacity: 1; }
.q-stops {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.q-stops span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(42, 60, 88, 0.32);
}
.q-stops span.lit { background: rgba(255, 255, 255, 0.8); }
.q-thumb {
  position: absolute;
  top: 50%;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--neutral-400);
  box-shadow: 0 6px 16px rgba(42, 60, 88, 0.22);
  transform: translate(-50%, -50%);
  transition: left 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
}
.q-thumb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-400); }
.q-thumb.answered { border-color: var(--blue-600); }
.q-thumb.answered .q-thumb-dot { background: var(--blue-600); }

.q-anchor-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-subtle);
}

/* ---- Action row ---- */
.q-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.q-back, .q-skip, .q-next {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.q-back {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}
.q-back:hover { color: var(--blue-500); }
.q-back.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.q-action-right { display: flex; align-items: center; gap: 20px; }
.q-skip {
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-subtle);
}
.q-skip:hover { color: var(--blue-500); }
.q-next {
  border-radius: 99px;
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--neutral-400);
  cursor: not-allowed;
  box-shadow: 0 8px 20px rgba(6, 83, 165, 0.22);
  transition: transform 140ms, background 140ms;
}
.q-next.answered { background: var(--blue-500); cursor: pointer; }
.q-next:hover:not(:disabled) { transform: translateY(-2px); }
.q-next:active:not(:disabled) { transform: translateY(1px); }

.q-footnote {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-subtle);
  margin: 32px 0 0;
  text-align: center;
}

/* ---- Email capture (not part of the design handoff; kept visually consistent) ---- */
.q-email-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.q-email-input {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-body);
}
.q-email-input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.q-email-error { color: #a3301f; font-size: 13px; margin: 10px 0 0; }

.q-loading {
  font-size: 19px;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .q-statement { font-size: 28px; }
  .q-value-number { font-size: 42px; }
  .q-card { padding: 26px 22px 22px; }
  .q-action-row { flex-direction: column; align-items: stretch; }
  .q-action-right { justify-content: space-between; }
  .q-back { order: 2; text-align: center; }
  .q-header-row { padding: 12px 16px; gap: 8px; }
  .q-logo { height: 26px; }
  .q-counter { gap: 8px; font-size: 11px; }
  .q-main { padding: 32px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .q-fill, .q-thumb, .q-progress-fill, .q-next { transition: none; }
}
