* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f5;
  color: #18181b;
}
.page { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.masthead h1 { font-size: 1.5rem; margin: 0 0 4px; }
.masthead .sub { color: #52525b; margin: 0 0 20px; }
.card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { font-size: 1.05rem; margin: 0 0 14px; }
.nda-text {
  height: 380px;
  overflow-y: scroll;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  padding: 18px;
  background: #fafafa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.55;
}
.nda-text .doc-title { text-align: center; font-weight: bold; margin: 0 0 14px; }
.nda-text .preamble { margin: 0 0 14px; }
.nda-text .section { display: flex; gap: 10px; margin: 0 0 12px; }
.nda-text .section .num { flex: 0 0 28px; text-align: right; }
.nda-text .section .body { flex: 1; }
.nda-text .section .body p { margin: 0 0 10px; }
.nda-text .subitems { margin: 0 0 10px; }
.nda-text .subitem { display: flex; gap: 10px; margin: 0 0 8px 18px; }
.nda-text .subitem .letter { flex: 0 0 30px; text-align: right; }
.nda-text .remainder { margin: 14px 0; font-style: italic; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid #18181b; outline-offset: 1px; }
.sig-pad {
  width: 100%;
  height: 180px;
  border: 1px dashed #a1a1aa;
  border-radius: 6px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.sig-actions { margin-top: 8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 0.95rem; }
.agree input { margin-top: 3px; }
.btn {
  border: 0;
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary { background: #18181b; color: #fff; width: 100%; font-weight: 600; }
.btn-primary:disabled { background: #a1a1aa; cursor: default; }
.btn-secondary { background: #e4e4e7; color: #18181b; }
.error { color: #b91c1c; font-size: 0.9rem; }
.done p { font-size: 1rem; }
.muted { color: #71717a; font-size: 0.85rem; }

.field-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}
