:root { --ink:#141a23; --muted:#5c6570; --line:#e4e4e4; --teal:#141a23; --bg:#f6f6f6; --card:#fff; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font: 300 16px/1.55 Alexandria, system-ui, sans-serif; }
h1, h2, h3, .send-title { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: -.03em; }
a { color: var(--ink); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 28px; background: #f4f4f4; color: #131313; border-bottom: 1px solid #e6e6e6; }
.top a, .top button { color: #131313; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-name {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.02;
  letter-spacing: .06em;
  color: #111;
  text-align: left;
}
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-weight: 400; }
.btn, button[type=submit]:not(.link-btn), .editor-tools .btn, .sign-side .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #141a23; color: #fff; border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.top .btn { color: #fff; }
.totp-page form + form { margin-top: 12px; }
.totp-page button.btn.ghost { background: #fff; color: #141a23; border: 1px solid #cfcfcf; }
.flash, .warn { margin: 0; padding: 12px 28px; background: #fff4e5; color: #8a4b12; }
.hero, .grid3, .band, .pricing { max-width: 1120px; margin: 0 auto; padding: 48px 28px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; margin: 8px 0 16px; max-width: 12em; }
.lead { font-size: 18px; color: #3a424c; max-width: 640px; font-weight: 300; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #6b7280; font-weight: 500; }
body.marketing { background: #f3f3f3; }
.hero-stage {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.sign-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 5 / 4;
  justify-self: end;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  box-shadow: 0 22px 50px rgba(20, 26, 35, .06);
}
.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid #141a23;
}
.corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
.frame-body {
  position: absolute;
  left: 12%;
  right: 10%;
  top: 50%;
  transform: translateY(-46%);
}
.frame-kicker {
  margin: 0 0 10px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b7280;
}
.frame-name {
  margin: 0;
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: "Great Vibes", cursive;
  font-size: 48px;
  line-height: 1.35;
  white-space: nowrap;
  color: #141a23;
  padding: 0.28em 0.2em 0.2em 0.72em;
  animation: drawName 7.5s ease-in-out infinite;
}
.frame-line {
  display: block;
  height: 1px;
  margin-top: 8px;
  background: #141a23;
  transform-origin: left center;
  animation: drawLine 7.5s ease-in-out infinite;
}
@keyframes drawName {
  0%, 6% { clip-path: inset(-45% 130% -50% -35%); }
  40%, 86% { clip-path: inset(-45% -25% -50% -35%); }
  96%, 100% { clip-path: inset(-45% 130% -50% -35%); }
}
@keyframes drawLine {
  0%, 6% { transform: scaleX(0); }
  40%, 86% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
body.marketing .hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
}
body.marketing .hero h1 { max-width: 9em; }
body.marketing .lead { max-width: 36em; }
@media (max-width: 900px) {
  .sign-frame { max-width: 420px; margin: 8px auto 0; justify-self: center; }
  .hero-stage { min-height: 0; padding-bottom: 28px; }
  body.marketing .hero { min-height: 0; padding: 36px 24px 8px; grid-template-columns: 1fr; gap: 28px; }
  body.marketing .hero h1 { max-width: 12em; }
}
@media (prefers-reduced-motion: reduce) {
  .frame-name { animation: none; clip-path: none; }
  .frame-line { animation: none; transform: none; }
}
.partner-strip {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 18px 0;
  overflow: hidden;
}
.partner-strip__viewport { overflow: hidden; width: 100%; }
.partner-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(56px, 7vw, 104px);
  padding: 0 28px;
  animation: partner-strip-scroll 68s linear infinite;
}
.partner-strip:hover .partner-strip__track { animation-play-state: paused; }
@keyframes partner-strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-strip__link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 160px;
  padding: 0 12px;
  text-decoration: none;
}
.partner-strip__logo {
  display: block;
  max-height: 52px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-strip__logo--dark { filter: invert(1); }
.partner-strip__logo--pcs { max-width: 210px; max-height: 58px; }
.partner-strip__logo--mando { max-width: 220px; max-height: 46px; }
.partner-strip__link--text { min-width: 190px; max-width: 280px; }
.partner-strip__name {
  color: #141a23;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}
.partner-strip__name--stacked { display: flex; flex-direction: column; align-items: center; gap: 0.08em; }
.partner-strip__name--stacked > span:first-child { font-weight: 500; }
.partner-strip__name-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 26, 35, 0.55);
}
.partner-strip__name-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 26, 35, 0.56);
}
.partner-strip__name-firm-main { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
@media (prefers-reduced-motion: reduce) {
  .partner-strip__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 1100px; margin: 0 auto; gap: 24px 40px; }
  .partner-strip__link[aria-hidden="true"] { display: none; }
}
.desk { background: #141a23; color: #f4f1ec; }
.desk-inner {
  max-width: 1120px; margin: 0 auto; padding: 72px 28px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.desk .kicker { color: #c8c2b8; }
.desk h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; margin: 8px 0 22px; color: #fff; max-width: 12em; }
.desk ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.desk li { margin: 0; padding: 14px 0 0 14px; border-top: 1px solid rgba(255,255,255,.16); border-left: 2px solid transparent; color: #d7d2cb; font-size: 17px; animation: beat 12s ease-in-out infinite; }
.desk li:nth-child(1) { animation-name: beat1, step1; }
.desk li:nth-child(2) { animation-name: beat2, step2; }
.desk li:nth-child(3) { animation-name: beat3, step3; }
.desk li strong { color: #fff; font-weight: 600; }
.walk {
  position: relative;
  min-height: 390px;
  background: #f7f4ee;
  color: #141a23;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden;
}
.walk-brand { margin: 0; padding: 22px 28px 0; letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.walk-scene { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; padding: 8px 28px 24px; opacity: 0; }
.walk-scene.upload { animation: scene1 12s ease-in-out infinite; }
.walk-scene.place { animation: scene2 12s ease-in-out infinite; }
.walk-scene.send { animation: scene3 12s ease-in-out infinite; }
.walk-step { margin: 0 0 6px; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 600; color: #6b7280; }
.walk h3 { margin: 0 0 16px; font-size: 28px; }
.walk-label { margin: 10px 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.walk-input, .walk-file {
  margin: 0; border: 1px solid #d9d4cc; background: #fff; border-radius: 4px;
  padding: 8px 10px; font-size: 15px; color: #141a23;
}
.walk-file { color: #3a424c; }
.walk-btn {
  display: inline-block; margin-top: 16px; background: #141a23; color: #fff;
  border-radius: 4px; padding: 8px 14px; font-size: 14px; font-weight: 500;
}
.walk-page {
  position: relative; background: #fff; border: 1px solid #e4e0d8; min-height: 168px; padding: 16px 14px;
}
.walk-page p { margin: 0 0 28px; color: #3a424c; font-size: 14px; }
.drop {
  position: absolute; border: 1.5px dashed #141a23; border-radius: 3px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; background: rgba(255,255,255,.9);
}
.drop.sig { left: 16px; bottom: 18px; width: 46%; animation: dropSig 12s ease-in-out infinite; }
.drop.init { right: 16px; bottom: 28px; width: 28%; animation: dropInit 12s ease-in-out infinite; }
.desk-features { max-width: 1120px; margin: 0 auto; padding: 8px 28px 64px; }
.desk-features .kicker { margin-bottom: 14px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-row article { border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }
.feature-row h3 { margin: 0 0 8px; color: #fff; font-size: 26px; }
.feature-row p { margin: 0; color: #d7d2cb; }
@keyframes beat1 {
  0% { opacity: 0; transform: translateY(12px); }
  5%, 94% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes beat2 {
  0%, 5% { opacity: 0; transform: translateY(12px); }
  10%, 94% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes beat3 {
  0%, 10% { opacity: 0; transform: translateY(12px); }
  16%, 94% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes step1 {
  0%, 4% { border-left-color: transparent; }
  8%, 30% { border-left-color: #fff; }
  36%, 100% { border-left-color: transparent; }
}
@keyframes step2 {
  0%, 32% { border-left-color: transparent; }
  38%, 60% { border-left-color: #fff; }
  66%, 100% { border-left-color: transparent; }
}
@keyframes step3 {
  0%, 62% { border-left-color: transparent; }
  68%, 94% { border-left-color: #fff; }
  100% { border-left-color: transparent; }
}
@keyframes scene1 {
  0%, 2% { opacity: 0; }
  6%, 30% { opacity: 1; }
  36%, 100% { opacity: 0; }
}
@keyframes scene2 {
  0%, 32% { opacity: 0; }
  38%, 60% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes scene3 {
  0%, 62% { opacity: 0; }
  68%, 94% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dropSig {
  0%, 38% { opacity: 0; transform: translateY(-10px); }
  46%, 60% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; }
}
@keyframes dropInit {
  0%, 46% { opacity: 0; transform: translateY(-10px); }
  54%, 60% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; }
}
@keyframes drawSig {
  0%, 32% { clip-path: inset(-45% 130% -50% -35%); }
  48%, 92% { clip-path: inset(-45% -25% -50% -35%); }
  98%, 100% { clip-path: inset(-45% 130% -50% -35%); }
}
@media (prefers-reduced-motion: reduce) {
  .desk li, .walk-scene, .drop, .ag-name { animation: none !important; opacity: 1; transform: none; clip-path: none; }
  .walk { min-height: 0; }
  .walk-scene { position: relative; top: auto; }
}
.ag-brand { margin: 0; letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.agreement h3 { margin: 14px 0 10px; font-size: 28px; }
.agreement p { margin: 0; color: #3a424c; }
.ag-name { margin-top: 18px !important; display: inline-block; font-family: "Great Vibes", cursive; font-size: 42px; line-height: 1.35; color: #141a23; padding: 0.15em 0.15em 0.1em 0.45em; animation: drawSig 9s ease-in-out infinite; }
.ag-line { margin-top: 4px !important; border-top: 1px solid #141a23; padding-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; }
.ag-meta { margin-top: 16px !important; font-size: 13px; color: #5c6570; }
@media (max-width: 800px) {
  .desk-inner { grid-template-columns: 1fr; padding: 48px 20px; }
  .feature-row { grid-template-columns: 1fr; }
}
.tool-show {
  max-width: 1120px; margin: 0 auto; padding: 72px 28px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center;
}
.tool-show h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1; margin: 8px 0 22px; max-width: 8em; }
.checks { list-style: none; margin: 0; padding: 6px 18px; border: 1.5px dotted #9aa3ad; border-radius: 14px; }
.checks li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dotted #c5ccd2;
  font-weight: 600; color: #141a23;
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓";
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: #141a23; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.tool-stage { perspective: 1400px; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.tool-screen {
  width: min(460px, 100%);
  background: linear-gradient(160deg, #1c2630 0%, #10161c 70%);
  color: #fff; border-radius: 22px; padding: 22px 22px 18px;
  transform: rotateY(-18deg) rotateX(8deg) rotate(3deg);
  box-shadow: 28px 36px 70px rgba(20, 26, 35, .28);
}
.screen-kicker { margin: 0; letter-spacing: .14em; font-size: 11px; color: #c8c2b8; }
.screen-title { margin: 8px 0 14px; font-size: 26px; color: #fff; }
.screen-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.screen-tools span { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.screen-pad {
  margin-top: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  min-height: 110px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
}
.screen-pad span { color: #b7b1a8; font-size: 13px; }
.screen-pad em { font-family: "Great Vibes", cursive; font-style: normal; font-size: 36px; color: #fff; }
.screen-bar { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: #d7d2cb; font-size: 14px; }
.screen-next { margin-left: auto; background: #fff; color: #141a23; border-radius: 8px; padding: 6px 12px; font-weight: 700; }
@media (max-width: 800px) {
  .tool-show { grid-template-columns: 1fr; }
  .tool-screen { transform: none; }
}
.trust {
  max-width: 1120px; margin: 0 auto; padding: 12px 28px 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trust article { background: #fff; border: 1px solid #e4e4e4; padding: 26px 22px; }
.trust h2 { font-size: 28px; line-height: 1.05; margin: 8px 0 10px; }
.trust p { margin: 0; color: #3a424c; }
@media (max-width: 800px) {
  .trust { grid-template-columns: 1fr; }
}
.text-cta {
  display: inline-flex; align-items: center; gap: 10px;
  color: #141a23; font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 22px; font-weight: 400; letter-spacing: -.02em;
  text-decoration: none; border-bottom: 1px solid #141a23; padding-bottom: 2px;
}
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.grid3 article, .card, .side, .editor-tools, .sign-side { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 22px; }
.band { background: #fff; border: 1px solid var(--line); border-radius: 0; }
.pricing h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; max-width: 14em; margin: 8px 0 10px; }
.price-lead { margin: 0 0 28px; color: #3a424c; font-size: 18px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans article {
  background: #f7f6f4; border: 1px solid #e6e6e6; padding: 28px 22px 22px;
  display: flex; flex-direction: column; position: relative;
}
.plans h3 { margin: 0; font-size: 28px; text-align: center; }
.plan-for { margin: 8px 0 18px; color: #5c6570; min-height: 48px; text-align: center; }
.plans .hot { background: #fff; border: 2px solid #141a23; box-shadow: 0 18px 40px rgba(20, 26, 35, .08); transform: translateY(-10px); }
.plan-badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: #141a23; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 4px 8px;
}
.plans .hot h3 { margin-top: 18px; }
.price { font-size: 48px; font-weight: 600; margin: 0 0 16px; letter-spacing: -.04em; text-align: center; font-family: "Instrument Sans", system-ui, sans-serif; }
.price span { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan-note { margin: 10px 0 0; text-align: center; color: #6b7280; font-size: 13px; }
.plan-tools { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #141a23; }
.plans ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid #e6e6e6; display: grid; gap: 10px; }
.plans li { padding-left: 22px; position: relative; color: #3a424c; }
.plans li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: #141a23; }
.plans .btn { width: 100%; }
@media (max-width: 800px) {
  .plans { grid-template-columns: 1fr; }
  .plans .hot { transform: none; }
}
.foot { padding: 24px; text-align: center; color: var(--muted); }
.narrow { max-width: 440px; margin: 40px auto; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type=checkbox] { width: auto; min-height: 0; padding: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wrap { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding: 28px; align-items: start; }
.side { background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; padding: 22px 22px 20px; }
.side h1 { margin: 2px 0 16px; font-size: 28px; line-height: 1.05; }
.usage { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.usage-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.usage-track { height: 4px; margin: 8px 0 6px; background: #eceae6; border-radius: 99px; overflow: hidden; }
.usage-track span { display: block; height: 100%; background: #141a23; }
.usage p { margin: 0; color: #6b7280; font-size: 12px; }
.side .upload { display: grid; gap: 12px; }
.upload-title { margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 15px; font-weight: 600; }
.side label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.side input { border-radius: 4px; border-color: #e4e4e4; background: #fff; font-weight: 400; }
.file-pick { position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-face {
  display: flex; align-items: center; min-height: 42px; padding: 8px 12px;
  border: 1px solid #e4e4e4; border-radius: 4px; background: #fafafa;
  color: #141a23; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .upload button { width: 100%; margin-top: 4px; }
.recipient { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; background: #fff; border: 1px solid #e6e6e6; border-left: 3px solid #141a23; }
.recipient-top { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.recipient-top strong { font-size: 14px; }
.recipient label { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #141a23; }
.editor-send .check { font-size: 14px; font-weight: 500; }
.intake {
  position: relative;
  margin: 0 0 28px;
  padding: 36px 24px 28px;
  text-align: center;
  background: #f7f6f4;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
}
.intake.over { background: #fff; border-color: #141a23; }
.intake.busy { opacity: .7; }
.intake-mark {
  width: 42px; height: 42px; margin: 0 auto 10px;
  display: grid; place-items: center;
  border: 1px solid #d9d9d9; border-radius: 8px; background: #fff;
  font-size: 20px;
}
.intake > p { margin: 0 0 14px; color: #3a424c; }
.intake-title { max-width: 360px; margin: 0 auto 14px; text-align: left; }
.intake-actions { position: relative; display: inline-block; }
.intake-menu {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  min-width: 220px; padding: 6px; background: #fff; border: 1px solid #e6e6e6;
  border-radius: 8px; box-shadow: 0 16px 40px rgba(20,26,35,.12); text-align: left; z-index: 5;
}
.intake-menu button, .intake-menu a {
  display: block; width: 100%; padding: 10px 12px; border: 0; background: #fff;
  color: #141a23; text-align: left; text-decoration: none; font: inherit; cursor: pointer; border-radius: 4px;
}
.intake-menu button:hover, .intake-menu a:hover { background: #f4f4f4; }
.intake-status { min-height: 1.2em; margin: 12px 0 0; font-size: 14px; }
.prepare { max-width: 640px; }
.prepare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
a.btn.ghost, button.btn.ghost {
  background: #fff;
  color: #141a23;
  border: 1px solid #cfcfcf;
}
.markup-tools button.is-on { background: #141a23; color: #fff; border-color: #141a23; }
.markup-layer { position: absolute; inset: 0; z-index: 2; touch-action: none; }
.markup-layer.is-text { cursor: text; }
.markup-layer.is-draw { cursor: crosshair; }
.mark { position: absolute; pointer-events: none; }
.mark-text, .mark-draw, .mark-image-frame, .mark-highlight, .mark-cover, .mark-redact { pointer-events: auto; cursor: move; }
.mark-text { color: #141a23; line-height: 1; overflow: hidden; }
.mark-text span { position: absolute; white-space: nowrap; line-height: 1; }
.mark.is-selected { outline: 2px solid #141a23; outline-offset: 1px; }
.mark-highlight { background: rgba(255, 220, 60, .45); }
.mark-cover { background: #fff; box-shadow: inset 0 0 0 1px #c8c8c8; }
.mark-image-frame { overflow: hidden; }
.mark-image-frame img { position: absolute; max-width: none; }
.mark-draw { overflow: hidden; }
.mark-draw svg { display: block; width: 100%; height: 100%; }
.mark-frame { position: absolute; z-index: 4; pointer-events: none; }
.crop-handle { pointer-events: auto;
  position: absolute;
  z-index: 5;
  padding: 0;
  background: #fff;
  border: 2px solid #141a23;
  border-radius: 2px;
}
.crop-handle.n, .crop-handle.s { left: 50%; width: 22px; height: 8px; margin-left: -11px; cursor: ns-resize; }
.crop-handle.e, .crop-handle.w { top: 50%; width: 8px; height: 22px; margin-top: -11px; cursor: ew-resize; }
.crop-handle.n { top: -5px; }
.crop-handle.s { bottom: -5px; }
.crop-handle.e { right: -5px; }
.crop-handle.w { left: -5px; }
.tool-kicker { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.tool-stack { display: grid; gap: 6px; }
.tool-stack button, .tool-stack a {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; font: inherit; cursor: pointer; text-decoration: none;
}
.tool-stack button:hover, .tool-stack a:hover { background: #f4f4f4; }
.format-text label, .extra-panel label { display: grid; gap: 4px; margin: 8px 0; font-size: 13px; font-weight: 700; }
.format-style button { font-weight: 700; min-width: 34px; }
.format-style button.is-on { background: #141a23; color: #fff; border-color: #141a23; }
.format-text input[type=color], .color-label input[type=color] { width: 48px; min-height: 32px; padding: 2px; }
.extra-panel { margin: 8px 0 4px; }
.page-list { display: grid; gap: 4px; }
.page-row { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.page-row span { flex: 1; }
.page-row button { padding: 4px 8px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.mark-redact { background: rgba(20, 26, 35, .9); }
.adjust { margin: 4px 0 8px; }
.adjust[hidden] { display: none; }
.adjust-label { margin: 0; font-size: 13px; font-weight: 700; }
#crop-toggle.is-on { background: #141a23; color: #fff; border-color: #141a23; }
.markup-input {
  position: absolute;
  z-index: 4;
  width: 220px;
  min-height: 32px;
  margin: 0;
  padding: 4px 6px;
}
.intake-health {
  width: min(360px, 100%);
  margin: 4px auto 16px;
  padding: 0;
  border: 0;
  text-align: left;
}
.intake-health legend {
  float: none;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: #141a23;
}
.intake-health .health-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #141a23;
}
.intake-health input[type=radio] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: #141a23;
  border-radius: 50%;
}
.baa-sign { display: grid; gap: 12px; max-width: 420px; margin-top: 28px; }
.baa-sign .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; background: #e7f3f1; color: var(--teal); border-radius: 999px; padding: 2px 8px; }
.tag.viewed, .view-alert { background: #fff4e5; color: #8a4b12; }
.view-alert { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; letter-spacing: .04em; text-transform: uppercase; }
.muted, .fine { color: var(--muted); }
body.editor, body.sign {
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.editor .top, body.sign .top { flex: 0 0 auto; }
.editor-shell, .sign-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.editor-tools, .sign-side {
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  min-height: 0;
}
.viewer {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.pages {
  overflow: auto;
  padding: 20px;
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: start;
  background: #cfd8dd;
  min-height: 0;
  height: auto;
  overscroll-behavior: contain;
}
.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  background: #102027;
  color: #fff;
  z-index: 5;
}
.zoom-bar button {
  min-width: 36px;
  border: 1px solid #3b4d56;
  background: #1b2d36;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
.zoom-bar #zoom-label { min-width: 52px; text-align: center; font-weight: 700; }
.zoom-bar .next-field,
.next-field {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
  min-width: 88px;
  cursor: pointer;
}
.zoom-bar .back-field,
.back-field {
  background: #fff !important;
  border: 1px solid #b7d4d0 !important;
  color: #0f766e !important;
  min-width: 88px;
  cursor: pointer;
}
.zoom-bar .back-field[hidden],
.back-field[hidden],
.js-back-field[hidden] { display: none !important; }
.field-nav { align-items: stretch; }
.field.is-fill.is-next {
  outline: 3px solid #c2410c;
  box-shadow: 0 0 0 6px rgba(194, 65, 12, .28);
  z-index: 6;
  animation: next-pulse 1.1s ease-in-out 2;
}
@keyframes next-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(194, 65, 12, .28); }
  50% { box-shadow: 0 0 0 12px rgba(194, 65, 12, .08); }
}
.pages.is-drop { outline: 3px dashed #0f766e; outline-offset: -8px; background: #d7ece9; }
.sheet { position: relative; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sheet canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.field {
  position: absolute; z-index: 2; border: 2px dashed #0f766e; background: rgba(15,118,110,.18);
  color: #0f766e; font-size: 11px; font-weight: 700; padding: 2px 4px; cursor: grab; user-select: none; touch-action: none;
}
.field.is-moving { cursor: grabbing; }
.field-label { display: block; padding-right: 16px; pointer-events: none; }
.field-x {
  position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; background: #b42318; color: #fff; font-size: 16px; line-height: 22px;
  cursor: pointer; z-index: 3;
}
.field-handle {
  position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px;
  background: #0f766e; border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; z-index: 3;
}
.danger, button.danger { background: #b42318; color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; }
.link-btn { background: none; border: 0; color: #b42318; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.field[data-type="signature"] { background: rgba(15,118,110,.18); }
.field.is-fill {
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(15, 118, 110, .16);
  touch-action: auto;
  user-select: auto;
}
.field.is-fill.is-click { cursor: pointer; }
.field.is-fill .field-value {
  font: 700 12px/1.2 "Segoe UI", Arial, sans-serif;
  color: #14222b;
  padding: 0 6px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field.is-fill[data-type="initials"] {
  background: rgba(180, 83, 9, .2);
  border-color: #b45309;
  color: #9a3412;
}
.field.is-fill[data-type="date"],
.field.is-fill[data-type="name"],
.field.is-fill[data-type="text"] {
  background: rgba(29, 78, 216, .14);
  border-color: #1d4ed8;
  color: #1e3a8a;
}
.field.is-fill .fill-row {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: stretch;
}
.field.is-fill input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font: 700 12px/1.2 "Segoe UI", Arial, sans-serif;
  color: #14222b;
  min-width: 0;
  min-height: 0;
  padding: 0 4px;
  flex: 1;
}
.field-draw {
  flex: 0 0 auto;
  border: 0;
  margin: 0;
  background: rgba(255,255,255,.8);
  color: inherit;
  font: 800 9px/1 "Segoe UI", Arial, sans-serif;
  padding: 0 6px;
  cursor: pointer;
  letter-spacing: .02em;
}
.field img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.draw-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 32, 39, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.draw-pop[hidden] { display: none !important; }
.draw-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  width: min(560px, 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.draw-card.field-card { width: min(580px, 100%); }
.field-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.field-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}
.field-tab.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.sig-styles {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}
.sig-style {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8fbfb;
  padding: 8px 10px;
  cursor: pointer;
  width: 100%;
}
.sig-style.is-on { border-color: var(--teal); background: #e7f3f1; }
.sig-style img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
}
#draw-pop-pad {
  width: 100%;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tool-row button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.tool-row button.btn { background: var(--teal); color: #fff; border-color: var(--teal); }
.note { color: #1f7a45; font-weight: 700; }
.terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(16, 32, 39, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.terms-overlay[hidden] { display: none !important; }
.terms-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: left;
}
.terms-card .send-title { text-align: left; margin-bottom: 8px; }
.terms-body { max-height: min(52vh, 420px); overflow: auto; margin: 12px 0 16px; padding-right: 8px; }
.terms-body p { font-size: 14px; color: #1c2b33; margin: 0 0 10px; line-height: 1.45; }
.terms-card .check { display: block; margin: 10px 0; }
.terms-card .btn { width: 100%; margin-top: 12px; }
.send-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(16, 32, 39, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.send-overlay[hidden] { display: none !important; }
.send-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  width: min(420px, 100%);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.send-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.send-sub { color: var(--muted); margin: 0 0 18px; }
.send-bar {
  height: 10px;
  background: #e7f3f1;
  border-radius: 999px;
  overflow: hidden;
}
.send-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--teal);
  border-radius: 999px;
  animation: send-slide 1.15s ease-in-out infinite;
}
.send-bar.is-done span {
  animation: none;
  width: 100%;
}
@keyframes send-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
.note.bad { color: #8d2d22; }
.ok { color: #1f7a45; font-weight: 700; }
#sig-pad, #init-pad { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; touch-action: none; }
#sig-pad { height: 140px; }
#init-pad { height: 90px; }
.pad-label { font-weight: 800; margin: 14px 0 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.who { opacity: .85; font-size: 14px; }
.esign-h { font-size: 16px; margin: 12px 0 4px; }
.esign-p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.cert { max-width: 720px; }
.cert .card { margin: 0 0 12px; }
.cert-dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; }
.cert-dl dt { font-weight: 700; font-size: 13px; }
.cert-dl dd { margin: 0; font-size: 13px; }
.hash { word-break: break-all; font-family: Consolas, monospace; font-size: 12px; }
.legal { max-width: 800px; margin: 0 auto; padding: 32px 24px 72px; }
.legal h1 { margin: 8px 0 12px; }
.legal h2 { margin-top: 28px; }
.legal h3 { margin: 18px 0 8px; font-size: 16px; }
.mail-page { max-width: 640px; }
.mail-page details { margin: 12px 0; }
.mail-page summary { cursor: pointer; font-weight: 700; }
.totp-page { max-width: 520px; }
.qr-wrap { display: flex; justify-content: center; margin: 8px 0 4px; }
.qr-wrap img { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.totp-key { word-break: break-all; }
.recovery-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recovery-list code { display: block; background: #102027; color: #e7f3f1; padding: 8px 10px; border-radius: 8px; text-align: center; }
.api-page { max-width: 720px; }
.api-page pre { background: #102027; color: #e7f3f1; padding: 14px; border-radius: 10px; overflow: auto; font-size: 13px; }
.api-page code, .key-once code { font-family: Consolas, "Courier New", monospace; }
.key-once { background: #fff4e5; padding: 12px 14px; border-radius: 10px; word-break: break-all; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 20px 0 28px; }
.legal-band { max-width: 800px; margin: 0 auto; padding: 36px 24px; }
.foot-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.foot a { color: inherit; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) {
  .wrap, .editor-shell, .sign-shell { grid-template-columns: 1fr; height: auto; }
  body.editor, body.sign { height: auto; overflow: auto; display: block; }
  .pages { min-height: 70vh; }
  .viewer { min-height: 70vh; }
  .top { flex-wrap: wrap; }
}
