/* Tokens follow the GlassHire design language (product/design-language.html). */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --surface-0: #ffffff; --surface-1: #f6f9fa; --surface-2: #eaf1f4;
  --line: #e2eaee; --line-strong: #c9d6dc;
  --ink: #0b1a22; --ink-2: #4c6b76; --ink-3: #55717d;
  --accent: #0891b2; --accent-text: #0e7490; --accent-tint: #e6f4f8;
  --ok: #0f7a52; --ok-tint: #e8f6f0; --danger: #b3313a; --danger-tint: #fdeef0;
  --ring: 0 0 0 3px rgb(8 145 178 / 0.28);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-wrap: anywhere; margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-1); color: var(--ink-2); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, dt { color: var(--ink); }
h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code, pre, time, .numbers dd, .n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 13px; background: var(--surface-2); color: var(--ink); padding: 1px 5px; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface-0); padding: 8px 12px; z-index: 2; }
.fine, .help { font-size: 14px; color: var(--ink-3); }
.intro { font-size: 18px; line-height: 1.55; }

/* Header */
.site-header { background: var(--surface-0); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.lockup { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark { font: 700 21px/1 "Space Grotesk", var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.wordmark .g { color: var(--accent); }
.wordmark.small { font-size: 18px; }
.product { font-size: 15px; font-weight: 500; color: var(--ink); padding-left: 12px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.quiet { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.quiet:hover { color: var(--ink); }

main.wrap { flex: 1; padding: 56px 24px 88px; }
main.narrow { max-width: 640px; }
main.report { max-width: 800px; }

/* Buttons and fields */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none; transition: background-color 120ms ease; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #1b2f39; color: #fff; }
.btn.secondary { background: var(--surface-0); border-color: var(--line-strong); color: var(--ink); }
.btn.secondary:hover { background: var(--surface-1); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
input[type=email] { height: 44px; width: 100%; padding: 0 12px; font: 400 15px var(--sans); color: var(--ink); background: var(--surface-0); border: 1px solid #7f97a1; border-radius: 8px; }
input[type=email]::placeholder { color: var(--ink-3); }
input[type=email]:focus-visible { border-color: var(--accent-text); }
.panel { background: var(--surface-0); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.alert { background: var(--danger-tint); color: var(--danger); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }

/* Start page */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "pitch upload" "about upload"; column-gap: 64px; row-gap: 44px; align-items: start; grid-template-rows: auto 1fr; }
.pitch { grid-area: pitch; }
.upload { grid-area: upload; }
.about { grid-area: about; }
.pitch h1 { max-width: 14em; }
.pitch .intro { margin-top: 18px; max-width: 32em; }
.trust { margin-top: 14px; font-size: 15px; max-width: 36em; }
.about .rows { margin-top: 14px; }
.about .rows > div { grid-template-columns: 200px 1fr; }
.about .fine { margin-top: 14px; }
.upload h2 { margin-bottom: 18px; }
.drop { position: relative; border: 1px dashed #7f97a1; border-radius: 8px; background: var(--surface-1); padding: 26px 16px; text-align: left; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-tint); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.drop-title { display: block; color: var(--ink); font-weight: 500; }
.drop-action { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.drop .help { margin-top: 4px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 13px var(--mono); color: var(--ink); }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li span:last-child { color: var(--ink-3); flex: none; }
.where { margin-top: 14px; font-size: 14px; }
.where summary, .record summary { cursor: pointer; color: var(--accent-text); font-weight: 500; width: fit-content; list-style: none; padding: 8px 0; display: flex; align-items: center; gap: 8px; }
.where summary::-webkit-details-marker, .record summary::-webkit-details-marker { display: none; }
.where summary::after, .record summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 120ms ease; margin-left: 2px; }
.where[open] summary::after, .record[open] summary::after { transform: rotate(45deg); }
.where dl { margin-top: 10px; }
.where dt { font-weight: 600; margin-top: 10px; }
.where .help { margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.upload .btn { width: 100%; }
.help.after { margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.section { margin-top: 88px; max-width: 800px; }
.rows { margin-top: 20px; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dd { font-size: 15px; }
.rows dt { font-weight: 600; }

/* Status pages */
.status h1 { font-size: 26px; }
.status .intro { margin: 12px 0 20px; font-size: 16px; }
.status p + p { margin-top: 12px; }
.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.steps .mark { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); justify-self: center; }
.steps .state { font-size: 13px; }
.steps li.done { color: var(--ink); }
.steps li.done .mark { background: var(--ink); border-color: var(--ink); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now .mark { border-color: var(--accent); background: var(--accent); }
.steps li.now .state { color: var(--accent-text); font-weight: 500; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Report */
.docline { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.docline time { font-size: 13px; }
.report-head h1 { font-size: 32px; }
.report-head .intro { margin-top: 16px; color: var(--ink-2); max-width: 680px; }
.keep { margin-top: 36px; background: var(--surface-0); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.keep h2 { font-size: 16px; }
.keep p { font-size: 14px; margin-top: 2px; }
.keep form { display: flex; gap: 8px; flex-wrap: wrap; }
.keep input[type=email] { flex: 1 1 240px; width: auto; max-width: 340px; }
.keep .btn { flex: none; }
.keep-note { grid-column: 1 / -1; font-weight: 500; }
.keep-note.ok { color: var(--ok); }
.keep-note.bad { color: var(--danger); }
.block { margin-top: 56px; }
.block > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.block > p { margin-top: 14px; }
.block .fine { margin-top: 14px; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.numbers > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.numbers > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.numbers dt { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.numbers dd { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.item > p, .block > p { margin-top: 6px; max-width: 680px; }
.area-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.level { font-size: 12.5px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.level.not_observed { border-style: dashed; color: var(--ink-3); }
.level.clear { background: var(--surface-0); border-color: var(--ink); color: var(--ink); }
.level.substantiated { background: var(--ink); border-color: var(--ink); color: #fff; }
.area .basis { font-size: 14px; color: var(--ink-3); }
.record { margin-top: 6px; font-size: 14px; }
.record summary .count { font-weight: 400; color: var(--ink-3); }
.record ol { margin-top: 4px; border-left: 2px solid var(--line); }
.record[open] ol { border-left-color: var(--accent); }
.entry { padding: 10px 0 10px 16px; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry-meta { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.entry-meta time { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.entry pre { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.entry.person pre { color: var(--ink); }
.tip h3 { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.tip .n { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tip .n::before { content: "0"; }
.pair { margin-top: 10px; }
.pair > div { display: grid; grid-template-columns: 130px 1fr; gap: 4px 16px; padding: 10px 0 0; }
.pair dt { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pair dd { max-width: 60ch; }
.prompt { margin-top: 12px; background: var(--surface-0); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.prompt figcaption { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.prompt pre { font: 400 15px/1.55 var(--sans); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.timeline time { font-size: 13px; color: var(--ink-3); }
.timeline .kind { font-size: 13px; color: var(--ink-3); }
.timeline .what { color: var(--ink); }
.timeline li.day { display: block; padding: 18px 0 6px; }
.timeline li.day time { color: var(--ink); font-weight: 500; }
.plain li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* Footer */
.site-footer { background: var(--surface-0); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.foot-note { margin-top: 10px; max-width: 46ch; color: var(--ink-3); text-wrap: pretty; }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 56px; }
.foot-label { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot-nav li + li { margin-top: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot-bottom ul { display: flex; gap: 18px; }

/* Operator list */
.tablewrap { overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; background: var(--surface-0); }
th { background: var(--surface-2); font-size: 12px; color: var(--ink); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.btn.mini { min-height: 28px; padding: 0 10px; font-size: 13px; }

@media (max-width: 860px) {
  main.wrap { padding: 36px 24px 64px; }
  h1, .report-head h1 { font-size: 27px; }
  .intro { font-size: 17px; }
  .lead { grid-template-columns: 1fr; grid-template-areas: "pitch" "upload" "about"; row-gap: 32px; }
  .rows > div, .about .rows > div, .pair > div { grid-template-columns: 1fr; gap: 2px; }
  .panel { padding: 20px; }
  .keep { grid-template-columns: 1fr; padding: 18px 20px; }
  .numbers { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; gap: 32px; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .timeline li { grid-template-columns: 52px minmax(0, 1fr); }
  .timeline .kind { grid-column: 2; }
  .section { margin-top: 64px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  main.wrap { padding: 28px 18px 56px; }
  .foot-nav { grid-template-columns: 1fr; }
  .product { font-size: 14px; padding-left: 10px; }
  .lockup { gap: 10px; }
  .quiet { display: none; }
  .keep input[type=email] { max-width: none; flex-basis: 100%; }
  .keep .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Lean report: rows closed by default, as on the GlassHire results page */
.report-head h1 { font-size: 26px; line-height: 1.25; max-width: 24em; }
.report-head .intro { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.block { margin-top: 40px; }
.block > h2, .block-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.block-head h2 { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.block-head p { font-size: 13px; color: var(--ink-3); }
.list { border-top: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }
.row summary { display: grid; grid-template-columns: minmax(0, 1fr) 144px 150px 44px; align-items: center; gap: 20px; padding: 14px 0; cursor: pointer; list-style: none; }
.row summary::-webkit-details-marker { display: none; }
.row-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.bars i { height: 6px; border-radius: 999px; background: var(--surface-2); }
.bars i.on { background: var(--accent); }
.row-level { font-size: 13px; color: var(--ink-3); }
.toggle { text-align: right; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.toggle::after { content: "Show"; }
.row[open] .toggle::after { content: "Hide"; }
.row summary:hover .toggle { text-decoration: underline; text-underline-offset: 4px; }
.row.tip summary { grid-template-columns: 20px minmax(0, 1fr) 44px; gap: 12px; }
.row.tip .n { font-size: 13px; color: var(--ink-3); }
.tip .n::before { content: none; }
.row-body { padding: 0 0 16px; max-width: 720px; }
.row.tip .row-body { padding-left: 32px; }
.finding { border-left: 2px solid var(--accent); background: var(--surface-2); padding: 10px 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.row-body .basis { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.record summary { font-size: 14px; padding: 6px 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 12px 16px; border-left: 1px solid var(--line); }
.metrics > div:first-child { border-left: 0; padding-left: 0; }
.metrics dt { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.metrics dd { margin-top: 4px; font: 600 15px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics dd span { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.folds { border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold > summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.fold-body { padding-bottom: 16px; }
.fold-body > p { font-size: 14.5px; max-width: 720px; margin-bottom: 10px; }
.fold-body h3 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin: 22px 0 6px; }
.fold-body .numbers { margin-top: 12px; }
.prompts { display: grid; gap: 10px; padding-bottom: 16px; }
.prompts li { background: var(--surface-0); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.prompts pre { margin-top: 4px; font: 400 14px/1.5 var(--sans); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.keep { margin-top: 40px; }
.fine.end { margin-top: 16px; }
@media (max-width: 860px) {
  .report-head h1 { font-size: 23px; }
  .row summary { grid-template-columns: minmax(0, 1fr) 72px 44px; gap: 12px; }
  .row-level { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { padding: 12px 0; border-left: 0; }
  .metrics > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row.tip .row-body { padding-left: 0; }
}

/* Guide */
main.guide { max-width: 800px; }
.jump { margin-top: 16px; display: flex; gap: 20px; font-size: 15px; }
.guide-steps { counter-reset: step; border-top: 1px solid var(--line); }
.guide-steps > li { counter-increment: step; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); position: relative; }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 21px; font: 500 13px var(--mono); color: var(--ink-3); }
.guide-steps p { margin-top: 8px; font-size: 15px; max-width: 680px; }
.term { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-0); overflow: hidden; }
.term figcaption { font-size: 12.5px; color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.term figcaption.note { border-bottom: 0; border-top: 1px solid var(--line); }
.term pre { padding: 12px; font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-all; user-select: all; }
.term pre.out { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12px; white-space: pre; overflow-x: auto; word-break: normal; user-select: text; }
.shot { margin-top: 14px; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
main.guide .actions { margin-top: 20px; }
@media (max-width: 860px) { .guide-steps > li { padding-left: 28px; } }

@media print {
  .site-header, .site-footer, .keep, .skip, .toggle { display: none; }
  body { display: block; background: #fff; color: #000; }
  main.wrap { padding: 0; max-width: none; }
  .block { margin-top: 24px; }
  .item, .prompt, .numbers > div { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .level.substantiated { background: none; color: #000; font-weight: 600; }
}
