/* The page a client opens from a text message. One column, big targets, nothing to learn. */
body { padding-bottom: env(safe-area-inset-bottom); }
#root { padding-top: 18px; padding-bottom: 8px; }
.loading { padding: 80px 0; }
.from { display: flex; align-items: center; gap: 12px; padding: 4px 2px 16px; }
.from img { max-height: 46px; max-width: 150px; }
.from .name { font: 600 21px/1.2 var(--head); }
.demo-bar { background: var(--blue-deep); color: #fff; border-radius: 2px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.demo-bar a { color: #ffb3a8; font-weight: 700; white-space: nowrap; }
.doc h1 { font-size: 25px; margin-top: 8px; }
.doc .lede { color: var(--ink-2); margin-top: 8px; }
.doc .what { white-space: pre-wrap; color: var(--ink-2); }
.delta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--bpgrid), var(--blue); color: #fff; border-radius: 2px; padding: 14px 16px; font-weight: 600; }
.delta strong { font: 500 30px/1 var(--mono); letter-spacing: -.03em; }
.sched svg { width: 20px; height: 20px; flex: none; }
.sched { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 15px; }
details.terms summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.terms p { font-size: 13.5px; color: var(--muted); margin-top: 8px; white-space: pre-wrap; }

.signbox h2 { font-size: 22px; }
.pad { position: relative; border: 1.5px dashed #7f97c2; border-radius: 2px; background: #fff; height: 170px; touch-action: none; overflow: hidden; }
.pad.inked { border-style: solid; border-color: var(--ink); }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.pad .ghost { position: absolute; inset: 0; display: grid; place-items: center; color: #9db3d9; font: 400 20px var(--hand); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.pad .base { position: absolute; left: 18px; right: 18px; bottom: 38px; border-bottom: 1.5px solid #ded6c4; pointer-events: none; }
.pad .x { position: absolute; left: 20px; bottom: 42px; color: #c9bfa9; font: 700 18px var(--sans); pointer-events: none; }
.pad .clear { position: absolute; right: 6px; top: 6px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.agree input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--go); }

.done { text-align: center; padding: 34px 20px; }
.done .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.done .seal svg { width: 40px; height: 40px; }
.done h1 { font-size: 34px; }
.done.no .seal { background: var(--bad-bg); color: var(--bad); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.stamp { display: flex; gap: 12px; align-items: center; background: var(--ok-bg); color: #0f4d2a; border: 1.5px solid var(--ok); border-radius: 2px; padding: 14px 16px; }
.stamp svg { width: 28px; height: 28px; flex: none; }
.foot { text-align: center; padding: 28px 16px 40px; }
.foot .brandmark { font-size: 17px; }
.foot .brandmark svg { width: 22px; height: 22px; }
.foot p { margin-top: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 26, .92); display: grid; place-items: center; z-index: 40; padding: 12px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
/* the top strip of the sheet reads like a title block */
.doc > .row:first-child { margin: -20px -20px 0; padding: 11px 20px; border-bottom: 1.5px solid var(--ink); background: var(--line-2); }
@media (max-width: 480px) { .doc > .row:first-child { margin: -16px -16px 0; padding: 10px 16px; } }
