/* Klarsign design system — rounds 1–2; theme tokens round 9 */
/* light tokens; also re-applied inside "paper" (PDF pages, product mocks, signature pad) so documents stay white in the dark theme */
:root, html[data-theme=dark] :is(.pg, .paper, .demo-w, .tour-stage, .try-card, #pad, #prev, .rv-sigs, .thc, .dthumb, .doc-t .di) {
  --g: #12524a; --g2: #0d3d37; --g3: #0a2f2a; --g-50: #eef5f3; --g-100: #d7e9e4; --g-tint: #12524a14; --g-ink: #12524a;
  --bg: #f6f3ec; --bg2: #efebe1; --card: #fff; --card2: #faf8f3; --card-warm: #fffaf0; --glass: #ffffffd9; --inv: #14201d; --tint-n: #ece9e1; --paper-ln: #e9e5dc; --dot: #d9d3c4;
  --ink: #14201d; --ink2: #34413d; --mut: #66736f; --line: #e5e0d4; --line2: #d4cdbd;
  --acc: #f2a33a; --acc-50: #fff4e0; --acc-ink: #96600a; --red: #c0392b; --red-50: #fbeae7; --red-ink: #8f2a1f; --ok: #1f9d63; --ok-50: #dff4e9; --ok-ink: #12683f;
  --sh-1: 0 1px 2px #14201d0d, 0 1px 1px #14201d08; --sh-2: 0 2px 6px #14201d0d, 0 8px 24px -6px #14201d17;
  --sh-3: 0 4px 10px #14201d10, 0 24px 60px -12px #14201d33; --ring: 0 0 0 3px #12524a40;
}
html[data-theme=dark] :is(.pg, .paper, .demo-w, .tour-stage, .try-card, #pad, #prev, .rv-sigs, .thc, .dthumb, .doc-t .di) { color-scheme: light; color: var(--ink); }
/* dark theme: deep green-black surfaces, the same brand green lifted for contrast, warm amber kept */
html[data-theme=dark] {
  color-scheme: dark;
  --g: #1f7a69; --g2: #19695a; --g3: #0c201c; --g-50: #15302a; --g-100: #1d4038; --g-tint: #4fc0a61f; --g-ink: #6fd0b8;
  --bg: #0e1513; --bg2: #0a100f; --card: #151e1b; --card2: #1a2421; --card-warm: #1d211a; --glass: #151e1bd9; --inv: #263430; --tint-n: #24302c; --paper-ln: #2a3632; --dot: #1f2a27;
  --ink: #e7eeeb; --ink2: #c0ccc8; --mut: #8b9a96; --line: #24302c; --line2: #34433e;
  --acc: #f2a33a; --acc-50: #33270f; --acc-ink: #f4bb63; --red: #e0604f; --red-50: #3a1b17; --red-ink: #f29486; --ok: #2db877; --ok-50: #11301f; --ok-ink: #6ad9a2;
  --sh-1: 0 1px 2px #0000004d; --sh-2: 0 2px 6px #00000040, 0 10px 28px -8px #00000099;
  --sh-3: 0 4px 12px #00000059, 0 28px 70px -14px #000000b3; --ring: 0 0 0 3px #4fc0a666;
}
:root {
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms; --t: 220ms; --t-slow: 380ms;
}
* { box-sizing: border-box; } html, body { margin: 0; } html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--g-ink); text-underline-offset: 2px; } h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); } h1 { font-weight: 750; } h2 { font-weight: 700; } h3 { font-weight: 650; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
::selection { background: #12524a2e; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* top bar */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--glass); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--g-ink); text-decoration: none; letter-spacing: -.4px; flex: none; }
.logo span { color: var(--acc); } .logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--g); display: grid; place-items: center; box-shadow: inset 0 -2px 0 #0003; }
.logo .mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav a { color: var(--ink2); text-decoration: none; font-weight: 550; font-size: 14px; padding: 8px 10px; border-radius: 8px; transition: background var(--t-fast), color var(--t-fast); } .nav a:hover { background: var(--g-tint); color: var(--g-ink); }
.sp { flex: 1; } .wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 72px; }

/* buttons */
.btn { --bb: var(--g); display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--bb); background: var(--g); color: #fff; padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; position: relative;
  box-shadow: 0 1px 0 #ffffff26 inset, 0 1px 2px #0a2f2a33; transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--g2); box-shadow: 0 1px 0 #ffffff26 inset, 0 4px 12px -2px #0a2f2a4d; } .btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn.ghost { background: var(--card); color: var(--g-ink); border-color: var(--line2); box-shadow: var(--sh-1); } .btn.ghost:hover { background: var(--g-50); border-color: #12524a55; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink2); box-shadow: none; } .btn.quiet:hover { background: var(--g-tint); color: var(--g-ink); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; } .btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.red { background: var(--card); border-color: #e6bdb7; color: var(--red); box-shadow: var(--sh-1); } .btn.red:hover { background: var(--red-50); border-color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .ico { width: 16px; height: 16px; }
.btn.busy { color: transparent !important; pointer-events: none; } .btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.ghost.busy::after { border-color: var(--g); border-right-color: transparent; }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
input, textarea, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; width: 100%; background: var(--card); color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:hover, textarea:hover { border-color: #b9b19f; }
input:focus, textarea:focus { outline: none; border-color: var(--g); box-shadow: var(--ring); } label { font-weight: 600; font-size: 13px; display: block; margin: 14px 0 5px; color: var(--ink2); }
input[type=checkbox] { accent-color: var(--g); width: 18px; height: 18px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 8px; } .err:not(:empty) { animation: shake .32s var(--ease); }
.mut { color: var(--mut); } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: #eee; color: #555; white-space: nowrap; text-transform: capitalize; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.sent, .pill.viewed { background: var(--acc-50); color: var(--acc-ink); } .pill.completed, .pill.signed { background: var(--ok-50); color: var(--ok-ink); } .pill.voided { background: var(--red-50); color: var(--red-ink); } .pill.draft, .pill.pending { background: var(--tint-n); color: #5c6461; }
.pill.sent::before, .pill.viewed::before { animation: blink 2s ease-in-out infinite; }
table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: 11.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; padding: 10px 14px; } td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click td { transition: background var(--t-fast); } tr.click:hover td { background: var(--card2); } tr.click:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #12524a66; }

/* modals: fade + rise in, reverse on close (.out) */
.modal { position: fixed; inset: 0; background: #0b1f1c80; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.on { display: flex; animation: fadeIn var(--t) var(--ease) both; } .modal.on > .card { animation: popIn var(--t-slow) var(--ease-out) both; }
.modal.out { animation: fadeOut 160ms ease both; } .modal.out > .card { animation: popOut 160ms ease both; }
.modal .card { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: var(--sh-3); border: 0; padding: 26px; }
.modal h2 { font-size: 22px; }
.linkbox { display: flex; gap: 8px; margin: 8px 0 4px; } .linkbox input { font-size: 12.5px; background: var(--card2); color: var(--ink2); font-family: ui-monospace, "SF Mono", Menlo, monospace; padding: 8px 10px; } .linkbox .btn { flex: none; min-width: 88px; }
.btn.copied { background: var(--ok); border-color: var(--ok); } .btn.copied .ico { animation: icoIn .35s var(--spring) both; }
.share-r { display: flex; align-items: center; gap: 4px; margin: 6px -6px -4px; flex-wrap: wrap; }
.share-r .sh { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--g-ink); padding: 6px 8px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.share-r .sh .ico { width: 15px; height: 15px; transition: transform var(--t) var(--spring); } .share-r .sh:hover { background: var(--g-tint); } .share-r .sh:hover .ico { transform: translateY(-1px) rotate(-6deg); }
.share-r .fix { color: var(--mut); font-weight: 550; } .share-r .fix:hover { color: var(--ink2); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px) scale(.96); background: var(--inv); color: #fff; padding: 11px 18px 11px 14px; border-radius: 99px; z-index: 99; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out); pointer-events: none; display: flex; align-items: center; gap: 8px; box-shadow: var(--sh-3); max-width: calc(100vw - 32px); }
.toast::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.toast.bad::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/12px no-repeat; }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; max-width: 1160px; margin: 0 auto; padding: 72px 24px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--g-ink); background: var(--card); border: 1px solid var(--line); padding: 5px 12px 5px 6px; border-radius: 99px; box-shadow: var(--sh-1); margin-bottom: 22px; }
.eyebrow b { background: var(--g); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.035em; line-height: 1.02; margin: 0 0 20px; font-weight: 780; }
.hero h1 .serif { color: var(--g-ink); font-size: 1.08em; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: var(--ink2); max-width: 540px; margin: 0 0 28px; line-height: 1.55; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink2); }
.checks li { display: flex; align-items: center; gap: 7px; } .checks .ico { color: var(--ok); width: 17px; height: 17px; stroke-width: 2.4; }
/* hero product visual */
.demo-w { position: relative; justify-self: center; width: 100%; max-width: 500px; }
.demo { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.demo::before { content: ""; position: absolute; inset: 6% -4% -2% 8%; background: radial-gradient(60% 60% at 60% 40%, #12524a2e, transparent 70%), radial-gradient(40% 40% at 20% 80%, #f2a33a33, transparent 70%); filter: blur(10px); z-index: 0; }
.paper { position: absolute; inset: 0 8% 4% 4%; background: var(--card); border-radius: 16px; box-shadow: var(--sh-3); padding: 30px 32px 24px; overflow: hidden; z-index: 1; transform: rotate(-1.2deg); display: flex; flex-direction: column; }
.phd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; } .paper .phd .ttl { margin: 0; }
.pno { font-size: 10.5px; font-weight: 600; color: #b3ab99; letter-spacing: .02em; white-space: nowrap; }
.ptext { flex: 1; min-height: 0; overflow: hidden; }
.paper .ttl { height: 14px; width: 52%; background: var(--inv); border-radius: 4px; margin-bottom: 22px; opacity: .88; }
.paper .ln { height: 7px; background: var(--paper-ln); border-radius: 4px; margin-bottom: 11px; } .paper .ln:nth-child(3n) { width: 88%; } .paper .ln:nth-child(4n) { width: 94%; } .paper .ln.short { width: 60%; }
.sigrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; flex: none; }
/* the finished state is the default (reduced motion, no JS); .demo.play runs the story: sent → Anna signs → Erik signs → sealed */
.sigbox { position: relative; height: 74px; border-radius: 8px; border: 2px solid var(--ok); background: var(--card); }
.sigbox svg { position: absolute; inset: 8px 10px; width: calc(100% - 20px); height: calc(100% - 16px); fill: none; stroke: #0b1e4d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sigbox svg path { stroke-dasharray: 600; stroke-dashoffset: 0; }
.sigbox small { position: absolute; left: 0; bottom: -20px; font-size: 10.5px; color: var(--mut); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.sigbox .sw { display: inline-grid; } .sigbox .sw em { grid-area: 1 / 1; font-style: normal; } .sigbox .sw .w { color: var(--acc-ink); opacity: 0; } .sigbox .sw .s { color: var(--ok); }
.pdate { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; flex: none; }
.pdate div { display: flex; align-items: flex-end; gap: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #b3ab99; }
.pdate i { flex: 1; height: 10px; border-bottom: 1px solid #ddd6c6; position: relative; } .pdate i::before { content: ""; position: absolute; left: 4px; bottom: 3px; width: 54%; height: 5px; border-radius: 3px; background: #0b1e4d; opacity: .55; transform-origin: left; }
.demo.play .sigbox.a { animation: sigA 1.55s linear both; } .demo.play .sigbox.b { animation: sigB 2.6s linear both; }
.demo.play .sigbox.a path { animation: drawFrom6 .8s cubic-bezier(.6, .1, .3, 1) .4s backwards; } .demo.play .sigbox.b path { animation: drawFrom6 .7s cubic-bezier(.6, .1, .3, 1) 1.55s backwards; }
.demo.play .sw .w { animation: wOut 2.4s linear both; } .demo.play .sw .s { animation: sIn 2.4s linear both; }
.demo.play .pdate .a i::before { animation: grow .35s var(--ease-out) 1.25s backwards; } .demo.play .pdate .b i::before { animation: grow .35s var(--ease-out) 2.3s backwards; }
@keyframes sigA { 0%, 77% { border-style: dashed; border-color: var(--acc); background: #fff8ea; } }
@keyframes sigB { 0%, 48% { border-style: dashed; border-color: var(--line2); background: var(--card2); } 52%, 86% { border-style: dashed; border-color: var(--acc); background: #fff8ea; } }
@keyframes drawFrom6 { from { stroke-dashoffset: 600; } } @keyframes wOut { 0%, 94% { opacity: 1; } 100% { opacity: 0; } } @keyframes sIn { 0%, 94% { opacity: 0; } 100% { opacity: 1; } }
.tag { position: absolute; z-index: 2; background: var(--card); border-radius: 12px; box-shadow: var(--sh-3); padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tag .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; } .tag .dot .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.tag small { display: block; font-weight: 500; color: var(--mut); font-size: 11.5px; }
.tag.t1 { top: 9%; right: -2%; } .tag.t1 .dot { background: var(--g-50); color: var(--g-ink); }
.tag.t2 { top: 46%; left: -7%; } .tag.t2 .dot { background: var(--ok-50); color: var(--ok); }
.tag.t3 { bottom: -1%; right: 2%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; font-weight: 500; } .tag.t3 .dot { background: var(--acc-50); color: var(--acc-ink); }
.stamp { position: absolute; z-index: 2; right: 16%; top: 30%; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ok); color: var(--ok); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 11px; letter-spacing: .12em; line-height: 1.25; transform: rotate(-14deg); background: #ffffffcc; }
.demo.play .tag.t1 { animation: floatIn .5s var(--ease-out) .15s both, bob 6s ease-in-out 1s infinite; } .demo.play .tag.t2 { animation: floatIn .5s var(--ease-out) 1.3s both; } .demo.play .tag.t3 { animation: floatIn .5s var(--ease-out) 2.8s both; }
.demo.play .stamp { animation: stamp .45s var(--spring) 2.5s both; }
.replay { position: absolute; left: 4%; top: calc(100% + 10px); display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--glass); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px 6px 10px; cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), background var(--t-fast), color var(--t-fast); }
.replay.on { opacity: 1; transform: none; } .replay:hover { background: var(--card); color: var(--g-ink); } .replay .ico { width: 15px; height: 15px; transition: transform var(--t-slow) var(--ease-out); } .replay:hover .ico { transform: rotate(-200deg); }
.replay.busy2 { opacity: .6; cursor: default; } .replay.busy2 .ico { animation: spin 1s linear infinite; }
.sect { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.sect-h { text-align: center; max-width: 640px; margin: 0 auto 40px; } .sect-h h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; } .sect-h p { color: var(--mut); font-size: 17px; margin: 0; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g-ink); margin-bottom: 12px; display: block; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--g); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; } .step p { margin: 0; color: var(--mut); font-size: 14.5px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line2); }
.feat .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--g-50); color: var(--g-ink); margin-bottom: 16px; } .feat .fi .ico { width: 20px; height: 20px; }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; } .feat p { margin: 0; color: var(--mut); font-size: 14.5px; }
.band { background: var(--g3); color: #e8f0ee; border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(closest-side, #f2a33a33, transparent); }
.band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; } .band h2 .serif { color: var(--acc); } .band p { color: #b9ccc7; margin: 0; }
.nolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.nolist li { display: flex; gap: 14px; align-items: flex-start; background: #ffffff0d; border: 1px solid #ffffff14; border-radius: 14px; padding: 14px 16px; }
.nolist .x { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f2a33a26; color: var(--acc); display: grid; place-items: center; } .nolist .x .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.nolist b { color: #fff; display: block; font-weight: 600; } .nolist span { color: #a9bfb9; font-size: 14px; }
.pricing { max-width: 520px; margin: 0 auto; text-align: left; padding: 34px; border-radius: var(--r-xl); box-shadow: var(--sh-2); position: relative; }
.pricing .badge { position: absolute; top: -13px; left: 34px; background: var(--acc); color: #3a2400; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.price { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 8px 0 6px; } .price small { font-size: 16px; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.plist { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; } .plist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .plist .ico { color: var(--ok); margin-top: 2px; stroke-width: 2.4; }
.cta-end { text-align: center; padding: 40px 24px 80px; } .cta-end h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.foot { border-top: 1px solid var(--line); padding: 26px 24px 40px; text-align: center; font-size: 12.5px; color: var(--mut); }
/* auth modal */
.auth-card { max-width: 410px !important; } .auth-card .sub { color: var(--mut); margin: -4px 0 6px; font-size: 14px; }

/* ---------- dashboard ---------- */
.dash-h { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; } .dash-h h1 { margin: 0; font-size: 30px; } .dash-h p { margin: 4px 0 0; color: var(--mut); }
.trial { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; background: linear-gradient(90deg, var(--card), var(--card-warm)); }
.trial .tb { flex: 0 0 160px; height: 6px; border-radius: 9px; background: var(--bg2); overflow: hidden; } .trial .tb i { display: block; height: 100%; background: var(--acc); border-radius: 9px; transform-origin: left; animation: grow .8s var(--ease-out) .2s both; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--sh-1); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.stat:hover { border-color: var(--line2); transform: translateY(-1px); } .stat b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; font-weight: 750; } .stat span { font-size: 13px; color: var(--mut); font-weight: 550; }
.stat.on { border-color: var(--g); box-shadow: 0 0 0 1px var(--g), var(--sh-2); } .stat.on span { color: var(--g-ink); }
.list { padding: 4px 6px; } .doc-t { display: flex; align-items: center; gap: 12px; } .doc-t .di { width: 36px; height: 44px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--mut); flex: none; position: relative; }
.doc-t .di::after { content: "PDF"; position: absolute; bottom: 4px; font-size: 7.5px; font-weight: 800; letter-spacing: .05em; color: var(--red); } .doc-t .di .ico { width: 15px; height: 15px; margin-top: -8px; }
.doc-t b { display: block; font-weight: 620; } .doc-t small { color: var(--mut); font-size: 12.5px; }
.prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); } .prog .pb { width: 72px; height: 6px; border-radius: 9px; background: var(--bg2); overflow: hidden; } .prog .pb i { display: block; height: 100%; background: var(--ok); border-radius: 9px; transform-origin: left; animation: grow .7s var(--ease-out) both; }
.rowin { animation: rowIn .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.sk { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg2) 25%, var(--card2) 50%, var(--bg2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.empty { text-align: center; padding: 48px 24px 40px; }
.drop { border: 2px dashed var(--line2); border-radius: var(--r-lg); padding: 40px 24px; background: var(--card2); transition: border-color var(--t), background var(--t), transform var(--t) var(--ease); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--g); background: var(--g-50); } .drop.over { transform: scale(1.01); }
.drop .up { width: 56px; height: 56px; border-radius: 16px; background: var(--g); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--sh-2); transition: transform var(--t) var(--spring); } .drop:hover .up, .drop.over .up { transform: translateY(-4px); } .drop .up .ico { width: 26px; height: 26px; }
.drop h2 { font-size: 22px; margin-bottom: 6px; } .drop p { margin: 0 0 18px; color: var(--mut); }
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; text-align: left; } .mini-steps div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); } .mini-steps i { font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--g-50); color: var(--g-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.dropcover { position: fixed; inset: 0; z-index: 60; background: #12524ad9; display: none; place-items: center; color: #fff; text-align: center; } .dropcover.on { display: grid; animation: fadeIn var(--t) var(--ease) both; } .dropcover div { border: 3px dashed #ffffff88; border-radius: 28px; padding: 60px 80px; font-size: 22px; font-weight: 700; } .dropcover .ico { width: 40px; height: 40px; display: block; margin: 0 auto 12px; }
/* detail modal */
.dhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; } .dhead h2 { margin: 0 0 6px; }
.signer { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; background: var(--card); }
.signer .who { display: flex; align-items: center; gap: 10px; } .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--g); flex: none; }
.signer .who b { display: block; line-height: 1.2; } .signer .who small { color: var(--mut); font-size: 12.5px; word-break: break-all; }
.tl { list-style: none; padding: 0; margin: 0; position: relative; } .tl li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; } .tl li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px var(--g-50); }
.tl li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); } .tl li:last-child::after { display: none; } .tl small { display: block; color: var(--mut); font-size: 12px; }
.sec-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; margin: 22px 0 10px; }
.hash { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; word-break: break-all; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink2); }

/* ---------- editor + signing ---------- */
.ed { display: flex; height: calc(100vh - 61px); height: calc(100dvh - 61px); } .side { width: 320px; flex: none; background: var(--card); border-right: 1px solid var(--line); padding: 20px 18px; overflow: auto; }
.side h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; } .side h3 .n { width: 22px; height: 22px; border-radius: 7px; background: var(--g); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
.side .blk + .blk { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pages { flex: 1; overflow: auto; padding: 28px 22px; text-align: center; background: var(--bg2); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 18px 18px; position: relative; }
.pg { position: relative; display: inline-block; margin: 0 auto 22px; box-shadow: var(--sh-2); background: var(--card); border-radius: 3px; animation: pageIn .45s var(--ease-out) both; } .pg canvas { display: block; border-radius: 3px; }
.fld { position: absolute; border: 2px solid; border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: move; user-select: none; overflow: hidden; touch-action: none; transition: box-shadow var(--t-fast); }
.fld:hover { box-shadow: 0 4px 14px -4px currentColor; } .fld.new { animation: fieldPop .32s var(--spring) both; }
.fld .x { position: absolute; top: 0; right: 1px; cursor: pointer; font-size: 15px; line-height: 14px; padding: 1px 3px; opacity: .6; } .fld .x:hover { opacity: 1; } .fld .rs { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; cursor: nwse-resize; background: currentColor; opacity: .7; border-radius: 3px 0 3px 0; }
.rc { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; border-left-width: 5px; cursor: pointer; transition: box-shadow var(--t-fast), background var(--t-fast); animation: rowIn .3s var(--ease-out) both; } .rc.on { background: var(--card2); box-shadow: 0 0 0 2px #12524a33, var(--sh-1); } .rc input { padding: 7px 9px; font-size: 13.5px; margin-top: 6px; }
.rc .rmv { color: var(--mut); font-size: 12.5px; text-decoration: none; } .rc .rmv:hover { color: var(--red); }
.for { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); margin-bottom: 10px; padding: 8px 10px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); } .for i { width: 10px; height: 10px; border-radius: 50%; flex: none; transition: background var(--t); }
.pal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pal button { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 550; color: var(--ink2); cursor: grab; user-select: none; -webkit-user-select: none; text-align: left; box-shadow: var(--sh-1); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.pal button:hover { border-color: var(--g); transform: translateY(-1px); box-shadow: var(--sh-2); } .pal button:active { cursor: grabbing; transform: scale(.97); }
.pal button .pi { width: 26px; height: 26px; border-radius: 7px; background: var(--g-50); color: var(--g-ink); display: grid; place-items: center; flex: none; } .pal button .pi .ico { width: 15px; height: 15px; }
.pal button.on { border-color: var(--g); background: var(--g-50); box-shadow: 0 0 0 1px var(--g); color: var(--g-ink); }
.hint { position: sticky; top: 0; z-index: 5; display: inline-flex; align-items: center; gap: 8px; background: var(--inv); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 99px; margin-bottom: 16px; box-shadow: var(--sh-2); animation: floatIn .4s var(--ease-out) .6s both; transition: opacity var(--t), transform var(--t); } .hint.gone { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hint .ico { width: 15px; height: 15px; color: var(--acc); }
.sf { position: absolute; border: 2px solid var(--acc); background: #fff6e0e6; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--acc-ink); cursor: pointer; overflow: visible; transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t-fast) var(--ease); }
.sf:hover { box-shadow: 0 4px 16px -4px #f2a33a99; } .sf:active { transform: scale(.98); }
.sf.done { border-color: var(--ok); background: var(--glass); color: var(--ink); } .sf img { max-width: 100%; max-height: 100%; animation: inkIn .35s var(--ease) both; }
.sf.next { animation: pulse 1.8s ease-out infinite; z-index: 2; } .sf.next::before { content: attr(data-cue); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); background: var(--acc); color: #3a2400; font-size: 11.5px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 6px 0 0 6px; white-space: nowrap; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); padding-right: 16px; }
.sf input[type=text] { border: 0; background: transparent; padding: 0 3px; height: 100%; font-size: min(13px, 2.5vw); border-radius: 0; box-shadow: none; } .sf input[type=text]:focus { outline: 0; box-shadow: none; }
.bar { position: sticky; bottom: 0; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; z-index: 15; box-shadow: 0 -8px 24px -12px #14201d26; }
.bar .consent { margin: 0; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 240px; font-size: 13.5px; color: var(--ink2); cursor: pointer; } .bar .consent input { margin-top: 1px; flex: none; }
.prg { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); font-weight: 550; } .prg .pb { width: 110px; height: 6px; border-radius: 9px; background: var(--bg2); overflow: hidden; } .prg .pb i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 9px; transition: width var(--t-slow) var(--ease-out); }
#fin:not(:disabled) { animation: ready .5s var(--spring) both; }
.ask { background: var(--g3); color: #e8f0ee; padding: 14px 22px; display: flex; gap: 14px; align-items: center; } .ask .av { background: var(--acc); color: #3a2400; } .ask b { color: #fff; }
.ask .msg { margin-top: 3px; color: #c5d6d1; font-size: 14px; } .ask .lock { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #a9bfb9; white-space: nowrap; } .ask .lock .ico { width: 15px; height: 15px; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; background: var(--bg2); padding: 4px; border-radius: 11px; } .tabs button { flex: 1; padding: 8px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-weight: 600; font-size: 14px; color: var(--mut); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); } .tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
#pad { width: 100%; height: 190px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card)linear-gradient(#0000 calc(100% - 46px), #d4cdbd calc(100% - 46px), #d4cdbd calc(100% - 45px), #0000 calc(100% - 45px)); touch-action: none; display: block; cursor: crosshair; }
.success { text-align: center; padding: 44px 24px 36px; } .success h1 { font-size: 30px; margin-top: 18px; }
.check { width: 84px; height: 84px; margin: 0 auto; } .check circle { fill: var(--ok-50); stroke: var(--ok); stroke-width: 3; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .6s var(--ease) .1s forwards; } .check path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .35s var(--ease) .55s forwards; }
.check.wait circle { fill: var(--acc-50); stroke: var(--acc); } .check.wait path { stroke: var(--acc-ink); } .check.bad circle { fill: var(--red-50); stroke: var(--red); } .check.bad path { stroke: var(--red); }
.facts { display: grid; gap: 8px; text-align: left; max-width: 380px; margin: 22px auto; } .facts div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink2); } .facts .ico { color: var(--ok); }

/* ---------- round 2 ---------- */
/* solid destructive button for confirm dialogs */
.btn.danger { --bb: var(--red); background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 1px 0 #ffffff26 inset, 0 1px 2px #8f2a1f40; } .btn.danger:hover { background: #a93226; box-shadow: 0 1px 0 #ffffff26 inset, 0 4px 12px -2px #8f2a1f59; }
/* toast with an action (Undo) */
.toast.act { pointer-events: auto; padding-right: 6px; } .toast button { font: inherit; font-weight: 650; font-size: 13.5px; color: #9fe3c2; background: #ffffff14; border: 0; border-radius: 99px; padding: 6px 12px; margin-left: 6px; cursor: pointer; transition: background var(--t-fast); } .toast button:hover { background: #ffffff26; } .toast button:focus-visible { box-shadow: 0 0 0 2px #9fe3c2; }
/* ask() dialog */
.askc { max-width: 420px !important; } .askc h2 { font-size: 20px; margin-bottom: 6px; } .askc > p { margin: 0 0 4px; font-size: 14.5px; } .askc .err { min-height: 0; } .askc .err:not(:empty) { margin-top: 10px; }
.askb { margin-top: 18px; justify-content: flex-end; }
.ask-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--g-50); color: var(--g-ink); margin-bottom: 14px; animation: icoIn .4s var(--spring) .08s both; } .ask-ic.bad { background: var(--red-50); color: var(--red); } .ask-ic .ico { width: 22px; height: 22px; }
/* dashboard: list header + search */
.lhead { display: flex; align-items: center; gap: 12px; padding: 10px 8px 8px; }
.search { position: relative; flex: 1; max-width: 340px; margin: 0; font-weight: 400; } .search > span:not(.sr) { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mut); display: flex; pointer-events: none; } .search .ico { width: 16px; height: 16px; }
.search input { padding: 8px 34px 8px 34px; font-size: 14px; background: var(--card2); border-color: var(--line); } .search input:focus { background: var(--card); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); transition: opacity var(--t-fast); } .search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
kbd { font: 600 11px/1 var(--font); color: var(--mut); background: var(--card); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; min-width: 20px; text-align: center; display: inline-block; }
#cnt { font-size: 13px; margin-left: auto; white-space: nowrap; }
.nomatch { padding: 34px 20px; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--mut); animation: rowIn .3s var(--ease-out) both; } .nomatch > .ico { width: 26px; height: 26px; color: var(--line2); } .nomatch b { color: var(--ink2); font-weight: 600; }
/* editor: selection, toolbar, readiness */
.fld .fl { display: inline-flex; align-items: center; gap: 5px; pointer-events: none; white-space: nowrap; padding: 0 4px; } .fld .fl .ico { width: 13px; height: 13px; stroke-width: 2.2; flex: none; }
.fld .fl em { font-style: normal; font-size: 9.5px; background: var(--c); color: #fff; border-radius: 4px; padding: 1px 4px; letter-spacing: .02em; }
.fld { outline: none; transition: box-shadow var(--t-fast), background var(--t-fast); } .fld.opt { border-style: dashed; }
.fld.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 8px 20px -6px var(--c); z-index: 3; } .fld:focus-visible:not(.sel) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.fld.drag { cursor: grabbing; opacity: .92; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 16px 30px -8px var(--c); }
.fld .rs { opacity: 0; transition: opacity var(--t-fast); width: 14px; height: 14px; } .fld:hover .rs, .fld.sel .rs { opacity: .85; }
@media (hover: none) { .fld .rs { opacity: .85; width: 18px; height: 18px; } }
.ftb { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 10px)); display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--inv); color: #fff; border-radius: 11px; box-shadow: var(--sh-3); white-space: nowrap; animation: tbIn .2s var(--ease-out) both; font-size: 12.5px; }
.ftb.below { transform: translate(-50%, 10px); animation-name: tbInB; }
.ftb button { font: inherit; font-weight: 600; color: #e7efed; background: transparent; border: 0; border-radius: 8px; height: 30px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; transition: background var(--t-fast), color var(--t-fast); } .ftb button:hover:not(:disabled) { background: #ffffff1a; color: #fff; } .ftb button:focus-visible { box-shadow: 0 0 0 2px #9fe3c2; }
.ftb .ib { width: 30px; padding: 0; justify-content: center; } .ftb .ib .ico { width: 16px; height: 16px; } .ftb .del:hover { background: #c0392b; }
.ftb .sep { width: 1px; height: 18px; background: #ffffff26; margin: 0 2px; }
.ftb .who { display: flex; gap: 3px; } .ftb .dot { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 50%; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; opacity: .55; box-shadow: inset 0 0 0 2px #ffffff00; } .ftb .dot.on { opacity: 1; box-shadow: 0 0 0 2px var(--inv), 0 0 0 4px #fff; } .ftb .dot:hover:not(.on) { opacity: .85; background: var(--c); }
.ftb .req .sw { width: 26px; height: 15px; border-radius: 9px; background: #ffffff33; position: relative; transition: background var(--t); } .ftb .req .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform var(--t) var(--spring); }
.ftb .req.on .sw { background: var(--ok); } .ftb .req.on .sw::after { transform: translateX(11px); } .ftb .req:disabled { opacity: .55; cursor: default; }
.rc .cnt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; margin-top: 8px; } .rc .cnt .ico { width: 14px; height: 14px; stroke-width: 2.2; } .rc .cnt.ok { color: var(--ok-ink); } .rc .cnt.no { color: var(--acc-ink); } .rc .cnt:empty { display: none; }
.rc.nudge { animation: shake .36s var(--ease), flash 1.2s ease; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12px; color: var(--mut); } .keys span { display: inline-flex; align-items: center; gap: 3px; } .keys kbd { margin-right: 2px; }
/* signing: review sheet */
.bar #hintc { font-size: 13px; }
.rv-doc, .rv-as { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; } .rv-doc > .ico { width: 22px; height: 22px; color: var(--g-ink); } .rv-doc b, .rv-as b { display: block; line-height: 1.25; } .rv-doc small, .rv-as small { color: var(--mut); font-size: 12.5px; word-break: break-all; }
.rv-as .av { background: var(--g); }
.rv-sigs { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: var(--r); background: var(--card)linear-gradient(#0000 calc(100% - 18px), var(--line2) calc(100% - 18px), var(--line2) calc(100% - 17px), #0000 calc(100% - 17px)); border: 1px solid var(--line); margin-bottom: 8px; justify-content: center; } .rv-sigs img { max-height: 64px; max-width: 60%; animation: inkIn .5s var(--ease) .15s both; }
.rv-vals { list-style: none; margin: 0 0 8px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--r); } .rv-vals li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; } .rv-vals li + li { border-top: 1px solid var(--line); } .rv-vals span { color: var(--mut); } .rv-vals b { font-weight: 600; text-align: right; word-break: break-word; }
.rv-cert { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); background: var(--g-50); border-radius: var(--r); padding: 11px 13px; margin: 12px 0 4px; } .rv-cert .ico { color: var(--g-ink); width: 17px; height: 17px; margin-top: 1px; }
.consent.rv-ok { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink); margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); } .consent.rv-ok:hover { border-color: var(--g); } .consent.rv-ok:has(input:checked) { border-color: var(--g); background: var(--g-50); } .consent.rv-ok input { margin-top: 1px; flex: none; }
#go:not(:disabled) { animation: ready .45s var(--spring) both; }
/* landing FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: border-color var(--t), box-shadow var(--t); } .faq details[open] { border-color: var(--line2); box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 620; font-size: 16px; display: flex; align-items: center; gap: 16px; border-radius: var(--r-lg); } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--g-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312524a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform var(--t) var(--ease), background-color var(--t); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--g-100); } .faq summary:hover::after { background-color: var(--g-100); }
.faq details > div { padding: 0 22px 18px; color: var(--ink2); font-size: 15px; } .faq details > div p { margin: 0; max-width: 64ch; }
.faq details[open] > div { animation: faqIn var(--t-slow) var(--ease-out) both; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-slow) var(--ease-out), content-visibility var(--t-slow) allow-discrete; } .faq details[open]::details-content { block-size: auto; } }
/* page-to-page transitions (cross-document View Transitions; browsers without support just navigate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 140ms ease both fadeOut; } ::view-transition-new(root) { animation: 260ms var(--ease-out) both vtIn; }
  .top .logo { view-transition-name: logo; }
}

/* keyframes */
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } } @keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tbIn { from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)) scale(.96); } } @keyframes tbInB { from { opacity: 0; transform: translate(-50%, 4px) scale(.96); } }
@keyframes icoIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } } @keyframes flash { 0%, 60% { background: var(--acc-50); } }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } } @keyframes popOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes sheetIn { from { transform: translateY(100%); } } @keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes sigFill { to { border-style: solid; border-color: var(--ok); background: var(--card); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } } @keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } }
@keyframes grow { from { transform: scaleX(0); } } @keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } } @keyframes fieldPop { from { transform: scale(.6); opacity: 0; } }
@keyframes inkIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #f2a33a88; } 70%, 100% { box-shadow: 0 0 0 12px #f2a33a00; } }
@keyframes ready { from { transform: scale(.94); } } @keyframes blink { 50% { opacity: .3; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 20px 40px; text-align: left; } .demo-w { max-width: 420px; margin-bottom: 30px; }
  .steps, .grid3 { grid-template-columns: 1fr 1fr; } .band { grid-template-columns: 1fr; padding: 36px 26px; gap: 28px; }
}
@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 8px; } .nav { display: none; } .wrap { padding: 22px 16px 60px; }
  .hero h1 { font-size: 40px; } .hero p.lead { font-size: 17px; } .tag.t2 { left: -2%; } .tag.t1 { right: 0; } .stamp { width: 78px; height: 78px; font-size: 9.5px; } .paper { padding: 22px 20px 18px; } .pdate { margin-top: 28px; } .stamp { right: 12%; top: 28%; } .paper .ln { margin-bottom: 9px; } .sigbox { height: 60px; } .demo { aspect-ratio: 1 / 1.08; }
  .steps, .grid3 { grid-template-columns: 1fr; } .sect { padding: 52px 18px; } .pricing { padding: 28px 22px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat b { font-size: 22px; } .trial .tb { display: none; } .mini-steps { grid-template-columns: 1fr; }
  .dash-h h1 { font-size: 26px; } td { padding: 12px 8px; } th { padding: 8px; } .doc-t .di { display: none; }
  .ed { flex-direction: column; height: auto; } .side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); } .pages { padding: 14px 10px; } .hide-m { display: none !important; }
  .top.edtop { flex-wrap: wrap; } .top.edtop #title { order: 9; max-width: none !important; flex: 1 0 100%; }
  .ask { padding: 12px 16px; } .ask .lock { display: none; } .bar { padding: 12px 14px; gap: 10px; }  .prg .pb { width: 60px; }
  .sf.next::before { display: none; }
  /* dashboard rows become cards */
  #listc thead { display: none; } #listc .list, #listc { padding: 4px; } .lhead { padding: 8px 6px 10px; } .search { max-width: none; }
  #rows tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px; padding: 14px 10px; border-top: 1px solid var(--line); }
  #rows td { padding: 0; border: 0; } #rows td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; min-width: 0; } #rows td:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
  #rows td:nth-child(2) { grid-column: 1; grid-row: 2; } #rows td.sigc { grid-column: 2; grid-row: 2; font-size: 13px; }
  #rows .doc-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #rows .doc-t > div { min-width: 0; } .prog .pb { width: 56px; }
  /* signing bar: progress on top, actions below */
  .bar .prg { flex: 1 0 100%; } .bar .prg .pb { flex: 1; width: auto; } .bar .sp { display: none; } .bar #nx, .bar #fin { flex: 1; }
  .ftb { font-size: 12px; } .ftb button { height: 34px; } .ftb .ib { width: 34px; }
  /* bottom sheet modals on phones */
  .modal.sheet { align-items: flex-end; padding: 0; } .modal.sheet > .card { border-radius: 22px 22px 0 0; max-width: none; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .modal.sheet.on > .card { animation: sheetIn var(--t-slow) var(--ease-out) both; } .modal.sheet.out > .card { animation: sheetOut 200ms ease both; }
  .modal.sheet > .card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: -12px auto 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- round 3 ---------- */
/* landing: "Try it" signature demo */
.try { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.try-copy h2 { font-size: clamp(28px, 3.4vw, 40px); } .try-copy > p { color: var(--ink2); font-size: 16.5px; max-width: 44ch; margin: 0 0 22px; }
.try-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.try-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--mut); font-size: 14.5px; transition: background var(--t), color var(--t), box-shadow var(--t); }
.try-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--mut); flex: none; transition: background var(--t), color var(--t), transform var(--t) var(--spring); }
.try-steps li.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); } .try-steps li.on span { background: var(--g); color: #fff; transform: scale(1.08); }
.try-steps li.done { color: var(--ink2); } .try-steps li.done span { background: var(--ok-50); color: var(--ok-ink); }
.try-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 22px; position: relative; }
.try-doc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 16px; background: var(--card2); }
.try-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; } .try-hd b { font-size: 15px; } .try-hd .pill { text-transform: none; }
.try-doc .ln { height: 7px; border-radius: 4px; background: var(--bg2); margin-bottom: 9px; } .try-doc .ln.short { width: 62%; margin-bottom: 18px; }
.try-field { position: relative; height: 128px; border: 2px dashed var(--acc); border-radius: 10px; background: #fff8e9; transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.try-field::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 30px; height: 1px; background: var(--line2); pointer-events: none; }
.try-field:hover:not(.sealed) { box-shadow: 0 0 0 4px #f2a33a26; } .try-field.inked { border-style: solid; background: var(--card); }
.try-field.sealed { border-style: solid; border-color: var(--ok); background: var(--card); box-shadow: 0 0 0 4px #1f9d6326; }
.try-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; } .try-field.sealed canvas { cursor: default; }
.try-ph { position: absolute; left: 16px; top: 14px; font-size: 12px; font-weight: 700; background: var(--acc); color: #3a2400; padding: 3px 9px; border-radius: 6px; pointer-events: none; transition: opacity var(--t), transform var(--t); animation: bob 2.4s ease-in-out infinite; }
.try-field.inked .try-ph { opacity: 0; transform: translateY(-6px); animation: none; }
.try-stamp { position: absolute; right: 14px; top: 50%; margin-top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 2.5px solid var(--ok); color: var(--ok); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; transform: rotate(-12deg); background: var(--glass); opacity: 0; z-index: 2; pointer-events: none; }
.try-field.sealed .try-stamp { opacity: 1; animation: stamp .42s var(--spring) both; }
.try-cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.try-act { margin-top: 14px; }
.try-cert:empty { display: none; }
.try-cert { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--g-50); border: 1px solid var(--g-100); opacity: 0; transform: translateY(8px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); } .try-cert.on { opacity: 1; transform: none; }
.tc-h { display: flex; align-items: center; gap: 8px; color: var(--g-ink); font-size: 14px; margin-bottom: 8px; } .tc-h .ico { width: 17px; height: 17px; }
.try-cert ul { list-style: none; margin: 0; padding: 0; } .try-cert li { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid #12524a1a; animation: rowIn .3s var(--ease-out) both; } .try-cert li:nth-child(2) { animation-delay: 60ms; } .try-cert li:nth-child(3) { animation-delay: 120ms; }
.try-cert li span { color: var(--mut); } .try-cert li b { font-weight: 600; text-align: right; } .try-cert .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; }
.try-cert p { font-size: 12.5px; color: var(--ink2); margin: 8px 0 12px; }

/* signing: "jump to next field" pill above the bar */
.jump { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 10px) scale(.96); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; background: var(--inv); color: #fff; padding: 9px 16px 9px 12px; border-radius: 99px; box-shadow: var(--sh-3); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), background var(--t-fast); white-space: nowrap; }
.jump.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .jump:hover { background: var(--g2); }
.jump .ico { width: 16px; height: 16px; color: var(--acc); transition: transform var(--t) var(--ease); } .jump.up .ico { transform: rotate(180deg); }
.jump.on:not(.up) .ico { animation: nudgeDown 1.6s ease-in-out infinite; }
.jump b { font-weight: 650; } .jump span { color: #a9bfb9; font-size: 12.5px; } .jump span::before { content: "·"; margin-right: 8px; color: #ffffff4d; }
@keyframes nudgeDown { 50% { transform: translateY(3px); } }

/* dashboard detail: per-signer Sent → Opened → Signed tracker */
.trk { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; }
.trk li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mut); flex: none; }
.trk li + li::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--line); margin: 0 6px 0 4px; }
.trk li.done + li::before { background: var(--ok); } .trk li.done { color: var(--ok-ink); }
.trk li .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; animation: icoIn .35s var(--spring) both; }
.trk li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); margin: 0 3px; }
.trk li.now { color: var(--ink2); } .trk li.now i { border-color: var(--acc); background: var(--acc-50); animation: pulse 1.8s ease-out infinite; }

/* editor on phones: document first, bottom dock, signers in a sheet */
.dock, .side-h, .sideb { display: none; }
@media (max-width: 760px) {
  .ed { display: block; padding-bottom: calc(128px + env(safe-area-inset-bottom)); } .ed .pages { min-height: 70vh; }
  .ed .side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 86dvh; border: 0; border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); visibility: hidden; transition: transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow); }
  body.side-open .ed .side { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease-out); }
  .ed .side .blk-f { display: none; } .ed .side .blk-f + .blk { margin-top: 24px; }
  .side-h { display: flex; align-items: center; position: sticky; top: -20px; margin: -20px -18px 16px; padding: 18px 18px 12px; background: var(--card); z-index: 2; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
  .side-h::before { content: ""; position: absolute; top: 6px; left: 50%; margin-left: -20px; width: 40px; height: 4px; border-radius: 4px; background: var(--line2); }
  .sideb { display: block; position: fixed; inset: 0; z-index: 59; background: #14201d59; opacity: 0; pointer-events: none; transition: opacity var(--t); } body.side-open .sideb { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -14px #14201d33; animation: dockIn var(--t-slow) var(--ease-out) both; }
  .dk-row { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }
  .dk-who { display: flex; } .dk-av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--card); background: var(--c); color: #fff; font: 700 11px var(--font); cursor: pointer; opacity: .45; padding: 0; transition: opacity var(--t-fast), transform var(--t-fast) var(--spring), box-shadow var(--t-fast); }
  .dk-av + .dk-av { margin-left: -6px; } .dk-av.on { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 2px var(--c); z-index: 1; position: relative; }
  .dk-for { flex: 1; min-width: 0; line-height: 1.2; } .dk-for small { display: block; font-size: 11px; color: var(--mut); } .dk-for b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t); }
  .dk-pal { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 14px; } .dk-pal::-webkit-scrollbar { display: none; }
  .dk-pal button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px; min-height: 44px; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink2); box-shadow: var(--sh-1); cursor: pointer; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast); }
  .dk-pal button:active { transform: scale(.95); border-color: var(--g); } .dk-pal .pi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; } .dk-pal .pi .ico { width: 15px; height: 15px; }
  .trk { flex-wrap: nowrap; } .trk li + li::before { width: 14px; margin: 0 5px 0 3px; }
  body:has(#dock) .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .try { grid-template-columns: 1fr; gap: 26px; } .try-card { padding: 14px; border-radius: var(--r-lg); } .try-doc { padding: 16px 14px 12px; }
}
@media (min-width: 761px) and (max-width: 960px) { .try { grid-template-columns: 1fr; gap: 32px; max-width: 620px; } }
@keyframes dockIn { from { transform: translateY(100%); } }

/* ===== Round 4 ===== */
/* editor: zoom + page indicator pill (desktop only; phones use the dock) */
.zoom { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: none; align-items: center; gap: 2px; padding: 4px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); font-size: 12.5px; color: var(--ink2); animation: zoomIn .32s var(--ease-out) .2s both; }
@keyframes zoomIn { from { opacity: 0; transform: translateY(10px); } }
.zoom.on { display: flex; }
.zoom button { font: inherit; font-weight: 600; color: var(--ink2); background: transparent; border: 0; border-radius: 8px; height: 30px; min-width: 30px; padding: 0 8px; cursor: pointer; display: inline-grid; place-items: center; transition: background var(--t-fast), color var(--t-fast); }
.zoom button:hover:not(:disabled) { background: var(--bg); color: var(--ink); } .zoom button:disabled { opacity: .35; cursor: default; } .zoom button:focus-visible { outline: 0; box-shadow: var(--ring); }
.zoom button .ico { width: 15px; height: 15px; } .zoom .zt.on { background: var(--g-50); color: var(--g-ink); }
.zoom .zv { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.zoom .zp { padding: 0 8px 0 10px; font-variant-numeric: tabular-nums; color: var(--mut); font-weight: 550; } .zoom .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.ed .pg canvas { transition: width var(--t) var(--ease), height var(--t) var(--ease); }
@media (max-width: 760px) { .zoom, .zoom.on { display: none; } }

/* dashboard: stat icons, grouped list, activity line, fresh completion */
.stat { position: relative; } .stat .si { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--g-50); color: var(--g-ink); transition: transform var(--t) var(--spring); }
.stat .si .ico { width: 16px; height: 16px; } .stat:hover .si, .stat.on .si { transform: scale(1.08); }
.stat.s-sent .si { background: var(--acc-50); color: var(--acc-ink); } .stat.s-completed .si { background: var(--ok-50); color: var(--ok); } .stat.s-draft .si { background: var(--bg2); color: var(--ink2); }
#rows tr.grp th { text-align: left; padding: 18px 14px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); background: transparent; }
#rows tr.grp:first-child th { padding-top: 8px; }
#rows tr.grp th span { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 8px; border-radius: 99px; background: var(--bg2); color: var(--ink2); font-size: 11px; letter-spacing: 0; }
.doc-t small .age { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--acc-ink); font-weight: 600; } .doc-t small .age .ico { width: 12px; height: 12px; }
.doc-t small .new { display: inline-block; padding: 1px 7px; margin-right: 4px; border-radius: 99px; background: var(--ok-50); color: var(--ok); font-size: 11px; font-weight: 700; }
tr.fresh td { animation: freshRow 2.8s var(--ease) .5s both; }
@keyframes freshRow { 0%, 45% { background: var(--ok-50); } 100% { background: transparent; } }
@media (max-width: 760px) { #rows tr.grp { display: block; padding: 16px 10px 2px; border-top: 0; } #rows tr.grp th { display: block; padding: 0 0 6px; border: 0; } .stat .si { width: 26px; height: 26px; right: 12px; top: 12px; } }

/* signing: desktop field rail */
.rail { display: none; }
@media (min-width: 1340px) {
  .rail.on { display: block; position: fixed; left: 24px; top: 160px; width: 228px; max-height: calc(100vh - 260px); overflow: auto; z-index: 5; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 14px 10px 12px; text-align: left; animation: railIn .45s var(--ease-out) .15s both; }
}
@keyframes railIn { from { opacity: 0; transform: translateX(-12px); } }
.rail-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 10px; } .rail-h b { font-size: 13.5px; } .rail-h span { font-size: 12.5px; color: var(--mut); font-variant-numeric: tabular-nums; font-weight: 600; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: var(--ink2); cursor: pointer; text-align: left; position: relative; transition: background var(--t-fast); }
.rail li button:hover { background: var(--bg); } .rail li button:focus-visible { outline: 0; box-shadow: var(--ring); }
.rail .ri { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--bg); color: var(--mut); transition: background var(--t), color var(--t); } .rail .ri .ico { width: 15px; height: 15px; }
.rail .rt { flex: 1; min-width: 0; line-height: 1.25; } .rail .rt b { display: block; font-size: 13.5px; font-weight: 600; } .rail .rt small { font-size: 11.5px; color: var(--mut); }
.rail .rk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; transform: scale(0); transition: transform var(--t) var(--spring); } .rail .rk .ico { width: 11px; height: 11px; stroke-width: 3; }
.rail li.next button { background: var(--acc-50); } .rail li.next button::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.rail li.next .ri { background: var(--acc); color: #3a2400; } .rail li.next .rt b { color: var(--ink); }
.rail li.done .ri { background: var(--ok-50); color: var(--ok); } .rail li.done .rk { transform: scale(1); } .rail li.done .rt b { color: var(--mut); }
.rail-f { display: flex; gap: 8px; margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; color: var(--mut); } .rail-f .ico { width: 15px; height: 15px; flex: none; color: var(--ok); margin-top: 1px; }

/* signing: success states */
.burst { position: relative; width: 84px; height: 84px; margin: 0 auto; } .burst::before, .burst::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .burst::before { animation: ring .9s var(--ease-out) .6s; } .burst::after { animation: ring .9s var(--ease-out) .78s; } }
@keyframes ring { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.85); } }
.who-list { list-style: none; padding: 0; margin: 22px auto 0; max-width: 380px; display: grid; gap: 8px; text-align: left; }
.who-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); animation: rowIn .4s var(--ease-out) both; } .who-list li:nth-child(2) { animation-delay: 80ms; } .who-list li:nth-child(3) { animation-delay: 160ms; } .who-list li:nth-child(n+4) { animation-delay: 220ms; }
.who-list .av { width: 30px; height: 30px; font-size: 11.5px; flex: none; } .who-list b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who-list b small { color: var(--mut); font-weight: 500; }
.who-list em { font-style: normal; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--acc-50); color: var(--acc-ink); display: inline-flex; align-items: center; gap: 4px; } .who-list em.ok { background: var(--ok-50); color: var(--ok); } .who-list em .ico { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- round 5 ---------- */
/* landing: "How it works" as a product tour; step tabs drive a live mock of the app */
.tour { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 330px 1fr; gap: 32px; align-items: center; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tstep { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid transparent; background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.tstep:hover { background: var(--glass); } .tstep:active { transform: scale(.99); }
.tstep.on { background: var(--card); border-color: var(--line); box-shadow: var(--sh-2); }
.tstep .n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--g-50); color: var(--g-ink); transition: background var(--t), color var(--t); }
.tstep.on .n { background: var(--g); color: #fff; }
.tstep b { display: block; font-size: 16px; font-weight: 650; color: var(--ink); margin-top: 3px; }
.tstep small { display: block; color: var(--mut); font-size: 14px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease-out), opacity var(--t) var(--ease), margin var(--t-slow) var(--ease-out); }
.tstep.on small { max-height: 90px; opacity: 1; margin-top: 4px; }
.tbar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--g); transform-origin: left; transform: scaleX(0); opacity: 0; }
.tour.play .tstep.on .tbar { opacity: 1; animation: tbar 6s linear both; }
.tour.play:hover .tbar { animation-play-state: paused; }
@keyframes tbar { to { transform: scaleX(1); } }
.tour-stage { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.win-bar { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--card2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); } .win-bar span { margin-left: 10px; font-size: 12.5px; color: var(--mut); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp { padding: 28px; min-height: 372px; background: var(--bg2); background-image: radial-gradient(#ddd7c9 1px, transparent 1px); background-size: 16px 16px; }
.tp.on > div { animation: tpIn var(--t-slow) var(--ease-out) both; }
@keyframes tpIn { from { opacity: 0; transform: translateY(10px); } }
.tp .m-h { display: block; font-size: 13px; font-weight: 650; margin-bottom: 10px; color: var(--ink); }
.tp .ttl { height: 10px; width: 46%; background: var(--inv); opacity: .85; border-radius: 3px; margin-bottom: 18px; }
.tp .ln { height: 6px; background: var(--paper-ln); border-radius: 3px; margin-bottom: 10px; } .tp .ln.short { width: 62%; }
/* step 1: upload */
.m-up { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.m-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 28px 20px 20px; border: 2px dashed var(--line2); border-radius: 16px; background: var(--card2); }
.m-drop > b { font-size: 15px; } .m-drop > small { color: var(--mut); font-size: 12.5px; }
.m-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--g); color: #fff; display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 6px 16px -4px #12524a66; }
.m-file { margin-top: 18px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); text-align: left; }
.m-file b { display: block; font-size: 13px; } .m-file small { color: var(--mut); font-size: 12px; }
.m-pdf { flex: none; width: 32px; height: 38px; border-radius: 6px; background: var(--red-50); color: var(--red); font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }
.m-ok { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; } .m-ok .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.m-who { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--sh-1); }
.m-rec { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; margin-bottom: 8px; }
.m-rec .av { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.m-rec b { display: block; font-size: 13px; } .m-rec small { color: var(--mut); font-size: 11.5px; }
.m-add { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--g-ink); padding: 6px 11px; border: 1px dashed var(--line2); border-radius: 9px; }
.tp.on .m-file { animation: fileIn .55s var(--spring) .35s both; } .tp.on .m-ok { animation: fieldPop .3s var(--spring) .85s both; }
.tp.on .m-rec { animation: rowIn .4s var(--ease-out) calc(.6s + var(--d) * .16s) both; }
@keyframes fileIn { from { opacity: 0; transform: translateY(-28px) scale(.92) rotate(-2deg); } }
/* step 2: place fields */
.m-ed { display: grid; grid-template-columns: 158px 1fr; gap: 20px; align-items: start; }
.m-pal { display: flex; flex-direction: column; gap: 8px; }
.m-chip { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.m-chip .ico { width: 24px; height: 24px; padding: 4px; border-radius: 7px; background: #c2410c14; color: #c2410c; }
.m-page { position: relative; background: var(--card); border-radius: 4px; box-shadow: var(--sh-2); padding: 26px 24px; height: 318px; }
.m-f { position: absolute; display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--c); background: var(--bgc); color: var(--c); border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.m-f.a { --c: #12524a; --bgc: #eef5f3; } .m-f.b { --c: #c2410c; --bgc: #fdf1ea; }
.m-f em { font-style: normal; background: var(--c); color: #fff; border-radius: 4px; padding: 1px 4px; font-size: 9.5px; }
.tp.on .m-f.a { animation: fieldPop .35s var(--spring) .25s both; }
.tp.on .m-f.fly { animation: flyIn .75s var(--ease-out) .7s both; } .tp.on .m-f.fly2 { animation: flyIn .75s var(--ease-out) 1.5s both; }
@keyframes flyIn { 0% { opacity: 0; transform: translate(-190%, -260%) rotate(-5deg) scale(.85); box-shadow: 0 14px 28px #0003; } 25% { opacity: 1; } 80% { transform: none; box-shadow: 0 6px 14px #0002; } 90% { transform: scale(1.04); } 100% { transform: none; box-shadow: none; } }
/* step 3: sealed + certificate */
.m-cert { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: start; }
.m-signed { position: relative; background: var(--card); border-radius: 4px; box-shadow: var(--sh-2); padding: 24px 20px; height: 300px; }
.m-sigs { display: flex; gap: 12px; margin-top: 70px; } .m-sigs span { flex: 1; height: 46px; border-bottom: 1.5px solid #c9c2b2; }
.m-sigs svg { width: 100%; height: 100%; fill: none; stroke: #0b1e4d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
.tp.on .m-sigs span:first-child svg { animation: drawFrom .9s var(--ease) .3s both; } .tp.on .m-sigs span:last-child svg { animation: drawFrom .9s var(--ease) .9s both; }
@keyframes drawFrom { from { stroke-dashoffset: 300; } }
.m-seal { position: absolute; right: 16px; bottom: 20px; width: 74px; height: 74px; border-radius: 50%; border: 2.5px solid var(--ok); color: var(--ok); display: grid; place-items: center; text-align: center; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.2; transform: rotate(-12deg); background: var(--glass); }
.tp.on .m-seal { animation: stamp .45s var(--spring) 1.6s both; }
.m-cp { background: var(--card); border-radius: 4px; box-shadow: var(--sh-2); overflow: hidden; padding-bottom: 14px; }
.tp.on .m-cp { animation: certIn .55s var(--ease-out) .15s both; } @keyframes certIn { from { opacity: 0; transform: translate(18px, 6px); } }
.m-cph { background: var(--g); color: #fff; font-size: 11.5px; font-weight: 700; padding: 9px 16px; letter-spacing: .01em; }
.m-ct { display: block; font-size: 15px; margin: 12px 16px 6px; }
.m-kv { display: flex; justify-content: space-between; gap: 10px; margin: 0 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; } .m-kv span { color: var(--mut); } .m-kv b { font-weight: 600; }
.m-kv code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }
.m-sg { margin: 10px 16px 0; padding: 8px 10px; background: var(--card2); border-left: 3px solid var(--ok); border-radius: 6px; } .m-sg b { font-size: 12.5px; display: block; } .m-sg small { color: var(--mut); font-size: 11px; line-height: 1.45; display: block; }
.tp.on .m-sg { animation: rowIn .4s var(--ease-out) calc(.55s + var(--d) * .18s) both; }
.m-trail { margin: 12px 16px 0; } .m-trail i { display: block; height: 5px; background: var(--paper-ln); border-radius: 3px; margin-bottom: 6px; } .m-trail i:nth-child(2) { width: 78%; } .m-trail i:nth-child(3) { width: 86%; }
.m-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--mut); }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; gap: 16px; }
  .tour-tabs { flex-direction: row; gap: 6px; } .tstep { flex: 1; flex-direction: column; gap: 8px; padding: 12px; } .tstep small { display: none; } .tstep b { font-size: 14px; margin: 0; } .tbar { left: 12px; right: 12px; }
}
@media (max-width: 760px) {
  .tp { padding: 16px; min-height: 0; } .m-up, .m-ed, .m-cert { grid-template-columns: 1fr; }
  .m-pal { flex-direction: row; flex-wrap: wrap; } .m-pal .m-h { flex: 1 0 100%; margin-bottom: 0; } .m-chip { padding: 6px 8px; font-size: 12px; } .m-page { height: 270px; padding: 20px 18px; }
  .m-signed { display: none; } .win-bar span { font-size: 12px; }
}

/* editor: page thumbnails rail (desktop, 2+ pages) */
.thumbs { display: none; }
.ed.th-on .thumbs { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 124px; flex: none; overflow: auto; padding: 16px 0 90px; background: var(--card); border-left: 1px solid var(--line); }
.th-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; }
.th { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mut); animation: rowIn .4s var(--ease-out) both; }
.thc { position: relative; display: block; width: 84px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--sh-1); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out); }
.thc canvas { display: block; width: 100%; height: auto; border-radius: 3px; }
.th:hover .thc { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line2), var(--sh-2); }
.th.on .thc { box-shadow: 0 0 0 2px var(--g), var(--sh-2); } .th.on small { color: var(--g-ink); font-weight: 700; }
.th:focus-visible { box-shadow: none; } .th:focus-visible .thc { box-shadow: var(--ring), 0 0 0 2px var(--g); }
.th small { font-size: 12px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; line-height: 1.3; } .th small em { font-style: normal; font-size: 10.5px; color: var(--mut); font-weight: 500; }
.tf { position: absolute; border-radius: 1.5px; opacity: .85; animation: fieldPop .3s var(--spring) both; }
body.has-thumbs .zoom { right: 144px; }
@media (max-width: 1099px) { .ed.th-on .thumbs { display: none; } body.has-thumbs .zoom { right: 20px; } }

/* dashboard: document detail is a side drawer on desktop (the list stays in view), a bottom sheet on phones */
.modal.drawer > .card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.dr-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px 18px 24px; border-bottom: 1px solid var(--line); }
.dr-head h2 { margin: 2px 0 8px; font-size: 21px; overflow-wrap: anywhere; } .dr-head .dx { order: 9; margin: -4px -6px 0 0; }
.tp:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }
.dmeta { margin-top: 8px; font-size: 13px; color: var(--mut); }
.dr-body { flex: 1; min-height: 0; overflow: auto; padding: 6px 24px 22px; overscroll-behavior: contain; }
.dr-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--card2); }
.dthumb { position: relative; flex: none; width: 76px; height: 98px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; display: grid; place-items: center; color: var(--line2); transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease); }
.dthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out); }
.dthumb.ready img { opacity: 1; transform: none; } .dthumb.ready .dt-ph { opacity: 0; } .dt-ph { transition: opacity var(--t); } .dt-ph .ico { width: 26px; height: 26px; }
.dt-open { position: absolute; inset: 0; display: grid; place-items: center; background: #0b1f1c66; color: #fff; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.dthumb:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--sh-3); } .dthumb:hover .dt-open, .dthumb:focus-visible .dt-open { opacity: 1; }
.sealed-box { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--ok-50); border: 1px solid #bfe6d1; color: #146c45; }
.sealed-box > .ico { width: 22px; height: 22px; margin-top: 1px; } .sealed-box b { display: block; color: #0f5a39; font-size: 14.5px; } .sealed-box span { display: block; font-size: 13px; color: #2c6e50; margin: 2px 0 6px; }
.sealed-box code { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; word-break: break-all; color: #2c5e47; background: #ffffffa6; border-radius: 6px; padding: 6px 8px; }
#rows tr.cur td { background: var(--g-50); } #rows tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--g); }
@media (min-width: 761px) {
  .modal.drawer { justify-content: flex-end; align-items: stretch; padding: 0; background: #0b1f1c4d; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal.drawer > .card { max-width: 540px; height: 100%; max-height: none; border-radius: 22px 0 0 22px; }
  .modal.drawer.on > .card { animation: drawerIn var(--t-slow) var(--ease-out) both; } .modal.drawer.out > .card { animation: drawerOut 200ms var(--ease) both; }
}
@keyframes drawerIn { from { transform: translateX(48px); opacity: 0; } } @keyframes drawerOut { to { transform: translateX(40px); opacity: 0; } }
@media (max-width: 760px) {
  .modal.drawer > .card { max-height: 90dvh; padding-bottom: env(safe-area-inset-bottom); } .modal.drawer > .card::before { margin: 10px auto 0; flex: none; }
  .dr-head { padding: 14px 18px 14px; gap: 14px; } .dthumb { width: 58px; height: 75px; } .dr-head h2 { font-size: 19px; } .dr-body { padding: 4px 18px 18px; } .dr-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- round 6 ---------- */
/* dashboard rows: real first-page thumbnails (placeholder icon until rendered) */
.doc-t .di { width: 36px; height: 46px; overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease); }
.doc-t .di img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out); }
.doc-t .di.ready { background: var(--card); } .doc-t .di.ready img { opacity: 1; transform: none; } .doc-t .di.ready > .ico, .doc-t .di.ready::after { opacity: 0; } .doc-t .di.inst img { transition: none; }
.doc-t .di > .ico, .doc-t .di::after { transition: opacity var(--t); }
tr.click:hover .doc-t .di { transform: translateY(-1px) rotate(-2deg); box-shadow: var(--sh-2); }
@media (max-width: 760px) { .doc-t .di { display: grid; width: 32px; height: 41px; } #rows .doc-t { gap: 11px; } }

/* top bar: command palette trigger */
.ck-btn { display: inline-flex; align-items: center; gap: 9px; margin-left: 14px; height: 36px; width: 300px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--mut); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast); }
.ck-btn:hover { border-color: var(--line2); background: var(--card); color: var(--ink2); box-shadow: var(--sh-1); } .ck-btn .ico { width: 16px; height: 16px; } .ck-btn kbd { margin-left: auto; }
@media (max-width: 960px) { .ck-btn { width: 220px; } }
@media (max-width: 760px) { .ck-btn { width: 38px; height: 38px; padding: 0; justify-content: center; margin-left: auto; background: transparent; border-color: transparent; color: var(--ink2); } .ck-btn + .sp { display: none; } .ck-btn .ico { width: 19px; height: 19px; } }

/* ⌘K command palette */
.modal.cmdk { align-items: flex-start; padding: 12vh 16px 16px; background: #0b1f1c59; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal.cmdk > .card { max-width: 620px; padding: 0; display: flex; flex-direction: column; max-height: min(560px, 76vh); overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px #14201d14, var(--sh-3); }
.modal.cmdk.on > .card { animation: ckIn 220ms var(--ease-out) both; } .modal.cmdk.out > .card { animation: ckOut 140ms ease both; }
@keyframes ckIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } } @keyframes ckOut { to { opacity: 0; transform: scale(.98); } }
.ck-in { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--line); } .ck-in > .ico { width: 20px; height: 20px; color: var(--mut); }
.ck-in input { border: 0; padding: 14px 0; font-size: 17px; background: transparent; box-shadow: none !important; } .ck-in input::placeholder { color: #9aa39f; }
.ck-l { overflow: auto; padding: 6px 8px 8px; overscroll-behavior: contain; scroll-padding: 32px 0 8px; }
.ck-g { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); padding: 12px 10px 6px; }
.ck-i { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer; position: relative; animation: rowIn .24s var(--ease-out) both; }
.ck-i.on { background: var(--g-50); } .ck-i.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g); }
.ck-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg2); color: var(--ink2); } .ck-ic .ico { width: 16px; height: 16px; }
.ck-ic.solid { background: var(--g); color: #fff; } .ck-ic.amber { background: var(--acc-50); color: var(--acc-ink); } .ck-ic.green { background: var(--ok-50); color: var(--ok); } .ck-ic.red { background: var(--red-50); color: var(--red); }
.ck-t { flex: 1; min-width: 0; line-height: 1.3; } .ck-t b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ck-t small { display: block; color: var(--mut); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-t mark { background: #f2a33a40; color: inherit; border-radius: 3px; padding: 0 1px; }
.ck-h { font-size: 12px; font-weight: 650; color: var(--mut); background: var(--bg2); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.ck-go { width: 26px; height: 26px; display: grid; place-items: center; color: var(--g-ink); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out); } .ck-go .ico { width: 15px; height: 15px; }
.ck-i.on .ck-go { opacity: 1; transform: none; }
.ck-none { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px 30px; color: var(--mut); font-size: 13.5px; } .ck-none .ico { width: 24px; height: 24px; color: var(--line2); } .ck-none b { color: var(--ink2); font-weight: 600; font-size: 14.5px; }
.ck-f { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--card2); font-size: 12px; color: var(--mut); } .ck-f span { display: inline-flex; align-items: center; gap: 4px; } .ck-f kbd { padding: 2px 5px; min-width: 18px; font-size: 10.5px; }
@media (max-width: 760px) { .modal.cmdk { padding: 10px; } .modal.cmdk > .card { max-height: 72dvh; } .ck-f { display: none; } .ck-in input { font-size: 16px; } .ck-go { display: none; } .ck-i { padding: 9px 10px; } }

/* ---------- round 8 ---------- */
/* dashboard: signer avatars (filled = signed, tinted = opened, dashed = not opened yet) */
.ppl { display: inline-flex; align-items: center; padding-left: 6px; }
.pa { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; position: relative; font-size: 10px; font-weight: 700; letter-spacing: -.02em; background: var(--card); color: var(--mut); border: 1.5px dashed var(--line2); box-shadow: 0 0 0 2px var(--card); transition: margin var(--t) var(--ease-out); animation: paIn .36s var(--spring) both; animation-delay: calc(var(--j, 0) * 60ms + 140ms); }
.pa.viewed { border: 1.5px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.pa.signed { border: 1.5px solid var(--c); background: var(--c); color: #fff; }
.pa i { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); } .pa i .ico { width: 9px; height: 9px; stroke-width: 3.4; }
.pa.viewed i { width: 9px; height: 9px; right: -1px; bottom: -1px; background: var(--acc); }
.pa.more { border: 0; background: var(--bg2); color: var(--ink2); }
#rows tr:not(.rowin) .pa { animation: none; }
#rows tr.click:hover .pa, #rows tr.click:focus-visible .pa { margin-left: -1px; } #rows tr.click:hover .pa:first-child, #rows tr.click:focus-visible .pa:first-child { margin-left: -6px; }
@keyframes paIn { from { opacity: 0; transform: scale(.4); } }

/* dashboard: "Your first signature" guide */
.guide { padding: 16px 20px 20px; margin-bottom: 18px; background: linear-gradient(180deg, var(--card), var(--card2)); }
.guide:not(.quiet) { animation: rowIn .4s var(--ease-out) both; } .guide.bye { animation: popOut .22s ease both; }
.gd-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .gd-h h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.gd-c { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.gd-c i { width: 54px; height: 5px; border-radius: 9px; background: var(--bg2); overflow: hidden; position: relative; } .gd-c i::after { content: ""; position: absolute; inset: 0; background: var(--ok); border-radius: 9px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.guide:not(.quiet) .gd-c i::after { animation: grow .6s var(--ease-out) .2s both; }
.gd-x { margin: -6px -8px -6px 0; color: var(--mut); } .gd-x .ico { width: 16px; height: 16px; }
.jr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; }
.jr li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-right: 18px; min-width: 0; }
.jr li::before, .jr li::after { content: ""; position: absolute; left: 38px; right: 10px; top: 13px; height: 2px; border-radius: 2px; background: var(--line); }
.jr li::after { background: var(--ok); transform: scaleX(0); transform-origin: left; }
.jr li.ok::after { transform: none; } .guide:not(.quiet) .jr li.ok::after, .guide0 .jr li.ok::after { animation: grow .5s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 260ms); }
.jr li:last-child::before, .jr li:last-child::after { display: none; }
.jn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 9px; font-size: 12.5px; font-weight: 700; background: var(--bg2); color: var(--mut); border: 1px solid var(--line2); position: relative; z-index: 1; }
.jn .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.jr li.ok .jn { background: var(--ok); border-color: var(--ok); color: #fff; } .guide:not(.quiet) .jr li.ok .jn { animation: paIn .36s var(--spring) both; animation-delay: calc(var(--i) * 140ms + 120ms); }
.jr li.now .jn { background: var(--card); color: var(--g-ink); border: 2px solid var(--g); animation: nowRing 2.4s ease-out 1s infinite; }
.jr b { font-size: 14px; font-weight: 650; color: var(--ink2); line-height: 1.3; } .jr li.ok b { color: var(--ink); } .jr li.now b { color: var(--g-ink); }
.jr small { font-size: 12.5px; color: var(--mut); line-height: 1.4; margin-top: 2px; } .jr li:not(.ok):not(.now) { opacity: .72; }
.jr .btn { margin-top: 10px; } .jr .btn .ico { width: 15px; height: 15px; }
@keyframes nowRing { 0% { box-shadow: 0 0 0 0 #12524a40; } 70%, 100% { box-shadow: 0 0 0 9px #12524a00; } }
@keyframes growY { from { transform: scaleY(0); } }
.guide0 { margin-top: 26px; padding: 0 2px; }
@media (max-width: 760px) {
  .guide { padding: 14px 16px 16px; } .gd-h { margin-bottom: 12px; gap: 10px; } .gd-h h2 { white-space: nowrap; } .gd-c { white-space: nowrap; } .gd-c i { display: none; }
  .jr { grid-template-columns: 1fr; gap: 12px; }
  .jr li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 0; align-items: start; }
  .jr li .jn { grid-row: span 3; margin: 0; } .jr li b { padding-top: 4px; } .jr li small, .jr li .btn { grid-column: 2; justify-self: start; }
  .jr li::before, .jr li::after { left: 13px; right: auto; top: 30px; bottom: -12px; width: 2px; height: auto; } .jr li::after { transform: scaleY(0); transform-origin: top; } .jr li.ok::after { transform: none; }
  .guide:not(.quiet) .jr li.ok::after, .guide0 .jr li.ok::after { animation-name: growY; }
  .guide .jr li:not(.now) small { display: none; } .guide0 { margin-top: 20px; }
  .pa { width: 22px; height: 22px; font-size: 9px; }
}

/* editor: command palette trigger */
.ck-btn.ck-ed { width: auto; margin-left: 4px; gap: 8px; padding: 0 6px 0 10px; } .ck-ed span { color: var(--ink2); font-weight: 550; }
@media (max-width: 1180px) { .ck-ed span { display: none; } }

/* ---------- round 9 ---------- */
/* empty dashboard: a preview of a sent document that teaches the signer-avatar language */
.peek { margin-top: 18px; padding: 20px 22px 18px; border: 1px dashed var(--line2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 55%, transparent); animation: peekIn .5s var(--ease-out) .25s both; }
.pk-h { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; } .pk-h h2 { font-size: 15px; margin: 0; } .pk-h span { font-size: 13px; color: var(--mut); }
.pk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 22px; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pk-row .doc-t b { font-size: 14.5px; } .pk-n { font-size: 13px; color: var(--ink2); }
.pk-row:hover .pa { margin-left: -2px; }
.pk-key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12.5px; color: var(--mut); }
.pk-key li { display: flex; align-items: center; gap: 8px; } .pk-key b { color: var(--ink2); font-weight: 650; }
.pk-key .pa { margin: 0; width: 22px; height: 22px; font-size: 8.5px; animation: none; }
@keyframes peekIn { from { opacity: 0; transform: translateY(10px); } }

/* theme controls */
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--mut); padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg button .ico { width: 15px; height: 15px; } .seg button:hover { color: var(--ink2); }
.seg button[aria-checked=true] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); } .seg button[aria-checked=true] .ico { color: var(--g-ink); animation: icoIn .35s var(--spring) both; }
.thm { position: relative; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: background var(--t-fast), color var(--t-fast); }
.thm:hover { background: var(--g-tint); color: var(--g-ink); }
.thm .ico { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease); }
.thm .t-sun { opacity: 0; transform: rotate(-90deg) scale(.5); } .thm.dk .t-sun { opacity: 1; transform: none; } .thm.dk .t-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme .top .logo { view-transition-name: none; }

/* dark theme: the few places that need more than tokens */
html[data-theme=dark] .btn.red { border-color: #5b2b25; }
html[data-theme=dark] input:hover, html[data-theme=dark] textarea:hover { border-color: #4a5a55; }
html[data-theme=dark] .pill.draft, html[data-theme=dark] .pill.pending { color: var(--mut); }
html[data-theme=dark] .band { box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(160deg, #12302a, #0b1a17); }
html[data-theme=dark] .modal.cmdk > .card, html[data-theme=dark] .modal .card { box-shadow: 0 0 0 1px var(--line2), var(--sh-3); }
html[data-theme=dark] .modal { background: #000000a6; } html[data-theme=dark] .modal.drawer { background: #00000073; }
html[data-theme=dark] .sealed-box { border-color: #1f4d36; color: var(--ok-ink); } html[data-theme=dark] .sealed-box b { color: #9fe8c2; } html[data-theme=dark] .sealed-box span, html[data-theme=dark] .sealed-box code { color: #8fc9aa; } html[data-theme=dark] .sealed-box code { background: #00000033; }
html[data-theme=dark] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd0b8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
html[data-theme=dark] .pa.viewed, html[data-theme=dark] .pa.signed { --c2: color-mix(in srgb, var(--c) 70%, #fff); } html[data-theme=dark] .pa.viewed { border-color: var(--c2); color: var(--c2); }
html[data-theme=dark] .hero h1 .serif, html[data-theme=dark] .sect-h .serif { color: var(--g-ink); }
html[data-theme=dark] ::selection { background: #4fc0a64d; }
html[data-theme=dark] .logo .mark { box-shadow: inset 0 -2px 0 #0003, 0 0 0 1px #ffffff14; }
html[data-theme=dark] .pages { background-color: var(--bg2); }
html[data-theme=dark] .pg { box-shadow: 0 0 0 1px #ffffff0f, var(--sh-2); }
.sct, .pal button .pi.sct, .dk-pal .pi.sct { color: var(--sc); } html[data-theme=dark] :is(.sct, .pal button .pi.sct, .dk-pal .pi.sct) { color: color-mix(in srgb, var(--sc) 50%, #fff); }
html[data-theme=dark] .bar, html[data-theme=dark] .dock { background: #151e1bf5; }
.pk-row .ppl { gap: 4px; padding: 0; } .pk-row .pa, .pk-row:hover .pa { margin-left: 0; }
html[data-theme=dark] .ask { background: #0c201c; box-shadow: inset 0 -1px 0 var(--line); }
@media (max-width: 720px) {
  .peek { padding: 16px 14px; } .pk-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; } .pk-row .pill, .pk-n { display: none; }
  .pk-key { flex-direction: column; }
}
/* round 10: signing task strip (what is left to do, one button to begin) */
.ask .todo { display: flex; align-items: center; gap: 16px; margin-left: 2px; padding-left: 20px; border-left: 1px solid #ffffff1f; opacity: 0; transform: translateY(6px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.ask .todo.in { opacity: 1; transform: none; }
.todo-x { min-width: 0; } .todo-x b { display: block; font-size: 14.5px; font-weight: 650; color: #fff; } .todo-x small { display: block; margin-top: 2px; font-size: 12.5px; color: #a9bfb9; }
.ask .todo .btn { flex: none; background: var(--acc); color: #3a2400; border-color: transparent; box-shadow: 0 6px 18px -8px #f5a52499; } .ask .todo .btn:hover { filter: brightness(1.06); }
.ask .todo .btn .ico { transition: transform var(--t-fast) var(--ease-out); } .ask .todo .btn:hover .ico { transform: translateX(3px); }
.ask .todo.all .btn { background: #fff; color: var(--g3); animation: ready .5s var(--spring) both; } .ask .todo.all .btn:hover .ico { transform: none; }
.ask .todo.all .todo-x b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 0 3px #22c55e33; }
@media (max-width: 1180px) { .ask .lock { display: none; } .ask .todo { margin-left: auto; } }
@media (max-width: 760px) {
  .ask { flex-wrap: wrap; } .ask .todo { flex: 1 0 100%; margin: 2px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid #ffffff1f; gap: 12px; }
  .ask > div:not(.todo) { flex: 1 1 0; } .todo-x { flex: 1; } .todo-x b { font-size: 13.5px; } .todo-x small { font-size: 12px; }
  .ask .todo .btn { display: none; } /* the action bar right below already says Start */
}
/* round 10: free-month card with a days-left ring */
.trial { gap: 16px; padding: 12px 16px 12px 14px; }
.tr-ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.tr-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .tr-ring circle { fill: none; stroke: var(--bg2); stroke-width: 4; }
.tr-ring circle.v { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: var(--p) 100; animation: ringIn .9s var(--ease-out) .15s both; }
.tr-ring b { position: relative; font-size: 14px; font-weight: 750; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
.tr-x { flex: 1; min-width: 0; } .tr-x small { display: block; margin-top: 2px; font-size: 13px; color: var(--mut); }
@media (max-width: 760px) { .trial { align-items: flex-start; gap: 12px; } .tr-b { display: none; } }
/* round 10: landing footer */
.foot.fx { text-align: left; font-size: 14px; padding: 56px 24px 30px; background: linear-gradient(var(--bg), var(--card2)); }
.fx-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.fx-brand p { margin: 14px 0 16px; max-width: 320px; color: var(--ink2); line-height: 1.55; }
.fx-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.fx-facts li::before { content: ""; display: inline-block; width: 10px; height: 5px; border: solid var(--g-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); margin-right: 10px; }
.fx-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fx-col b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 8px; }
.fx-col a, .fx-col button { position: relative; padding: 4px 0; border: 0; background: none; font: inherit; color: var(--ink2); text-decoration: none; cursor: pointer; text-align: left; transition: color var(--t-fast); }
.fx-col a::after, .fx-col button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out); }
.fx-col a:hover, .fx-col button:hover { color: var(--g-ink); } .fx-col a:hover::after, .fx-col button:hover::after { transform: scaleX(1); }
.fx-col .fx-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; } .fx-top .ico { width: 15px; height: 15px; transform: rotate(180deg); transition: transform var(--t) var(--spring); } .fx-top:hover .ico { transform: rotate(180deg) translateY(3px); }
.fx-legal { max-width: 1120px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.faq details.flash { animation: faqFlash 1.1s var(--ease-out); }
@keyframes faqFlash { 0%, 30% { box-shadow: 0 0 0 3px var(--g-50), var(--sh-1); border-color: var(--g); } }
@media (max-width: 860px) { .fx-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .fx-brand { grid-column: 1 / -1; } }

/* ---------- round 11 ---------- */
/* editor: drag a placed field onto a page thumbnail to move it to that page */
.keys span[hidden] { display: none; }
.thumbs.dragging .th:not(.on) .thc { box-shadow: 0 0 0 1.5px var(--line2), 0 0 0 5px var(--g-tint); }
.thumbs.dragging .th-h::after { content: " · drop on a page"; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--g-ink); display: block; font-size: 11px; margin-top: 2px; animation: fadeIn var(--t) both; }
.th.drop .thc { transform: scale(1.06); box-shadow: 0 0 0 2.5px var(--g), 0 10px 24px -6px #12524a55 !important; } .th.drop small { color: var(--g-ink); font-weight: 700; }
.fld.leaving { opacity: .35; transform: scale(.94); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
/* ⌘K: document results show who has signed, with the same avatar language as the list */
.ck-s { flex: none; display: flex; padding-left: 6px; } .ck-s .ppl { display: flex; } .ck-s .pa { width: 22px; height: 22px; font-size: 9px; margin-left: -5px; animation: none; }
.ck-s .pa i { width: 11px; height: 11px; } .ck-s .pa.viewed i { width: 8px; height: 8px; } .ck-s .pa i .ico { width: 8px; height: 8px; }
@media (max-width: 640px) { .ck-s { display: none; } }
/* landing pricing: the plan card next to a plain timeline of what the free month is, and what happens on day 30 */
.price-wrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.price-wrap .pricing { margin: 0; max-width: none; }
.fm { text-align: left; } .fm h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; margin: 0 0 18px; }
.fm-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fm-l li { position: relative; padding: 0 0 26px 38px; } .fm-l li:last-child { padding-bottom: 0; }
.fm-l li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: transform var(--t) var(--spring), border-color var(--t); z-index: 1; }
.fm-l li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.fm-l li:last-child::after { display: none; }
.fm-l li.now::before { background: var(--g); border-color: var(--g); box-shadow: 0 0 0 5px var(--g-tint); }
.fm-l li.now::after { background: linear-gradient(var(--g), var(--line)); }
.fm-l li:last-child::before { border-color: var(--acc); }
.fm-l li:hover::before { transform: scale(1.25); }
.fm-d { display: inline-block; font-size: 12px; font-weight: 700; color: var(--g-ink); background: var(--g-50); padding: 2px 9px; border-radius: 99px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.fm-l li:last-child .fm-d { color: var(--acc-ink); background: var(--acc-50); }
.fm-l b { display: block; font-size: 17px; color: var(--ink); letter-spacing: -.01em; } .fm-l p { margin: 4px 0 0; color: var(--ink2); font-size: 14.5px; max-width: 40ch; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; gap: 40px; max-width: 520px; } }
/* signing: the review sheet becomes an honest "Signing… / Sealing…" progress view until the server answers */
.card.sealing > :not(.seal-run) { display: none !important; } .modal.sheet > .card.sealing::before { visibility: hidden; }
.seal-run { text-align: center; padding: 6px 4px 4px; animation: fadeIn var(--t) var(--ease) both; }
.seal-run h2 { font-size: 21px; margin: 20px 0 14px; } .seal-run.ok h2 { color: var(--ok-ink); animation: ready .3s var(--spring) both; }
.sr-paper { position: relative; width: 132px; height: 164px; margin: 6px auto 0; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #14201d14, 0 2px 6px #14201d0d, 0 12px 28px -8px #14201d33; padding: 18px 16px; display: flex; flex-direction: column; gap: 7px; animation: popIn var(--t-slow) var(--ease-out) both; transition: box-shadow .4s var(--ease); }
.sr-paper i { display: block; height: 5px; border-radius: 3px; background: #e9e5dc; } .sr-paper i:first-child { width: 58%; height: 7px; background: #c9d6d2; margin-bottom: 3px; } .sr-paper i:nth-child(3) { width: 82%; } .sr-paper i:nth-child(5) { width: 90%; } .sr-paper i:nth-child(6) { width: 64%; }
.sr-paper i.s { margin-top: auto; height: 1px; background: #d4cdbd; }
.sr-paper img { position: absolute; left: 14px; bottom: 22px; max-width: 70%; max-height: 40px; animation: inkIn .6s var(--ease) .15s both; }
.sr-seal { position: absolute; right: -14px; bottom: -12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 4px var(--card), 0 6px 16px -4px #1f9d6380; opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .2s, transform .45s var(--spring); }
.sr-seal .ico { width: 24px; height: 24px; stroke-width: 2.6; }
.seal-run.ok .sr-seal { opacity: 1; transform: none; }
.seal-run.ok .sr-paper { box-shadow: 0 0 0 1.5px var(--ok), 0 2px 6px #14201d0d, 0 16px 34px -10px #1f9d6366; }
.sr-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 380px; text-align: left; display: grid; gap: 4px; }
.sr-steps li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--mut); transition: color var(--t), background var(--t); }
.sr-steps li.on { color: var(--ink); background: var(--card2); font-weight: 550; } .sr-steps li.done { color: var(--ink2); }
.sr-i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line2); position: relative; transition: border-color var(--t), background var(--t); }
.sr-steps li.on .sr-i { border-color: var(--g-100); border-top-color: var(--g-ink); animation: spin .8s linear infinite; }
.sr-steps li.done .sr-i { border-color: var(--ok); background: var(--ok); animation: ready .3s var(--spring); }
.sr-steps li.done .sr-i::after { content: ""; position: absolute; left: 4px; top: 0.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
