:root {
  color-scheme: light;
  --navy: #293c46;
  --blue: #984327;
  --ink: #243741;
  --muted: #555e61;
  --rule: #d8d3c7;
  --canvas: #f7f4eb;
  --head: #f0eee5;
  --amber: #dfae56;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.45 "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.top { background: #fffdf6; border-bottom: 1px solid var(--rule); }
.bar, .brand, .buttons, .caption, .checkout, footer { display: flex; align-items: center; }
.bar { min-height: 61px; gap: 21px; }
.brand { gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 24px; letter-spacing: -.035em; }
.mark { display: block; flex: none; width: 31px; height: 31px; }
.brand-context { border-left: 1px solid var(--rule); padding-left: 21px; color: var(--muted); font-size: 14px; }
.page-count { margin-left: auto; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.header-link { color: var(--ink); font-size: 13px; text-underline-offset: 4px; text-decoration-color: #91a1ae; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 29%); align-items: end; gap: 20px; }
.welcome { padding: 28px 0 25px; }
.page-head h1 { font: 700 clamp(37px, 4.2vw, 58px)/.99 Georgia, serif; letter-spacing: -.045em; }
.page-head em { color: var(--blue); }
.page-head .lead { max-width: 565px; }
.sanych { display: block; width: 100%; height: 204px; object-fit: contain; object-position: center bottom; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 40px); font-weight: 650; letter-spacing: -.045em; line-height: 1.16; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.lead { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.intake { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(275px, 1fr); border: 1px solid var(--rule); border-top: 2px solid var(--navy); border-radius: 6px; overflow: hidden; background: #fffefa; }
.form-panel, .terms { padding: 20px 24px; min-width: 0; }
.terms { border-left: 1px solid var(--rule); background: #f5edda; }
.file-field { margin: 15px 0 8px; min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 19px; border: 1px dashed #ac9d84; background: #faf7ee; border-radius: 5px; }
.file-field.dragging { outline: 2px solid var(--blue); background: #fff0cf; }
.file-symbol { position: relative; width: 34px; height: 43px; color: #537086; border: 2px solid currentColor; background: white; }
.file-symbol::before { content: ""; position: absolute; width: 12px; height: 12px; top: -2px; right: -2px; background: linear-gradient(45deg, #dce6ed 44%, #537086 46%, #537086 53%, #f5f8fa 56%); border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.file-symbol::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 8px; border-block: 1px solid currentColor; }
.file-instructions { display: flex; align-items: center; gap: 10px; }
.pick, .primary, .secondary { display: inline-flex; position: relative; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; cursor: pointer; font: 600 14px/1.35 "Helvetica Neue", Arial, sans-serif; }
.pick, .primary { color: white; background: var(--blue); border-color: var(--blue); }
.pick:hover, .primary:hover { background: #783219; }
.pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drag-hint, .hint, .muted, .terms p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.terms dl { margin: 8px 0; }
.terms dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; }
.terms dt { font-size: 14px; color: var(--muted); }
.terms dd { font-size: 15px; font-weight: 600; }
.terms .total { margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--rule); }
.total dd { font-size: 19px; }
.resume, .back { display: inline-block; color: var(--blue); font-size: 14px; text-underline-offset: 3px; }
.resume { margin-top: 12px; }
[hidden] { display: none !important; }
#file-order { margin: 12px 0; padding-left: 28px; font-size: 14px; overflow-wrap: anywhere; }
#file-order li { padding: 4px; }
#file-order button { margin-left: 8px; }
button:disabled { opacity: .65; }
a:focus-visible, .pick:focus-within, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b47a1e; outline-offset: 3px; }
.example { margin: 26px 0 36px; }
.example > h2 { margin-bottom: 12px; font: 700 24px/1.2 Georgia, serif; letter-spacing: -.035em; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { min-width: 0; background: white; border: 1px solid var(--rule); }
.caption { justify-content: space-between; min-height: 38px; padding: 8px 15px; border-bottom: 1px solid var(--rule); background: var(--head); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.caption span:last-child { color: var(--muted); font-size: 12px; font-weight: 500; }
.table-preview { display: block; margin: 12px; cursor: zoom-in; }
.table-preview img { display: block; width: 100%; height: auto; }
.example-download { display: inline-block; margin: 0 14px 14px; color: var(--blue); font-size: 14px; text-underline-offset: 3px; }
footer { justify-content: space-between; gap: 15px; padding: 14px 0 19px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.order { padding: 23px 0 32px; }
.filename { margin: 20px 0 7px; font-size: 14px; overflow-wrap: anywhere; }
.filename span { margin-right: 7px; color: var(--muted); }
.buttons { gap: 12px; flex-wrap: wrap; margin: 16px 0 21px; }
.secondary { background: white; color: var(--blue); border-color: #93a7b7; }
.secondary:hover { background: #eaf1f6; }
.order .panel img { display: block; width: 100%; height: auto; padding: 10px; }
.checkout { justify-content: space-between; gap: 15px; padding: 16px 20px; background: white; border: 1px solid var(--rule); margin-block: 20px; }
.checkout p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.checkout input[type=email] { border: 1px solid #a3afb7; padding: 10px; font: inherit; max-width: 100%; }
.status, .alert { margin: 16px 0; padding: 13px 16px; border: 1px solid var(--rule); background: white; }
.alert { border-left: 3px solid #b85c29; }
.pulse { display: inline-block; background: var(--amber); width: 9px; height: 9px; margin-right: 6px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .file-instructions { flex-direction: column; gap: 4px; }
  .form-panel, .terms { padding: 17px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .brand-context, .drag-hint { display: none; }
  .bar { min-height: 52px; gap: 8px; flex-wrap: wrap; padding-block: 8px; }
  .page-count { order: 1; width: 100%; border-top: 1px solid var(--rule); padding-top: 5px; }
  .header-link { margin-left: auto; }
  .brand { font-size: 19px; }
  .header-link { font-size: 12px; }
  .page-head { grid-template-columns: minmax(0, 1fr) 90px; gap: 5px; padding-top: 17px; }
  .welcome { display: contents; }
  .page-head h1 { align-self: center; font-size: clamp(30px, 8vw, 42px); }
  .sanych { grid-area: 1 / 2; height: 90px; }
  .page-head .lead { grid-column: 1 / -1; margin: 0; padding: 5px 0 14px; }
  .lead { font-size: 15px; }
  .intake, .compare { grid-template-columns: minmax(0, 1fr); }
  .terms { border-left: 0; border-top: 1px solid var(--rule); }
  .form-panel, .terms { padding: 14px 16px; }
  .file-field { margin-top: 10px; min-height: 75px; }
  .terms dl { margin: 4px 0; }
  .terms dl div { padding-block: 4px; }
  .compare { gap: 12px; }
  .example { margin: 20px 0; }
  .checkout { align-items: start; flex-direction: column; }
}
