/* SecureJobs: data-forward, phone first. Light gray page, white cards, one deep blue accent,
   monospace numbers. System fonts only: fast on a phone, and no third-party font requests. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e3e6eb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6576;
  --blue: #1d4ed8;
  --blue-700: #1e40af;
  --blue-50: #eef3ff;
  --blue-100: #dbe5fe;
  --bar: #bcd0fb;
  --red: #b42318;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--blue); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.draftbar { background: #fff4d6; color: #6b4a00; font-size: 13px; text-align: center; padding: 6px 12px; font-weight: 600; }
.top { max-width: 560px; margin: 0 auto; padding: 14px 20px 4px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; font-size: 17px; }
.mark-box { width: 22px; height: 22px; border-radius: 6px; background: var(--blue) url("/assets/favicon.svg") center/cover; }

main { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
.screen { display: flex; flex-direction: column; gap: 14px; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.eyebrow { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--blue-700); }
h1 { margin: 0; font-size: clamp(30px, 8.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.sub { margin: 0; font-size: 17px; color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.trust { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Bar charts */
.chart { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.chart figcaption { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { color: var(--muted); white-space: nowrap; }
.bar-track { height: 12px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bar { display: block; height: 100%; background: var(--bar); border-radius: 3px; }
.bar-row.you .bar { background: var(--blue); }
.bar-row.you .bar-label, .bar-row.you .num { color: var(--ink); font-weight: 700; }
.num { text-align: right; font-size: 13px; color: var(--ink-2); }

/* Questions */
.q-count { margin: 0; font-size: 13px; color: var(--muted); }
.q { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; outline: none; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.hint:empty { display: none; }
.q-card { display: flex; flex-direction: column; gap: 10px; border-color: var(--blue-100); box-shadow: 0 1px 0 var(--blue-100); }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.opt {
  font: 600 17px/1.25 var(--sans); text-align: left; color: var(--ink);
  min-height: 56px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: border-color .12s, background .12s;
}
.opt::after { content: "\2192"; color: var(--muted); font-weight: 400; }
.opt:hover { border-color: var(--bar); }
.opt:focus-visible { outline: 3px solid var(--blue-100); border-color: var(--blue); }
.opt.picked, .opt:active { border-color: var(--blue); background: var(--blue-50); }
#s-quiz .q { margin-top: 6px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .25s ease; }
.back { align-self: flex-start; font: 600 15px var(--sans); color: var(--muted); background: none; border: 0; padding: 12px 4px; cursor: pointer; min-height: 44px; }

/* Calculating */
.calc { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ink-2); text-align: center; }
.calc-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.calc-bars span { width: 10px; background: var(--blue); border-radius: 3px; animation: grow .9s ease-in-out infinite; }
.calc-bars span:nth-child(2) { animation-delay: .1s; } .calc-bars span:nth-child(3) { animation-delay: .2s; }
.calc-bars span:nth-child(4) { animation-delay: .3s; } .calc-bars span:nth-child(5) { animation-delay: .4s; }
@keyframes grow { 0%, 100% { height: 12px; opacity: .5; } 50% { height: 48px; opacity: 1; } }

/* Result */
.result { display: flex; flex-direction: column; gap: 8px; }
.result-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.range { margin: 0; font-size: clamp(34px, 10vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; outline: none; }
.band { position: relative; height: 10px; background: var(--bg); border-radius: 99px; margin: 8px 0 0; }
.band-fill { position: absolute; left: 12%; right: 12%; top: 0; bottom: 0; background: var(--bar); border-radius: 99px; }
.band-mid { position: absolute; top: -4px; width: 4px; height: 18px; background: var(--blue); border-radius: 2px; transform: translateX(-2px); }
.band-legend { display: flex; justify-content: space-between; margin: 0; font-size: 13px; color: var(--muted); }
.profile { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

/* Contact */
.cta { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--blue); }
.cta > p { margin: 0; color: var(--ink-2); }
form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input[type=text], input:not([type]), input[type=email], input[type=tel] {
  font: 17px var(--sans); color: var(--ink); padding: 13px 14px; min-height: 52px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus { outline: 3px solid var(--blue-100); border-color: var(--blue); }
input[type=file] { font: 15px var(--sans); padding: 6px 0; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
  font: 600 15px var(--sans); color: var(--blue-700); background: var(--blue-50); border: 1.5px solid var(--blue-100);
  border-radius: 10px; padding: 11px 16px; margin-right: 12px; cursor: pointer; min-height: 46px;
}
.file-help { font-weight: 400; font-size: 13px; color: var(--muted); }
.opt-tag { font-weight: 500; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
label.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.primary {
  font: 700 17px var(--sans); color: #fff; background: var(--blue); border: 0; border-radius: 12px;
  min-height: 56px; padding: 14px 18px; cursor: pointer;
}
.primary:hover { background: var(--blue-700); }
.primary:disabled { opacity: .6; cursor: wait; }
.error { margin: 0; color: var(--red); font-size: 14px; font-weight: 600; }
.turnstile:empty { display: none; }

/* Done */
.done { display: flex; flex-direction: column; gap: 10px; }
.done h2 { font-size: 28px; outline: none; }
.done p { margin: 0; }
.next { margin: 4px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Text pages */
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }

.foot { max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (min-width: 720px) {
  main, .top, .foot { max-width: 600px; }
  .card { padding: 22px; }
}

/* ---------- Header nav, footer (all pages) ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.topnav a:not(.btn) { color: var(--ink-2); text-decoration: none; display: none; }
.topnav a:not(.btn):hover { color: var(--blue); }
.foot { border-top: 1px solid var(--line); padding-top: 20px; gap: 10px; }
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot .mark { font-size: 15px; }
.foot .mark-box { width: 18px; height: 18px; border-radius: 5px; }
.legal { font-size: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--sans); text-decoration: none; border-radius: 12px; min-height: 52px; padding: 12px 20px; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-700); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--bar); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Homepage ---------- */
body.is-home main, body.is-home .top, body.is-home .foot { max-width: 1040px; }
.home { display: flex; flex-direction: column; gap: 8px; }
.home h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.home .card p { margin: 0; color: var(--ink-2); }
.hero-home { display: grid; gap: 22px; padding: 10px 0 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-home h1 { font-size: clamp(32px, 8.6vw, 52px); line-height: 1.05; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 auto; }
.hero-chart { align-self: center; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.facts > div { background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.fact-k { font: 700 28px/1.1 var(--mono); color: var(--blue); letter-spacing: -0.02em; }
.fact-v { font-size: 13px; color: var(--muted); }

.block { padding: 30px 0 6px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 12px; }
.h2-lg { font-size: clamp(26px, 6.4vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.grid3 { display: grid; gap: 12px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps-list li { background: var(--card); display: flex; gap: 16px; padding: 18px; }
.steps-list p { margin: 4px 0 0; color: var(--ink-2); }
.step-n { font-size: 14px; font-weight: 700; color: var(--blue); padding-top: 2px; }
#how > .btn { align-self: flex-start; }

.range-rows { display: flex; flex-direction: column; gap: 12px; }
.range-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 6px 12px; align-items: center; font-size: 14px; }
.rr-label { grid-area: l; color: var(--ink-2); font-weight: 600; }
.rr-val { grid-area: v; font-size: 14px; color: var(--ink); }
.rr-bar { grid-area: b; height: 10px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.rr-bar .bar { background: var(--blue); }

.two-col { display: grid; gap: 12px; }
.two-col .card { display: flex; flex-direction: column; gap: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.transition-card { display: flex; flex-direction: column; gap: 14px; background: var(--blue-50); border-color: var(--blue-100); }
.transition-card > div { display: flex; flex-direction: column; gap: 6px; }
.transition-card .btn { align-self: flex-start; }

.employer { display: flex; flex-direction: column; gap: 12px; background: var(--ink); border-color: var(--ink); }
.employer h2 { color: #fff; font-size: 26px; }
.home .employer p { color: #cbd5e1; }
.employer .eyebrow { color: #93b4ff; margin: 0; }
.employer .btn { align-self: flex-start; }

.faq-home details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq-home summary { font-weight: 700; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-home summary::-webkit-details-marker { display: none; }
.faq-home summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); }
.faq-home details[open] summary::after { content: "\2212"; }
.faq-home details p { margin: 0 0 16px; color: var(--ink-2); }

.final-card { text-align: center; align-items: center; display: flex; flex-direction: column; gap: 10px; padding: 28px 18px; }
.final-card h2 { font-size: 26px; }

@media (min-width: 720px) {
  .topnav a:not(.btn) { display: inline; }
  .hero-home { grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 36px 0 18px; align-items: center; }
  .cta-row .btn { flex: 0 0 auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .transition-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .transition-card .btn { align-self: center; flex: 0 0 auto; }
  .block { padding-top: 48px; }
  .range-row { grid-template-columns: 220px 1fr 150px; grid-template-areas: "l b v"; }
  .rr-val { text-align: right; }
  .foot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .legal { flex-basis: 100%; }
}

/* Salary guide (/pay/): wide tables scroll sideways on phones. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.guide table.data th { white-space: nowrap; }
.guide h3 { font-size: 16px; margin: 14px 0 4px; }
.guide ul { padding-left: 20px; }
