/* SignedChange — drawn like a set of plans: blueprint blue, white linework on a drafting grid, architect's
   lettering for notes, redline for revisions, an approval stamp. Shared by the app, the client page and the site. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Architects Daughter"; font-weight: 400; font-display: swap; src: url("/architects-daughter-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/ibm-plex-mono-500.woff2") format("woff2"); }
:root {
  --blue: #123f8c; --blue-deep: #0b2c66; --blue-line: #2f5fb3; --cyan: #bcd6ff;
  --paper: #f3f6fb; --card: #ffffff; --ink: #0f2a5c; --ink-2: #36507f; --muted: #64799f; --line: #b7c7e2; --line-2: #e1e9f6; --rule: #dbe6f7;
  --go: var(--blue); --go-dark: var(--blue-deep); --pen: var(--blue); --redline: #d93a2b; --serial: var(--redline); --canary: #fff4b3; --pink: #fde3df;
  --ok: #167a45; --ok-bg: #e1f3e8; --warn-bg: var(--canary); --warn: #6b5800; --bad: #c0291c; --bad-bg: var(--pink);
  --head: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --serif: var(--head); --slab: var(--head);
  --hand: "Architects Daughter", "Comic Sans MS", cursive;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 2px; --shadow: 0 1px 0 rgba(15, 42, 92, .06), 0 14px 26px -20px rgba(15, 42, 92, .5);
  --grid: linear-gradient(rgba(18, 63, 140, .07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(18, 63, 140, .07) 1px, transparent 1px) 0 0 / 24px 24px;
  --bpgrid: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 120px 120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grid), var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
/* a drawing sheet */
.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapit { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* title-block lettering */
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.center { text-align: center; }
.hand { font-family: var(--hand); }

.btn { appearance: none; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 600 15.5px/1 var(--sans); padding: 12px 18px; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; transition: transform .05s, background .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.big svg { width: 23px; height: 23px; }
.btn.sm svg { width: 17px; height: 17px; }
.btn:hover { background: #eef3fb; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.go { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 0 var(--blue-deep); }
.btn.go:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ink:hover { background: #1b3a78; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-left: 10px; padding-right: 10px; }
.btn.quiet:hover { background: var(--line-2); }
.btn.danger { color: var(--bad); }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.btn.big { min-height: 58px; font: 600 19px/1 var(--head); }
:focus-visible { outline: 3px solid rgba(217, 58, 43, .55); outline-offset: 2px; }

label.field { display: block; }
label.field > span { display: block; font: 500 11.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #7f97c2; border-radius: 2px; padding: 12px; appearance: none; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 63, 140, .18); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f2a5c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* status is a stamp on the sheet */
.pill { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border: 1.5px solid currentColor; border-radius: 2px; white-space: nowrap; color: var(--muted); transform: rotate(-2.5deg); background: transparent; }
.pill.signed { color: var(--ok); border-width: 2px; }
.pill.sent { color: var(--blue); }
.pill.declined, .pill.void { color: var(--bad); }

/* a note on yellow trace */
.notice { border-radius: 2px; padding: 12px 14px; font-size: 15px; background: var(--canary); color: #4a3f00; border: 1px solid #e3d47a; }
.notice.ok { background: var(--ok-bg); color: #0f4d2a; border-color: #a9d8ba; }
.notice.bad { background: var(--pink); color: #7a1c14; border-color: #f0b5ad; }
.err { color: var(--bad); font-size: 14.5px; font-weight: 600; }

table.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lines th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; border-bottom: 1.5px solid var(--ink); }
table.lines td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.lines .r { text-align: right; white-space: nowrap; padding-left: 12px; }

.math { margin-top: 6px; padding-top: 4px; }
.math div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.math .total { color: var(--ink); font-weight: 700; font-size: 18px; border-bottom: 0; border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 10px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos a, .photos .ph { position: relative; display: block; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: var(--line-2); border: 1.5px solid var(--ink); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brandmark { display: inline-flex; align-items: center; gap: 0; font: 600 20px/1 var(--head); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brandmark svg { width: 28px; height: 28px; flex: none; margin-right: 9px; }
.brandmark em { font-style: normal; color: var(--redline); }

/* a dimension line: |<------ label ------>| */
.dim { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; opacity: .7; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--blue-deep); color: #fff; padding: 12px 18px; border-radius: 3px; font-weight: 600; font-size: 15px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

@media (max-width: 480px) { .card { padding: 16px; } }
