@font-face { font-family: "Public Sans"; src: url("fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --green: #00704A; --green-dark: #0D3B33; --green-light: #E8F4EE; --ink: #13221E; --muted: #52625D;
  --line: #D9E2DE; --bg: #F5F8F7; --card: #FFFFFF; --warn: #B42318; --warn-light: #FDECEA; --sel: #00704A;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 18px; line-height: 1.5;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; min-height: 100dvh;
}
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--line); }
.logo { width: 32px; height: 32px; }
.brand { font-weight: 700; color: var(--green); font-size: 17px; }
.spacer { flex: 1; }
.timer { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--green-light); color: var(--green-dark); padding: 4px 10px; border-radius: 8px; }
.timer.low { background: var(--warn-light); color: var(--warn); }
.camdot { flex: none; width: 52px; height: 40px; border-radius: 8px; overflow: hidden; border: 2px solid var(--green); background: #000; }
.camdot video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.progress { height: 6px; background: #E6E8EA; }
#progressbar { height: 100%; width: 0; background: var(--green); transition: width .25s; }

.app { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; }
h1 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; margin: 8px 0 14px; color: var(--green-dark); }
h2 { font-size: 21px; margin: 20px 0 8px; color: var(--green-dark); }
p { margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 12px 0; box-shadow: 0 1px 2px rgba(13,59,51,.04); }
.muted { color: var(--muted); font-size: 16px; }
.small { font-size: 15px; }
ol.steps, ul.list { padding-left: 24px; margin: 6px 0 12px; }
ol.steps li, ul.list li { margin: 6px 0; }
.err { background: var(--warn-light); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }

.btn { appearance: none; border: 1.5px solid #B9C9C3; background: var(--card); color: var(--green-dark); transition: background .15s, border-color .15s; font: inherit; font-weight: 700;
  border-radius: 12px; padding: 12px 20px; min-height: 52px; cursor: pointer; }
.btn.primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:hover:not(:disabled) { border-color: var(--green-dark); } .btn.primary:hover:not(:disabled) { background: var(--green); border-color: var(--green); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .choice:focus-visible, .opt:focus-visible, .ans:focus-visible { outline: 3px solid #0B57D0; outline-offset: 2px; }
.btnrow { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 140px; }
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.navbar .inner { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.navbar .btn { flex: 1; }
.navbar .count { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 16px; }

label.field { display: block; font-weight: 700; margin: 16px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
input[type=text], input[type=number], input[type=email], input[type=tel], select { width: 100%; font: inherit; font-size: 20px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
input:focus { border-color: var(--green); outline: none; }
input.code { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; cursor: pointer; min-height: 52px; font-size: 17px; }
.choice.on { border-color: var(--sel); background: var(--green-light); font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; margin-top: 12px; }
.check.on { border-color: var(--sel); background: var(--green-light); }
.box { flex: 0 0 28px; width: 28px; height: 28px; border: 2px solid var(--green); border-radius: 6px; display: grid; place-items: center; font-weight: 900; color: #fff; }
.check.on .box, .choice.on .box { background: var(--green); }
.choice .box { flex-basis: 24px; width: 24px; height: 24px; }

.promise { border: 3px solid var(--green); background: var(--green-light); border-radius: 14px; padding: 18px; }
.promise .big { font-size: 21px; font-weight: 800; }

.camera-box { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/3; background: #000; border-radius: 14px; overflow: hidden; margin: 12px auto; }
.camera-box video, .camera-box img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* questionnaire item */
.qstem { font-size: 21px; font-weight: 800; margin: 6px 0 14px; }
.ladder { display: grid; gap: 8px; }
.ans { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; min-height: 56px; color: var(--ink); }
.ans .num { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; font-weight: 800; color: var(--green-dark); font-size: 19px; }
.ans.between { min-height: 44px; padding: 6px 14px; color: var(--muted); font-size: 16px; background: #FAFBFB; border-style: dashed; }
.ans.between .num { flex-basis: 34px; height: 34px; font-size: 16px; }
.ans.on { border-color: var(--sel); background: var(--green-light); border-style: solid; color: var(--ink); font-weight: 700; }
.ans.on .num { background: var(--green); color: #fff; }

/* abstract reasoning */
.ar-wrap { display: grid; gap: 14px; align-items: start; }
.matrix { width: 100%; max-width: 420px; margin: 0 auto; display: block; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px; margin: 0 auto; width: 100%; }
.opt { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 22px 4px 4px; cursor: pointer; }
.opt .lab { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 15px; }
.opt img { width: 100%; height: auto; display: block; }
.opt.on { border-color: var(--sel); background: var(--green-light); box-shadow: 0 0 0 2px var(--sel) inset; }
.opt.right { border-color: var(--green); }
.feedback { border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-weight: 600; }
.feedback.ok { background: var(--green-light); color: var(--green-dark); }
.feedback.no { background: var(--warn-light); color: var(--warn); }
@media (min-width: 900px) {
  .app.wide { max-width: 1100px; }
  .ar-wrap { grid-template-columns: 1fr 1fr; }
  .opts { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
}
@media (min-width: 900px) and (min-height: 700px) { .opts { grid-template-columns: repeat(4, 1fr); max-width: 460px; } }

/* security layers */
.watermark { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; opacity: .05; color: #000; font-weight: 700; font-size: 15px;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 40px 60px; padding: 40px; transform: rotate(-18deg) scale(1.4); white-space: nowrap; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 28, .86); display: grid; place-items: center; padding: 16px; }
.overlay-box { background: #fff; border-radius: 16px; padding: 22px; max-width: 520px; width: 100%; }
.overlay-box h2 { margin-top: 0; color: var(--warn); }
.overlay-box .btn { width: 100%; margin-top: 8px; }
.blank { position: fixed; inset: 0; z-index: 60; background: #fff; }
.saving { position: fixed; right: 12px; bottom: 84px; z-index: 40; background: #333; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.noscript { padding: 20px; }
@media print { body { display: none !important; } }
@media (max-height: 520px) and (orientation: landscape) {
  .ar-wrap { grid-template-columns: 1fr 1fr; } .matrix { max-width: 300px; } .opts { grid-template-columns: repeat(4, 1fr); max-width: 360px; }
  .app { padding-bottom: 90px; }
}
@media (max-width: 380px) { body { font-size: 17px; } .qstem { font-size: 19px; } .opts { gap: 6px; } .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; } .wordmark { height: 24px; } }

.exitbtn { white-space: nowrap; border: 1px solid #B9C9C3; background: #fff; color: var(--green-dark); min-height: 36px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 6px 10px; cursor: pointer; margin-right: 8px; }
.overlay-box .btnrow { justify-content: center; flex-wrap: wrap; }

.opt.locked { opacity: .45; cursor: not-allowed; }
.subcard { border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; background: #FAFCFB; }
p.ok { background: var(--green-light); color: var(--green-dark); padding: 8px 12px; border-radius: 8px; }
.gpage .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; } .gpage .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

.wordmark { height: 30px; width: auto; }
.brand.sub { font-size: 14px; color: var(--muted); font-weight: 600; border-left: 1px solid var(--line); padding-left: 10px; }
.example-who { background: var(--green-light); color: var(--green-dark); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; }
a { color: var(--green); font-weight: 600; }

/* brand: the Right to Hire logo is always clearly visible */
.logo { width: 40px; height: 40px; }
.wordmark { height: 34px; width: auto; }
.brandhero { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 12px 0 28px; }
.bh-logo { width: 104px; height: 104px; }
.bh-word { height: 58px; width: auto; }
body.entry .topbar { display: none; }
body.entry .brandhero { margin-top: 28px; }
@media (max-width: 600px) { .bh-logo { width: 84px; height: 84px; } .bh-word { height: 48px; } .brandhero { margin: 4px 0 20px; } }
@media (max-width: 380px) { .logo { width: 34px; height: 34px; } .wordmark { height: 28px; } }
