/* Argos Biosystems, apply. One question per screen. Brand palette from the build portal: navy 0A1628 on white,
   white on navy in dark mode. System type, as on build.argosbiosystems.com. */
:root {
  --bg: #FFFFFF;
  --ink-strong: #0A1628;
  --ink: #1D2430;
  --muted: #687180;
  --faint: #A3AAB5;
  --line: #D5DAE1;
  --track: #EDF0F3;
  --hover: rgba(10, 22, 40, 0.045);
  --sel: rgba(10, 22, 40, 0.075);
  --err: #9E3B33;
  --btn-bg: #0A1628;
  --btn-ink: #FFFFFF;
  --focus: rgba(10, 22, 40, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1628;
    --ink-strong: #F4F6F9;
    --ink: #D8DDE5;
    --muted: #8D98AA;
    --faint: #56627A;
    --line: rgba(255, 255, 255, 0.2);
    --track: rgba(255, 255, 255, 0.08);
    --hover: rgba(255, 255, 255, 0.05);
    --sel: rgba(255, 255, 255, 0.09);
    --err: #F0A79E;
    --btn-bg: #F4F6F9;
    --btn-ink: #0A1628;
    --focus: rgba(255, 255, 255, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
::selection { background: var(--sel); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* progress and back */
.progress { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 2px; background: var(--track); }
.progress span { display: block; height: 100%; width: 0; background: var(--ink-strong); transition: width 420ms var(--ease); }
.back {
  position: fixed; z-index: 10;
  top: calc(10px + env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left));
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease;
}
.back svg { width: 22px; height: 22px; }
.back:hover { color: var(--ink-strong); }

/* stage */
.stage { position: relative; min-height: 100vh; min-height: 100dvh; }
.screen {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: clamp(96px, 26vh, 240px) max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
}
.screen.leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.screen.enter { opacity: 0; transform: translateY(18px); }
.screen.enter.back-dir { transform: translateY(-18px); }
.screen.enter.on { opacity: 1; transform: none; transition: opacity 260ms var(--ease), transform 320ms var(--ease); }
.screen.leaving.off { opacity: 0; transform: translateY(-14px); transition: opacity 150ms ease, transform 180ms ease; }
.screen.leaving.off.back-dir { transform: translateY(14px); }

.qt {
  display: block; margin: 0 0 28px;
  font-size: clamp(27px, 1.25rem + 2.2vw, 42px); line-height: 1.18; font-weight: 500; letter-spacing: -0.022em;
  color: var(--ink-strong);
  text-wrap: balance;
}
.q { margin: 0; }

/* the underline field */
.line { position: relative; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink-strong);
  transform: scaleX(0); transform-origin: left center; transition: transform 320ms var(--ease);
}
.line:focus-within::after { transform: scaleX(1); }
.line input, .line textarea {
  flex: 1; min-width: 0; margin: 0; padding: 8px 0 12px; border: 0; border-radius: 0; outline: 0;
  background: transparent; color: var(--ink-strong); caret-color: var(--ink-strong);
  font: inherit; font-size: clamp(21px, 1.05rem + 0.9vw, 27px); line-height: 1.35; letter-spacing: -0.01em;
  -webkit-appearance: none; appearance: none;
}
.line textarea { resize: none; overflow: hidden; display: block; min-height: 1.35em; } /* grows with the answer; the page scrolls, not the box */
.line input::-webkit-search-decoration, .line input::-webkit-contacts-auto-fill-button { visibility: hidden; }
.line input:-webkit-autofill { -webkit-text-fill-color: var(--ink-strong); transition: background-color 9999s 0s; }

.go {
  flex: none; width: 44px; height: 44px; margin: 0 -10px 2px 0; display: grid; place-items: center;
  border: 0; background: none; color: var(--ink-strong); cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.28; transition: opacity 180ms ease, transform 180ms var(--ease);
}
.go svg { width: 24px; height: 24px; }
.q.ready .go { opacity: 1; }
.q.ready .go:hover { transform: translateX(3px); }
.go:focus-visible, .back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.msg { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; color: var(--err); }
.msg:empty { visibility: hidden; }

/* role rows */
.opts { display: flex; flex-direction: column; gap: 2px; margin: 0 -14px; }
.opts [role="radio"] {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 11px 14px; margin: 0;
  border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer;
  color: var(--ink); font-size: clamp(19px, 1rem + 0.55vw, 22px); line-height: 1.35; letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, color 140ms ease;
}
.opts [role="radio"] .t { flex: 1; }
.opts [role="radio"] .k { display: none; flex: none; width: 1em; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
body.kbd .opts [role="radio"] .k { display: inline-block; }
@media (hover: hover) { .opts [role="radio"]:hover { background: var(--hover); color: var(--ink-strong); } }
.opts [role="radio"][aria-checked="true"] { background: var(--sel); color: var(--ink-strong); font-weight: 560; }
.opts [role="radio"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.opts.has-choice [role="radio"][aria-checked="false"] { color: var(--muted); }
.line.other { margin: 10px 0 0 0; }
.act { display: flex; justify-content: flex-end; margin-top: 18px; }
.act .go { margin-right: -10px; }

/* resume */
.line.file { min-height: 56px; align-items: center; }
.pick {
  flex: 1; padding: 10px 0 12px; cursor: pointer; color: var(--muted);
  font-size: clamp(21px, 1.05rem + 0.9vw, 27px); line-height: 1.35; letter-spacing: -0.01em;
  transition: color 160ms ease;
}
.pick:hover, body.dragging .pick { color: var(--ink-strong); }
body.dragging .line.file::after { transform: scaleX(1); }
.line.file:has(input:focus-visible)::after { transform: scaleX(1); }
.chosen { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; padding: 10px 0 12px; }
.fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); font-size: clamp(19px, 1rem + 0.6vw, 23px); letter-spacing: -0.01em; }
.fsize { flex: none; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.remove { flex: none; margin-left: auto; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.remove:hover { color: var(--ink-strong); }
.line .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.line .bar i { display: block; height: 100%; width: 0; background: var(--ink-strong); }
.line.uploading .bar i { transition: width 200ms linear; }
.line.uploading .fname { color: var(--muted); }

/* buttons */
.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; margin: 0;
  border: 0; border-radius: 6px; background: var(--btn-bg); color: var(--btn-ink); cursor: pointer;
  font-size: 17px; font-weight: 550; letter-spacing: 0.005em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 160ms ease, transform 160ms var(--ease);
}
.primary:hover { opacity: 0.9; }
.primary:active { transform: translateY(1px); }
.primary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.primary[disabled] { opacity: 0.55; cursor: default; }
.q .primary { margin-top: 26px; }

/* start and done */
.start .mark { display: block; width: 52px; height: 52px; margin: 0 0 30px; color: var(--ink-strong); }
.start .qt { margin-bottom: 34px; }
.start.pending .qt, .start.pending .lede, .start.pending .primary { visibility: hidden; }
.lede { max-width: 34em; margin: -12px 0 34px; font-size: clamp(18px, 1rem + 0.35vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.done .lede { margin-bottom: 0; }
.start .qt, .start .primary { transition: opacity 200ms ease; }
.done .qt { outline: 0; }

/* honeypot: present for bots, never seen by people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.noscript { max-width: 720px; margin: 30vh auto 0; padding: 0 24px; font-size: 21px; color: var(--ink-strong); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .screen { padding-top: calc(84px + env(safe-area-inset-top)); }
  .start { padding-top: calc(22vh + env(safe-area-inset-top)); }
  .done { padding-top: calc(30vh + env(safe-area-inset-top)); }
  .qt { margin-bottom: 22px; }
  .opts [role="radio"] { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.enter, .screen.enter.on, .screen.leaving.off { transition: none !important; transform: none !important; }
  .line::after, .progress span, .go, .primary, .opts [role="radio"], .line.uploading .bar i { transition: none !important; }
}

