/* Shift AI: dark masthead over a plain white form; questions are ruled rows
   with big condensed numerals, answers are full-width square-cornered option bars. */
:root {
  --steel-900: #12161B;
  --steel-700: #2A323B;
  --steel-500: #69747F;
  --steel-200: #D5DADF;
  --steel-100: #EEF0F2;
  --signal: #E8590C;
  --signal-dark: #BF4606;
  --signal-tint: #FFF3EB;
  --white: #FFFFFF;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--steel-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Progress bar */
.progress { position: sticky; top: 0; z-index: 20; height: 4px; background: var(--steel-700); }
.progress i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .25s; }

/* Masthead */
.mast { background: var(--steel-900); color: var(--white); }
.mast-in { max-width: 880px; margin: 0 auto; padding: 22px 20px 56px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .06em;
  color: inherit; text-decoration: none;
}
.brand svg { width: 28px; height: 28px; }
.mast h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1;
  margin-top: 48px; max-width: 14ch; text-wrap: balance;
}
.mast p { margin-top: 20px; max-width: 52ch; color: #B9C1C9; font-size: 1.1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-weight: 600; font-size: 15px; }
.meta span { border-left: 3px solid var(--signal); padding-left: 10px; }

/* Form */
main { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }
.q {
  padding: 36px 0; border-bottom: 1px solid var(--steel-200);
  display: grid; grid-template-columns: 72px 1fr; gap: 4px 16px;
}
.q.missing .qt::after {
  content: 'Please answer this question'; display: block;
  color: var(--signal-dark); font-size: 14px; font-weight: 600; margin-top: 4px;
}
.n { font-family: var(--font-display); font-weight: 700; font-size: 54px; line-height: .9; color: var(--steel-200); }
.q.done .n { color: var(--signal); }
.qt { font-weight: 600; font-size: 1.2rem; line-height: 1.35; text-wrap: balance; }
.hint { grid-column: 2; color: var(--steel-500); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.opts { grid-column: 2; display: grid; gap: 8px; margin-top: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--steel-200); padding: 12px 14px; cursor: pointer;
  background: var(--white); transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--steel-500); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.box {
  flex: none; width: 18px; height: 18px; border: 2px solid var(--steel-500);
  background: var(--white); display: grid; place-items: center;
}
.radio .box { border-radius: 50%; }
.opt:has(input:checked) { border-color: var(--signal); background: var(--signal-tint); }
.opt:has(input:checked) .box { background: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 3px var(--white); }
.opt:has(input:focus-visible) { outline: 3px solid var(--steel-900); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.reveal { padding: 4px 0 4px 30px; }
.reveal[hidden] { display: none; }

.fields { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.f .req { color: var(--signal-dark); }
label.f input {
  font: inherit; font-weight: 400; padding: 11px 12px;
  border: 1.5px solid var(--steel-200); border-radius: 0;
  background: var(--white); color: var(--steel-900);
}
label.f input:focus { outline: 3px solid var(--steel-900); outline-offset: 1px; border-color: var(--steel-900); }
label.f.invalid input { border-color: var(--signal-dark); }
label.f .err { color: var(--signal-dark); font-size: 13px; font-weight: 600; min-height: 0; }
label.f .err:empty { display: none; }

/* Spam honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.submit { padding: 36px 0 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
button.go {
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--signal); color: var(--white); border: 0; padding: 14px 34px; cursor: pointer;
}
button.go:hover { background: var(--signal-dark); }
button.go:focus-visible { outline: 3px solid var(--steel-900); outline-offset: 3px; }
button.go:disabled { opacity: .6; cursor: progress; }
.count { color: var(--steel-500); font-weight: 500; }
.form-error {
  width: 100%; color: var(--signal-dark); font-weight: 600;
  border-left: 4px solid var(--signal-dark); padding-left: 12px;
}
.form-error:empty { display: none; }

.thanks { border-left: 6px solid var(--signal); background: var(--steel-100); padding: 20px 22px; margin-top: 40px; }
.thanks:focus { outline: none; }
.thanks b { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; letter-spacing: .03em; display: block; }
.noscript { padding: 36px 0; font-weight: 600; }

/* Footer */
.foot { background: var(--steel-900); color: #B9C1C9; font-size: 14px; }
.foot-in { max-width: 880px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--white); }
.foot a:hover { color: var(--signal); }

/* Privacy page */
.doc { max-width: 720px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.doc a { color: var(--signal-dark); }
.doc .updated { color: var(--steel-500); margin-top: 40px; }

@media (max-width: 560px) {
  .q { grid-template-columns: 1fr; }
  .n, .hint, .opts, .fields { grid-column: 1; }
  .n { font-size: 40px; }
  button.go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
