@font-face { font-family:"DM Sans";src:url("brand/DMSans-Regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap; }
@font-face { font-family:"DM Sans";src:url("brand/DMSans-Bold.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap; }
@font-face { font-family:"Instrument Serif";src:url("brand/InstrumentSerif-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap; }
@font-face { font-family:"Instrument Serif";src:url("brand/InstrumentSerif-Italic.ttf") format("truetype");font-style:italic;font-weight:400;font-display:swap; }
:root {
  color-scheme: light;
  --paper:#f8f5ec; --ink:#20352c; --clay:#a7442b; --line:#cfcbbd; --muted:#4c5e51;
  --serif:"Instrument Serif",Baskerville,"Times New Roman",serif;
  font-family:"DM Sans",Arial,sans-serif; color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
header { border-bottom:1px solid var(--line); }
.topbar, main { width:min(960px,calc(100% - 48px)); margin-inline:auto; }
.topbar { display:flex; min-height:76px; align-items:center; justify-content:space-between; gap:12px; }
.wordmark { display:block; width:200px; height:auto; }
a { color:inherit; text-underline-offset:4px; }
.nav-link { font-size:14px; }
main { padding:44px 0 60px; }
.introduction { display:grid; grid-template-columns:1.15fr .85fr; gap:0 40px; align-items:end; }
.eyebrow { grid-column:1 / -1; margin-bottom:8px; color:var(--clay); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
h1,h2 { margin:0; font:400 clamp(42px,5.5vw,75px)/1.02 var(--serif); letter-spacing:-.05em; }
h1 em { font-weight:400; color:var(--clay); }
h2 { font-size:clamp(30px,4vw,46px); }
p { line-height:1.55; margin:0; }
.introduction p,.lead { font-size:16px; color:var(--muted); }
.steps { display:flex; list-style:none; padding:0; margin:32px 0 0; border-bottom:1px solid var(--line); }
.steps li { padding:12px 15px; margin-bottom:-1px; font-weight:700; color:var(--muted); font-size:14px; }
.steps li[aria-current] { border-bottom:3px solid var(--clay); color:var(--clay); }
.panel { padding:30px 0 0; max-width:760px; }
.lead { margin:10px 0 16px; max-width:650px; }
button,input { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
:focus-visible { outline:3px solid #926028; outline-offset:4px; }
.photo-box { background:#eeeada; padding:22px; border:1px dashed #9a9e89; border-radius:12px; }
.photo-actions,.action-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.button { display:inline-flex; gap:10px; align-items:center; justify-content:center; padding:11px 20px; min-height:46px; border:1px solid transparent; border-radius:99px; font-size:15px; font-weight:700; }
.button svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
.primary { background:var(--clay); color:#fffaec; }
.primary:hover:enabled { background:#813620; }
.outline { background:#fbf8ee; border-color:#798574; color:var(--ink); }
.outline:hover:enabled { background:#e4eadc; }
.button:disabled { opacity:.55; }
.hint,.receipt dt { color:var(--muted); font-size:13px; line-height:1.5; }
.photo-box .hint { margin-top:10px; }
#photo-previews { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0; margin:16px 0 0; list-style:none; }
#photo-previews:empty { display:none; }
#photo-previews li { min-width:0; }
#photo-previews img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:5px; }
.remove,.back { padding:6px 1px; color:var(--ink); border:0; background:none; text-decoration:underline; text-underline-offset:3px; min-height:40px; }
.remove { font-size:13px; }
#scan-form { margin-top:20px; }
.consent,.scope label { display:flex; align-items:flex-start; gap:10px; line-height:1.5; cursor:pointer; }
input[type=checkbox],input[type=radio] { accent-color:var(--ink); width:19px; height:19px; margin:2px 0 0; flex:none; }
.privacy { margin:4px 0 18px 29px; }
.error:not(:empty) { margin-top:12px; color:#8c2e20; font-weight:700; }
.status:not(:empty) { color:var(--ink); margin-top:15px; }
fieldset { margin:18px 0; padding:0; border:none; }
legend { padding:0; margin-bottom:11px; font-weight:700; font-size:17px; }
.upgrade { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); background:#fcfaf3; border-radius:9px; padding:15px; margin:8px 0; cursor:pointer; }
.upgrade:has(input:checked) { background:#e8eddf; border-color:#71846b; }
.upgrade-content { display:grid; gap:5px; min-width:0; overflow-wrap:anywhere; }
.upgrade-content strong { font-size:18px; }
.trade { color:var(--clay); font-size:13px; font-weight:700; }
.observation,.work { line-height:1.45; font-size:15px; }
.observation { color:var(--muted); }
.scope label { margin-block:8px; }
#request-form .action-row { margin:13px 0 6px; }
.receipt { padding:12px 15px; border-left:3px solid var(--clay); background:#eeeada; }
.receipt dd { margin:2px 0 0; font-size:14px; overflow-wrap:anywhere; }
.job { border-top:1px solid var(--line); margin-top:14px; }
.job h3 { font:400 28px var(--serif); margin:12px 0 5px; }
.job ul { margin-top:0; padding-left:22px; line-height:1.65; }
#new-scan { margin-top:12px; }
dialog { width:min(94vw,560px); max-height:92vh; overflow:auto; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:22px; }
dialog::backdrop { background:#172e24b3; }
video { width:100%; max-height:48vh; margin-top:14px; border-radius:7px; background:#20352c; }
dialog .action-row { margin-top:12px; }
@media(max-width:670px) {
  .topbar,main { width:calc(100% - 36px); }
  .topbar { min-height:62px; } .wordmark { width:150px; }
  .nav-link { font-size:12px; } main { padding:26px 0 44px; }
  .introduction { display:block; } .introduction p { margin-top:10px; }
  .introduction p,.lead { font-size:15px; } .steps { margin-top:20px; }
  .steps li { padding:11px 10px; font-size:13px; } .panel { padding-top:22px; }
  .photo-box { padding:13px; } .photo-actions { gap:8px; }
  .photo-actions .button { font-size:14px; padding:9px 13px; gap:6px; }
  #photo-previews { gap:6px; }
}

.preview-controls { display:flex; flex-wrap:wrap; gap:0 10px; }
.preview-controls button { min-height:34px; }
#privacy-dialog { width:min(94vw,680px); }
#mask-help { margin:8px 0; font-size:14px; }
#mask-canvas { display:block; margin:12px auto; width:auto; height:auto; max-width:100%; max-height:48vh; background:#252c27; cursor:crosshair; touch-action:none; }
#mask-status { min-height:1.4em; }
@media(max-width:450px) { #photo-previews:not(:empty) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
