
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: block; src: url(/assets/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: block; src: url(/assets/caveat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
:root {
  --bg: #f7f5f0; --surface: #ffffff; --surface-2: #f0ede6; --ink: #1f1d1a; --muted: #6b665d;
  --line: #e3dfd6; --line-strong: #cfc9bd; --good: #2f8a57; --bad: #c23b3b; --warn: #b7791f;
  --accent: #e85d2a; --on-accent: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-ink: color-mix(in oklab, var(--accent) 78%, var(--ink));
  --shadow: 0 1px 2px rgb(30 25 15 / .06), 0 8px 24px -8px rgb(30 25 15 / .16);
  --shadow-lg: 0 2px 4px rgb(30 25 15 / .06), 0 24px 48px -12px rgb(30 25 15 / .28);
  --radius: 16px; --font: "Figtree", system-ui, sans-serif; --script: "Caveat", "Segoe Script", cursive;
  --paper: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --surface: #1b1a18; --surface-2: #25231f; --ink: #f1ede6; --muted: #a39d92;
    --line: #322f2a; --line-strong: #4a463f; --good: #5cc48a; --bad: #ef6b6b; --warn: #e3b04b;
    --accent-ink: color-mix(in oklab, var(--accent) 70%, white);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -10px rgb(0 0 0 / .7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 48px -12px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 750; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
.icon { flex: none; vertical-align: -0.2em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 680px) { .nav a span.label { display: none; } .site-header .wrap { gap: 12px; } }
.demo-bar { background: var(--ink); color: var(--bg); font-size: .85rem; text-align: center; padding: 7px 16px; }
.demo-bar a { color: inherit; font-weight: 650; }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--font); padding: 12px 18px; border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.small { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { padding: 16px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 650 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; stroke-width: 3; }
.badge.accent { background: var(--accent); color: var(--on-accent); }
.badge.good { background: color-mix(in oklab, var(--good) 16%, transparent); color: var(--good); }
.badge.bad { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); }
.badge.warn { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; min-width: 0; }

/* Page heads */
.page-head { padding: 44px 0 24px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumbs { color: var(--muted); font-size: .9rem; font-weight: 550; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--ink); }

/* Stats and tabs */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.stat b { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 600; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.stat .dot { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; max-width: 100%; }
.pills a { text-decoration: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pills a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.pills a small { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.search input { padding-left: 38px !important; width: 260px; }
@media (max-width: 640px) { .search, .search input { width: 100%; } }

/* Document list */
.docs { display: grid; gap: 10px; padding-bottom: 80px; }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.doc:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc .thumb { width: 44px; height: 54px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--muted); position: relative; overflow: hidden; }
.doc .thumb::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 18px; background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 6px); }
.doc .thumb .tick { position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; border-radius: 7px 0 7px 0; background: var(--good); color: #fff; display: grid; place-items: center; z-index: 1; }
.doc .thumb .tick .icon { width: 12px; height: 12px; stroke-width: 3.5; }
.doc h3 { margin: 0 0 6px; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .people { display: flex; gap: 6px; flex-wrap: wrap; }
.doc .end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.doc .when { color: var(--muted); font-size: .82rem; white-space: nowrap; }
@media (max-width: 640px) { .doc { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; } .doc .thumb { display: none; } }
.person { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 550; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--surface-2); color: var(--ink); max-width: 220px; }
.person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 750; flex: none; }
.person .who .icon { width: 11px; height: 11px; stroke-width: 3.5; }
.person.signed { background: color-mix(in oklab, var(--good) 12%, transparent); }
.person.declined { background: color-mix(in oklab, var(--bad) 12%, transparent); }
.progress { display: flex; gap: 3px; }
.progress i { width: 18px; height: 5px; border-radius: 9px; background: var(--line); }
.progress i.on { background: var(--good); }

/* Empty states, notices, panels */
.empty { text-align: center; padding: 64px 24px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); }
.empty h2 { color: var(--ink); }
.empty .art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty .art .icon { width: 34px; height: 34px; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--surface-2); margin: 0 0 20px; display: flex; gap: 10px; align-items: flex-start; }
.notice .icon { margin-top: 2px; }
.notice.error { background: color-mix(in oklab, var(--bad) 12%, transparent); }
.notice.good { background: color-mix(in oklab, var(--good) 12%, transparent); }
.notice ul { margin: 0; padding-left: 1.2em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=number], input[type=search], input[type=url], textarea, select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
input[type=color] { width: 52px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 3px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 550; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Review and detail */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-bottom: 80px; align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }
.preview-frame { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview-frame .pages { padding: 24px 16px 32px; max-height: 80vh; overflow-y: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.trail { list-style: none; margin: 0; padding: 0; }
.trail li { position: relative; padding: 0 0 18px 30px; }
.trail li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.trail li:last-child { padding-bottom: 0; }
.trail li:last-child::before { display: none; }
.trail .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); }
.trail .dot .icon { width: 11px; height: 11px; stroke-width: 3; }
.trail li.good .dot { background: var(--good); border-color: var(--good); color: #fff; }
.trail li.bad .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.trail li.accent .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.trail b { font-weight: 650; font-size: .92rem; }
.trail .meta { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.signers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.signers li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.signers .n { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 750; }
.signers .n .icon { width: 18px; height: 18px; stroke-width: 3; }
.signers .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.signers .email { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.signers .state { font-size: .82rem; margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.signers .tools { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chain { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--good); font-weight: 600; margin-top: 14px; }
.chain.bad { color: var(--bad); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 4px); z-index: 12; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; min-width: 230px; }
.menu-body form { margin: 0; }
.menu-body .btn { width: 100%; justify-content: flex-start; }

/* Templates */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.card h3 { margin: 0; }

/* Signing */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgb(15 12 8 / .45); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.sheet { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; animation: rise .2s cubic-bezier(.2,.8,.2,1); }
.sheet h2 { margin-top: 0; }
@media (max-width: 640px) { .sheet-bg { place-items: end stretch; padding: 0; } .sheet { width: 100%; border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.tabs button { font: 600 .9rem var(--font); padding: 7px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.pad { position: relative; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--paper); height: 190px; touch-action: none; overflow: hidden; }
.pad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.pad .baseline { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1.5px solid #d8d3c8; pointer-events: none; }
.pad .x { position: absolute; left: 24px; bottom: 50px; color: #b9b2a5; font-weight: 700; pointer-events: none; }
.pad .clear { position: absolute; right: 8px; top: 8px; }
.typed { font: 600 3rem/1.2 var(--script); color: #121633; padding: 26px 20px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--paper); min-height: 120px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.result { max-width: 560px; margin: 0 auto; padding: 72px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result .seal { width: 96px; height: 96px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in oklab, var(--good) 18%, transparent); margin-bottom: 12px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.result .seal.wait { background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft); }
.result .seal.bad { background: var(--muted); box-shadow: 0 0 0 10px var(--surface-2); }
.result .seal .icon { width: 44px; height: 44px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Verify */
.verify { max-width: 640px; margin: 0 auto; padding: 56px 16px 80px; }
.verdict { margin-top: 20px; border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); background: var(--surface); }
.verdict .mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--good); }
.verdict.no .mark { background: var(--bad); }
.verdict h2 { margin: 2px 0 6px; font-size: 1.15rem; }

/* Landing for the demo */
.landing { max-width: 720px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.landing h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.landing p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 auto 28px; }
.sig-art { font: 600 4.4rem/1 var(--script); color: var(--accent); transform: rotate(-4deg); margin-bottom: 18px; }

/* Drop zone (verify) */
.drop { border: 2px dashed var(--line-strong); border-radius: 20px; background: var(--surface); padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.drop .art { width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.drop .art .icon { width: 32px; height: 32px; }
.drop b { font-size: 1.15rem; }
.drop input { display: none; }

/* The agreement: plain words and headings, the same on every screen */
.paper { background: var(--paper); color: #1f1d1a; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); min-width: 0; }
.agreement { font-size: 1.02rem; line-height: 1.7; max-width: 680px; margin: 0 auto; overflow-wrap: anywhere; }
.agreement h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 1.1em; }
.agreement h2 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.agreement h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.agreement p, .agreement ul, .agreement ol, .agreement blockquote, .agreement table { margin: 0 0 1em; }
.agreement ul, .agreement ol { padding-left: 1.4em; }
.agreement li { margin: .2em 0; }
.agreement blockquote { margin: 1em 0; padding: 0.75em 1em; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.agreement hr { border: 0; border-top: 1px solid #e3dfd6; margin: 2em 0; }
.agreement table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.agreement th, .agreement td { border: 1px solid #e3dfd6; padding: 6px 10px; text-align: left; }
.agreement a { color: var(--accent-ink); }
.agreement img { max-width: 100%; }
.agreement code { font-size: .9em; background: #f3f1ec; padding: 1px 5px; border-radius: 4px; }
.agreement mark.ph { background: color-mix(in oklab, var(--accent) 18%, white); color: var(--accent-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; font-size: .92em; }
.fld { margin: 1.1em 0 1.3em; }
.fld-label { font-weight: 600; margin-bottom: 6px; }
.fld .opt { font-weight: 500; color: #6b665d; font-size: .82rem; margin-left: 4px; }
.fld-val { border-bottom: 1px solid #cfc9bd; padding: 2px 0 4px; min-height: 1.9em; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; color: #121633; }
.fld-val.blank { border-bottom-style: dashed; justify-content: flex-end; }
.fld .who { color: #8a847a; font-size: .8rem; font-weight: 550; white-space: nowrap; }
.fld-line { border-bottom: 1px dashed #cfc9bd; min-height: 1.9em; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-bottom: 3px; }
.fld-line .opts { color: #8a847a; font-size: .82rem; }
.fld.mine input, .fld.mine select, .fld.mine textarea { background: #fff; color: #121633; border-color: #cfc9bd; font-size: 1rem; }
.fld.cb { display: flex; gap: 10px; align-items: center; font-weight: 550; }
.fld.cb input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.fld .box { width: 18px; height: 18px; border: 1.5px solid #8a847a; border-radius: 4px; display: inline-grid; place-items: center; flex: none; }
.fld .box.on::after { content: ""; width: 9px; height: 5px; border: solid #121633; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.fld.missing input, .fld.missing select, .fld.missing textarea { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bad) 18%, transparent); }
.fld.cb.missing { color: var(--bad); }
.sigs { margin-top: 2.6em; border-top: 1px solid #e3dfd6; padding-top: .6em; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; margin-top: 1em; }
.sig-img { height: 64px; border-bottom: 1px solid #1f1d1a; display: flex; align-items: flex-end; margin-bottom: 8px; }
.sig-img img { max-height: 60px; max-width: 100%; }
.sig:not(.done) .sig-img { border-bottom-style: dashed; border-bottom-color: #b9b2a5; }
.sig.me:not(.done) .sig-img { border-bottom-color: var(--accent); border-bottom-style: solid; border-bottom-width: 2px; }
.sig-name { font-weight: 650; }
.sig-meta { color: #6b665d; font-size: .85rem; }

/* The signing page */
body.signing { background: var(--paper); color: #1f1d1a; }
.sign-page { max-width: 760px; margin: 0 auto; padding: 28px 22px 140px; }
.sign-from { color: #8a847a; font-size: .85rem; font-weight: 600; margin: 0 0 28px; }
.sign-note { display: flex; gap: 8px; align-items: center; background: #f3f1ec; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .92rem; margin: 0 0 28px; }
.sign-note.good { background: color-mix(in oklab, var(--good) 12%, white); color: #1f5c3a; }
.decline { text-align: center; margin-top: 40px; }
.linkish { background: none; border: 0; font: inherit; color: #8a847a; text-decoration: underline; cursor: pointer; font-size: .9rem; padding: 8px; }
.tap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid #e3dfd6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.tap .btn { width: min(680px, 100%); }
@media print { .tap, .decline, .demo-bar { display: none !important; } .sign-page { padding: 0; } .paper { border: 0; padding: 0; } }

/* Compose and the template editor */
.compose { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; padding-bottom: 80px; align-items: start; }
.compose.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compose .paper { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
@media (max-width: 960px) { .compose { grid-template-columns: 1fr; } .compose .paper { position: static; max-height: none; } }
.side-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.srows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 34px; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.srow .n { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 750; margin-top: 6px; }
.srow-fields { display: grid; gap: 6px; }
.srow input { padding: 8px 10px; font-size: .92rem; }
textarea.code { font: 400 .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 460px; tab-size: 2; }
.cheats { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.cheats summary { font-weight: 650; cursor: pointer; }
.cheats dl { margin: 12px 0 0; display: grid; gap: 4px 0; }
.cheats dt { font-size: .8rem; color: var(--muted); font-weight: 650; margin-top: 8px; }
.cheats dd { margin: 0; }
.cheats code, .snippet code, code.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; white-space: pre-wrap; }
.snippet { margin: 16px 0 0; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.snippet code { background: none; padding: 0; white-space: pre; word-break: normal; }
.key-once code { font-size: .9rem; }
.card.link { text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin: 0; }
.inline { display: inline; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; z-index: 60; box-shadow: var(--shadow-lg); animation: rise .2s; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .85rem; }
