/* ProctorReady Check: the browser edition. Cordaves brand kit (website-design-test/cordaves-ci/final/kit/tokens.css):
   navy header band with rounded lower corners as in the app, white cards, crimson primary, raven text, paper page.
   Check states use the wing colours, always with a word: OK green, NOTE blue, CHECK violet, FIX crimson.
   Fonts are the download page's own files (../assets/fonts), SIL OFL. No inline style anywhere (strict CSP). */

@font-face { font-family: "Big Shoulders"; src: url("../assets/fonts/BigShoulders-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --navy: #1A2440; --navy-2: #222E50;
  --raven: #131313;
  --crimson: #B0122E; --crimson-hover: #960F27; --crimson-light: #F07A8C;
  --page: #F3F1EC; --surface: #FFFFFF;
  --text: #131313; --muted: #3E3F42; --line: #DDD9D0; --mist: #CDCFD4;
  --ok: #02592A; --note: #0135AB; --check: #531395; --fix: #B0122E;
  --display: "Big Shoulders", "Arial Narrow", "Bahnschrift", sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-card: 20px; --r-btn: 12px;
  --shadow: 0 1px 2px rgb(19 19 19 / .06), 0 8px 24px rgb(26 36 64 / .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
a { color: var(--crimson); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--crimson-hover); }
:focus-visible { outline: 3px solid var(--note); outline-offset: 3px; border-radius: 6px; }
.top :focus-visible { outline-color: var(--page); }
code { font: 700 .88em/1 var(--mono); }
kbd { display: inline-block; min-width: 2em; padding: 3px 7px; border: 2px solid var(--raven); border-bottom-width: 4px; border-radius: 8px; background: var(--surface); color: var(--raven); font: 700 .8rem/1 var(--mono); text-align: center; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
p { margin: 0 0 .75em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; font-synthesis: none; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.1; margin: 0 0 .4em; }

/* ---------- header band ---------- */
.top { background: var(--navy); color: var(--page); border-radius: 0 0 32px 32px; padding: 18px 0 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lockup { --fs: 2rem; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mark { width: 48px; height: 48px; flex: none; }
.m-main { fill: #D0243F; }
.m-side { fill: var(--mist); }
.m-tick { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.m-desk { fill: var(--mist); opacity: .5; }
.word { font: 700 var(--fs)/1 var(--display); letter-spacing: .005em; color: var(--page); white-space: nowrap; }
.word span { color: var(--crimson-light); }
.edition { font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--page); color: var(--navy); padding: 6px 9px; border-radius: 999px; }
.tagline { margin: 0; color: var(--mist); font-size: .9375rem; }
.intro { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 8px; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: .95; max-width: 15ch; color: var(--page); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--mist); max-width: 62ch; margin-top: 16px; }

.tabs { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
.tab { font: 600 1rem/1 var(--body); color: var(--page); background: transparent; border: 0; padding: 14px 18px 16px; border-radius: 14px 14px 0 0; cursor: pointer; white-space: nowrap; }
.tab:hover { background: rgb(243 241 236 / .1); }
.tab[aria-selected="true"] { background: var(--page); color: var(--raven); }
.tab:focus-visible { outline-offset: -4px; }

main { padding-top: 24px; padding-bottom: 48px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 26px); margin-bottom: 16px; min-width: 0; }
.card--note { border-left: 6px solid var(--note); }
.h-card { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1; color: var(--raven); }
.h-sec { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; margin: 28px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 16px; }
.grid .card { margin-bottom: 0; }

.summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.summary > div { flex: 1 1 420px; }
.summary .h-card { margin-bottom: 6px; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9375rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }

.check { display: flex; flex-direction: column; }
.check__head .pill { flex: none; }
.check__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.result { font-weight: 600; }
.facts { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9375rem; }
.facts li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.facts li .pill { flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.row--wrap { flex-wrap: wrap; margin-top: 0; padding-top: 0; margin-bottom: 12px; }

/* ---------- state pills: colour plus word ---------- */
.pill { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .06em; padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--muted); min-width: 4.4em; text-align: center; }
.pill--ok, [data-state="ok"] { background: var(--ok); }
.pill--note, [data-state="note"] { background: var(--note); }
.pill--check, [data-state="check"] { background: var(--check); }
.pill--fix, [data-state="fix"] { background: var(--fix); }
.pill--app, [data-state="app"] { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
[data-state="wait"] { background: var(--line); color: var(--raven); }
.pill--s { font-size: .6875rem; padding: 4px 7px; min-width: 0; }

/* ---------- buttons and inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 13px 18px; border-radius: var(--r-btn); border: 2px solid var(--crimson); background: var(--crimson); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--crimson-hover); border-color: var(--crimson-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--raven); border-color: var(--raven); }
.btn--ghost:hover { background: rgb(19 19 19 / .06); color: var(--raven); border-color: var(--raven); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; }
.pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; min-width: 0; }
.pick select, .pick input { font: 400 1rem/1.2 var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); max-width: 100%; }
.pick--wide select { min-width: min(100%, 420px); }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- camera, meter, network ---------- */
.stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--raven); aspect-ratio: 4 / 3; margin-bottom: 12px; }
.stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.stage__guide { position: absolute; left: 50%; top: 46%; width: 40%; height: 62%; transform: translate(-50%, -50%); border: 3px dashed rgb(255 255 255 / .75); border-radius: 50%; pointer-events: none; }
.meter { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.meter__bar { flex: 1; height: 18px; background: var(--page); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter__fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width 80ms linear; }
.meter__fill.is-loud { background: var(--check); }
.meter__label { font: 700 .875rem/1 var(--mono); min-width: 3ch; text-align: right; }
.spark { width: 100%; height: 90px; background: var(--page); border-radius: 12px; margin-bottom: 10px; display: block; }

/* ---------- details / how-to ---------- */
.how { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .9375rem; }
.how summary { cursor: pointer; font-weight: 600; color: var(--crimson); }
.how ul { padding-left: 1.2em; margin: 8px 0 0; }
.how li { margin-bottom: 4px; }
.how__os { margin-top: 10px; }
.how__os h3 { font-size: 1.25rem; }
.how__os.is-mine { background: var(--page); border-radius: 12px; padding: 10px 12px; }

.only .h-card, .disclaimer .h-card, .card--note .h-card { margin-bottom: 10px; }
.only .ticks { columns: 2 300px; column-gap: 32px; padding-left: 1.2em; }
.only .ticks li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- checklist ---------- */
.countdown { font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); margin: 8px 0 4px; }
.countdown.is-near { color: var(--fix); }
.sec { padding: 0; overflow: hidden; }
.sec__head { padding: 18px clamp(18px, 2.4vw, 26px) 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec__head h3 { margin: 0; }
.sec__kind { font-size: .875rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 12px clamp(18px, 2.4vw, 26px); border-top: 1px solid var(--line); border-left: 5px solid transparent; }
.item--critical { border-left-color: var(--crimson); }
.item input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ok); cursor: pointer; }
.item__bullet { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin: 8px 0 0 6px; }
.item--critical .item__bullet { background: var(--crimson); }
.item label { cursor: pointer; }
.item__text { font-weight: 600; }
.item.is-done .item__text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.item__meta { grid-column: 2; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.item__detail { grid-column: 2; font-size: .9375rem; color: var(--muted); margin: 0; }
.item__ref { font: 700 .75rem/1 var(--mono); }
.crit { font-weight: 600; color: var(--fix); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.info-grid .card { margin-bottom: 0; }
.dl { margin: 0; }
.dl dt { font-weight: 600; margin-top: 10px; }
.dl dd { margin: 0; }
.dl .val { font: 700 .95rem/1.4 var(--mono); }
.dl .crit-date { color: var(--fix); }
.srcs { padding-left: 1.2em; margin: 0; }
.more-card .row { margin-top: 8px; }

.disclaimer { border-left: 6px solid var(--navy); margin-top: 24px; }

/* ---------- full-screen trial ---------- */
.fs-stage { position: fixed; inset: 0; z-index: 20; background: var(--navy); color: var(--page); display: grid; place-items: center; padding: 24px; text-align: center; }
.fs-stage h2 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 12px; }
.fs-stage p { color: var(--mist); max-width: 46ch; margin: 0 auto 20px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; }
.foot__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot__row p { margin: 0; }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .lockup { --fs: 1.6rem; }
  .mark { width: 40px; height: 40px; }
  .tabs { flex-wrap: wrap; overflow: visible; gap: 2px; }
  .tab { padding: 11px 11px 13px; font-size: .9375rem; }
  .summary .btn { width: 100%; }
  .row { flex-wrap: wrap; }
}

@media print {
  .top, .tabs, .foot, #p-setup, #p-more, .disclaimer, .row, .fine, #print { display: none !important; }
  #p-checklist { display: block !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .item { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .meter__fill { transition: none; } }
